forked from vueComponent/ant-design-vue
-
Notifications
You must be signed in to change notification settings - Fork 0
/
switch.d.ts
71 lines (60 loc) · 1.27 KB
/
switch.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
// 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';
export declare class Switch extends AntdComponent {
/**
* get focus when component mounted
* @default false
* @type boolean
*/
autoFocus: boolean;
/**
* determine whether the Switch is checked
* @default false
* @type boolean
*/
checked: boolean;
/**
* content to be shown when the state is checked
* @type any (string | slot)
*/
checkedChildren: any;
/**
* to set the initial state
* @default false
* @type boolean
*/
defaultChecked: boolean;
/**
* Disable switch
* @default false
* @type boolean
*/
disabled: boolean;
/**
* loading state of switch
* @default false
* @type boolean
*/
loading: boolean;
/**
* the size of the Switch, options: default small
* @default 'default'
* @type string
*/
size: 'small' | 'default' | 'large';
/**
* content to be shown when the state is unchecked
* @type any (string | slot)
*/
unCheckedChildren: any;
/**
* remove focus
*/
blur(): void;
/**
* get focus
*/
focus(): void;
}