@jari-ace/element-plus-component 0.3.4 → 0.4.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/autoComplete/JaAutoComplete.vue.d.ts +543 -686
- package/dist/components/autoComplete/JaAutoComplete.vue.d.ts.map +1 -1
- package/dist/components/autoComplete/JaAutoComplete.vue.js +10 -2
- package/dist/components/autoComplete/JaAutoComplete.vue.js.map +1 -1
- package/dist/components/avatar/JaAvatar.vue.d.ts +4 -3
- package/dist/components/avatar/JaAvatar.vue.d.ts.map +1 -1
- package/dist/components/avatar/JaAvatar.vue.js +10 -2
- package/dist/components/avatar/JaAvatar.vue.js.map +1 -1
- package/dist/components/button/JaButton.vue.d.ts +184 -250
- package/dist/components/button/JaButton.vue.d.ts.map +1 -1
- package/dist/components/button/JaButton.vue.js +11 -3
- package/dist/components/button/JaButton.vue.js.map +1 -1
- package/dist/components/checkbox/JaCheckbox.vue.d.ts +164 -1068
- package/dist/components/checkbox/JaCheckbox.vue.d.ts.map +1 -1
- package/dist/components/checkbox/JaCheckbox.vue.js +9 -24
- package/dist/components/checkbox/JaCheckbox.vue.js.map +1 -1
- package/dist/components/checkboxGroup/JaCheckboxGroup.vue.d.ts +158 -163
- package/dist/components/checkboxGroup/JaCheckboxGroup.vue.d.ts.map +1 -1
- package/dist/components/checkboxGroup/JaCheckboxGroup.vue.js +14 -5
- package/dist/components/checkboxGroup/JaCheckboxGroup.vue.js.map +1 -1
- package/dist/components/datePicker/JaDatePicker.vue.d.ts +7 -4
- package/dist/components/datePicker/JaDatePicker.vue.d.ts.map +1 -1
- package/dist/components/datePicker/JaDatePicker.vue.js +18 -7
- package/dist/components/datePicker/JaDatePicker.vue.js.map +1 -1
- package/dist/components/dropdownButton/JaDropdownButton.vue.d.ts +324 -399
- package/dist/components/dropdownButton/JaDropdownButton.vue.d.ts.map +1 -1
- package/dist/components/dropdownButton/JaDropdownButton.vue.js +4 -2
- package/dist/components/dropdownButton/JaDropdownButton.vue.js.map +1 -1
- package/dist/components/form/JaForm.vue.d.ts +52 -3
- package/dist/components/form/JaForm.vue.d.ts.map +1 -1
- package/dist/components/form/JaForm.vue.js +4 -2
- package/dist/components/form/JaForm.vue.js.map +1 -1
- package/dist/components/formItem/JaFormItem.vue.d.ts +168 -133
- package/dist/components/formItem/JaFormItem.vue.d.ts.map +1 -1
- package/dist/components/formItem/JaFormItem.vue.js.map +1 -1
- package/dist/components/input/JaInput.vue.d.ts +274 -421
- package/dist/components/input/JaInput.vue.d.ts.map +1 -1
- package/dist/components/input/JaInput.vue.js +20 -60
- package/dist/components/input/JaInput.vue.js.map +1 -1
- package/dist/components/inputI18n/JaInputI18n.vue.d.ts +70 -70
- package/dist/components/inputNumber/JaInputNumber.vue.d.ts +203 -217
- package/dist/components/inputNumber/JaInputNumber.vue.d.ts.map +1 -1
- package/dist/components/inputNumber/JaInputNumber.vue.js +16 -37
- package/dist/components/inputNumber/JaInputNumber.vue.js.map +1 -1
- package/dist/components/radioGroup/JaRadioGroup.vue.d.ts +148 -121
- package/dist/components/radioGroup/JaRadioGroup.vue.d.ts.map +1 -1
- package/dist/components/radioGroup/JaRadioGroup.vue.js +14 -5
- package/dist/components/radioGroup/JaRadioGroup.vue.js.map +1 -1
- package/dist/components/scrollbar/Scrollbar.vue.d.ts +5 -2
- package/dist/components/scrollbar/Scrollbar.vue.d.ts.map +1 -1
- package/dist/components/scrollbar/Scrollbar.vue.js +11 -3
- package/dist/components/scrollbar/Scrollbar.vue.js.map +1 -1
- package/dist/components/select/JaSelect.vue.d.ts +70 -70
- package/dist/components/select/JaSelect.vue.js +14 -5
- package/dist/components/select/JaSelect.vue.js.map +1 -1
- package/dist/components/switch/JaSwitch.vue.d.ts +174 -205
- package/dist/components/switch/JaSwitch.vue.d.ts.map +1 -1
- package/dist/components/switch/JaSwitch.vue.js +13 -4
- package/dist/components/switch/JaSwitch.vue.js.map +1 -1
- package/dist/components/timePicker/JaTimePicker.vue.d.ts +5 -2
- package/dist/components/timePicker/JaTimePicker.vue.d.ts.map +1 -1
- package/dist/components/timePicker/JaTimePicker.vue.js +18 -7
- package/dist/components/timePicker/JaTimePicker.vue.js.map +1 -1
- package/dist/components/tip/index.d.ts +3 -12
- package/dist/components/tip/index.d.ts.map +1 -1
- package/dist/components/tip/src/AceTip.vue.d.ts +9 -3
- package/dist/components/tip/src/AceTip.vue.d.ts.map +1 -1
- package/dist/components/tip/src/AceTip.vue.js.map +1 -1
- package/dist/components/upload/FilePreviewer.vue.d.ts +59 -0
- package/dist/components/upload/FilePreviewer.vue.d.ts.map +1 -0
- package/dist/components/upload/FilePreviewer.vue.js +169 -0
- package/dist/components/upload/FilePreviewer.vue.js.map +1 -0
- package/dist/components/upload/JaUploader.vue.d.ts +74 -14
- package/dist/components/upload/JaUploader.vue.d.ts.map +1 -1
- package/dist/components/upload/JaUploader.vue.js +3 -5
- package/dist/components/upload/JaUploader.vue.js.map +1 -1
- package/dist/components/upload/index.d.ts +102 -25
- package/dist/components/upload/index.d.ts.map +1 -1
- package/dist/components/upload/index.js +2 -0
- package/dist/components/upload/index.js.map +1 -1
- package/dist/components/upload/uploader.vue.d.ts +16 -0
- package/dist/components/upload/uploader.vue.d.ts.map +1 -1
- package/dist/components/upload/uploader.vue.js +46 -41
- package/dist/components/upload/uploader.vue.js.map +1 -1
- package/lib/index.css +2 -2
- package/lib/index.js +7439 -6984
- package/lib/index.umd.cjs +34 -34
- package/package.json +1 -1
- package/packages/components/autoComplete/JaAutoComplete.vue +19 -9
- package/packages/components/autoComplete/README.md +35 -0
- package/packages/components/avatar/JaAvatar.vue +16 -7
- package/packages/components/avatar/README.md +45 -0
- package/packages/components/button/JaButton.vue +32 -7
- package/packages/components/button/README.md +57 -0
- package/packages/components/checkbox/JaCheckbox.vue +15 -25
- package/packages/components/checkbox/README.md +21 -0
- package/packages/components/checkboxGroup/JaCheckboxGroup.vue +16 -5
- package/packages/components/checkboxGroup/README.md +24 -0
- package/packages/components/datePicker/JaDatePicker.vue +23 -10
- package/packages/components/datePicker/README.md +21 -0
- package/packages/components/dropdownButton/JaDropdownButton.vue +25 -7
- package/packages/components/dropdownButton/README.md +30 -0
- package/packages/components/form/JaForm.vue +60 -20
- package/packages/components/form/README.md +30 -0
- package/packages/components/formItem/JaFormItem.vue +43 -7
- package/packages/components/formItem/README.md +28 -0
- package/packages/components/input/JaInput.vue +30 -66
- package/packages/components/input/README.md +23 -0
- package/packages/components/inputNumber/JaInputNumber.vue +25 -45
- package/packages/components/inputNumber/README.md +21 -0
- package/packages/components/radioGroup/JaRadioGroup.vue +16 -5
- package/packages/components/radioGroup/README.md +24 -0
- package/packages/components/scrollbar/README.md +23 -0
- package/packages/components/scrollbar/Scrollbar.vue +14 -3
- package/packages/components/select/JaSelect.vue +22 -10
- package/packages/components/select/README.md +24 -0
- package/packages/components/switch/JaSwitch.vue +16 -5
- package/packages/components/switch/README.md +21 -0
- package/packages/components/timePicker/JaTimePicker.vue +21 -8
- package/packages/components/timePicker/README.md +21 -0
- package/packages/components/tip/README.md +20 -0
- package/packages/components/tip/src/AceTip.vue +10 -2
- package/packages/components/upload/FilePreviewer.vue +245 -0
- package/packages/components/upload/JaUploader.vue +9 -8
- package/packages/components/upload/README.md +24 -0
- package/packages/components/upload/index.ts +2 -0
- package/packages/components/upload/uploader.vue +68 -44
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { inject, ref, watch } from "vue";
|
|
1
|
+
import { inject, ref, watch, computed } from "vue";
|
|
2
2
|
import { ElSelect } from "element-plus";
|
|
3
3
|
import { getValue, setValue } from "../../utils/objectUtils";
|
|
4
|
-
const input = ref(
|
|
4
|
+
const input = ref();
|
|
5
5
|
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();
|
|
9
10
|
function onChange(value) {
|
|
10
11
|
validator.removeFieldError(prop);
|
|
11
12
|
setValue(model.formData, prop, mv.value);
|
|
@@ -17,9 +18,13 @@ watch(() => model.formData, () => {
|
|
|
17
18
|
}, {
|
|
18
19
|
deep: true
|
|
19
20
|
});
|
|
21
|
+
const elementProps = computed(() => {
|
|
22
|
+
const { modelValue, ...rest } = props;
|
|
23
|
+
return rest;
|
|
24
|
+
});
|
|
20
25
|
const __VLS_exposed = {
|
|
21
|
-
focus: () => input.value
|
|
22
|
-
blur: () => input.value
|
|
26
|
+
focus: () => input.value?.focus?.(),
|
|
27
|
+
blur: () => input.value?.blur?.(),
|
|
23
28
|
elSelect: input
|
|
24
29
|
};
|
|
25
30
|
defineExpose(__VLS_exposed);
|
|
@@ -34,11 +39,13 @@ const __VLS_1 = __VLS_asFunctionalComponent(__VLS_0, new __VLS_0({
|
|
|
34
39
|
...{ 'onChange': {} },
|
|
35
40
|
ref: "input",
|
|
36
41
|
modelValue: (__VLS_ctx.mv),
|
|
42
|
+
...({ ...__VLS_ctx.elementProps, ...__VLS_ctx.$attrs }),
|
|
37
43
|
}));
|
|
38
44
|
const __VLS_2 = __VLS_1({
|
|
39
45
|
...{ 'onChange': {} },
|
|
40
46
|
ref: "input",
|
|
41
47
|
modelValue: (__VLS_ctx.mv),
|
|
48
|
+
...({ ...__VLS_ctx.elementProps, ...__VLS_ctx.$attrs }),
|
|
42
49
|
}, ...__VLS_functionalComponentArgsRest(__VLS_1));
|
|
43
50
|
let __VLS_4;
|
|
44
51
|
let __VLS_5;
|
|
@@ -59,7 +66,6 @@ for (const [_, name] of __VLS_getVForSourceType((__VLS_ctx.$slots))) {
|
|
|
59
66
|
var __VLS_3;
|
|
60
67
|
// @ts-ignore
|
|
61
68
|
var __VLS_9 = __VLS_8, __VLS_12 = __VLS_11, __VLS_13 = __VLS_10;
|
|
62
|
-
[__VLS_dollars.$attrs,];
|
|
63
69
|
var __VLS_dollars;
|
|
64
70
|
const __VLS_self = (await import('vue')).defineComponent({
|
|
65
71
|
setup() {
|
|
@@ -68,9 +74,11 @@ const __VLS_self = (await import('vue')).defineComponent({
|
|
|
68
74
|
input: input,
|
|
69
75
|
onChange: onChange,
|
|
70
76
|
mv: mv,
|
|
77
|
+
elementProps: elementProps,
|
|
71
78
|
};
|
|
72
79
|
},
|
|
73
80
|
__typeEmits: {},
|
|
81
|
+
__typeProps: {},
|
|
74
82
|
});
|
|
75
83
|
const __VLS_component = (await import('vue')).defineComponent({
|
|
76
84
|
setup() {
|
|
@@ -79,6 +87,7 @@ const __VLS_component = (await import('vue')).defineComponent({
|
|
|
79
87
|
};
|
|
80
88
|
},
|
|
81
89
|
__typeEmits: {},
|
|
90
|
+
__typeProps: {},
|
|
82
91
|
});
|
|
83
92
|
export default {};
|
|
84
93
|
; /* PartiallyEnd: #4569/main.vue */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JaSelect.vue.js","sourceRoot":"","sources":["../../../packages/components/select/JaSelect.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"JaSelect.vue.js","sourceRoot":"","sources":["../../../packages/components/select/JaSelect.vue"],"names":[],"mappings":"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"}
|
|
@@ -1,76 +1,14 @@
|
|
|
1
|
+
import type { SwitchProps } from 'element-plus';
|
|
1
2
|
import type { EpPropMergeType } from "element-plus/es/utils";
|
|
2
|
-
|
|
3
|
+
export interface JaSwitchProps extends Partial<SwitchProps> {
|
|
4
|
+
}
|
|
5
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<JaSwitchProps, {
|
|
3
6
|
focus: () => any;
|
|
4
7
|
blur: () => any;
|
|
5
|
-
elSwitch: import("vue").Ref<
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
readonly disabled: BooleanConstructor;
|
|
10
|
-
readonly loading: BooleanConstructor;
|
|
11
|
-
readonly size: {
|
|
12
|
-
readonly type: import("vue").PropType<EpPropMergeType<(new (...args: any[]) => "" | "default" | "small" | "large") | (() => "" | "default" | "small" | "large") | ((new (...args: any[]) => "" | "default" | "small" | "large") | (() => "" | "default" | "small" | "large"))[], unknown, "" | "default" | "small" | "large">>;
|
|
13
|
-
readonly required: false;
|
|
14
|
-
readonly validator: (val: unknown) => boolean;
|
|
15
|
-
__epPropKey: true;
|
|
16
|
-
};
|
|
17
|
-
readonly width: import("element-plus/es/utils/index.mjs").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
18
|
-
readonly inlinePrompt: BooleanConstructor;
|
|
19
|
-
readonly inactiveActionIcon: {
|
|
20
|
-
readonly type: import("vue").PropType<unknown>;
|
|
21
|
-
readonly required: false;
|
|
22
|
-
readonly validator: (val: unknown) => boolean;
|
|
23
|
-
__epPropKey: true;
|
|
24
|
-
};
|
|
25
|
-
readonly activeActionIcon: {
|
|
26
|
-
readonly type: import("vue").PropType<unknown>;
|
|
27
|
-
readonly required: false;
|
|
28
|
-
readonly validator: (val: unknown) => boolean;
|
|
29
|
-
__epPropKey: true;
|
|
30
|
-
};
|
|
31
|
-
readonly activeIcon: {
|
|
32
|
-
readonly type: import("vue").PropType<unknown>;
|
|
33
|
-
readonly required: false;
|
|
34
|
-
readonly validator: (val: unknown) => boolean;
|
|
35
|
-
__epPropKey: true;
|
|
36
|
-
};
|
|
37
|
-
readonly inactiveIcon: {
|
|
38
|
-
readonly type: import("vue").PropType<unknown>;
|
|
39
|
-
readonly required: false;
|
|
40
|
-
readonly validator: (val: unknown) => boolean;
|
|
41
|
-
__epPropKey: true;
|
|
42
|
-
};
|
|
43
|
-
readonly activeText: import("element-plus/es/utils/index.mjs").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
44
|
-
readonly inactiveText: import("element-plus/es/utils/index.mjs").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
45
|
-
readonly activeValue: import("element-plus/es/utils/index.mjs").EpPropFinalized<readonly [BooleanConstructor, StringConstructor, NumberConstructor], unknown, unknown, true, boolean>;
|
|
46
|
-
readonly inactiveValue: import("element-plus/es/utils/index.mjs").EpPropFinalized<readonly [BooleanConstructor, StringConstructor, NumberConstructor], unknown, unknown, false, boolean>;
|
|
47
|
-
readonly name: import("element-plus/es/utils/index.mjs").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
48
|
-
readonly validateEvent: import("element-plus/es/utils/index.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
49
|
-
readonly beforeChange: {
|
|
50
|
-
readonly type: import("vue").PropType<() => boolean | Promise<boolean>>;
|
|
51
|
-
readonly required: false;
|
|
52
|
-
readonly validator: (val: unknown) => boolean;
|
|
53
|
-
__epPropKey: true;
|
|
54
|
-
};
|
|
55
|
-
readonly id: StringConstructor;
|
|
56
|
-
readonly tabindex: {
|
|
57
|
-
readonly type: import("vue").PropType<EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
|
|
58
|
-
readonly required: false;
|
|
59
|
-
readonly validator: (val: unknown) => boolean;
|
|
60
|
-
__epPropKey: true;
|
|
61
|
-
};
|
|
62
|
-
}>> & {
|
|
63
|
-
"onUpdate:modelValue"?: (val: string | number | boolean) => any;
|
|
64
|
-
onChange?: (val: string | number | boolean) => any;
|
|
65
|
-
onInput?: (val: string | number | boolean) => any;
|
|
66
|
-
}, {
|
|
67
|
-
focus: () => void;
|
|
68
|
-
checked: import("vue").ComputedRef<boolean>;
|
|
69
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
70
|
-
"update:modelValue": (val: string | number | boolean) => void;
|
|
71
|
-
change: (val: string | number | boolean) => void;
|
|
72
|
-
input: (val: string | number | boolean) => void;
|
|
73
|
-
}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, {
|
|
8
|
+
elSwitch: import("vue").Ref<{
|
|
9
|
+
$: import("vue").ComponentInternalInstance;
|
|
10
|
+
$data: {};
|
|
11
|
+
$props: Partial<{
|
|
74
12
|
readonly disabled: boolean;
|
|
75
13
|
readonly width: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
76
14
|
readonly name: string;
|
|
@@ -82,14 +20,46 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<{}, {
|
|
|
82
20
|
readonly activeValue: EpPropMergeType<readonly [BooleanConstructor, StringConstructor, NumberConstructor], unknown, unknown>;
|
|
83
21
|
readonly inactiveValue: EpPropMergeType<readonly [BooleanConstructor, StringConstructor, NumberConstructor], unknown, unknown>;
|
|
84
22
|
readonly inlinePrompt: boolean;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
23
|
+
}> & Omit<{
|
|
24
|
+
readonly modelValue: EpPropMergeType<readonly [BooleanConstructor, StringConstructor, NumberConstructor], unknown, unknown>;
|
|
25
|
+
readonly name: string;
|
|
26
|
+
readonly width: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
27
|
+
readonly loading: boolean;
|
|
28
|
+
readonly disabled: boolean;
|
|
29
|
+
readonly validateEvent: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
30
|
+
readonly inlinePrompt: boolean;
|
|
31
|
+
readonly activeText: string;
|
|
32
|
+
readonly inactiveText: string;
|
|
33
|
+
readonly activeValue: EpPropMergeType<readonly [BooleanConstructor, StringConstructor, NumberConstructor], unknown, unknown>;
|
|
34
|
+
readonly inactiveValue: EpPropMergeType<readonly [BooleanConstructor, StringConstructor, NumberConstructor], unknown, unknown>;
|
|
35
|
+
readonly size?: EpPropMergeType<(new (...args: any[]) => "" | "default" | "small" | "large") | (() => "" | "default" | "small" | "large") | ((new (...args: any[]) => "" | "default" | "small" | "large") | (() => "" | "default" | "small" | "large"))[], unknown, "" | "default" | "small" | "large">;
|
|
36
|
+
readonly id?: string;
|
|
37
|
+
readonly ariaLabel?: string;
|
|
38
|
+
readonly tabindex?: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
39
|
+
readonly inactiveActionIcon?: unknown;
|
|
40
|
+
readonly activeActionIcon?: unknown;
|
|
41
|
+
readonly activeIcon?: unknown;
|
|
42
|
+
readonly inactiveIcon?: unknown;
|
|
43
|
+
readonly beforeChange?: () => boolean | Promise<boolean>;
|
|
44
|
+
"onUpdate:modelValue"?: (val: string | number | boolean) => any;
|
|
45
|
+
onChange?: (val: string | number | boolean) => any;
|
|
46
|
+
onInput?: (val: string | number | boolean) => any;
|
|
47
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "modelValue" | "name" | "width" | "loading" | "disabled" | "validateEvent" | "inlinePrompt" | "activeText" | "inactiveText" | "activeValue" | "inactiveValue">;
|
|
48
|
+
$attrs: {
|
|
49
|
+
[x: string]: unknown;
|
|
50
|
+
};
|
|
51
|
+
$refs: {
|
|
52
|
+
[x: string]: unknown;
|
|
53
|
+
};
|
|
54
|
+
$slots: Readonly<{
|
|
55
|
+
[name: string]: import("vue").Slot<any>;
|
|
56
|
+
}>;
|
|
57
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import("vue").ComponentProvideOptions>, {}, {}, "", {}, any>;
|
|
58
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import("vue").ComponentProvideOptions>, {}, {}, "", {}, any>;
|
|
59
|
+
$host: Element;
|
|
60
|
+
$emit: ((event: "update:modelValue", val: string | number | boolean) => void) & ((event: "change", val: string | number | boolean) => void) & ((event: "input", val: string | number | boolean) => void);
|
|
61
|
+
$el: any;
|
|
62
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
93
63
|
readonly ariaLabel: StringConstructor;
|
|
94
64
|
readonly modelValue: import("element-plus/es/utils/index.mjs").EpPropFinalized<readonly [BooleanConstructor, StringConstructor, NumberConstructor], unknown, unknown, false, boolean>;
|
|
95
65
|
readonly disabled: BooleanConstructor;
|
|
@@ -152,7 +122,11 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<{}, {
|
|
|
152
122
|
}, {
|
|
153
123
|
focus: () => void;
|
|
154
124
|
checked: import("vue").ComputedRef<boolean>;
|
|
155
|
-
},
|
|
125
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
126
|
+
"update:modelValue": (val: string | number | boolean) => void;
|
|
127
|
+
change: (val: string | number | boolean) => void;
|
|
128
|
+
input: (val: string | number | boolean) => void;
|
|
129
|
+
}, string, {
|
|
156
130
|
readonly disabled: boolean;
|
|
157
131
|
readonly width: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
158
132
|
readonly name: string;
|
|
@@ -164,11 +138,39 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<{}, {
|
|
|
164
138
|
readonly activeValue: EpPropMergeType<readonly [BooleanConstructor, StringConstructor, NumberConstructor], unknown, unknown>;
|
|
165
139
|
readonly inactiveValue: EpPropMergeType<readonly [BooleanConstructor, StringConstructor, NumberConstructor], unknown, unknown>;
|
|
166
140
|
readonly inlinePrompt: boolean;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
141
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & {
|
|
142
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
143
|
+
created?: (() => void) | (() => void)[];
|
|
144
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
145
|
+
mounted?: (() => void) | (() => void)[];
|
|
146
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
147
|
+
updated?: (() => void) | (() => void)[];
|
|
148
|
+
activated?: (() => void) | (() => void)[];
|
|
149
|
+
deactivated?: (() => void) | (() => void)[];
|
|
150
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
151
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
152
|
+
destroyed?: (() => void) | (() => void)[];
|
|
153
|
+
unmounted?: (() => void) | (() => void)[];
|
|
154
|
+
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
155
|
+
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
156
|
+
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)[];
|
|
157
|
+
};
|
|
158
|
+
$forceUpdate: () => void;
|
|
159
|
+
$nextTick: typeof import("vue").nextTick;
|
|
160
|
+
$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;
|
|
161
|
+
} & Readonly<{
|
|
162
|
+
readonly disabled: boolean;
|
|
163
|
+
readonly width: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
164
|
+
readonly name: string;
|
|
165
|
+
readonly loading: boolean;
|
|
166
|
+
readonly modelValue: EpPropMergeType<readonly [BooleanConstructor, StringConstructor, NumberConstructor], unknown, unknown>;
|
|
167
|
+
readonly validateEvent: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
168
|
+
readonly activeText: string;
|
|
169
|
+
readonly inactiveText: string;
|
|
170
|
+
readonly activeValue: EpPropMergeType<readonly [BooleanConstructor, StringConstructor, NumberConstructor], unknown, unknown>;
|
|
171
|
+
readonly inactiveValue: EpPropMergeType<readonly [BooleanConstructor, StringConstructor, NumberConstructor], unknown, unknown>;
|
|
172
|
+
readonly inlinePrompt: boolean;
|
|
173
|
+
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
172
174
|
readonly ariaLabel: StringConstructor;
|
|
173
175
|
readonly modelValue: import("element-plus/es/utils/index.mjs").EpPropFinalized<readonly [BooleanConstructor, StringConstructor, NumberConstructor], unknown, unknown, false, boolean>;
|
|
174
176
|
readonly disabled: BooleanConstructor;
|
|
@@ -228,99 +230,18 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<{}, {
|
|
|
228
230
|
"onUpdate:modelValue"?: (val: string | number | boolean) => any;
|
|
229
231
|
onChange?: (val: string | number | boolean) => any;
|
|
230
232
|
onInput?: (val: string | number | boolean) => any;
|
|
231
|
-
}, {
|
|
233
|
+
}, "focus" | "modelValue" | "name" | "width" | "loading" | "disabled" | "validateEvent" | "checked" | "inlinePrompt" | "activeText" | "inactiveText" | "activeValue" | "inactiveValue"> & import("vue").ShallowUnwrapRef<{
|
|
232
234
|
focus: () => void;
|
|
233
235
|
checked: import("vue").ComputedRef<boolean>;
|
|
234
|
-
}
|
|
235
|
-
"update:modelValue": (val: string | number | boolean) => void;
|
|
236
|
-
change: (val: string | number | boolean) => void;
|
|
237
|
-
input: (val: string | number | boolean) => void;
|
|
238
|
-
}, string, {
|
|
239
|
-
readonly disabled: boolean;
|
|
240
|
-
readonly width: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
241
|
-
readonly name: string;
|
|
242
|
-
readonly loading: boolean;
|
|
243
|
-
readonly modelValue: EpPropMergeType<readonly [BooleanConstructor, StringConstructor, NumberConstructor], unknown, unknown>;
|
|
244
|
-
readonly validateEvent: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
245
|
-
readonly activeText: string;
|
|
246
|
-
readonly inactiveText: string;
|
|
247
|
-
readonly activeValue: EpPropMergeType<readonly [BooleanConstructor, StringConstructor, NumberConstructor], unknown, unknown>;
|
|
248
|
-
readonly inactiveValue: EpPropMergeType<readonly [BooleanConstructor, StringConstructor, NumberConstructor], unknown, unknown>;
|
|
249
|
-
readonly inlinePrompt: boolean;
|
|
250
|
-
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
236
|
+
}> & {} & import("vue").ComponentCustomProperties & {} & {
|
|
251
237
|
$slots: {
|
|
252
238
|
"active-action"?(_: {}): any;
|
|
253
239
|
"inactive-action"?(_: {}): any;
|
|
254
240
|
};
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
readonly disabled: BooleanConstructor;
|
|
260
|
-
readonly loading: BooleanConstructor;
|
|
261
|
-
readonly size: {
|
|
262
|
-
readonly type: import("vue").PropType<EpPropMergeType<(new (...args: any[]) => "" | "default" | "small" | "large") | (() => "" | "default" | "small" | "large") | ((new (...args: any[]) => "" | "default" | "small" | "large") | (() => "" | "default" | "small" | "large"))[], unknown, "" | "default" | "small" | "large">>;
|
|
263
|
-
readonly required: false;
|
|
264
|
-
readonly validator: (val: unknown) => boolean;
|
|
265
|
-
__epPropKey: true;
|
|
266
|
-
};
|
|
267
|
-
readonly width: import("element-plus/es/utils/index.mjs").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
268
|
-
readonly inlinePrompt: BooleanConstructor;
|
|
269
|
-
readonly inactiveActionIcon: {
|
|
270
|
-
readonly type: import("vue").PropType<unknown>;
|
|
271
|
-
readonly required: false;
|
|
272
|
-
readonly validator: (val: unknown) => boolean;
|
|
273
|
-
__epPropKey: true;
|
|
274
|
-
};
|
|
275
|
-
readonly activeActionIcon: {
|
|
276
|
-
readonly type: import("vue").PropType<unknown>;
|
|
277
|
-
readonly required: false;
|
|
278
|
-
readonly validator: (val: unknown) => boolean;
|
|
279
|
-
__epPropKey: true;
|
|
280
|
-
};
|
|
281
|
-
readonly activeIcon: {
|
|
282
|
-
readonly type: import("vue").PropType<unknown>;
|
|
283
|
-
readonly required: false;
|
|
284
|
-
readonly validator: (val: unknown) => boolean;
|
|
285
|
-
__epPropKey: true;
|
|
286
|
-
};
|
|
287
|
-
readonly inactiveIcon: {
|
|
288
|
-
readonly type: import("vue").PropType<unknown>;
|
|
289
|
-
readonly required: false;
|
|
290
|
-
readonly validator: (val: unknown) => boolean;
|
|
291
|
-
__epPropKey: true;
|
|
292
|
-
};
|
|
293
|
-
readonly activeText: import("element-plus/es/utils/index.mjs").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
294
|
-
readonly inactiveText: import("element-plus/es/utils/index.mjs").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
295
|
-
readonly activeValue: import("element-plus/es/utils/index.mjs").EpPropFinalized<readonly [BooleanConstructor, StringConstructor, NumberConstructor], unknown, unknown, true, boolean>;
|
|
296
|
-
readonly inactiveValue: import("element-plus/es/utils/index.mjs").EpPropFinalized<readonly [BooleanConstructor, StringConstructor, NumberConstructor], unknown, unknown, false, boolean>;
|
|
297
|
-
readonly name: import("element-plus/es/utils/index.mjs").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
298
|
-
readonly validateEvent: import("element-plus/es/utils/index.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
299
|
-
readonly beforeChange: {
|
|
300
|
-
readonly type: import("vue").PropType<() => boolean | Promise<boolean>>;
|
|
301
|
-
readonly required: false;
|
|
302
|
-
readonly validator: (val: unknown) => boolean;
|
|
303
|
-
__epPropKey: true;
|
|
304
|
-
};
|
|
305
|
-
readonly id: StringConstructor;
|
|
306
|
-
readonly tabindex: {
|
|
307
|
-
readonly type: import("vue").PropType<EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
|
|
308
|
-
readonly required: false;
|
|
309
|
-
readonly validator: (val: unknown) => boolean;
|
|
310
|
-
__epPropKey: true;
|
|
311
|
-
};
|
|
312
|
-
}>> & {
|
|
313
|
-
"onUpdate:modelValue"?: (val: string | number | boolean) => any;
|
|
314
|
-
onChange?: (val: string | number | boolean) => any;
|
|
315
|
-
onInput?: (val: string | number | boolean) => any;
|
|
316
|
-
}, {
|
|
317
|
-
focus: () => void;
|
|
318
|
-
checked: import("vue").ComputedRef<boolean>;
|
|
319
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
320
|
-
"update:modelValue": (val: string | number | boolean) => void;
|
|
321
|
-
change: (val: string | number | boolean) => void;
|
|
322
|
-
input: (val: string | number | boolean) => void;
|
|
323
|
-
}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, {
|
|
241
|
+
}, {
|
|
242
|
+
$: import("vue").ComponentInternalInstance;
|
|
243
|
+
$data: {};
|
|
244
|
+
$props: Partial<{
|
|
324
245
|
readonly disabled: boolean;
|
|
325
246
|
readonly width: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
326
247
|
readonly name: string;
|
|
@@ -332,14 +253,46 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<{}, {
|
|
|
332
253
|
readonly activeValue: EpPropMergeType<readonly [BooleanConstructor, StringConstructor, NumberConstructor], unknown, unknown>;
|
|
333
254
|
readonly inactiveValue: EpPropMergeType<readonly [BooleanConstructor, StringConstructor, NumberConstructor], unknown, unknown>;
|
|
334
255
|
readonly inlinePrompt: boolean;
|
|
335
|
-
}
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
256
|
+
}> & Omit<{
|
|
257
|
+
readonly modelValue: EpPropMergeType<readonly [BooleanConstructor, StringConstructor, NumberConstructor], unknown, unknown>;
|
|
258
|
+
readonly name: string;
|
|
259
|
+
readonly width: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
260
|
+
readonly loading: boolean;
|
|
261
|
+
readonly disabled: boolean;
|
|
262
|
+
readonly validateEvent: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
263
|
+
readonly inlinePrompt: boolean;
|
|
264
|
+
readonly activeText: string;
|
|
265
|
+
readonly inactiveText: string;
|
|
266
|
+
readonly activeValue: EpPropMergeType<readonly [BooleanConstructor, StringConstructor, NumberConstructor], unknown, unknown>;
|
|
267
|
+
readonly inactiveValue: EpPropMergeType<readonly [BooleanConstructor, StringConstructor, NumberConstructor], unknown, unknown>;
|
|
268
|
+
readonly size?: EpPropMergeType<(new (...args: any[]) => "" | "default" | "small" | "large") | (() => "" | "default" | "small" | "large") | ((new (...args: any[]) => "" | "default" | "small" | "large") | (() => "" | "default" | "small" | "large"))[], unknown, "" | "default" | "small" | "large">;
|
|
269
|
+
readonly id?: string;
|
|
270
|
+
readonly ariaLabel?: string;
|
|
271
|
+
readonly tabindex?: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
272
|
+
readonly inactiveActionIcon?: unknown;
|
|
273
|
+
readonly activeActionIcon?: unknown;
|
|
274
|
+
readonly activeIcon?: unknown;
|
|
275
|
+
readonly inactiveIcon?: unknown;
|
|
276
|
+
readonly beforeChange?: () => boolean | Promise<boolean>;
|
|
277
|
+
"onUpdate:modelValue"?: (val: string | number | boolean) => any;
|
|
278
|
+
onChange?: (val: string | number | boolean) => any;
|
|
279
|
+
onInput?: (val: string | number | boolean) => any;
|
|
280
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "modelValue" | "name" | "width" | "loading" | "disabled" | "validateEvent" | "inlinePrompt" | "activeText" | "inactiveText" | "activeValue" | "inactiveValue">;
|
|
281
|
+
$attrs: {
|
|
282
|
+
[x: string]: unknown;
|
|
283
|
+
};
|
|
284
|
+
$refs: {
|
|
285
|
+
[x: string]: unknown;
|
|
286
|
+
};
|
|
287
|
+
$slots: Readonly<{
|
|
288
|
+
[name: string]: import("vue").Slot<any>;
|
|
289
|
+
}>;
|
|
290
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import("vue").ComponentProvideOptions>, {}, {}, "", {}, any>;
|
|
291
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import("vue").ComponentProvideOptions>, {}, {}, "", {}, any>;
|
|
292
|
+
$host: Element;
|
|
293
|
+
$emit: ((event: "update:modelValue", val: string | number | boolean) => void) & ((event: "change", val: string | number | boolean) => void) & ((event: "input", val: string | number | boolean) => void);
|
|
294
|
+
$el: any;
|
|
295
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
343
296
|
readonly ariaLabel: StringConstructor;
|
|
344
297
|
readonly modelValue: import("element-plus/es/utils/index.mjs").EpPropFinalized<readonly [BooleanConstructor, StringConstructor, NumberConstructor], unknown, unknown, false, boolean>;
|
|
345
298
|
readonly disabled: BooleanConstructor;
|
|
@@ -402,7 +355,11 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<{}, {
|
|
|
402
355
|
}, {
|
|
403
356
|
focus: () => void;
|
|
404
357
|
checked: import("vue").ComputedRef<boolean>;
|
|
405
|
-
},
|
|
358
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
359
|
+
"update:modelValue": (val: string | number | boolean) => void;
|
|
360
|
+
change: (val: string | number | boolean) => void;
|
|
361
|
+
input: (val: string | number | boolean) => void;
|
|
362
|
+
}, string, {
|
|
406
363
|
readonly disabled: boolean;
|
|
407
364
|
readonly width: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
408
365
|
readonly name: string;
|
|
@@ -414,11 +371,39 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<{}, {
|
|
|
414
371
|
readonly activeValue: EpPropMergeType<readonly [BooleanConstructor, StringConstructor, NumberConstructor], unknown, unknown>;
|
|
415
372
|
readonly inactiveValue: EpPropMergeType<readonly [BooleanConstructor, StringConstructor, NumberConstructor], unknown, unknown>;
|
|
416
373
|
readonly inlinePrompt: boolean;
|
|
417
|
-
}
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
374
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & {
|
|
375
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
376
|
+
created?: (() => void) | (() => void)[];
|
|
377
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
378
|
+
mounted?: (() => void) | (() => void)[];
|
|
379
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
380
|
+
updated?: (() => void) | (() => void)[];
|
|
381
|
+
activated?: (() => void) | (() => void)[];
|
|
382
|
+
deactivated?: (() => void) | (() => void)[];
|
|
383
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
384
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
385
|
+
destroyed?: (() => void) | (() => void)[];
|
|
386
|
+
unmounted?: (() => void) | (() => void)[];
|
|
387
|
+
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
388
|
+
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
389
|
+
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)[];
|
|
390
|
+
};
|
|
391
|
+
$forceUpdate: () => void;
|
|
392
|
+
$nextTick: typeof import("vue").nextTick;
|
|
393
|
+
$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;
|
|
394
|
+
} & Readonly<{
|
|
395
|
+
readonly disabled: boolean;
|
|
396
|
+
readonly width: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
397
|
+
readonly name: string;
|
|
398
|
+
readonly loading: boolean;
|
|
399
|
+
readonly modelValue: EpPropMergeType<readonly [BooleanConstructor, StringConstructor, NumberConstructor], unknown, unknown>;
|
|
400
|
+
readonly validateEvent: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
401
|
+
readonly activeText: string;
|
|
402
|
+
readonly inactiveText: string;
|
|
403
|
+
readonly activeValue: EpPropMergeType<readonly [BooleanConstructor, StringConstructor, NumberConstructor], unknown, unknown>;
|
|
404
|
+
readonly inactiveValue: EpPropMergeType<readonly [BooleanConstructor, StringConstructor, NumberConstructor], unknown, unknown>;
|
|
405
|
+
readonly inlinePrompt: boolean;
|
|
406
|
+
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
422
407
|
readonly ariaLabel: StringConstructor;
|
|
423
408
|
readonly modelValue: import("element-plus/es/utils/index.mjs").EpPropFinalized<readonly [BooleanConstructor, StringConstructor, NumberConstructor], unknown, unknown, false, boolean>;
|
|
424
409
|
readonly disabled: BooleanConstructor;
|
|
@@ -478,34 +463,18 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<{}, {
|
|
|
478
463
|
"onUpdate:modelValue"?: (val: string | number | boolean) => any;
|
|
479
464
|
onChange?: (val: string | number | boolean) => any;
|
|
480
465
|
onInput?: (val: string | number | boolean) => any;
|
|
481
|
-
}, {
|
|
466
|
+
}, "focus" | "modelValue" | "name" | "width" | "loading" | "disabled" | "validateEvent" | "checked" | "inlinePrompt" | "activeText" | "inactiveText" | "activeValue" | "inactiveValue"> & import("vue").ShallowUnwrapRef<{
|
|
482
467
|
focus: () => void;
|
|
483
468
|
checked: import("vue").ComputedRef<boolean>;
|
|
484
|
-
}
|
|
485
|
-
"update:modelValue": (val: string | number | boolean) => void;
|
|
486
|
-
change: (val: string | number | boolean) => void;
|
|
487
|
-
input: (val: string | number | boolean) => void;
|
|
488
|
-
}, string, {
|
|
489
|
-
readonly disabled: boolean;
|
|
490
|
-
readonly width: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
491
|
-
readonly name: string;
|
|
492
|
-
readonly loading: boolean;
|
|
493
|
-
readonly modelValue: EpPropMergeType<readonly [BooleanConstructor, StringConstructor, NumberConstructor], unknown, unknown>;
|
|
494
|
-
readonly validateEvent: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
495
|
-
readonly activeText: string;
|
|
496
|
-
readonly inactiveText: string;
|
|
497
|
-
readonly activeValue: EpPropMergeType<readonly [BooleanConstructor, StringConstructor, NumberConstructor], unknown, unknown>;
|
|
498
|
-
readonly inactiveValue: EpPropMergeType<readonly [BooleanConstructor, StringConstructor, NumberConstructor], unknown, unknown>;
|
|
499
|
-
readonly inlinePrompt: boolean;
|
|
500
|
-
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
469
|
+
}> & {} & import("vue").ComponentCustomProperties & {} & {
|
|
501
470
|
$slots: {
|
|
502
471
|
"active-action"?(_: {}): any;
|
|
503
472
|
"inactive-action"?(_: {}): any;
|
|
504
473
|
};
|
|
505
|
-
}
|
|
474
|
+
}>;
|
|
506
475
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
507
476
|
change: (value: string | number | boolean) => any;
|
|
508
|
-
}, string, import("vue").PublicProps, Readonly<
|
|
477
|
+
}, string, import("vue").PublicProps, Readonly<JaSwitchProps> & Readonly<{
|
|
509
478
|
onChange?: (value: string | number | boolean) => any;
|
|
510
479
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
511
480
|
[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":"AAkEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAE/C,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,uBAAuB,CAAC;AAW3D,MAAM,WAAW,aAAc,SAAQ,OAAO,CAAC,WAAW,CAAC;CAC1D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgHD,wBAA0E;AAQ1E,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 } from "vue";
|
|
1
|
+
import { inject, ref, watch, computed } from "vue";
|
|
2
2
|
import { ElSwitch } from "element-plus";
|
|
3
3
|
import { getValue, setValue } from "../../utils/objectUtils";
|
|
4
4
|
const input = ref();
|
|
@@ -6,6 +6,7 @@ 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();
|
|
9
10
|
function onChange(value) {
|
|
10
11
|
validator.removeFieldError(prop);
|
|
11
12
|
setValue(model.formData, prop, mv.value);
|
|
@@ -17,9 +18,13 @@ watch(() => model.formData, () => {
|
|
|
17
18
|
}, {
|
|
18
19
|
deep: true
|
|
19
20
|
});
|
|
21
|
+
const elementProps = computed(() => {
|
|
22
|
+
const { modelValue, ...rest } = props;
|
|
23
|
+
return rest;
|
|
24
|
+
});
|
|
20
25
|
const __VLS_exposed = {
|
|
21
|
-
focus: () => input.value?.focus(),
|
|
22
|
-
blur: () => input.value?.blur(),
|
|
26
|
+
focus: () => input.value?.focus?.(),
|
|
27
|
+
blur: () => input.value?.blur?.(),
|
|
23
28
|
elSwitch: input
|
|
24
29
|
};
|
|
25
30
|
defineExpose(__VLS_exposed);
|
|
@@ -34,11 +39,13 @@ const __VLS_1 = __VLS_asFunctionalComponent(__VLS_0, new __VLS_0({
|
|
|
34
39
|
...{ 'onChange': {} },
|
|
35
40
|
ref: "input",
|
|
36
41
|
modelValue: (__VLS_ctx.mv),
|
|
42
|
+
...({ ...__VLS_ctx.elementProps, ...__VLS_ctx.$attrs }),
|
|
37
43
|
}));
|
|
38
44
|
const __VLS_2 = __VLS_1({
|
|
39
45
|
...{ 'onChange': {} },
|
|
40
46
|
ref: "input",
|
|
41
47
|
modelValue: (__VLS_ctx.mv),
|
|
48
|
+
...({ ...__VLS_ctx.elementProps, ...__VLS_ctx.$attrs }),
|
|
42
49
|
}, ...__VLS_functionalComponentArgsRest(__VLS_1));
|
|
43
50
|
let __VLS_4;
|
|
44
51
|
let __VLS_5;
|
|
@@ -59,7 +66,6 @@ for (const [_, name] of __VLS_getVForSourceType((__VLS_ctx.$slots))) {
|
|
|
59
66
|
var __VLS_3;
|
|
60
67
|
// @ts-ignore
|
|
61
68
|
var __VLS_9 = __VLS_8, __VLS_12 = __VLS_11, __VLS_13 = __VLS_10;
|
|
62
|
-
[__VLS_dollars.$attrs,];
|
|
63
69
|
var __VLS_dollars;
|
|
64
70
|
const __VLS_self = (await import('vue')).defineComponent({
|
|
65
71
|
setup() {
|
|
@@ -68,9 +74,11 @@ const __VLS_self = (await import('vue')).defineComponent({
|
|
|
68
74
|
input: input,
|
|
69
75
|
onChange: onChange,
|
|
70
76
|
mv: mv,
|
|
77
|
+
elementProps: elementProps,
|
|
71
78
|
};
|
|
72
79
|
},
|
|
73
80
|
__typeEmits: {},
|
|
81
|
+
__typeProps: {},
|
|
74
82
|
});
|
|
75
83
|
const __VLS_component = (await import('vue')).defineComponent({
|
|
76
84
|
setup() {
|
|
@@ -79,6 +87,7 @@ const __VLS_component = (await import('vue')).defineComponent({
|
|
|
79
87
|
};
|
|
80
88
|
},
|
|
81
89
|
__typeEmits: {},
|
|
90
|
+
__typeProps: {},
|
|
82
91
|
});
|
|
83
92
|
export default {};
|
|
84
93
|
; /* PartiallyEnd: #4569/main.vue */
|