44
55import { AntdComponent } from '../component' ;
66import { 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 ;
711
812export declare class FormItem extends AntdComponent {
913 /**
1014 * Used with label, whether to display : after label text.
1115 * @default true
1216 * @type boolean
1317 */
14- colon : boolean ;
18+ colon ? : boolean ;
1519
1620 /**
1721 * The extra prompt message. It is similar to help. Usage example: to display error message and prompt message at the same time.
1822 * @type any (string | slot)
1923 */
20- extra : any ;
24+ extra ? : any ;
2125
2226 /**
2327 * Used with validateStatus, this option specifies the validation status icon. Recommended to be used only with Input.
2428 * @default false
2529 * @type boolean
2630 */
27- hasFeedback : boolean ;
31+ hasFeedback ? : boolean ;
2832
2933 /**
3034 * The prompt message. If not provided, the prompt message will be generated by the validation rule.
3135 * @type any (string | slot)
3236 */
33- help : any ;
37+ help ?: string | VNodeChild | JSX . Element ;
3438
3539 /**
3640 * Label test
3741 * @type any (string | slot)
3842 */
39- label : any ;
43+ label : string | VNodeChild | JSX . Element ;
4044
4145 /**
4246 * 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 {
6367 */
6468 wrapperCol : Col ;
6569 labelAlign : 'left' | 'right' ;
66- selfUpdate : boolean ;
70+ name ?: InternalNamePath ;
71+ rules : object | object [ ] ;
72+ autoLink : boolean ;
73+ validateFirst ?: boolean ;
74+ validateTrigger ?: string | string [ ] | false ;
6775}
0 commit comments