UNPKG

970 BTypeScriptView Raw
1import { ElementUIComponent } from './component'
2
3/** Switch Component */
4export declare class ElSwitch extends ElementUIComponent {
5 /** Whether Switch is on */
6 value: boolean
7
8 /** Whether Switch is disabled */
9 disabled: boolean
10
11 /** Width of Switch */
12 width: number
13
14 /** Class name of the icon displayed when in on state, overrides on-text */
15 activeIconClass: string
16
17 /** Class name of the icon displayed when in off state, overrides off-text */
18 inactiveIconClass: string
19
20 /** Text displayed when in on state */
21 activeText: string
22
23 /** Text displayed when in off state */
24 inactiveText: string
25
26 /** Background color when in on state */
27 activeColor: string
28
29 /** Background color when in off state */
30 inactiveColor: string
31
32 /** Switch value when in on state */
33 activeValue: string | boolean | number
34
35 /** Switch value when in off state */
36 inactiveValue: string | boolean | number
37
38 /** Input name of Switch */
39 name: string
40}