@@ -9,77 +9,79 @@ import { TextArea } from './textarea';
99import { Password } from './password' ;
1010import { VNodeChild } from 'vue' ;
1111
12- export declare class Input extends AntdComponent {
13- static Group : typeof InputGroup ;
14- static Search : typeof InputSearch ;
15- static TextArea : typeof TextArea ;
16- static Password : typeof Password ;
17- $props : AntdProps & {
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 ;
12+ export type InputProps = {
13+ /**
14+ * The label text displayed after (on the right side of) the input field.
15+ * @type any (string | slot)
16+ */
17+ addonAfter ?: VNodeChild | JSX . Element ;
18+
19+ /**
20+ * The label text displayed before (on the left side of) the input field.
21+ * @type any (string | slot)
22+ */
23+ addonBefore ?: VNodeChild | JSX . Element ;
2324
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 ;
25+ /**
26+ * The initial input content
27+ * @type string | number
28+ */
29+ defaultValue ?: string | number ;
2930
30- /**
31- * The initial input content
32- * @type string | number
33- */
34- defaultValue ?: string | number ;
31+ /**
32+ * Whether the input is disabled.
33+ * @default false
34+ * @type boolean
35+ */
36+ disabled ?: boolean ;
3537
36- /**
37- * Whether the input is disabled.
38- * @default false
39- * @type boolean
40- */
41- disabled ?: boolean ;
38+ /**
39+ * The ID for input
40+ * @type string
41+ */
42+ id ?: string ;
4243
43- /**
44- * The ID for input
45- * @type string
46- */
47- id ?: string ;
44+ /**
45+ * The prefix icon for the Input.
46+ * @type any ( string | slot)
47+ */
48+ prefix ?: VNodeChild | JSX . Element ;
4849
49- /**
50- * The prefix icon for the Input.
51- * @type any (string | slot)
52- */
53- prefix ?: VNodeChild | JSX . Element ;
50+ /**
51+ * The size of the input box. Note: in the context of a form, the large size is used. Available: large default small
52+ * @default 'default'
53+ * @type string
54+ */
55+ size ?: 'small' | 'large' | 'default' ;
5456
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' ;
57+ /**
58+ * The suffix icon for the Input.
59+ * @type any (string | slot)
60+ */
61+ suffix ?: VNodeChild | JSX . Element ;
6162
62- /**
63- * The suffix icon for the Input.
64- * @type any (string | slot)
65- */
66- suffix ?: VNodeChild | JSX . Element ;
63+ /**
64+ * The type of input, see: MDN (use Input.TextArea instead of type="textarea")
65+ * @default 'text'
66+ * @type string
67+ */
68+ type ?: string ;
6769
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 ;
70+ /**
71+ * The input content value
72+ * @type string | number
73+ */
74+ value ?: string | number ;
75+ /**
76+ * allow to remove input content with clear icon
77+ */
78+ allowClear ?: boolean ;
79+ } ;
7480
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+ export declare class Input extends AntdComponent {
82+ static Group : typeof InputGroup ;
83+ static Search : typeof InputSearch ;
84+ static TextArea : typeof TextArea ;
85+ static Password : typeof Password ;
86+ $props : AntdProps & InputProps ;
8587}
0 commit comments