Skip to content

Commit

Permalink
docs(form): update
Browse files Browse the repository at this point in the history
  • Loading branch information
eiinu committed Jul 14, 2023
1 parent 6487229 commit d1c16e9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/packages/__VUE/form/doc.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ export default {
### Validate Form
`4.0.13` adds Promise-based custom error message function:
`4.1.0` adds Promise-based custom error message function:
`validator` is a function, and the return value type is `boolean | Promise`. If `false` is returned or the Promise of `resolve(false)` is triggered, it means that the verification fails, and the prompt message set by `message` will be displayed. Returns the Promise that if `reject(error)` is triggered, the `error` is reserved as the prompt text, with a higher priority than `message`.
Expand Down
2 changes: 1 addition & 1 deletion src/packages/__VUE/form/doc.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ export default {
### 表单校验
`4.0.13` 新增基于 Promise 的自定义错误提示功能:
`4.1.0` 新增基于 Promise 的自定义错误提示功能:
`validator` 为函数,返回值类型为 `boolean | Promise`。若返回 `false` 或者触发了 `resolve(false)` 的 Promise ,则表示校验失败,会展示 `message` 设置的提示信息。若返回触发了 `reject(error)` 的 Promise,则会将 `error` 作为提示文案,优先级高于 `message`
Expand Down
2 changes: 1 addition & 1 deletion src/packages/__VUE/form/doc.taro.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export default {
### 表单校验
`4.0.13` 新增基于 Promise 的自定义错误提示功能:
`4.1.0` 新增基于 Promise 的自定义错误提示功能:
`validator` 为函数,返回值类型为 `boolean | Promise`。若返回 `false` 或者触发了 `resolve(false)` 的 Promise ,则表示校验失败,会展示 `message` 设置的提示信息。若返回触发了 `reject(error)` 的 Promise,则会将 `error` 作为提示文案,优先级高于 `message`
Expand Down

0 comments on commit d1c16e9

Please sign in to comment.