@@ -7,75 +7,79 @@ import { InputGroup } from './input-group';
7
7
import { InputSearch } from './input-search' ;
8
8
import { TextArea } from './textarea' ;
9
9
import { Password } from './password' ;
10
+ import { VNodeChild } from 'vue' ;
10
11
11
12
export declare class Input extends AntdComponent {
12
13
static Group : typeof InputGroup ;
13
14
static Search : typeof InputSearch ;
14
15
static TextArea : typeof TextArea ;
15
16
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 ;
16
23
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 ;
22
29
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 ;
28
35
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 ;
34
42
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 ;
41
48
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 ;
47
54
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' ;
53
61
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 ;
60
67
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 ;
66
74
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
+ }
81
85
}
0 commit comments