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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
import type { ExtractPropTypes } from 'vue';
import type Checkbox from './checkbox.vue';
export declare type CheckboxValueType = string | number | boolean;
export declare const checkboxProps: {
ariaControls: StringConstructor;
/**
* @description binding value
*/
modelValue: {
type: (NumberConstructor | BooleanConstructor | StringConstructor)[];
default: undefined;
};
/**
* @description label of the Checkbox when used inside a `checkbox-group`
*/
label: {
type: (ObjectConstructor | NumberConstructor | BooleanConstructor | StringConstructor)[];
default: undefined;
};
/**
* @description value of the Checkbox when used inside a `checkbox-group`
*/
value: {
type: (ObjectConstructor | NumberConstructor | BooleanConstructor | StringConstructor)[];
default: undefined;
};
/**
* @description Set indeterminate state, only responsible for style control
*/
indeterminate: BooleanConstructor;
/**
* @description whether the Checkbox is disabled
*/
disabled: BooleanConstructor;
/**
* @description if the Checkbox is checked
*/
checked: BooleanConstructor;
/**
* @description native 'name' attribute
*/
name: {
type: StringConstructor;
default: undefined;
};
/**
* @description value of the Checkbox if it's checked
*/
trueValue: {
type: (NumberConstructor | StringConstructor)[];
default: undefined;
};
/**
* @description value of the Checkbox if it's not checked
*/
falseValue: {
type: (NumberConstructor | StringConstructor)[];
default: undefined;
};
/**
* @deprecated use `trueValue` instead
* @description value of the Checkbox if it's checked
*/
trueLabel: {
type: (NumberConstructor | StringConstructor)[];
default: undefined;
};
/**
* @deprecated use `falseValue` instead
* @description value of the Checkbox if it's not checked
*/
falseLabel: {
type: (NumberConstructor | StringConstructor)[];
default: undefined;
};
/**
* @description input id
*/
id: {
type: StringConstructor;
default: undefined;
};
/**
* @deprecated same as [aria-controls](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-controls), takes effect when `indeterminate` is `true`
*/
controls: {
type: StringConstructor;
default: undefined;
};
/**
* @description whether to add a border around Checkbox
*/
border: BooleanConstructor;
/**
* @description size of the Checkbox
*/
size: {
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
readonly required: false;
readonly validator: ((val: unknown) => boolean) | undefined;
__epPropKey: true;
};
/**
* @description input tabindex
*/
tabindex: (NumberConstructor | StringConstructor)[];
/**
* @description whether to trigger form validation
*/
validateEvent: {
type: BooleanConstructor;
default: boolean;
};
};
export declare const checkboxEmits: {
"update:modelValue": (val: CheckboxValueType) => boolean;
change: (val: CheckboxValueType) => boolean;
};
export declare type CheckboxProps = ExtractPropTypes<typeof checkboxProps>;
export declare type CheckboxEmits = typeof checkboxEmits;
export declare type CheckboxInstance = InstanceType<typeof Checkbox>;