fix: set false as default to validateOnRuleChange in FormModel (#4040)

pull/4049/head
Archer03 2021-05-09 20:48:26 +08:00 committed by GitHub
parent 23fb9fae7c
commit 23ab83c533
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 2 deletions

View File

@ -12,7 +12,7 @@
| labelCol | The layout of label. You can set `span` `offset` to something like `{span: 3, offset: 12}` or `sm: {span: 3, offset: 12}` same as with `<Col>` | [object](/components/grid/#Col) | | |
| wrapperCol | The layout for input controls, same as `labelCol` | [object](/components/grid/#Col) | | |
| colon | change default props colon value of Form.Item (only effective when prop layout is horizontal) | boolean | true | |
| validateOnRuleChange | whether to trigger validation when the `rules` prop is changed | boolean | true | |
| validateOnRuleChange | whether to trigger validation when the `rules` prop is changed | boolean | false | |
### Events

View File

@ -12,7 +12,7 @@
| labelCol | label 标签布局,同 `<Col>` 组件,设置 `span` `offset` 值,如 `{span: 3, offset: 12}``sm: {span: 3, offset: 12}` | [object](/components/grid-cn/#Col) | | |
| wrapperCol | 需要为输入控件设置布局样式时,使用该属性,用法同 labelCol | [object](/components/grid-cn/#Col) | | |
| colon | 配置 Form.Item 的 colon 的默认值 (只有在属性 layout 为 horizontal 时有效) | boolean | true | |
| validateOnRuleChange | 是否在 rules 属性改变后立即触发一次验证 | boolean | true | |
| validateOnRuleChange | 是否在 rules 属性改变后立即触发一次验证 | boolean | false | |
### 事件

View File

@ -52,6 +52,7 @@ const Form = {
layout: 'horizontal',
hideRequiredMark: false,
colon: true,
validateOnRuleChange: false,
}),
Item: FormItem,
created() {