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
Copy file name to clipboardExpand all lines: packages/products/tdesign-vue-next/packages/components/form/form.en-US.md
+23-23Lines changed: 23 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,10 +7,10 @@
7
7
name | type | default | description | required
8
8
-- | -- | -- | -- | --
9
9
colon | Boolean | false | \- | N
10
-
data | Object | {} | Typescript:`FormData` | N
10
+
data | Object | {} | Typescript: `FormData` | N
11
11
disabled | Boolean | undefined | \- | N
12
-
errorMessage | Object | - | Typescript:`FormErrorMessage` | N
13
-
formControlledComponents | Array | - | Typescript:`Array<string>` | N
12
+
errorMessage | Object | - | Typescript: `FormErrorMessage` | N
13
+
formControlledComponents | Array | - | Typescript: `Array<string>` | N
14
14
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
15
15
labelAlign | String | right | options: left/right/top | N
setValidateMessage | `(message: FormValidateMessage<FormData>)` | \- | required。Sets custom validation results, such as directly displaying remote validation messages. Note: This method must be called after the component is mounted. `FormData` refers to the generic type of form data。[see more ts definition](https://github.com/Tencent/tdesign-vue-next/blob/develop/packages/components/form/type.ts)。<br/>`type FormValidateMessage<FormData> = { [field in keyof FormData]: FormItemValidateMessage[] }`<br/><br/>`interface FormItemValidateMessage { type: 'warning' \| 'error' \| 'success'; message: string }`<br/>
help | String / Slot / Function | - | Typescript:`string \| TNode`。[see more ts definition](https://github.com/Tencent/tdesign-vue-next/blob/develop/packages/components/common.ts) | N
58
-
label | String / Slot / Function | '' | Typescript:`string \| TNode`。[see more ts definition](https://github.com/Tencent/tdesign-vue-next/blob/develop/packages/components/common.ts) | N
57
+
help | String / Slot / Function | - | Typescript: `string \| TNode`。[see more ts definition](https://github.com/Tencent/tdesign-vue-next/blob/develop/packages/components/common.ts) | N
58
+
label | String / Slot / Function | '' | Typescript: `string \| TNode`。[see more ts definition](https://github.com/Tencent/tdesign-vue-next/blob/develop/packages/components/common.ts) | N
59
59
labelAlign | String | - | options: left/right/top | N
60
60
labelWidth | String / Number | - | \- | N
61
61
name | String | - | \- | N
62
62
requiredMark | Boolean | undefined | \- | N
63
-
rules | Array | - | Typescript:`Array<FormRule>` | N
63
+
rules | Array | - | Typescript: `Array<FormRule>` | N
64
64
showErrorMessage | Boolean | undefined | \- | N
65
-
status | String | - | Typescript:`'error' \| 'warning' \| 'success' \| 'validating'` | N
66
-
statusIcon | Boolean / Slot / Function | undefined | Typescript:`boolean \| TNode`。[see more ts definition](https://github.com/Tencent/tdesign-vue-next/blob/develop/packages/components/common.ts) | N
65
+
status | String | - | Typescript: `'error' \| 'warning' \| 'success' \| 'validating'` | N
66
+
statusIcon | Boolean / Slot / Function | undefined | Typescript: `boolean \| TNode`。[see more ts definition](https://github.com/Tencent/tdesign-vue-next/blob/develop/packages/components/common.ts) | N
67
67
successBorder | Boolean | false | \- | N
68
-
tips | String / Slot / Function | - | Typescript:`string \| TNode`。[see more ts definition](https://github.com/Tencent/tdesign-vue-next/blob/develop/packages/components/common.ts) | N
68
+
tips | String / Slot / Function | - | Typescript: `string \| TNode`。[see more ts definition](https://github.com/Tencent/tdesign-vue-next/blob/develop/packages/components/common.ts) | N
69
69
70
70
### FormRule
71
71
72
72
name | type | default | description | required
73
73
-- | -- | -- | -- | --
74
74
boolean | Boolean | - | \- | N
75
-
date | Boolean / Object | - | Typescript:`boolean \| IsDateOptions``interface IsDateOptions { format: string; strictMode: boolean; delimiters: string[] }`。[see more ts definition](https://github.com/Tencent/tdesign-vue-next/blob/develop/packages/components/form/type.ts) | N
76
-
email | Boolean / Object | - | Typescript:`boolean \| IsEmailOptions``import { IsEmailOptions } from 'validator/es/lib/isEmail'`。[see more ts definition](https://github.com/Tencent/tdesign-vue-next/blob/develop/packages/components/form/type.ts) | N
77
-
enum | Array | - | Typescript:`Array<string>` | N
75
+
date | Boolean / Object | - | Typescript: `boolean \| IsDateOptions``interface IsDateOptions { format: string; strictMode: boolean; delimiters: string[] }`。[see more ts definition](https://github.com/Tencent/tdesign-vue-next/blob/develop/packages/components/form/type.ts) | N
76
+
email | Boolean / Object | - | Typescript: `boolean \| IsEmailOptions``import { IsEmailOptions } from 'validator/es/lib/isEmail'`。[see more ts definition](https://github.com/Tencent/tdesign-vue-next/blob/develop/packages/components/form/type.ts) | N
77
+
enum | Array | - | Typescript: `Array<string>` | N
0 commit comments