twcpt 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/charts.cjs.js +1 -1
- package/dist/charts.d.ts +0 -7
- package/dist/charts.es.js +1 -9
- package/dist/components/j-tw-btn/index.d.ts +10 -10
- package/dist/components/j-tw-checkbox/index.d.ts +230 -0
- package/dist/components/j-tw-checkbox/types.d.ts +35 -0
- package/dist/components/j-tw-checkbox-group/index.d.ts +309 -0
- package/dist/components/j-tw-checkbox-group/types.d.ts +38 -0
- package/dist/components/j-tw-confirm-dialog/index.d.ts +704 -0
- package/dist/components/j-tw-confirm-dialog/jwConfirmDialog.d.ts +2 -0
- package/dist/components/j-tw-confirm-dialog/types.d.ts +79 -0
- package/dist/components/j-tw-date-picker/index.d.ts +63 -8
- package/dist/components/j-tw-date-picker/types.d.ts +15 -0
- package/dist/components/j-tw-dialog/index.d.ts +793 -0
- package/dist/components/j-tw-dialog/jwDialog.d.ts +38 -0
- package/dist/components/j-tw-dialog/types.d.ts +122 -0
- package/dist/components/j-tw-form/index.d.ts +368 -0
- package/dist/components/j-tw-form/types.d.ts +18 -0
- package/dist/components/j-tw-form-item/index.d.ts +248 -0
- package/dist/components/j-tw-form-item/types.d.ts +21 -0
- package/dist/components/j-tw-form-label/index.d.ts +66 -0
- package/dist/components/j-tw-input/index.d.ts +537 -0
- package/dist/components/j-tw-input/types.d.ts +76 -0
- package/dist/components/j-tw-messages/MessageItem.d.ts +84 -0
- package/dist/components/j-tw-messages/index.d.ts +110 -0
- package/dist/components/j-tw-messages/jwMessages.d.ts +2 -0
- package/dist/components/j-tw-messages/state.d.ts +23 -0
- package/dist/components/j-tw-messages/types.d.ts +31 -0
- package/dist/components/j-tw-radio/index.d.ts +168 -0
- package/dist/components/j-tw-radio/types.d.ts +29 -0
- package/dist/components/j-tw-radio-group/index.d.ts +244 -0
- package/dist/components/j-tw-radio-group/types.d.ts +37 -0
- package/dist/components/j-tw-status-img/index.d.ts +36 -0
- package/dist/components/j-tw-status-img/types.d.ts +3 -0
- package/dist/components/j-tw-table/index.d.ts +480 -0
- package/dist/components/j-tw-table/types.d.ts +157 -0
- package/dist/components/j-tw-tree-select/TreeNode.d.ts +124 -0
- package/dist/components/j-tw-tree-select/index.d.ts +292 -0
- package/dist/components/j-tw-tree-select/types.d.ts +110 -0
- package/dist/components/j-tw-tree-select-btn/TreeNode.d.ts +107 -0
- package/dist/components/j-tw-tree-select-btn/index.d.ts +171 -22
- package/dist/components/j-tw-tree-select-btn/types.d.ts +5 -0
- package/dist/global.d.ts +109 -49
- package/dist/index.css +1 -1
- package/dist/index.d.ts +37 -4
- package/dist/shims-svg.d.ts +4 -0
- package/dist/twcpt-styles.css +1 -1
- package/dist/twcpt.cjs.js +9 -5
- package/dist/twcpt.es.js +3552 -1666
- package/dist/types.d.ts +1 -1
- package/dist/utils/useBizRequest.d.ts +12 -0
- package/package.json +1 -3
- package/dist/charts-BRqaKjiE.js +0 -879
- package/dist/charts-lTMiYKQB.cjs +0 -1
- package/dist/components/j-ch-bar/index.d.ts +0 -50
- package/dist/components/j-ch-bar/types.d.ts +0 -42
- package/dist/components/j-ch-bar-line/index.d.ts +0 -49
- package/dist/components/j-ch-bar-line/types.d.ts +0 -42
- package/dist/components/j-ch-bubble/index.d.ts +0 -54
- package/dist/components/j-ch-bubble/types.d.ts +0 -51
- package/dist/components/j-ch-line/index.d.ts +0 -57
- package/dist/components/j-ch-line/types.d.ts +0 -42
- package/dist/components/j-ch-pie-doughnut/index.d.ts +0 -60
- package/dist/components/j-ch-pie-doughnut/types.d.ts +0 -55
- package/dist/components/j-ch-radar/index.d.ts +0 -49
- package/dist/components/j-ch-radar/types.d.ts +0 -42
- package/dist/utils/chart.d.ts +0 -28
|
@@ -0,0 +1,309 @@
|
|
|
1
|
+
import { PropType, DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, CreateComponentPublicInstanceWithMixins, GlobalComponents, GlobalDirectives, ComponentProvideOptions, ComponentOptionsBase, VNodeProps, AllowedComponentProps, ComponentCustomProps, ObjectPlugin } from 'vue';
|
|
2
|
+
import { JTWCheckboxOption } from './types';
|
|
3
|
+
import { SFCWithInstall } from 'element-plus/es/utils/index.mjs';
|
|
4
|
+
import { CheckboxGroupProps, CheckboxValueType, CheckboxGroupValueType, CheckboxProps, ComponentSize } from 'element-plus';
|
|
5
|
+
declare const _default: DefineComponent<ExtractPropTypes<{
|
|
6
|
+
options: {
|
|
7
|
+
type: PropType<JTWCheckboxOption[]>;
|
|
8
|
+
default: undefined;
|
|
9
|
+
};
|
|
10
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
11
|
+
options: {
|
|
12
|
+
type: PropType<JTWCheckboxOption[]>;
|
|
13
|
+
default: undefined;
|
|
14
|
+
};
|
|
15
|
+
}>> & Readonly<{}>, {
|
|
16
|
+
options: JTWCheckboxOption[];
|
|
17
|
+
}, {}, {
|
|
18
|
+
ElCheckboxGroup: SFCWithInstall<{
|
|
19
|
+
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< CheckboxGroupProps> & Readonly<{
|
|
20
|
+
onChange?: ((val: CheckboxValueType[]) => any) | undefined;
|
|
21
|
+
"onUpdate:modelValue"?: ((val: CheckboxGroupValueType) => any) | undefined;
|
|
22
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
23
|
+
change: (val: CheckboxValueType[]) => void;
|
|
24
|
+
"update:modelValue": (val: CheckboxGroupValueType) => void;
|
|
25
|
+
}, PublicProps, {
|
|
26
|
+
type: "checkbox" | "button";
|
|
27
|
+
props: {
|
|
28
|
+
value?: string;
|
|
29
|
+
label?: string;
|
|
30
|
+
disabled?: string;
|
|
31
|
+
};
|
|
32
|
+
disabled: boolean;
|
|
33
|
+
validateEvent: boolean;
|
|
34
|
+
modelValue: CheckboxGroupValueType;
|
|
35
|
+
tag: string;
|
|
36
|
+
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
37
|
+
P: {};
|
|
38
|
+
B: {};
|
|
39
|
+
D: {};
|
|
40
|
+
C: {};
|
|
41
|
+
M: {};
|
|
42
|
+
Defaults: {};
|
|
43
|
+
}, Readonly< CheckboxGroupProps> & Readonly<{
|
|
44
|
+
onChange?: ((val: CheckboxValueType[]) => any) | undefined;
|
|
45
|
+
"onUpdate:modelValue"?: ((val: CheckboxGroupValueType) => any) | undefined;
|
|
46
|
+
}>, {}, {}, {}, {}, {
|
|
47
|
+
type: "checkbox" | "button";
|
|
48
|
+
props: {
|
|
49
|
+
value?: string;
|
|
50
|
+
label?: string;
|
|
51
|
+
disabled?: string;
|
|
52
|
+
};
|
|
53
|
+
disabled: boolean;
|
|
54
|
+
validateEvent: boolean;
|
|
55
|
+
modelValue: CheckboxGroupValueType;
|
|
56
|
+
tag: string;
|
|
57
|
+
}>;
|
|
58
|
+
__isFragment?: never;
|
|
59
|
+
__isTeleport?: never;
|
|
60
|
+
__isSuspense?: never;
|
|
61
|
+
} & ComponentOptionsBase<Readonly< CheckboxGroupProps> & Readonly<{
|
|
62
|
+
onChange?: ((val: CheckboxValueType[]) => any) | undefined;
|
|
63
|
+
"onUpdate:modelValue"?: ((val: CheckboxGroupValueType) => any) | undefined;
|
|
64
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
65
|
+
change: (val: CheckboxValueType[]) => void;
|
|
66
|
+
"update:modelValue": (val: CheckboxGroupValueType) => void;
|
|
67
|
+
}, string, {
|
|
68
|
+
type: "checkbox" | "button";
|
|
69
|
+
props: {
|
|
70
|
+
value?: string;
|
|
71
|
+
label?: string;
|
|
72
|
+
disabled?: string;
|
|
73
|
+
};
|
|
74
|
+
disabled: boolean;
|
|
75
|
+
validateEvent: boolean;
|
|
76
|
+
modelValue: CheckboxGroupValueType;
|
|
77
|
+
tag: string;
|
|
78
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
79
|
+
$slots: {
|
|
80
|
+
default?: (props: {}) => any;
|
|
81
|
+
};
|
|
82
|
+
})>;
|
|
83
|
+
ElCheckbox: {
|
|
84
|
+
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< CheckboxProps> & Readonly<{
|
|
85
|
+
onChange?: ((val: CheckboxValueType) => any) | undefined;
|
|
86
|
+
"onUpdate:modelValue"?: ((val: CheckboxValueType) => any) | undefined;
|
|
87
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
88
|
+
change: (val: CheckboxValueType) => void;
|
|
89
|
+
"update:modelValue": (val: CheckboxValueType) => void;
|
|
90
|
+
}, PublicProps, {
|
|
91
|
+
value: string | boolean | number | object;
|
|
92
|
+
label: string | boolean | number | object;
|
|
93
|
+
disabled: boolean;
|
|
94
|
+
validateEvent: boolean;
|
|
95
|
+
modelValue: number | string | boolean;
|
|
96
|
+
id: string;
|
|
97
|
+
name: string;
|
|
98
|
+
trueValue: string | number;
|
|
99
|
+
falseValue: string | number;
|
|
100
|
+
trueLabel: string | number;
|
|
101
|
+
falseLabel: string | number;
|
|
102
|
+
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
103
|
+
P: {};
|
|
104
|
+
B: {};
|
|
105
|
+
D: {};
|
|
106
|
+
C: {};
|
|
107
|
+
M: {};
|
|
108
|
+
Defaults: {};
|
|
109
|
+
}, Readonly< CheckboxProps> & Readonly<{
|
|
110
|
+
onChange?: ((val: CheckboxValueType) => any) | undefined;
|
|
111
|
+
"onUpdate:modelValue"?: ((val: CheckboxValueType) => any) | undefined;
|
|
112
|
+
}>, {}, {}, {}, {}, {
|
|
113
|
+
value: string | boolean | number | object;
|
|
114
|
+
label: string | boolean | number | object;
|
|
115
|
+
disabled: boolean;
|
|
116
|
+
validateEvent: boolean;
|
|
117
|
+
modelValue: number | string | boolean;
|
|
118
|
+
id: string;
|
|
119
|
+
name: string;
|
|
120
|
+
trueValue: string | number;
|
|
121
|
+
falseValue: string | number;
|
|
122
|
+
trueLabel: string | number;
|
|
123
|
+
falseLabel: string | number;
|
|
124
|
+
}>;
|
|
125
|
+
__isFragment?: never;
|
|
126
|
+
__isTeleport?: never;
|
|
127
|
+
__isSuspense?: never;
|
|
128
|
+
} & ComponentOptionsBase<Readonly< CheckboxProps> & Readonly<{
|
|
129
|
+
onChange?: ((val: CheckboxValueType) => any) | undefined;
|
|
130
|
+
"onUpdate:modelValue"?: ((val: CheckboxValueType) => any) | undefined;
|
|
131
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
132
|
+
change: (val: CheckboxValueType) => void;
|
|
133
|
+
"update:modelValue": (val: CheckboxValueType) => void;
|
|
134
|
+
}, string, {
|
|
135
|
+
value: string | boolean | number | object;
|
|
136
|
+
label: string | boolean | number | object;
|
|
137
|
+
disabled: boolean;
|
|
138
|
+
validateEvent: boolean;
|
|
139
|
+
modelValue: number | string | boolean;
|
|
140
|
+
id: string;
|
|
141
|
+
name: string;
|
|
142
|
+
trueValue: string | number;
|
|
143
|
+
falseValue: string | number;
|
|
144
|
+
trueLabel: string | number;
|
|
145
|
+
falseLabel: string | number;
|
|
146
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
147
|
+
$slots: {
|
|
148
|
+
default?: (props: {}) => any;
|
|
149
|
+
};
|
|
150
|
+
}) & ObjectPlugin & {
|
|
151
|
+
setPropsDefaults: (defaults: Partial<{
|
|
152
|
+
readonly modelValue?: number | string | boolean | undefined;
|
|
153
|
+
readonly label?: string | boolean | number | object | undefined;
|
|
154
|
+
readonly value?: string | boolean | number | object | undefined;
|
|
155
|
+
readonly indeterminate?: boolean | undefined;
|
|
156
|
+
readonly disabled?: boolean | undefined;
|
|
157
|
+
readonly checked?: boolean | undefined;
|
|
158
|
+
readonly name?: string | undefined;
|
|
159
|
+
readonly trueValue?: string | number | undefined;
|
|
160
|
+
readonly falseValue?: string | number | undefined;
|
|
161
|
+
readonly trueLabel?: string | number | undefined;
|
|
162
|
+
readonly falseLabel?: string | number | undefined;
|
|
163
|
+
readonly id?: string | undefined;
|
|
164
|
+
readonly border?: boolean | undefined;
|
|
165
|
+
readonly size?: ComponentSize | undefined;
|
|
166
|
+
readonly tabindex?: string | number | undefined;
|
|
167
|
+
readonly validateEvent?: boolean | undefined;
|
|
168
|
+
readonly ariaLabel?: string | undefined;
|
|
169
|
+
readonly ariaControls?: string | undefined;
|
|
170
|
+
readonly onChange?: ((val: CheckboxValueType) => any) | undefined | undefined;
|
|
171
|
+
readonly "onUpdate:modelValue"?: ((val: CheckboxValueType) => any) | undefined | undefined;
|
|
172
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps>) => void;
|
|
173
|
+
} & {
|
|
174
|
+
CheckboxButton: {
|
|
175
|
+
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< CheckboxProps> & Readonly<{
|
|
176
|
+
onChange?: ((val: CheckboxValueType) => any) | undefined;
|
|
177
|
+
"onUpdate:modelValue"?: ((val: CheckboxValueType) => any) | undefined;
|
|
178
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
179
|
+
change: (val: CheckboxValueType) => void;
|
|
180
|
+
"update:modelValue": (val: CheckboxValueType) => void;
|
|
181
|
+
}, PublicProps, {
|
|
182
|
+
value: string | boolean | number | object;
|
|
183
|
+
label: string | boolean | number | object;
|
|
184
|
+
disabled: boolean;
|
|
185
|
+
validateEvent: boolean;
|
|
186
|
+
modelValue: number | string | boolean;
|
|
187
|
+
id: string;
|
|
188
|
+
name: string;
|
|
189
|
+
trueValue: string | number;
|
|
190
|
+
falseValue: string | number;
|
|
191
|
+
trueLabel: string | number;
|
|
192
|
+
falseLabel: string | number;
|
|
193
|
+
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
194
|
+
P: {};
|
|
195
|
+
B: {};
|
|
196
|
+
D: {};
|
|
197
|
+
C: {};
|
|
198
|
+
M: {};
|
|
199
|
+
Defaults: {};
|
|
200
|
+
}, Readonly< CheckboxProps> & Readonly<{
|
|
201
|
+
onChange?: ((val: CheckboxValueType) => any) | undefined;
|
|
202
|
+
"onUpdate:modelValue"?: ((val: CheckboxValueType) => any) | undefined;
|
|
203
|
+
}>, {}, {}, {}, {}, {
|
|
204
|
+
value: string | boolean | number | object;
|
|
205
|
+
label: string | boolean | number | object;
|
|
206
|
+
disabled: boolean;
|
|
207
|
+
validateEvent: boolean;
|
|
208
|
+
modelValue: number | string | boolean;
|
|
209
|
+
id: string;
|
|
210
|
+
name: string;
|
|
211
|
+
trueValue: string | number;
|
|
212
|
+
falseValue: string | number;
|
|
213
|
+
trueLabel: string | number;
|
|
214
|
+
falseLabel: string | number;
|
|
215
|
+
}>;
|
|
216
|
+
__isFragment?: never;
|
|
217
|
+
__isTeleport?: never;
|
|
218
|
+
__isSuspense?: never;
|
|
219
|
+
} & ComponentOptionsBase<Readonly< CheckboxProps> & Readonly<{
|
|
220
|
+
onChange?: ((val: CheckboxValueType) => any) | undefined;
|
|
221
|
+
"onUpdate:modelValue"?: ((val: CheckboxValueType) => any) | undefined;
|
|
222
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
223
|
+
change: (val: CheckboxValueType) => void;
|
|
224
|
+
"update:modelValue": (val: CheckboxValueType) => void;
|
|
225
|
+
}, string, {
|
|
226
|
+
value: string | boolean | number | object;
|
|
227
|
+
label: string | boolean | number | object;
|
|
228
|
+
disabled: boolean;
|
|
229
|
+
validateEvent: boolean;
|
|
230
|
+
modelValue: number | string | boolean;
|
|
231
|
+
id: string;
|
|
232
|
+
name: string;
|
|
233
|
+
trueValue: string | number;
|
|
234
|
+
falseValue: string | number;
|
|
235
|
+
trueLabel: string | number;
|
|
236
|
+
falseLabel: string | number;
|
|
237
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
238
|
+
$slots: {
|
|
239
|
+
default?: (props: {}) => any;
|
|
240
|
+
};
|
|
241
|
+
});
|
|
242
|
+
CheckboxGroup: {
|
|
243
|
+
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< CheckboxGroupProps> & Readonly<{
|
|
244
|
+
onChange?: ((val: CheckboxValueType[]) => any) | undefined;
|
|
245
|
+
"onUpdate:modelValue"?: ((val: CheckboxGroupValueType) => any) | undefined;
|
|
246
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
247
|
+
change: (val: CheckboxValueType[]) => void;
|
|
248
|
+
"update:modelValue": (val: CheckboxGroupValueType) => void;
|
|
249
|
+
}, PublicProps, {
|
|
250
|
+
type: "checkbox" | "button";
|
|
251
|
+
props: {
|
|
252
|
+
value?: string;
|
|
253
|
+
label?: string;
|
|
254
|
+
disabled?: string;
|
|
255
|
+
};
|
|
256
|
+
disabled: boolean;
|
|
257
|
+
validateEvent: boolean;
|
|
258
|
+
modelValue: CheckboxGroupValueType;
|
|
259
|
+
tag: string;
|
|
260
|
+
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
261
|
+
P: {};
|
|
262
|
+
B: {};
|
|
263
|
+
D: {};
|
|
264
|
+
C: {};
|
|
265
|
+
M: {};
|
|
266
|
+
Defaults: {};
|
|
267
|
+
}, Readonly< CheckboxGroupProps> & Readonly<{
|
|
268
|
+
onChange?: ((val: CheckboxValueType[]) => any) | undefined;
|
|
269
|
+
"onUpdate:modelValue"?: ((val: CheckboxGroupValueType) => any) | undefined;
|
|
270
|
+
}>, {}, {}, {}, {}, {
|
|
271
|
+
type: "checkbox" | "button";
|
|
272
|
+
props: {
|
|
273
|
+
value?: string;
|
|
274
|
+
label?: string;
|
|
275
|
+
disabled?: string;
|
|
276
|
+
};
|
|
277
|
+
disabled: boolean;
|
|
278
|
+
validateEvent: boolean;
|
|
279
|
+
modelValue: CheckboxGroupValueType;
|
|
280
|
+
tag: string;
|
|
281
|
+
}>;
|
|
282
|
+
__isFragment?: never;
|
|
283
|
+
__isTeleport?: never;
|
|
284
|
+
__isSuspense?: never;
|
|
285
|
+
} & ComponentOptionsBase<Readonly< CheckboxGroupProps> & Readonly<{
|
|
286
|
+
onChange?: ((val: CheckboxValueType[]) => any) | undefined;
|
|
287
|
+
"onUpdate:modelValue"?: ((val: CheckboxGroupValueType) => any) | undefined;
|
|
288
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
289
|
+
change: (val: CheckboxValueType[]) => void;
|
|
290
|
+
"update:modelValue": (val: CheckboxGroupValueType) => void;
|
|
291
|
+
}, string, {
|
|
292
|
+
type: "checkbox" | "button";
|
|
293
|
+
props: {
|
|
294
|
+
value?: string;
|
|
295
|
+
label?: string;
|
|
296
|
+
disabled?: string;
|
|
297
|
+
};
|
|
298
|
+
disabled: boolean;
|
|
299
|
+
validateEvent: boolean;
|
|
300
|
+
modelValue: CheckboxGroupValueType;
|
|
301
|
+
tag: string;
|
|
302
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
303
|
+
$slots: {
|
|
304
|
+
default?: (props: {}) => any;
|
|
305
|
+
};
|
|
306
|
+
});
|
|
307
|
+
};
|
|
308
|
+
}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
309
|
+
export default _default;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { DefineComponent } from 'vue';
|
|
2
|
+
export interface JTWCheckboxOption {
|
|
3
|
+
label: string;
|
|
4
|
+
value: string | number | boolean;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export interface JTWCheckboxGroupProps {
|
|
8
|
+
modelValue?: Array<string | number | boolean>;
|
|
9
|
+
options?: JTWCheckboxOption[];
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
min?: number;
|
|
12
|
+
max?: number;
|
|
13
|
+
size?: 'large' | 'default' | 'small';
|
|
14
|
+
label?: string;
|
|
15
|
+
textColor?: string;
|
|
16
|
+
fill?: string;
|
|
17
|
+
tag?: string;
|
|
18
|
+
validateEvent?: boolean;
|
|
19
|
+
}
|
|
20
|
+
export interface JTWCheckboxGroupEmits {
|
|
21
|
+
(e: 'update:modelValue', value: Array<string | number | boolean>): void;
|
|
22
|
+
(e: 'change', value: Array<string | number | boolean>): void;
|
|
23
|
+
}
|
|
24
|
+
export interface JTWCheckboxGroupSlots {
|
|
25
|
+
default?: () => any;
|
|
26
|
+
}
|
|
27
|
+
export type JTWCheckboxGroupEmitsOptions = {
|
|
28
|
+
'update:modelValue': (value: Array<string | number | boolean>) => true;
|
|
29
|
+
change: (value: Array<string | number | boolean>) => true;
|
|
30
|
+
};
|
|
31
|
+
export type JTWCheckboxGroupComponent = DefineComponent<JTWCheckboxGroupProps, {}, {}, {}, {}, {}, {}, JTWCheckboxGroupEmitsOptions>;
|
|
32
|
+
export type JTWCheckboxGroupInstance = InstanceType<JTWCheckboxGroupComponent>;
|
|
33
|
+
export interface JTWCheckboxGroupTemplateProps extends JTWCheckboxGroupProps {
|
|
34
|
+
'onUpdate:modelValue'?: (value: Array<string | number | boolean>) => void;
|
|
35
|
+
onChange?: (value: Array<string | number | boolean>) => void;
|
|
36
|
+
class?: string | Record<string, boolean> | Array<string | Record<string, boolean>>;
|
|
37
|
+
style?: string | Record<string, string>;
|
|
38
|
+
}
|