-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
/
Copy pathinput.d.ts
77 lines (65 loc) · 1.67 KB
/
input.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
// Project: https://github.com/vueComponent/ant-design-vue
// Definitions by: akki-jat <https://github.com/akki-jat>
// Definitions: https://github.com/vueComponent/ant-design-vue/types
import { AntdComponent } from "../component";
import { InputGroup } from "./input-group";
import { InputSearch } from "./input-search";
import { TextArea } from "./textarea";
export declare class Input extends AntdComponent {
static Group: InputGroup;
static Search: InputSearch;
static TextArea: TextArea;
/**
* The label text displayed after (on the right side of) the input field.
* @type any (string | slot)
*/
addonAfter: any;
/**
* The label text displayed before (on the left side of) the input field.
* @type any (string | slot)
*/
addonBefore: any;
/**
* The initial input content
* @type string | number
*/
defaultValue: string | number;
/**
* Whether the input is disabled.
* @default false
* @type boolean
*/
disabled: boolean;
/**
* The ID for input
* @type string
*/
id: string;
/**
* The prefix icon for the Input.
* @type any (string | slot)
*/
prefix: any;
/**
* The size of the input box. Note: in the context of a form, the large size is used. Available: large default small
* @default 'default'
* @type string
*/
size: "small" | "large" | "default";
/**
* The suffix icon for the Input.
* @type any (string | slot)
*/
suffix: any;
/**
* The type of input, see: MDN (use Input.TextArea instead of type="textarea")
* @default 'text'
* @type string
*/
type: string;
/**
* The input content value
* @type string | number
*/
value: string | number;
}