Skip to content

Commit 23ab83c

Browse files
authored
fix: set false as default to validateOnRuleChange in FormModel (vueComponent#4040)
1 parent 23fb9fa commit 23ab83c

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

antdv-demo/docs/form-model/index.en-US.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
| 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) | | |
1313
| wrapperCol | The layout for input controls, same as `labelCol` | [object](/components/grid/#Col) | | |
1414
| colon | change default props colon value of Form.Item (only effective when prop layout is horizontal) | boolean | true | |
15-
| validateOnRuleChange | whether to trigger validation when the `rules` prop is changed | boolean | true | |
15+
| validateOnRuleChange | whether to trigger validation when the `rules` prop is changed | boolean | false | |
1616

1717
### Events
1818

antdv-demo/docs/form-model/index.zh-CN.md

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

1717
### 事件
1818

components/form-model/Form.jsx

+1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ const Form = {
5252
layout: 'horizontal',
5353
hideRequiredMark: false,
5454
colon: true,
55+
validateOnRuleChange: false,
5556
}),
5657
Item: FormItem,
5758
created() {

0 commit comments

Comments
 (0)