@jari-ace/element-plus-component 0.6.0 → 0.6.1
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/components/switch/JaSwitch.vue.d.ts +229 -170
- package/dist/components/switch/JaSwitch.vue.d.ts.map +1 -1
- package/dist/components/switch/JaSwitch.vue.js +4 -13
- package/dist/components/switch/JaSwitch.vue.js.map +1 -1
- package/lib/index.js +143 -170
- package/lib/index.umd.cjs +24 -24
- package/package.json +1 -1
- package/packages/components/switch/JaSwitch.vue +5 -16
|
@@ -1,13 +1,89 @@
|
|
|
1
|
-
|
|
2
|
-
export interface JaSwitchProps extends Partial<SwitchProps> {
|
|
3
|
-
}
|
|
4
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<JaSwitchProps, {
|
|
1
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<{}, {
|
|
5
2
|
focus: () => any;
|
|
6
3
|
blur: () => any;
|
|
7
|
-
elSwitch: import("vue").Ref<{
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
4
|
+
elSwitch: import("vue").Ref<import("element-plus/es/utils/index.mjs").SFCWithInstall<{
|
|
5
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
|
|
6
|
+
modelValue: {
|
|
7
|
+
type: import("vue").PropType<string | number | boolean>;
|
|
8
|
+
default: boolean;
|
|
9
|
+
};
|
|
10
|
+
name: {
|
|
11
|
+
type: import("vue").PropType<string>;
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
14
|
+
width: {
|
|
15
|
+
type: import("vue").PropType<string | number>;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
size: {
|
|
19
|
+
type: import("vue").PropType<"" | "default" | "small" | "large">;
|
|
20
|
+
};
|
|
21
|
+
id: {
|
|
22
|
+
type: import("vue").PropType<string>;
|
|
23
|
+
};
|
|
24
|
+
loading: {
|
|
25
|
+
type: import("vue").PropType<boolean>;
|
|
26
|
+
};
|
|
27
|
+
disabled: {
|
|
28
|
+
type: import("vue").PropType<boolean>;
|
|
29
|
+
default: undefined;
|
|
30
|
+
};
|
|
31
|
+
tabindex: {
|
|
32
|
+
type: import("vue").PropType<string | number>;
|
|
33
|
+
};
|
|
34
|
+
ariaLabel: {
|
|
35
|
+
type: import("vue").PropType<string>;
|
|
36
|
+
};
|
|
37
|
+
validateEvent: {
|
|
38
|
+
type: import("vue").PropType<boolean>;
|
|
39
|
+
default: boolean;
|
|
40
|
+
};
|
|
41
|
+
inlinePrompt: {
|
|
42
|
+
type: import("vue").PropType<boolean>;
|
|
43
|
+
};
|
|
44
|
+
inactiveActionIcon: {
|
|
45
|
+
type: import("vue").PropType<string | import("vue").Component>;
|
|
46
|
+
};
|
|
47
|
+
activeActionIcon: {
|
|
48
|
+
type: import("vue").PropType<string | import("vue").Component>;
|
|
49
|
+
};
|
|
50
|
+
activeIcon: {
|
|
51
|
+
type: import("vue").PropType<string | import("vue").Component>;
|
|
52
|
+
};
|
|
53
|
+
inactiveIcon: {
|
|
54
|
+
type: import("vue").PropType<string | import("vue").Component>;
|
|
55
|
+
};
|
|
56
|
+
activeText: {
|
|
57
|
+
type: import("vue").PropType<string>;
|
|
58
|
+
default: string;
|
|
59
|
+
};
|
|
60
|
+
inactiveText: {
|
|
61
|
+
type: import("vue").PropType<string>;
|
|
62
|
+
default: string;
|
|
63
|
+
};
|
|
64
|
+
activeValue: {
|
|
65
|
+
type: import("vue").PropType<string | number | boolean>;
|
|
66
|
+
default: boolean;
|
|
67
|
+
};
|
|
68
|
+
inactiveValue: {
|
|
69
|
+
type: import("vue").PropType<string | number | boolean>;
|
|
70
|
+
default: boolean;
|
|
71
|
+
};
|
|
72
|
+
beforeChange: {
|
|
73
|
+
type: import("vue").PropType<() => boolean | Promise<boolean>>;
|
|
74
|
+
};
|
|
75
|
+
}>> & {
|
|
76
|
+
"onUpdate:modelValue"?: (val: string | number | boolean) => any;
|
|
77
|
+
onInput?: (val: string | number | boolean) => any;
|
|
78
|
+
onChange?: (val: string | number | boolean) => any;
|
|
79
|
+
}, {
|
|
80
|
+
focus: () => void;
|
|
81
|
+
checked: import("vue").ComputedRef<boolean>;
|
|
82
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
83
|
+
"update:modelValue": (val: string | number | boolean) => void;
|
|
84
|
+
change: (val: string | number | boolean) => void;
|
|
85
|
+
input: (val: string | number | boolean) => void;
|
|
86
|
+
}, import("vue").PublicProps, {
|
|
11
87
|
disabled: boolean;
|
|
12
88
|
width: string | number;
|
|
13
89
|
name: string;
|
|
@@ -17,46 +93,14 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<JaSwitchPr
|
|
|
17
93
|
inactiveText: string;
|
|
18
94
|
activeValue: string | number | boolean;
|
|
19
95
|
inactiveValue: string | number | boolean;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
readonly inactiveValue: string | number | boolean;
|
|
29
|
-
readonly size?: "" | "default" | "small" | "large";
|
|
30
|
-
readonly id?: string;
|
|
31
|
-
readonly loading?: boolean;
|
|
32
|
-
readonly disabled?: boolean;
|
|
33
|
-
readonly tabindex?: string | number;
|
|
34
|
-
readonly ariaLabel?: string;
|
|
35
|
-
readonly inlinePrompt?: boolean;
|
|
36
|
-
readonly inactiveActionIcon?: unknown;
|
|
37
|
-
readonly activeActionIcon?: unknown;
|
|
38
|
-
readonly activeIcon?: unknown;
|
|
39
|
-
readonly inactiveIcon?: unknown;
|
|
40
|
-
readonly beforeChange?: () => boolean | Promise<boolean>;
|
|
41
|
-
"onUpdate:modelValue"?: (val: string | number | boolean) => any;
|
|
42
|
-
onInput?: (val: string | number | boolean) => any;
|
|
43
|
-
onChange?: (val: string | number | boolean) => any;
|
|
44
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "modelValue" | "name" | "width" | "disabled" | "validateEvent" | "activeText" | "inactiveText" | "activeValue" | "inactiveValue">;
|
|
45
|
-
$attrs: {
|
|
46
|
-
[x: string]: unknown;
|
|
47
|
-
};
|
|
48
|
-
$refs: {
|
|
49
|
-
[x: string]: unknown;
|
|
50
|
-
};
|
|
51
|
-
$slots: Readonly<{
|
|
52
|
-
[name: string]: import("vue").Slot<any>;
|
|
53
|
-
}>;
|
|
54
|
-
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import("vue").ComponentProvideOptions>, {}, {}, "", {}, any>;
|
|
55
|
-
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import("vue").ComponentProvideOptions>, {}, {}, "", {}, any>;
|
|
56
|
-
$host: Element;
|
|
57
|
-
$emit: ((event: "update:modelValue", val: string | number | boolean) => void) & ((event: "change", val: string | number | boolean) => void) & ((event: "input", val: string | number | boolean) => void);
|
|
58
|
-
$el: any;
|
|
59
|
-
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
96
|
+
}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
97
|
+
P: {};
|
|
98
|
+
B: {};
|
|
99
|
+
D: {};
|
|
100
|
+
C: {};
|
|
101
|
+
M: {};
|
|
102
|
+
Defaults: {};
|
|
103
|
+
}, Readonly<import("vue").ExtractPropTypes<{
|
|
60
104
|
modelValue: {
|
|
61
105
|
type: import("vue").PropType<string | number | boolean>;
|
|
62
106
|
default: boolean;
|
|
@@ -133,11 +177,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<JaSwitchPr
|
|
|
133
177
|
}, {
|
|
134
178
|
focus: () => void;
|
|
135
179
|
checked: import("vue").ComputedRef<boolean>;
|
|
136
|
-
},
|
|
137
|
-
"update:modelValue": (val: string | number | boolean) => void;
|
|
138
|
-
change: (val: string | number | boolean) => void;
|
|
139
|
-
input: (val: string | number | boolean) => void;
|
|
140
|
-
}, string, {
|
|
180
|
+
}, {}, {}, {}, {
|
|
141
181
|
disabled: boolean;
|
|
142
182
|
width: string | number;
|
|
143
183
|
name: string;
|
|
@@ -147,37 +187,11 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<JaSwitchPr
|
|
|
147
187
|
inactiveText: string;
|
|
148
188
|
activeValue: string | number | boolean;
|
|
149
189
|
inactiveValue: string | number | boolean;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
beforeUpdate?: (() => void) | (() => void)[];
|
|
156
|
-
updated?: (() => void) | (() => void)[];
|
|
157
|
-
activated?: (() => void) | (() => void)[];
|
|
158
|
-
deactivated?: (() => void) | (() => void)[];
|
|
159
|
-
beforeDestroy?: (() => void) | (() => void)[];
|
|
160
|
-
beforeUnmount?: (() => void) | (() => void)[];
|
|
161
|
-
destroyed?: (() => void) | (() => void)[];
|
|
162
|
-
unmounted?: (() => void) | (() => void)[];
|
|
163
|
-
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
164
|
-
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
165
|
-
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import("vue").ComponentProvideOptions>, {}, {}, "", {}, any>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import("vue").ComponentProvideOptions>, {}, {}, "", {}, any>, info: string) => boolean | void)[];
|
|
166
|
-
};
|
|
167
|
-
$forceUpdate: () => void;
|
|
168
|
-
$nextTick: typeof import("vue").nextTick;
|
|
169
|
-
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R, args_2: import("@vue/reactivity").OnCleanup) => any : (args_0: any, args_1: any, args_2: import("@vue/reactivity").OnCleanup) => any, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
|
|
170
|
-
} & Readonly<{
|
|
171
|
-
disabled: boolean;
|
|
172
|
-
width: string | number;
|
|
173
|
-
name: string;
|
|
174
|
-
modelValue: string | number | boolean;
|
|
175
|
-
validateEvent: boolean;
|
|
176
|
-
activeText: string;
|
|
177
|
-
inactiveText: string;
|
|
178
|
-
activeValue: string | number | boolean;
|
|
179
|
-
inactiveValue: string | number | boolean;
|
|
180
|
-
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
190
|
+
}>;
|
|
191
|
+
__isFragment?: never;
|
|
192
|
+
__isTeleport?: never;
|
|
193
|
+
__isSuspense?: never;
|
|
194
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
181
195
|
modelValue: {
|
|
182
196
|
type: import("vue").PropType<string | number | boolean>;
|
|
183
197
|
default: boolean;
|
|
@@ -251,10 +265,24 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<JaSwitchPr
|
|
|
251
265
|
"onUpdate:modelValue"?: (val: string | number | boolean) => any;
|
|
252
266
|
onInput?: (val: string | number | boolean) => any;
|
|
253
267
|
onChange?: (val: string | number | boolean) => any;
|
|
254
|
-
},
|
|
268
|
+
}, {
|
|
255
269
|
focus: () => void;
|
|
256
270
|
checked: import("vue").ComputedRef<boolean>;
|
|
257
|
-
}
|
|
271
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
272
|
+
"update:modelValue": (val: string | number | boolean) => void;
|
|
273
|
+
change: (val: string | number | boolean) => void;
|
|
274
|
+
input: (val: string | number | boolean) => void;
|
|
275
|
+
}, string, {
|
|
276
|
+
disabled: boolean;
|
|
277
|
+
width: string | number;
|
|
278
|
+
name: string;
|
|
279
|
+
modelValue: string | number | boolean;
|
|
280
|
+
validateEvent: boolean;
|
|
281
|
+
activeText: string;
|
|
282
|
+
inactiveText: string;
|
|
283
|
+
activeValue: string | number | boolean;
|
|
284
|
+
inactiveValue: string | number | boolean;
|
|
285
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
258
286
|
$slots: {
|
|
259
287
|
inactive?: (props: {}) => any;
|
|
260
288
|
} & {
|
|
@@ -268,10 +296,89 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<JaSwitchPr
|
|
|
268
296
|
} & {
|
|
269
297
|
active?: (props: {}) => any;
|
|
270
298
|
};
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
299
|
+
})>, import("element-plus/es/utils/index.mjs").SFCWithInstall<{
|
|
300
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
|
|
301
|
+
modelValue: {
|
|
302
|
+
type: import("vue").PropType<string | number | boolean>;
|
|
303
|
+
default: boolean;
|
|
304
|
+
};
|
|
305
|
+
name: {
|
|
306
|
+
type: import("vue").PropType<string>;
|
|
307
|
+
default: string;
|
|
308
|
+
};
|
|
309
|
+
width: {
|
|
310
|
+
type: import("vue").PropType<string | number>;
|
|
311
|
+
default: string;
|
|
312
|
+
};
|
|
313
|
+
size: {
|
|
314
|
+
type: import("vue").PropType<"" | "default" | "small" | "large">;
|
|
315
|
+
};
|
|
316
|
+
id: {
|
|
317
|
+
type: import("vue").PropType<string>;
|
|
318
|
+
};
|
|
319
|
+
loading: {
|
|
320
|
+
type: import("vue").PropType<boolean>;
|
|
321
|
+
};
|
|
322
|
+
disabled: {
|
|
323
|
+
type: import("vue").PropType<boolean>;
|
|
324
|
+
default: undefined;
|
|
325
|
+
};
|
|
326
|
+
tabindex: {
|
|
327
|
+
type: import("vue").PropType<string | number>;
|
|
328
|
+
};
|
|
329
|
+
ariaLabel: {
|
|
330
|
+
type: import("vue").PropType<string>;
|
|
331
|
+
};
|
|
332
|
+
validateEvent: {
|
|
333
|
+
type: import("vue").PropType<boolean>;
|
|
334
|
+
default: boolean;
|
|
335
|
+
};
|
|
336
|
+
inlinePrompt: {
|
|
337
|
+
type: import("vue").PropType<boolean>;
|
|
338
|
+
};
|
|
339
|
+
inactiveActionIcon: {
|
|
340
|
+
type: import("vue").PropType<string | import("vue").Component>;
|
|
341
|
+
};
|
|
342
|
+
activeActionIcon: {
|
|
343
|
+
type: import("vue").PropType<string | import("vue").Component>;
|
|
344
|
+
};
|
|
345
|
+
activeIcon: {
|
|
346
|
+
type: import("vue").PropType<string | import("vue").Component>;
|
|
347
|
+
};
|
|
348
|
+
inactiveIcon: {
|
|
349
|
+
type: import("vue").PropType<string | import("vue").Component>;
|
|
350
|
+
};
|
|
351
|
+
activeText: {
|
|
352
|
+
type: import("vue").PropType<string>;
|
|
353
|
+
default: string;
|
|
354
|
+
};
|
|
355
|
+
inactiveText: {
|
|
356
|
+
type: import("vue").PropType<string>;
|
|
357
|
+
default: string;
|
|
358
|
+
};
|
|
359
|
+
activeValue: {
|
|
360
|
+
type: import("vue").PropType<string | number | boolean>;
|
|
361
|
+
default: boolean;
|
|
362
|
+
};
|
|
363
|
+
inactiveValue: {
|
|
364
|
+
type: import("vue").PropType<string | number | boolean>;
|
|
365
|
+
default: boolean;
|
|
366
|
+
};
|
|
367
|
+
beforeChange: {
|
|
368
|
+
type: import("vue").PropType<() => boolean | Promise<boolean>>;
|
|
369
|
+
};
|
|
370
|
+
}>> & {
|
|
371
|
+
"onUpdate:modelValue"?: (val: string | number | boolean) => any;
|
|
372
|
+
onInput?: (val: string | number | boolean) => any;
|
|
373
|
+
onChange?: (val: string | number | boolean) => any;
|
|
374
|
+
}, {
|
|
375
|
+
focus: () => void;
|
|
376
|
+
checked: import("vue").ComputedRef<boolean>;
|
|
377
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
378
|
+
"update:modelValue": (val: string | number | boolean) => void;
|
|
379
|
+
change: (val: string | number | boolean) => void;
|
|
380
|
+
input: (val: string | number | boolean) => void;
|
|
381
|
+
}, import("vue").PublicProps, {
|
|
275
382
|
disabled: boolean;
|
|
276
383
|
width: string | number;
|
|
277
384
|
name: string;
|
|
@@ -281,46 +388,14 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<JaSwitchPr
|
|
|
281
388
|
inactiveText: string;
|
|
282
389
|
activeValue: string | number | boolean;
|
|
283
390
|
inactiveValue: string | number | boolean;
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
readonly inactiveValue: string | number | boolean;
|
|
293
|
-
readonly size?: "" | "default" | "small" | "large";
|
|
294
|
-
readonly id?: string;
|
|
295
|
-
readonly loading?: boolean;
|
|
296
|
-
readonly disabled?: boolean;
|
|
297
|
-
readonly tabindex?: string | number;
|
|
298
|
-
readonly ariaLabel?: string;
|
|
299
|
-
readonly inlinePrompt?: boolean;
|
|
300
|
-
readonly inactiveActionIcon?: unknown;
|
|
301
|
-
readonly activeActionIcon?: unknown;
|
|
302
|
-
readonly activeIcon?: unknown;
|
|
303
|
-
readonly inactiveIcon?: unknown;
|
|
304
|
-
readonly beforeChange?: () => boolean | Promise<boolean>;
|
|
305
|
-
"onUpdate:modelValue"?: (val: string | number | boolean) => any;
|
|
306
|
-
onInput?: (val: string | number | boolean) => any;
|
|
307
|
-
onChange?: (val: string | number | boolean) => any;
|
|
308
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "modelValue" | "name" | "width" | "disabled" | "validateEvent" | "activeText" | "inactiveText" | "activeValue" | "inactiveValue">;
|
|
309
|
-
$attrs: {
|
|
310
|
-
[x: string]: unknown;
|
|
311
|
-
};
|
|
312
|
-
$refs: {
|
|
313
|
-
[x: string]: unknown;
|
|
314
|
-
};
|
|
315
|
-
$slots: Readonly<{
|
|
316
|
-
[name: string]: import("vue").Slot<any>;
|
|
317
|
-
}>;
|
|
318
|
-
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import("vue").ComponentProvideOptions>, {}, {}, "", {}, any>;
|
|
319
|
-
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import("vue").ComponentProvideOptions>, {}, {}, "", {}, any>;
|
|
320
|
-
$host: Element;
|
|
321
|
-
$emit: ((event: "update:modelValue", val: string | number | boolean) => void) & ((event: "change", val: string | number | boolean) => void) & ((event: "input", val: string | number | boolean) => void);
|
|
322
|
-
$el: any;
|
|
323
|
-
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
391
|
+
}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
392
|
+
P: {};
|
|
393
|
+
B: {};
|
|
394
|
+
D: {};
|
|
395
|
+
C: {};
|
|
396
|
+
M: {};
|
|
397
|
+
Defaults: {};
|
|
398
|
+
}, Readonly<import("vue").ExtractPropTypes<{
|
|
324
399
|
modelValue: {
|
|
325
400
|
type: import("vue").PropType<string | number | boolean>;
|
|
326
401
|
default: boolean;
|
|
@@ -397,11 +472,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<JaSwitchPr
|
|
|
397
472
|
}, {
|
|
398
473
|
focus: () => void;
|
|
399
474
|
checked: import("vue").ComputedRef<boolean>;
|
|
400
|
-
},
|
|
401
|
-
"update:modelValue": (val: string | number | boolean) => void;
|
|
402
|
-
change: (val: string | number | boolean) => void;
|
|
403
|
-
input: (val: string | number | boolean) => void;
|
|
404
|
-
}, string, {
|
|
475
|
+
}, {}, {}, {}, {
|
|
405
476
|
disabled: boolean;
|
|
406
477
|
width: string | number;
|
|
407
478
|
name: string;
|
|
@@ -411,37 +482,11 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<JaSwitchPr
|
|
|
411
482
|
inactiveText: string;
|
|
412
483
|
activeValue: string | number | boolean;
|
|
413
484
|
inactiveValue: string | number | boolean;
|
|
414
|
-
}
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
beforeUpdate?: (() => void) | (() => void)[];
|
|
420
|
-
updated?: (() => void) | (() => void)[];
|
|
421
|
-
activated?: (() => void) | (() => void)[];
|
|
422
|
-
deactivated?: (() => void) | (() => void)[];
|
|
423
|
-
beforeDestroy?: (() => void) | (() => void)[];
|
|
424
|
-
beforeUnmount?: (() => void) | (() => void)[];
|
|
425
|
-
destroyed?: (() => void) | (() => void)[];
|
|
426
|
-
unmounted?: (() => void) | (() => void)[];
|
|
427
|
-
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
428
|
-
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
429
|
-
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import("vue").ComponentProvideOptions>, {}, {}, "", {}, any>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import("vue").ComponentProvideOptions>, {}, {}, "", {}, any>, info: string) => boolean | void)[];
|
|
430
|
-
};
|
|
431
|
-
$forceUpdate: () => void;
|
|
432
|
-
$nextTick: typeof import("vue").nextTick;
|
|
433
|
-
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R, args_2: import("@vue/reactivity").OnCleanup) => any : (args_0: any, args_1: any, args_2: import("@vue/reactivity").OnCleanup) => any, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
|
|
434
|
-
} & Readonly<{
|
|
435
|
-
disabled: boolean;
|
|
436
|
-
width: string | number;
|
|
437
|
-
name: string;
|
|
438
|
-
modelValue: string | number | boolean;
|
|
439
|
-
validateEvent: boolean;
|
|
440
|
-
activeText: string;
|
|
441
|
-
inactiveText: string;
|
|
442
|
-
activeValue: string | number | boolean;
|
|
443
|
-
inactiveValue: string | number | boolean;
|
|
444
|
-
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
485
|
+
}>;
|
|
486
|
+
__isFragment?: never;
|
|
487
|
+
__isTeleport?: never;
|
|
488
|
+
__isSuspense?: never;
|
|
489
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
445
490
|
modelValue: {
|
|
446
491
|
type: import("vue").PropType<string | number | boolean>;
|
|
447
492
|
default: boolean;
|
|
@@ -515,10 +560,24 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<JaSwitchPr
|
|
|
515
560
|
"onUpdate:modelValue"?: (val: string | number | boolean) => any;
|
|
516
561
|
onInput?: (val: string | number | boolean) => any;
|
|
517
562
|
onChange?: (val: string | number | boolean) => any;
|
|
518
|
-
},
|
|
563
|
+
}, {
|
|
519
564
|
focus: () => void;
|
|
520
565
|
checked: import("vue").ComputedRef<boolean>;
|
|
521
|
-
}
|
|
566
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
567
|
+
"update:modelValue": (val: string | number | boolean) => void;
|
|
568
|
+
change: (val: string | number | boolean) => void;
|
|
569
|
+
input: (val: string | number | boolean) => void;
|
|
570
|
+
}, string, {
|
|
571
|
+
disabled: boolean;
|
|
572
|
+
width: string | number;
|
|
573
|
+
name: string;
|
|
574
|
+
modelValue: string | number | boolean;
|
|
575
|
+
validateEvent: boolean;
|
|
576
|
+
activeText: string;
|
|
577
|
+
inactiveText: string;
|
|
578
|
+
activeValue: string | number | boolean;
|
|
579
|
+
inactiveValue: string | number | boolean;
|
|
580
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
522
581
|
$slots: {
|
|
523
582
|
inactive?: (props: {}) => any;
|
|
524
583
|
} & {
|
|
@@ -532,10 +591,10 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<JaSwitchPr
|
|
|
532
591
|
} & {
|
|
533
592
|
active?: (props: {}) => any;
|
|
534
593
|
};
|
|
535
|
-
}
|
|
594
|
+
})>>;
|
|
536
595
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
537
596
|
change: (value: string | number | boolean) => any;
|
|
538
|
-
}, string, import("vue").PublicProps, Readonly<
|
|
597
|
+
}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{
|
|
539
598
|
onChange?: (value: string | number | boolean) => any;
|
|
540
599
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
541
600
|
[x: string]: (props: {}) => any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JaSwitch.vue.d.ts","sourceRoot":"","sources":["../../../packages/components/switch/JaSwitch.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"JaSwitch.vue.d.ts","sourceRoot":"","sources":["../../../packages/components/switch/JaSwitch.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqKA,wBAA0E;AAE1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { inject, ref, watch
|
|
1
|
+
import { inject, ref, watch } from "vue";
|
|
2
2
|
import { ElSwitch } from "element-plus";
|
|
3
3
|
import { getValue, setValue } from "../../utils/objectUtils";
|
|
4
4
|
const input = ref();
|
|
@@ -6,7 +6,6 @@ const model = inject('aceFormModel');
|
|
|
6
6
|
const prop = inject('aceFormItemProp');
|
|
7
7
|
const validator = inject('aceFormValidator');
|
|
8
8
|
const emit = defineEmits();
|
|
9
|
-
const props = defineProps();
|
|
10
9
|
function onChange(value) {
|
|
11
10
|
validator.removeFieldError(prop);
|
|
12
11
|
setValue(model.formData, prop, mv.value);
|
|
@@ -18,13 +17,9 @@ watch(() => model.formData, () => {
|
|
|
18
17
|
}, {
|
|
19
18
|
deep: true
|
|
20
19
|
});
|
|
21
|
-
const elementProps = computed(() => {
|
|
22
|
-
const { modelValue, ...rest } = props;
|
|
23
|
-
return rest;
|
|
24
|
-
});
|
|
25
20
|
const __VLS_exposed = {
|
|
26
|
-
focus: () => input.value?.focus
|
|
27
|
-
blur: () => input.value?.blur
|
|
21
|
+
focus: () => input.value?.focus(),
|
|
22
|
+
blur: () => input.value?.blur(),
|
|
28
23
|
elSwitch: input
|
|
29
24
|
};
|
|
30
25
|
defineExpose(__VLS_exposed);
|
|
@@ -39,13 +34,11 @@ const __VLS_1 = __VLS_asFunctionalComponent(__VLS_0, new __VLS_0({
|
|
|
39
34
|
...{ 'onChange': {} },
|
|
40
35
|
ref: "input",
|
|
41
36
|
modelValue: (__VLS_ctx.mv),
|
|
42
|
-
...({ ...__VLS_ctx.elementProps, ...__VLS_ctx.$attrs }),
|
|
43
37
|
}));
|
|
44
38
|
const __VLS_2 = __VLS_1({
|
|
45
39
|
...{ 'onChange': {} },
|
|
46
40
|
ref: "input",
|
|
47
41
|
modelValue: (__VLS_ctx.mv),
|
|
48
|
-
...({ ...__VLS_ctx.elementProps, ...__VLS_ctx.$attrs }),
|
|
49
42
|
}, ...__VLS_functionalComponentArgsRest(__VLS_1));
|
|
50
43
|
let __VLS_4;
|
|
51
44
|
let __VLS_5;
|
|
@@ -66,6 +59,7 @@ for (const [_, name] of __VLS_getVForSourceType((__VLS_ctx.$slots))) {
|
|
|
66
59
|
var __VLS_3;
|
|
67
60
|
// @ts-ignore
|
|
68
61
|
var __VLS_9 = __VLS_8, __VLS_12 = __VLS_11, __VLS_13 = __VLS_10;
|
|
62
|
+
[__VLS_dollars.$attrs,];
|
|
69
63
|
var __VLS_dollars;
|
|
70
64
|
const __VLS_self = (await import('vue')).defineComponent({
|
|
71
65
|
setup() {
|
|
@@ -74,11 +68,9 @@ const __VLS_self = (await import('vue')).defineComponent({
|
|
|
74
68
|
input: input,
|
|
75
69
|
onChange: onChange,
|
|
76
70
|
mv: mv,
|
|
77
|
-
elementProps: elementProps,
|
|
78
71
|
};
|
|
79
72
|
},
|
|
80
73
|
__typeEmits: {},
|
|
81
|
-
__typeProps: {},
|
|
82
74
|
});
|
|
83
75
|
const __VLS_component = (await import('vue')).defineComponent({
|
|
84
76
|
setup() {
|
|
@@ -87,7 +79,6 @@ const __VLS_component = (await import('vue')).defineComponent({
|
|
|
87
79
|
};
|
|
88
80
|
},
|
|
89
81
|
__typeEmits: {},
|
|
90
|
-
__typeProps: {},
|
|
91
82
|
});
|
|
92
83
|
export default {};
|
|
93
84
|
; /* PartiallyEnd: #4569/main.vue */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JaSwitch.vue.js","sourceRoot":"","sources":["../../../packages/components/switch/JaSwitch.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"JaSwitch.vue.js","sourceRoot":"","sources":["../../../packages/components/switch/JaSwitch.vue"],"names":[],"mappings":"AAqDA,OAAO,EAAC,MAAM,EAAE,GAAG,EAAE,KAAK,EAAC,MAAM,KAAK,CAAC;AACvC,OAAO,EAAC,QAAQ,EAAC,MAAM,cAAc,CAAC;AACtC,OAAO,EAAC,QAAQ,EAAE,QAAQ,EAAC,MAAM,yBAAyB,CAAC;AAG3D,MAAM,KAAK,GAAG,GAAG,EAAmB,CAAA;AACpC,MAAM,KAAK,GAAG,MAAM,CAAC,cAAc,CAAwB,CAAA;AAC3D,MAAM,IAAI,GAAG,MAAM,CAAC,iBAAiB,CAAW,CAAA;AAChD,MAAM,SAAS,GAAG,MAAM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