You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
contentAlign | String | left | options: left/right | N
13
13
disabled | Boolean | undefined | \- | N
14
-
errorMessage | Object | - | Typescript:`FormErrorMessage` | N
14
+
errorMessage | Object | - | Typescript: `FormErrorMessage` | N
15
15
id | String | undefined | native id attribute of the form,which supports being used in conjunction with non-form buttons through the form attribute to trigger form events | N
16
16
labelAlign | String | right | options: left/right/top | N
17
17
labelWidth | String / Number | '81px' | \- | N
18
18
preventSubmitDefault | Boolean | true | \- | N
19
-
requiredMark | Boolean | undefined | \- | N
19
+
requiredMark | Boolean | true | \- | N
20
20
requiredMarkPosition | String | left | Display position of required symbols。options: left/right | N
21
21
resetType | String | empty | options: empty/initial | N
22
-
rules | Object | - | Typescript:`FormRules<FormData>``type FormRules<T extends Data = any> = { [field in keyof T]?: Array<FormRule> }`。[see more ts definition](https://github.com/Tencent/tdesign-mobile-react/tree/develop/src/form/type.ts) | N
22
+
rules | Object | - | Typescript: `FormRules<FormData>``type FormRules<T extends Data = any> = { [field in keyof T]?: Array<FormRule> }`。[see more ts definition](https://github.com/Tencent/tdesign-mobile-react/tree/develop/src/form/type.ts) | N
23
23
scrollToFirstError | String | - | options: ''/smooth/auto | N
24
24
showErrorMessage | Boolean | true | \- | N
25
25
submitWithWarningMessage | Boolean | false | \- | N
26
-
onReset | Function | | Typescript:`(context: { e?: FormResetEvent }) => void`<br/> | N
contentAlign | String | - | options: left/right | N
53
53
for | String | - | \- | N
54
-
help | TNode | - | Typescript:`string \| TNode`。[see more ts definition](https://github.com/Tencent/tdesign-mobile-react/blob/develop/src/common.ts) | N
55
-
label | TNode | '' | Typescript:`string \| TNode`。[see more ts definition](https://github.com/Tencent/tdesign-mobile-react/blob/develop/src/common.ts) | N
54
+
help | TNode | - | Typescript: `string \| TNode`。[see more ts definition](https://github.com/Tencent/tdesign-mobile-react/blob/develop/src/common.ts) | N
55
+
label | TNode | '' | Typescript: `string \| TNode`。[see more ts definition](https://github.com/Tencent/tdesign-mobile-react/blob/develop/src/common.ts) | N
56
56
labelAlign | String | - | options: left/right/top | N
57
57
labelWidth | String / Number | - | \- | N
58
58
name | String | - | \- | N
59
59
requiredMark | Boolean | undefined | \- | N
60
-
rules | Array | - | Typescript:`Array<FormRule>` | N
60
+
rules | Array | - | Typescript: `Array<FormRule>` | N
61
61
showErrorMessage | Boolean | undefined | \- | N
62
62
63
63
### FormRule
64
64
65
65
name | type | default | description | required
66
66
-- | -- | -- | -- | --
67
67
boolean | Boolean | - | \- | N
68
-
date | Boolean / Object | - | Typescript:`boolean \| IsDateOptions``interface IsDateOptions { format: string; strictMode: boolean; delimiters: string[] }`。[see more ts definition](https://github.com/Tencent/tdesign-mobile-react/tree/develop/src/form/type.ts) | N
69
-
email | Boolean / Object | - | Typescript:`boolean \| IsEmailOptions``import { IsEmailOptions } from 'validator/es/lib/isEmail'`。[see more ts definition](https://github.com/Tencent/tdesign-mobile-react/tree/develop/src/form/type.ts) | N
70
-
enum | Array | - | Typescript:`Array<string>` | N
68
+
date | Boolean / Object | - | Typescript: `boolean \| IsDateOptions``interface IsDateOptions { format: string; strictMode: boolean; delimiters: string[] }`。[see more ts definition](https://github.com/Tencent/tdesign-mobile-react/tree/develop/src/form/type.ts) | N
69
+
email | Boolean / Object | - | Typescript: `boolean \| IsEmailOptions``import { IsEmailOptions } from 'validator/es/lib/isEmail'`。[see more ts definition](https://github.com/Tencent/tdesign-mobile-react/tree/develop/src/form/type.ts) | N
70
+
enum | Array | - | Typescript: `Array<string>` | N
0 commit comments