Skip to content

Commit

Permalink
Merge branch 'release'
Browse files Browse the repository at this point in the history
  • Loading branch information
YyumeiZhang committed Jul 26, 2024
2 parents 4b6f675 + 870a59a commit 8b647c5
Show file tree
Hide file tree
Showing 94 changed files with 7,735 additions and 320 deletions.
8 changes: 6 additions & 2 deletions content/input/form/index-en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -2059,7 +2059,7 @@ render(WithFieldDemo2);
| component | For declaring fields, not used at the same time as render, props.children | ReactNode |
| className | Classname for form tag | string |
| disabled | If true, all fields inside the form structure will automatically inherit the disabled attribute | boolean | false |
| extraTextPosition | The extraTextPosition property applied to each Field uniformly controls the display position of extraText. Middle (the vertical direction is displayed in the order of Label, extraText, and Field), bottom (the vertical direction is displayed in the order of Label, Field, and extraText) <br/>**since v1.9.0** | string | 'bottom' |
| extraTextPosition | The extraTextPosition property applied to each Field uniformly controls the display position of extraText. Middle (the vertical direction is displayed in the order of Label, extraText, and Field), bottom (the vertical direction is displayed in the order of Label, Field, and extraText) | string | 'bottom' |
| getFormApi | This function will be executed once when the form is mounted and returns formApi. <br/>formApi can be used to modify the internal state of the form (value, touched, error) | function (formApi: object) | |
| initValues | Used to uniformly set the initial value of the form <br/>(will be consumed only once when form is mount) | object | |
| layout | The layout of fields, optional `horizontal` or `vertical` | string | 'vertical' |
Expand All @@ -2073,7 +2073,11 @@ render(WithFieldDemo2);
| onSubmit | Callback invoked after clicked on submit button or executed `formApi.submit()`, <br/>and all validation pass. | function (values: object, e: event) | |
| onSubmitFail | Callback invoked after clicked on submit button or executed `formApi.submit()`,<br/> but validate failed. | function (error: object, values: object, e: event) | |
| render | For declaring fields, not used at the same time as component, props.children | function |
| showValidateIcon | Whether the verification information block in the field automatically adds the corresponding status icon display <br/>**since v1.0.0** | boolean | true |
| showValidateIcon | Whether the verification information block in the field automatically adds the corresponding status icon display | boolean | true |
| style | inline style of form element | object |
| stopValidateWithError | Apply stopValidateWithError to each Field uniformly. For usage instructions, see the API of the same name in Field props (available after v2.42) | boolean | false |
| stopPropagation | Whether to prevent submit or reset events from bubbling. This is used in nested Form scenarios to prevent events from propagating outwards when the inner Form submits or resets, triggering events in the outer Form. The default is `{ reset: false, submit: false }`(available after v2.63) | object | |
| trigger | Apply the trigger uniformly to each Field to control the timing of verification. For detailed instructions, see the API of the same name in Field props.(available after v2.42) | string\|array | 'change' |
| validateFields | Form-level custom validate functions are called at submit or formApi.validate(). <br/>Supported synchronous / asynchronous function | function (values) | |
| wrapperCol | Uniformly apply the layout on each Field, with [Col component](/en-US/basic/grid#Col), <br/>set `span`, `span` values, such as {span: 20, offset: 4} | object |
Expand Down
1 change: 1 addition & 0 deletions content/input/form/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2073,6 +2073,7 @@ render(WithFieldDemo2);
| showValidateIcon | Field 内的校验信息区块否自动添加对应状态的 icon 展示 | boolean | true |
| style | 可将内联样式传入 form 标签 | object |
| stopValidateWithError | 统一应用在每个 Field 的 stopValidateWithError,使用说明见 Field props中同名 API (v2.42后提供) | boolean | false |
| stopPropagation | 是否阻止 submit或reset事件冒泡,用于嵌套 Form 场景下,内部 Form submit或reset时阻止事件往外传播,触发外部Form的事件。默认为 `{ reset: false, submit: false }`(v2.63后提供) | object | |
| trigger | 统一应用在每个 Field 的 trigger,使用说明详见 Field props中同名 API(v2.42后提供) | string\|array | 'change' |
| validateFields | Form 级别的自定义校验函数,submit 时或 formApi.validate 时会被调用(配置Form级别校验器后,Field级别校验器在submit或formApi.validate()时不会再被触发)。支持同步校验、异步校验 | function(values) | |
| wrapperCol | 统一应用在每个 Field 上的布局,同[Col 组件](/zh-CN/basic/grid#Col),设置`span``offset`值,如{span: 20, offset: 4} | object |
Expand Down
2 changes: 1 addition & 1 deletion content/input/pincode/index-en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ localeCode: en-US
order: 31
category: Input
title: PinCode
icon: doc-input
icon: doc-pincode
width: 60%
brief: For easy and intuitive verification code entry
---
Expand Down
Loading

0 comments on commit 8b647c5

Please sign in to comment.