@@ -22,16 +22,17 @@ name | type | default | description | required
2222-- | -- | -- | -- | --
2323custom-style | Object | - | CSS(Cascading Style Sheets) | N
2424colon | Boolean | false | \- | N
25- data | Object | {} | Typescript:` FormData ` | N
25+ content-align | String | left | options: left/right | N
26+ data | Object | {} | Typescript: ` FormData ` | N
2627disabled | Boolean | undefined | \- | N
27- error-message | Object | - | Typescript: ` FormErrorMessage ` | N
28+ error-message | Object | - | Typescript: ` FormErrorMessage ` | N
2829label-align | String | right | options: left/right/top | N
2930label-width | String / Number | '81px' | \- | N
3031readonly | Boolean | undefined | \- | N
3132required-mark | Boolean | undefined | \- | N
3233required-mark-position | String | - | Display position of required symbols。options: left/right | N
3334reset-type | String | empty | options: empty/initial | N
34- rules | Object | - | Typescript: ` FormRules<FormData> ` ` type FormRules<T extends Data = any> = { [field in keyof T]?: Array<FormRule> } ` 。[ see more ts definition] ( https://github.com/novlan1/tdesign-uniapp/blob/develop/packages/tdesign/form/type.ts ) | N
35+ rules | Object | - | Typescript: ` FormRules<FormData> ` ` type FormRules<T extends Data = any> = { [field in keyof T]?: Array<FormRule> } ` 。[ see more ts definition] ( https://github.com/novlan1/tdesign-uniapp/blob/develop/packages/tdesign/form/type.ts ) | N
3536scroll-to-first-error | String | - | options: ''/smooth/auto | N
3637show-error-message | Boolean | true | \- | N
3738submit-with-warning-message | Boolean | false | \- | N
@@ -61,14 +62,15 @@ name | type | default | description | required
6162-- | -- | -- | -- | --
6263custom-style | Object | - | CSS(Cascading Style Sheets) | N
6364arrow | Boolean | false | \- | N
65+ content-align | String | - | options: left/right | N
6466for | String | - | \- | N
6567help | String | - | \- | N
6668label | String | '' | \- | N
6769label-align | String | - | options: left/right/top | N
6870label-width | String / Number | - | \- | N
6971name | String | - | \- | N
7072required-mark | Boolean | undefined | \- | N
71- rules | Array | - | Typescript: ` Array<FormRule> ` | N
73+ rules | Array | - | Typescript: ` Array<FormRule> ` | N
7274show-error-message | Boolean | undefined | \- | N
7375
7476### FormItem Slots
@@ -83,22 +85,22 @@ label | \-
8385name | type | default | description | required
8486-- | -- | -- | -- | --
8587boolean | Boolean | - | \- | N
86- date | Boolean / Object | - | Typescript: ` boolean \| IsDateOptions ` ` interface IsDateOptions { format: string; strictMode: boolean; delimiters: string[] } ` 。[ see more ts definition] ( https://github.com/novlan1/tdesign-uniapp/blob/develop/packages/tdesign/form/type.ts ) | N
87- email | Boolean / Object | - | Typescript: ` boolean \| IsEmailOptions ` ` import type { IsEmailOptions } from '../common/common' ` 。[ see more ts definition] ( https://github.com/novlan1/tdesign-uniapp/blob/develop/packages/tdesign/form/type.ts ) | N
88- enum | Array | - | Typescript: ` Array<string> ` | N
88+ date | Boolean / Object | - | Typescript: ` boolean \| IsDateOptions ` ` interface IsDateOptions { format: string; strictMode: boolean; delimiters: string[] } ` 。[ see more ts definition] ( https://github.com/novlan1/tdesign-uniapp/blob/develop/packages/tdesign/form/type.ts ) | N
89+ email | Boolean / Object | - | Typescript: ` boolean \| IsEmailOptions ` ` import type { IsEmailOptions } from '../common/common' ` 。[ see more ts definition] ( https://github.com/novlan1/tdesign-uniapp/blob/develop/packages/tdesign/form/type.ts ) | N
90+ enum | Array | - | Typescript: ` Array<string> ` | N
8991idcard | Boolean | - | \- | N
9092len | Number / Boolean | - | \- | N
9193max | Number / Boolean | - | \- | N
9294message | String | - | \- | N
9395min | Number / Boolean | - | \- | N
9496number | Boolean | - | \- | N
95- pattern | String / Object | - | Typescript: ` RegExp \| string ` | N
97+ pattern | String / Object | - | Typescript: ` RegExp \| string ` | N
9698required | Boolean | - | \- | N
9799telnumber | Boolean | - | \- | N
98- trigger | String | change | Typescript: ` ValidateTriggerType ` | N
100+ trigger | String | change | Typescript: ` ValidateTriggerType ` | N
99101type | String | error | options: error/warning | N
100- url | Boolean / Object | - | Typescript: ` boolean \| IsURLOptions ` ` import type { IsURLOptions } from '../common/common' ` 。[ see more ts definition] ( https://github.com/novlan1/tdesign-uniapp/blob/develop/packages/tdesign/form/type.ts ) | N
101- validator | Function | - | Typescript: ` CustomValidator ` ` type CustomValidator = (val: ValueType) => CustomValidateResolveType \| Promise<CustomValidateResolveType> ` ` type CustomValidateResolveType = boolean \| CustomValidateObj ` ` interface CustomValidateObj { result: boolean; message: string; type?: 'error' \| 'warning' \| 'success' } ` ` type ValueType = any ` 。[ see more ts definition] ( https://github.com/novlan1/tdesign-uniapp/blob/develop/packages/tdesign/form/type.ts ) | N
102+ url | Boolean / Object | - | Typescript: ` boolean \| IsURLOptions ` ` import type { IsURLOptions } from '../common/common' ` 。[ see more ts definition] ( https://github.com/novlan1/tdesign-uniapp/blob/develop/packages/tdesign/form/type.ts ) | N
103+ validator | Function | - | Typescript: ` CustomValidator ` ` type CustomValidator = (val: ValueType) => CustomValidateResolveType \| Promise<CustomValidateResolveType> ` ` type CustomValidateResolveType = boolean \| CustomValidateObj ` ` interface CustomValidateObj { result: boolean; message: string; type?: 'error' \| 'warning' \| 'success' } ` ` type ValueType = any ` 。[ see more ts definition] ( https://github.com/novlan1/tdesign-uniapp/blob/develop/packages/tdesign/form/type.ts ) | N
102104whitespace | Boolean | - | \- | N
103105
104106### FormErrorMessage
0 commit comments