Skip to content

Commit

Permalink
feat(form): validateFields 挂到实例上 (jdf2e#1813)
Browse files Browse the repository at this point in the history
* feat: 可以通过 getInternal 获取 validateFields 方法

* feat(form): validateFields 挂到实例上
  • Loading branch information
oasis-cloud authored Dec 22, 2023
1 parent aebad7a commit 3949e1c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/packages/form/useform.taro.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ class FormStore {
getFieldsValue: this.getFieldsValue,
setFieldsValue: this.setFieldsValue,
resetFields: this.resetFields,
validateFields: this.validateFields,
submit: this.submit,
errors: this.errors,
getInternal: this.getInternal,
Expand Down
1 change: 1 addition & 0 deletions src/packages/form/useform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ class FormStore {
getFieldsValue: this.getFieldsValue,
setFieldsValue: this.setFieldsValue,
resetFields: this.resetFields,
validateFields: this.validateFields,
submit: this.submit,
errors: this.errors,
getInternal: this.getInternal,
Expand Down

0 comments on commit 3949e1c

Please sign in to comment.