@@ -10,66 +10,91 @@ export declare type InternalNamePath = (string | number)[];
10
10
export declare type NamePath = string | number | InternalNamePath ;
11
11
12
12
export declare class FormItem extends AntdComponent {
13
- /**
14
- * Used with label, whether to display : after label text.
15
- * @default true
16
- * @type boolean
17
- */
18
- colon ?: boolean ;
13
+ $props : {
14
+ /**
15
+ * Used with label, whether to display : after label text.
16
+ * @default true
17
+ * @type boolean
18
+ */
19
+ colon ?: boolean ;
19
20
20
- /**
21
- * The extra prompt message. It is similar to help. Usage example: to display error message and prompt message at the same time.
22
- * @type any (string | slot)
23
- */
24
- extra ?: any ;
21
+ /**
22
+ * The extra prompt message. It is similar to help. Usage example: to display error message and prompt message at the same time.
23
+ * @type any (string | slot)
24
+ */
25
+ extra ?: string | VNodeChild | JSX . Element ;
25
26
26
- /**
27
- * Used with validateStatus, this option specifies the validation status icon. Recommended to be used only with Input.
28
- * @default false
29
- * @type boolean
30
- */
31
- hasFeedback ?: boolean ;
27
+ /**
28
+ * Used with validateStatus, this option specifies the validation status icon. Recommended to be used only with Input.
29
+ * @default false
30
+ * @type boolean
31
+ */
32
+ hasFeedback ?: boolean ;
32
33
33
- /**
34
- * The prompt message. If not provided, the prompt message will be generated by the validation rule.
35
- * @type any (string | slot)
36
- */
37
- help ?: string | VNodeChild | JSX . Element ;
34
+ /**
35
+ * The prompt message. If not provided, the prompt message will be generated by the validation rule.
36
+ * @type any (string | slot)
37
+ */
38
+ help ?: string | VNodeChild | JSX . Element ;
38
39
39
- /**
40
- * Label test
41
- * @type any (string | slot)
42
- */
43
- label : string | VNodeChild | JSX . Element ;
40
+ /**
41
+ * Label test
42
+ * @type any (string | slot)
43
+ */
44
+ label ? : string | VNodeChild | JSX . Element ;
44
45
45
- /**
46
- * 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>
47
- * @type Col
48
- */
49
- labelCol : Col ;
46
+ /**
47
+ * 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>
48
+ * @type Col
49
+ */
50
+ labelCol ? : Col ;
50
51
51
- /**
52
- * Whether provided or not, it will be generated by the validation rule.
53
- * @default false
54
- * @type boolean
55
- */
56
- required : boolean ;
52
+ /**
53
+ * Whether provided or not, it will be generated by the validation rule.
54
+ * @default false
55
+ * @type boolean
56
+ */
57
+ required ? : boolean ;
57
58
58
- /**
59
- * The validation status. If not provided, it will be generated by validation rule. options: 'success' 'warning' 'error' 'validating'
60
- * @type string
61
- */
62
- validateStatus : '' | 'success' | 'warning' | 'error' | 'validating' ;
59
+ /**
60
+ * The validation status. If not provided, it will be generated by validation rule. options: 'success' 'warning' 'error' 'validating'
61
+ * @type string
62
+ */
63
+ validateStatus ? : '' | 'success' | 'warning' | 'error' | 'validating' ;
63
64
64
- /**
65
- * The layout for input controls, same as labelCol
66
- * @type Col
67
- */
68
- wrapperCol : Col ;
69
- labelAlign : 'left' | 'right' ;
70
- name ?: InternalNamePath ;
71
- rules : object | object [ ] ;
72
- autoLink : boolean ;
73
- validateFirst ?: boolean ;
74
- validateTrigger ?: string | string [ ] | false ;
65
+ /**
66
+ * The layout for input controls, same as labelCol
67
+ * @type Col
68
+ */
69
+ wrapperCol ?: Col ;
70
+ /**
71
+ * Set sub label htmlFor.
72
+ */
73
+ htmlFor ?: string ;
74
+ /**
75
+ * text align of label
76
+ */
77
+ labelAlign ?: 'left' | 'right' ;
78
+ /**
79
+ * a key of model. In the use of validate and resetFields method, the attribute is required
80
+ */
81
+ name ?: NamePath ;
82
+ /**
83
+ * validation rules of form
84
+ */
85
+ rules ?: object | object [ ] ;
86
+ /**
87
+ * Whether to automatically associate form fields. In most cases, you can use automatic association.
88
+ * If the conditions for automatic association are not met, you can manually associate them. See the notes below.
89
+ */
90
+ autoLink ?: boolean ;
91
+ /**
92
+ * Whether stop validate on first rule of error for this field.
93
+ */
94
+ validateFirst ?: boolean ;
95
+ /**
96
+ * When to validate the value of children node
97
+ */
98
+ validateTrigger ?: string | string [ ] | false ;
99
+ } ;
75
100
}
0 commit comments