@@ -7,75 +7,79 @@ import { InputGroup } from './input-group';
77import { InputSearch } from './input-search' ;
88import { TextArea } from './textarea' ;
99import { Password } from './password' ;
10+ import { VNodeChild } from 'vue' ;
1011
1112export declare class Input extends AntdComponent {
1213 static Group : typeof InputGroup ;
1314 static Search : typeof InputSearch ;
1415 static TextArea : typeof TextArea ;
1516 static Password : typeof Password ;
17+ $props : {
18+ /**
19+ * The label text displayed after (on the right side of) the input field.
20+ * @type any (string | slot)
21+ */
22+ addonAfter ?: VNodeChild | JSX . Element ;
1623
17- /**
18- * The label text displayed after (on the right side of) the input field.
19- * @type any (string | slot)
20- */
21- addonAfter : any ;
24+ /**
25+ * The label text displayed before (on the left side of) the input field.
26+ * @type any (string | slot)
27+ */
28+ addonBefore ?: VNodeChild | JSX . Element ;
2229
23- /**
24- * The label text displayed before (on the left side of) the input field.
25- * @type any ( string | slot)
26- */
27- addonBefore : any ;
30+ /**
31+ * The initial input content
32+ * @type string | number
33+ */
34+ defaultValue ?: string | number ;
2835
29- /**
30- * The initial input content
31- * @type string | number
32- */
33- defaultValue : string | number ;
36+ /**
37+ * Whether the input is disabled.
38+ * @default false
39+ * @type boolean
40+ */
41+ disabled ?: boolean ;
3442
35- /**
36- * Whether the input is disabled.
37- * @default false
38- * @type boolean
39- */
40- disabled : boolean ;
43+ /**
44+ * The ID for input
45+ * @type string
46+ */
47+ id ?: string ;
4148
42- /**
43- * The ID for input
44- * @type string
45- */
46- id : string ;
49+ /**
50+ * The prefix icon for the Input.
51+ * @type any ( string | slot)
52+ */
53+ prefix ?: VNodeChild | JSX . Element ;
4754
48- /**
49- * The prefix icon for the Input.
50- * @type any (string | slot)
51- */
52- prefix : any ;
55+ /**
56+ * The size of the input box. Note: in the context of a form, the large size is used. Available: large default small
57+ * @default 'default'
58+ * @type string
59+ */
60+ size ?: 'small' | 'large' | 'default' ;
5361
54- /**
55- * The size of the input box. Note: in the context of a form, the large size is used. Available: large default small
56- * @default 'default'
57- * @type string
58- */
59- size : 'small' | 'large' | 'default' ;
62+ /**
63+ * The suffix icon for the Input.
64+ * @type any (string | slot)
65+ */
66+ suffix ?: VNodeChild | JSX . Element ;
6067
61- /**
62- * The suffix icon for the Input.
63- * @type any (string | slot)
64- */
65- suffix : any ;
68+ /**
69+ * The type of input, see: MDN (use Input.TextArea instead of type="textarea")
70+ * @default 'text'
71+ * @type string
72+ */
73+ type ?: string ;
6674
67- /**
68- * The type of input, see: MDN (use Input.TextArea instead of type="textarea")
69- * @default 'text'
70- * @type string
71- */
72- type : string ;
73-
74- /**
75- * The input content value
76- * @type string | number
77- */
78- value : string | number ;
79-
80- allowClear ?: boolean ;
75+ /**
76+ * The input content value
77+ * @type string | number
78+ */
79+ value ?: string | number ;
80+ /**
81+ * allow to remove input content with clear icon
82+ */
83+ allowClear ?: boolean ;
84+ }
8185}
0 commit comments