4
4
5
5
import { AntdComponent } from '../component' ;
6
6
import { Col } from '../grid/col' ;
7
+ import { VNodeChild } from 'vue' ;
8
+
9
+ export declare type InternalNamePath = ( string | number ) [ ] ;
10
+ export declare type NamePath = string | number | InternalNamePath ;
7
11
8
12
export declare class FormItem extends AntdComponent {
9
13
/**
10
14
* Used with label, whether to display : after label text.
11
15
* @default true
12
16
* @type boolean
13
17
*/
14
- colon : boolean ;
18
+ colon ? : boolean ;
15
19
16
20
/**
17
21
* The extra prompt message. It is similar to help. Usage example: to display error message and prompt message at the same time.
18
22
* @type any (string | slot)
19
23
*/
20
- extra : any ;
24
+ extra ? : any ;
21
25
22
26
/**
23
27
* Used with validateStatus, this option specifies the validation status icon. Recommended to be used only with Input.
24
28
* @default false
25
29
* @type boolean
26
30
*/
27
- hasFeedback : boolean ;
31
+ hasFeedback ? : boolean ;
28
32
29
33
/**
30
34
* The prompt message. If not provided, the prompt message will be generated by the validation rule.
31
35
* @type any (string | slot)
32
36
*/
33
- help : any ;
37
+ help ?: string | VNodeChild | JSX . Element ;
34
38
35
39
/**
36
40
* Label test
37
41
* @type any (string | slot)
38
42
*/
39
- label : any ;
43
+ label : string | VNodeChild | JSX . Element ;
40
44
41
45
/**
42
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>
@@ -63,5 +67,9 @@ export declare class FormItem extends AntdComponent {
63
67
*/
64
68
wrapperCol : Col ;
65
69
labelAlign : 'left' | 'right' ;
66
- selfUpdate : boolean ;
70
+ name ?: InternalNamePath ;
71
+ rules : object | object [ ] ;
72
+ autoLink : boolean ;
73
+ validateFirst ?: boolean ;
74
+ validateTrigger ?: string | string [ ] | false ;
67
75
}
0 commit comments