@wfrog/vc-ui 1.11.10 → 1.11.11
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/es/chunk/Bw0Rhd-r.mjs +110 -0
- package/dist/es/chunk/CqTdDZkE.mjs +31 -0
- package/dist/es/chunk/{DAnWZLYj.mjs → CzWfBa_8.mjs} +96 -2
- package/dist/es/chunk/D229kQ56.mjs +28 -0
- package/dist/es/chunk/{Cxx_YWUC.mjs → DcouM6gM.mjs} +6 -548
- package/dist/es/chunk/Fo0dZYnz.mjs +128 -0
- package/dist/es/chunk/KanuIcmc.mjs +412 -0
- package/dist/es/chunk/{B71xEPfK.mjs → uuUHUjSk.mjs} +4 -35
- package/dist/es/components/backbottom/backbottom.mjs +3 -2
- package/dist/es/components/button/button.mjs +4 -5
- package/dist/es/components/choice/choice.mjs +4 -4
- package/dist/es/components/choice/index.css +1 -1
- package/dist/es/components/color-switch/color-switch.mjs +73 -1046
- package/dist/es/components/color-switch/index.css +1 -1
- package/dist/es/components/cropper/cropper.mjs +11 -117
- package/dist/es/components/cropper/index.css +1 -1
- package/dist/es/components/currency/currency.mjs +4 -5
- package/dist/es/components/daterange-picker/daterange-picker.mjs +8 -6253
- package/dist/es/components/dialog/dialog.mjs +7 -400
- package/dist/es/components/dialog/index.css +1 -1
- package/dist/es/components/dialog-camera-upload/dialog-camera-upload.mjs +10 -11
- package/dist/es/components/dialog-map-point/dialog-map-point.mjs +4 -3
- package/dist/es/components/dialog-upload-images/dialog-upload-images.mjs +9 -1374
- package/dist/es/components/dialog-upload-images/index.css +1 -1
- package/dist/es/components/drag-verify/drag-verify.mjs +3 -2
- package/dist/es/components/drawer/drawer.mjs +10 -352
- package/dist/es/components/drawer/index.css +1 -1
- package/dist/es/components/easy-pagination/easy-pagination.mjs +3 -2
- package/dist/es/components/explorer/explorer.mjs +3 -3
- package/dist/es/components/explorer-column-table/explorer-column-table.mjs +5 -7
- package/dist/es/components/explorer-column-table/index.css +1 -1
- package/dist/es/components/explorer-container/explorer-container.d.ts +1 -1
- package/dist/es/components/explorer-container/explorer-container.mjs +4 -3
- package/dist/es/components/explorer-filter/explorer-filter.mjs +5 -4
- package/dist/es/components/explorer-footer/explorer-footer.mjs +4 -8
- package/dist/es/components/explorer-form/explorer-form.mjs +4 -3
- package/dist/es/components/explorer-list/explorer-list.mjs +5 -4
- package/dist/es/components/explorer-modal-form/explorer-modal-form.mjs +4 -3
- package/dist/es/components/explorer-panel/explorer-panel.mjs +3 -3
- package/dist/es/components/explorer-query/explorer-query.mjs +9 -2201
- package/dist/es/components/explorer-query/index.css +1 -1
- package/dist/es/components/explorer-table/explorer-table.mjs +5 -8
- package/dist/es/components/explorer-tools/explorer-tools.mjs +13 -264
- package/dist/es/components/explorer-tools/index.css +1 -1
- package/dist/es/components/explorer-tree/explorer-tree.mjs +4 -5
- package/dist/es/components/icon-picker/icon-picker.mjs +8 -12
- package/dist/es/components/image/image.mjs +4 -4
- package/dist/es/components/info-tooltip/info-tooltip.mjs +336 -4
- package/dist/es/components/input/input.mjs +3 -2
- package/dist/es/components/input-number/input-number.mjs +3 -3
- package/dist/es/components/pca-picker/index.css +1 -1
- package/dist/es/components/pca-picker/pca-picker.mjs +443 -601
- package/dist/es/components/screenfull/screenfull.mjs +4 -3
- package/dist/es/components/scrollbar/scrollbar.mjs +3 -2
- package/dist/es/components/select/select.mjs +3 -5
- package/dist/es/components/single-player/index.css +1 -1
- package/dist/es/components/single-player/single-player.mjs +10 -1087
- package/dist/es/components/splitter/splitter.mjs +3 -3
- package/dist/es/components/splitter-panel/splitter-panel.mjs +3 -3
- package/dist/es/components/switch/index.css +1 -1
- package/dist/es/components/switch/switch.mjs +9 -395
- package/dist/es/components/tags/tags.mjs +7 -9
- package/dist/es/components/text-ellipsis/text-ellipsis.mjs +3 -3
- package/dist/es/components/thousand-input/thousand-input.mjs +33 -1
- package/dist/es/components/tinymce/tinymce.mjs +4 -3
- package/dist/es/components/transfer/transfer.mjs +3 -4
- package/dist/es/components/transfer-panel/transfer-panel.mjs +5 -4
- package/dist/es/components/tree-picker/popover-cascader.css +1 -1
- package/dist/es/components/tree-picker/tree-picker.mjs +5 -10
- package/dist/es/index.mjs +1 -1
- package/dist/index.css +13 -40
- package/package.json +1 -1
- package/dist/es/chunk/B-rxnVJv.mjs +0 -3
- package/dist/es/chunk/B5HpgPRt.mjs +0 -69
- package/dist/es/chunk/BBhZKpIc.mjs +0 -2179
- package/dist/es/chunk/BDcsaNYa.mjs +0 -59
- package/dist/es/chunk/BTSSEFfD.mjs +0 -319
- package/dist/es/chunk/BTpNRPQW.mjs +0 -55
- package/dist/es/chunk/BVBK1U57.mjs +0 -96
- package/dist/es/chunk/Bc6yUGLs.mjs +0 -45
- package/dist/es/chunk/BjVI1XMz.mjs +0 -40
- package/dist/es/chunk/BlzQCBDu.mjs +0 -5741
- package/dist/es/chunk/BpJKnxlF.mjs +0 -476
- package/dist/es/chunk/Brp-qSBw.mjs +0 -2003
- package/dist/es/chunk/BunQI8Jb.mjs +0 -390
- package/dist/es/chunk/C0XgBrDz.mjs +0 -775
- package/dist/es/chunk/C0pTANRX.mjs +0 -109
- package/dist/es/chunk/CBMjhoFP.mjs +0 -101
- package/dist/es/chunk/CBiNtNvQ.mjs +0 -242
- package/dist/es/chunk/CBlJeNBO.mjs +0 -890
- package/dist/es/chunk/CCVL_Zj-.mjs +0 -427
- package/dist/es/chunk/CEl4MyfJ.mjs +0 -252
- package/dist/es/chunk/CJK5_jsA.mjs +0 -53
- package/dist/es/chunk/CKOcwq5V.mjs +0 -44
- package/dist/es/chunk/COs9dJZa.mjs +0 -66
- package/dist/es/chunk/CPt6MxJW.mjs +0 -375
- package/dist/es/chunk/CVqW0jzp.mjs +0 -107
- package/dist/es/chunk/CccIsEqA.mjs +0 -128
- package/dist/es/chunk/CjLR27-a.mjs +0 -582
- package/dist/es/chunk/CoGexPPD.mjs +0 -2192
- package/dist/es/chunk/CsLIbnzG.mjs +0 -64
- package/dist/es/chunk/Ct6q2FXg.mjs +0 -5
- package/dist/es/chunk/Cuq5meQh.mjs +0 -184
- package/dist/es/chunk/CvYIOfT1.mjs +0 -23
- package/dist/es/chunk/CxHJBf4l.mjs +0 -31
- package/dist/es/chunk/CzdaOBtA.mjs +0 -66
- package/dist/es/chunk/D0QTifnI.mjs +0 -54
- package/dist/es/chunk/D1QnA2iT.mjs +0 -229
- package/dist/es/chunk/D3AvJlVX.mjs +0 -188
- package/dist/es/chunk/D9Lr0Bzb.mjs +0 -1136
- package/dist/es/chunk/DCkPv0hy.mjs +0 -29
- package/dist/es/chunk/DRwwUUhy.mjs +0 -49
- package/dist/es/chunk/DX-2VRY2.mjs +0 -836
- package/dist/es/chunk/DZ2oTFad.mjs +0 -687
- package/dist/es/chunk/D_bou1py.mjs +0 -55
- package/dist/es/chunk/Da199A5L.mjs +0 -314
- package/dist/es/chunk/DbhQlaOz.mjs +0 -94
- package/dist/es/chunk/Dgu95mOy.mjs +0 -237
- package/dist/es/chunk/DhGOsWxx.mjs +0 -6
- package/dist/es/chunk/Dm_Sj5aH.mjs +0 -487
- package/dist/es/chunk/Dmi-1GRO.mjs +0 -163
- package/dist/es/chunk/DodoD9a9.mjs +0 -52
- package/dist/es/chunk/DrrVDcwm.mjs +0 -955
- package/dist/es/chunk/Du_zJ1Fz.mjs +0 -49
- package/dist/es/chunk/DxxbB5jY.mjs +0 -34
- package/dist/es/chunk/Gk1J52Yw.mjs +0 -207
- package/dist/es/chunk/NsldgdCh.mjs +0 -704
- package/dist/es/chunk/V6KjsUQN.mjs +0 -35
- package/dist/es/chunk/eEsLFV3s.mjs +0 -76
- package/dist/es/chunk/fqiLhk0V.mjs +0 -2065
- package/dist/es/chunk/nxVM7re4.mjs +0 -35
- package/dist/es/chunk/s7HLrANj.mjs +0 -215
- package/dist/es/chunk/vPhxogl3.mjs +0 -19
- package/dist/es/components/icon/icon2.mjs +0 -27
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import '
|
|
2
|
-
|
|
1
|
+
import { ElSplitter } from 'element-plus/es';
|
|
2
|
+
import 'element-plus/es/components/base/style/css';
|
|
3
|
+
import 'element-plus/es/components/splitter/style/css';
|
|
3
4
|
import { defineComponent, createBlock, openBlock, withCtx, renderSlot } from 'vue';
|
|
4
|
-
import { E as ElSplitter } from '../../chunk/C0XgBrDz.mjs';
|
|
5
5
|
|
|
6
6
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
7
|
__name: "splitter",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import './index.css'
|
|
2
|
-
import '
|
|
3
|
-
|
|
2
|
+
import { ElSplitterPanel } from 'element-plus/es';
|
|
3
|
+
import 'element-plus/es/components/base/style/css';
|
|
4
|
+
import 'element-plus/es/components/splitter-panel/style/css';
|
|
4
5
|
import { createBlock, openBlock, normalizeClass, withCtx, renderSlot } from 'vue';
|
|
5
6
|
import { _ as _export_sfc } from '../../chunk/pcqpp-6-.mjs';
|
|
6
|
-
import { a as ElSplitterPanel } from '../../chunk/C0XgBrDz.mjs';
|
|
7
7
|
|
|
8
8
|
/* unplugin-vue-components disabled */const panel = "_panel_g5jo5_1";
|
|
9
9
|
const style0 = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* source: src/components/switch/switch.vue */
|
|
2
|
-
.
|
|
2
|
+
._main_5oj5r_1 {
|
|
3
3
|
position: relative;
|
|
4
4
|
display: inline-block;
|
|
5
5
|
}
|
|
@@ -1,398 +1,12 @@
|
|
|
1
1
|
import './index.css'
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import '
|
|
5
|
-
|
|
6
|
-
import '
|
|
7
|
-
import {
|
|
8
|
-
import { useFormDisabled as useFormDisabled$1 } from 'element-plus';
|
|
2
|
+
import { ElSwitch, ElPopconfirm } from 'element-plus/es';
|
|
3
|
+
import 'element-plus/es/components/base/style/css';
|
|
4
|
+
import 'element-plus/es/components/popconfirm/style/css';
|
|
5
|
+
import 'element-plus/es/components/switch/style/css';
|
|
6
|
+
import { defineComponent, useTemplateRef, onMounted, createBlock, unref, openBlock, mergeProps, isRef, withCtx, createElementVNode, normalizeClass, createVNode } from 'vue';
|
|
7
|
+
import { useFormDisabled } from 'element-plus';
|
|
9
8
|
import { useVModel } from '@vueuse/core';
|
|
10
|
-
import {
|
|
11
|
-
import { Loading } from '@element-plus/icons-vue';
|
|
12
|
-
import { c as componentSizes } from '../../chunk/vPhxogl3.mjs';
|
|
13
|
-
import { i as iconPropType } from '../icon/icon2.mjs';
|
|
14
|
-
import { u as useAriaProps } from '../../chunk/BunQI8Jb.mjs';
|
|
15
|
-
import { I as INPUT_EVENT, C as CHANGE_EVENT, U as UPDATE_MODEL_EVENT } from '../../chunk/Ct6q2FXg.mjs';
|
|
16
|
-
import { d as isBoolean, b as isNumber } from '../../chunk/Bc6yUGLs.mjs';
|
|
17
|
-
import { _ as _export_sfc, w as withInstall } from '../../chunk/V6KjsUQN.mjs';
|
|
18
|
-
import { u as useFormItem, c as useFormSize, b as useFormItemInputId, a as useFormDisabled } from '../../chunk/CBMjhoFP.mjs';
|
|
19
|
-
import { a as addUnit } from '../../chunk/DodoD9a9.mjs';
|
|
20
|
-
import { _ as _export_sfc$1 } from '../../chunk/pcqpp-6-.mjs';
|
|
21
|
-
|
|
22
|
-
const isValidComponentSize = (val) => ["", ...componentSizes].includes(val);
|
|
23
|
-
|
|
24
|
-
const switchProps = buildProps({
|
|
25
|
-
modelValue: {
|
|
26
|
-
type: [Boolean, String, Number],
|
|
27
|
-
default: false
|
|
28
|
-
},
|
|
29
|
-
disabled: {
|
|
30
|
-
type: Boolean,
|
|
31
|
-
default: void 0
|
|
32
|
-
},
|
|
33
|
-
loading: Boolean,
|
|
34
|
-
size: {
|
|
35
|
-
type: String,
|
|
36
|
-
validator: isValidComponentSize
|
|
37
|
-
},
|
|
38
|
-
width: {
|
|
39
|
-
type: [String, Number],
|
|
40
|
-
default: ""
|
|
41
|
-
},
|
|
42
|
-
inlinePrompt: Boolean,
|
|
43
|
-
inactiveActionIcon: {
|
|
44
|
-
type: iconPropType
|
|
45
|
-
},
|
|
46
|
-
activeActionIcon: {
|
|
47
|
-
type: iconPropType
|
|
48
|
-
},
|
|
49
|
-
activeIcon: {
|
|
50
|
-
type: iconPropType
|
|
51
|
-
},
|
|
52
|
-
inactiveIcon: {
|
|
53
|
-
type: iconPropType
|
|
54
|
-
},
|
|
55
|
-
activeText: {
|
|
56
|
-
type: String,
|
|
57
|
-
default: ""
|
|
58
|
-
},
|
|
59
|
-
inactiveText: {
|
|
60
|
-
type: String,
|
|
61
|
-
default: ""
|
|
62
|
-
},
|
|
63
|
-
activeValue: {
|
|
64
|
-
type: [Boolean, String, Number],
|
|
65
|
-
default: true
|
|
66
|
-
},
|
|
67
|
-
inactiveValue: {
|
|
68
|
-
type: [Boolean, String, Number],
|
|
69
|
-
default: false
|
|
70
|
-
},
|
|
71
|
-
name: {
|
|
72
|
-
type: String,
|
|
73
|
-
default: ""
|
|
74
|
-
},
|
|
75
|
-
validateEvent: {
|
|
76
|
-
type: Boolean,
|
|
77
|
-
default: true
|
|
78
|
-
},
|
|
79
|
-
beforeChange: {
|
|
80
|
-
type: definePropType(Function)
|
|
81
|
-
},
|
|
82
|
-
id: String,
|
|
83
|
-
tabindex: {
|
|
84
|
-
type: [String, Number]
|
|
85
|
-
},
|
|
86
|
-
...useAriaProps(["ariaLabel"])
|
|
87
|
-
});
|
|
88
|
-
const switchEmits = {
|
|
89
|
-
[UPDATE_MODEL_EVENT]: (val) => isBoolean(val) || isString(val) || isNumber(val),
|
|
90
|
-
[CHANGE_EVENT]: (val) => isBoolean(val) || isString(val) || isNumber(val),
|
|
91
|
-
[INPUT_EVENT]: (val) => isBoolean(val) || isString(val) || isNumber(val)
|
|
92
|
-
};
|
|
93
|
-
|
|
94
|
-
const _hoisted_1 = ["id", "aria-checked", "aria-disabled", "aria-label", "name", "true-value", "false-value", "disabled", "tabindex"];
|
|
95
|
-
const _hoisted_2 = ["aria-hidden"];
|
|
96
|
-
const _hoisted_3 = { key: 1 };
|
|
97
|
-
const _hoisted_4 = { key: 1 };
|
|
98
|
-
const _hoisted_5 = ["aria-hidden"];
|
|
99
|
-
const COMPONENT_NAME = "ElSwitch";
|
|
100
|
-
const _sfc_main$1 = defineComponent({
|
|
101
|
-
...{
|
|
102
|
-
name: COMPONENT_NAME
|
|
103
|
-
},
|
|
104
|
-
__name: "switch",
|
|
105
|
-
props: switchProps,
|
|
106
|
-
emits: switchEmits,
|
|
107
|
-
setup(__props, { expose: __expose, emit: __emit }) {
|
|
108
|
-
const props = __props;
|
|
109
|
-
const emit = __emit;
|
|
110
|
-
const { formItem } = useFormItem();
|
|
111
|
-
const switchSize = useFormSize();
|
|
112
|
-
const ns = useNamespace("switch");
|
|
113
|
-
const { inputId } = useFormItemInputId(props, {
|
|
114
|
-
formItemContext: formItem
|
|
115
|
-
});
|
|
116
|
-
const switchDisabled = useFormDisabled(
|
|
117
|
-
computed(() => {
|
|
118
|
-
if (props.loading) {
|
|
119
|
-
return true;
|
|
120
|
-
}
|
|
121
|
-
return void 0;
|
|
122
|
-
})
|
|
123
|
-
);
|
|
124
|
-
const isControlled = ref(props.modelValue !== false);
|
|
125
|
-
const input = shallowRef();
|
|
126
|
-
const switchKls = computed(() => [
|
|
127
|
-
ns.b(),
|
|
128
|
-
ns.m(switchSize.value),
|
|
129
|
-
ns.is("disabled", switchDisabled.value),
|
|
130
|
-
ns.is("checked", checked.value)
|
|
131
|
-
]);
|
|
132
|
-
const labelLeftKls = computed(() => [
|
|
133
|
-
ns.e("label"),
|
|
134
|
-
ns.em("label", "left"),
|
|
135
|
-
ns.is("active", !checked.value)
|
|
136
|
-
]);
|
|
137
|
-
const labelRightKls = computed(() => [
|
|
138
|
-
ns.e("label"),
|
|
139
|
-
ns.em("label", "right"),
|
|
140
|
-
ns.is("active", checked.value)
|
|
141
|
-
]);
|
|
142
|
-
const coreStyle = computed(() => ({
|
|
143
|
-
width: addUnit(props.width)
|
|
144
|
-
}));
|
|
145
|
-
watch(
|
|
146
|
-
() => props.modelValue,
|
|
147
|
-
() => {
|
|
148
|
-
isControlled.value = true;
|
|
149
|
-
}
|
|
150
|
-
);
|
|
151
|
-
const actualValue = computed(() => {
|
|
152
|
-
return isControlled.value ? props.modelValue : false;
|
|
153
|
-
});
|
|
154
|
-
const checked = computed(() => actualValue.value === props.activeValue);
|
|
155
|
-
if (![props.activeValue, props.inactiveValue].includes(actualValue.value)) {
|
|
156
|
-
emit(UPDATE_MODEL_EVENT, props.inactiveValue);
|
|
157
|
-
emit(CHANGE_EVENT, props.inactiveValue);
|
|
158
|
-
emit(INPUT_EVENT, props.inactiveValue);
|
|
159
|
-
}
|
|
160
|
-
watch(checked, (val) => {
|
|
161
|
-
var _a;
|
|
162
|
-
input.value.checked = val;
|
|
163
|
-
if (props.validateEvent) {
|
|
164
|
-
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "change").catch((err) => debugWarn(err));
|
|
165
|
-
}
|
|
166
|
-
});
|
|
167
|
-
const handleChange = () => {
|
|
168
|
-
const val = checked.value ? props.inactiveValue : props.activeValue;
|
|
169
|
-
emit(UPDATE_MODEL_EVENT, val);
|
|
170
|
-
emit(CHANGE_EVENT, val);
|
|
171
|
-
emit(INPUT_EVENT, val);
|
|
172
|
-
nextTick(() => {
|
|
173
|
-
input.value.checked = checked.value;
|
|
174
|
-
});
|
|
175
|
-
};
|
|
176
|
-
const switchValue = () => {
|
|
177
|
-
if (switchDisabled.value)
|
|
178
|
-
return;
|
|
179
|
-
const { beforeChange } = props;
|
|
180
|
-
if (!beforeChange) {
|
|
181
|
-
handleChange();
|
|
182
|
-
return;
|
|
183
|
-
}
|
|
184
|
-
const shouldChange = beforeChange();
|
|
185
|
-
const isPromiseOrBool = [
|
|
186
|
-
isPromise(shouldChange),
|
|
187
|
-
isBoolean(shouldChange)
|
|
188
|
-
].includes(true);
|
|
189
|
-
if (!isPromiseOrBool) {
|
|
190
|
-
throwError(
|
|
191
|
-
COMPONENT_NAME,
|
|
192
|
-
"beforeChange must return type `Promise<boolean>` or `boolean`"
|
|
193
|
-
);
|
|
194
|
-
}
|
|
195
|
-
if (isPromise(shouldChange)) {
|
|
196
|
-
shouldChange.then((result) => {
|
|
197
|
-
if (result) {
|
|
198
|
-
handleChange();
|
|
199
|
-
}
|
|
200
|
-
}).catch((e) => {
|
|
201
|
-
debugWarn(COMPONENT_NAME, `some error occurred: ${e}`);
|
|
202
|
-
});
|
|
203
|
-
} else if (shouldChange) {
|
|
204
|
-
handleChange();
|
|
205
|
-
}
|
|
206
|
-
};
|
|
207
|
-
const focus = () => {
|
|
208
|
-
var _a, _b;
|
|
209
|
-
(_b = (_a = input.value) == null ? void 0 : _a.focus) == null ? void 0 : _b.call(_a);
|
|
210
|
-
};
|
|
211
|
-
onMounted(() => {
|
|
212
|
-
input.value.checked = checked.value;
|
|
213
|
-
});
|
|
214
|
-
__expose({
|
|
215
|
-
focus,
|
|
216
|
-
checked
|
|
217
|
-
});
|
|
218
|
-
return (_ctx, _cache) => {
|
|
219
|
-
return openBlock(), createElementBlock(
|
|
220
|
-
"div",
|
|
221
|
-
{
|
|
222
|
-
class: normalizeClass(switchKls.value),
|
|
223
|
-
onClick: withModifiers(switchValue, ["prevent"])
|
|
224
|
-
},
|
|
225
|
-
[
|
|
226
|
-
createElementVNode("input", {
|
|
227
|
-
id: unref(inputId),
|
|
228
|
-
ref_key: "input",
|
|
229
|
-
ref: input,
|
|
230
|
-
class: normalizeClass(unref(ns).e("input")),
|
|
231
|
-
type: "checkbox",
|
|
232
|
-
role: "switch",
|
|
233
|
-
"aria-checked": checked.value,
|
|
234
|
-
"aria-disabled": unref(switchDisabled),
|
|
235
|
-
"aria-label": _ctx.ariaLabel,
|
|
236
|
-
name: _ctx.name,
|
|
237
|
-
"true-value": _ctx.activeValue,
|
|
238
|
-
"false-value": _ctx.inactiveValue,
|
|
239
|
-
disabled: unref(switchDisabled),
|
|
240
|
-
tabindex: _ctx.tabindex,
|
|
241
|
-
onChange: handleChange,
|
|
242
|
-
onKeydown: withKeys(switchValue, ["enter"])
|
|
243
|
-
}, null, 42, _hoisted_1),
|
|
244
|
-
!_ctx.inlinePrompt && (_ctx.inactiveIcon || _ctx.inactiveText || _ctx.$slots.inactive) ? (openBlock(), createElementBlock(
|
|
245
|
-
"span",
|
|
246
|
-
{
|
|
247
|
-
key: 0,
|
|
248
|
-
class: normalizeClass(labelLeftKls.value)
|
|
249
|
-
},
|
|
250
|
-
[
|
|
251
|
-
renderSlot(_ctx.$slots, "inactive", {}, () => [
|
|
252
|
-
_ctx.inactiveIcon ? (openBlock(), createBlock(unref(ElIcon), { key: 0 }, {
|
|
253
|
-
default: withCtx(() => [
|
|
254
|
-
(openBlock(), createBlock(resolveDynamicComponent(_ctx.inactiveIcon)))
|
|
255
|
-
]),
|
|
256
|
-
_: 1
|
|
257
|
-
})) : createCommentVNode("v-if", true),
|
|
258
|
-
!_ctx.inactiveIcon && _ctx.inactiveText ? (openBlock(), createElementBlock("span", {
|
|
259
|
-
key: 1,
|
|
260
|
-
"aria-hidden": checked.value
|
|
261
|
-
}, toDisplayString(_ctx.inactiveText), 9, _hoisted_2)) : createCommentVNode("v-if", true)
|
|
262
|
-
])
|
|
263
|
-
],
|
|
264
|
-
2
|
|
265
|
-
)) : createCommentVNode("v-if", true),
|
|
266
|
-
createElementVNode(
|
|
267
|
-
"span",
|
|
268
|
-
{
|
|
269
|
-
class: normalizeClass(unref(ns).e("core")),
|
|
270
|
-
style: normalizeStyle(coreStyle.value)
|
|
271
|
-
},
|
|
272
|
-
[
|
|
273
|
-
_ctx.inlinePrompt ? (openBlock(), createElementBlock(
|
|
274
|
-
"div",
|
|
275
|
-
{
|
|
276
|
-
key: 0,
|
|
277
|
-
class: normalizeClass(unref(ns).e("inner"))
|
|
278
|
-
},
|
|
279
|
-
[
|
|
280
|
-
!checked.value ? (openBlock(), createElementBlock(
|
|
281
|
-
"div",
|
|
282
|
-
{
|
|
283
|
-
key: 0,
|
|
284
|
-
class: normalizeClass(unref(ns).e("inner-wrapper"))
|
|
285
|
-
},
|
|
286
|
-
[
|
|
287
|
-
renderSlot(_ctx.$slots, "inactive", {}, () => [
|
|
288
|
-
_ctx.inactiveIcon ? (openBlock(), createBlock(unref(ElIcon), { key: 0 }, {
|
|
289
|
-
default: withCtx(() => [
|
|
290
|
-
(openBlock(), createBlock(resolveDynamicComponent(_ctx.inactiveIcon)))
|
|
291
|
-
]),
|
|
292
|
-
_: 1
|
|
293
|
-
})) : createCommentVNode("v-if", true),
|
|
294
|
-
!_ctx.inactiveIcon && _ctx.inactiveText ? (openBlock(), createElementBlock(
|
|
295
|
-
"span",
|
|
296
|
-
_hoisted_3,
|
|
297
|
-
toDisplayString(_ctx.inactiveText),
|
|
298
|
-
1
|
|
299
|
-
)) : createCommentVNode("v-if", true)
|
|
300
|
-
])
|
|
301
|
-
],
|
|
302
|
-
2
|
|
303
|
-
)) : (openBlock(), createElementBlock(
|
|
304
|
-
"div",
|
|
305
|
-
{
|
|
306
|
-
key: 1,
|
|
307
|
-
class: normalizeClass(unref(ns).e("inner-wrapper"))
|
|
308
|
-
},
|
|
309
|
-
[
|
|
310
|
-
renderSlot(_ctx.$slots, "active", {}, () => [
|
|
311
|
-
_ctx.activeIcon ? (openBlock(), createBlock(unref(ElIcon), { key: 0 }, {
|
|
312
|
-
default: withCtx(() => [
|
|
313
|
-
(openBlock(), createBlock(resolveDynamicComponent(_ctx.activeIcon)))
|
|
314
|
-
]),
|
|
315
|
-
_: 1
|
|
316
|
-
})) : createCommentVNode("v-if", true),
|
|
317
|
-
!_ctx.activeIcon && _ctx.activeText ? (openBlock(), createElementBlock(
|
|
318
|
-
"span",
|
|
319
|
-
_hoisted_4,
|
|
320
|
-
toDisplayString(_ctx.activeText),
|
|
321
|
-
1
|
|
322
|
-
)) : createCommentVNode("v-if", true)
|
|
323
|
-
])
|
|
324
|
-
],
|
|
325
|
-
2
|
|
326
|
-
))
|
|
327
|
-
],
|
|
328
|
-
2
|
|
329
|
-
)) : createCommentVNode("v-if", true),
|
|
330
|
-
createElementVNode(
|
|
331
|
-
"div",
|
|
332
|
-
{
|
|
333
|
-
class: normalizeClass(unref(ns).e("action"))
|
|
334
|
-
},
|
|
335
|
-
[
|
|
336
|
-
_ctx.loading ? (openBlock(), createBlock(unref(ElIcon), {
|
|
337
|
-
key: 0,
|
|
338
|
-
class: normalizeClass(unref(ns).is("loading"))
|
|
339
|
-
}, {
|
|
340
|
-
default: withCtx(() => [
|
|
341
|
-
createVNode(unref(Loading))
|
|
342
|
-
]),
|
|
343
|
-
_: 1
|
|
344
|
-
}, 8, ["class"])) : checked.value ? renderSlot(_ctx.$slots, "active-action", { key: 1 }, () => [
|
|
345
|
-
_ctx.activeActionIcon ? (openBlock(), createBlock(unref(ElIcon), { key: 0 }, {
|
|
346
|
-
default: withCtx(() => [
|
|
347
|
-
(openBlock(), createBlock(resolveDynamicComponent(_ctx.activeActionIcon)))
|
|
348
|
-
]),
|
|
349
|
-
_: 1
|
|
350
|
-
})) : createCommentVNode("v-if", true)
|
|
351
|
-
]) : !checked.value ? renderSlot(_ctx.$slots, "inactive-action", { key: 2 }, () => [
|
|
352
|
-
_ctx.inactiveActionIcon ? (openBlock(), createBlock(unref(ElIcon), { key: 0 }, {
|
|
353
|
-
default: withCtx(() => [
|
|
354
|
-
(openBlock(), createBlock(resolveDynamicComponent(_ctx.inactiveActionIcon)))
|
|
355
|
-
]),
|
|
356
|
-
_: 1
|
|
357
|
-
})) : createCommentVNode("v-if", true)
|
|
358
|
-
]) : createCommentVNode("v-if", true)
|
|
359
|
-
],
|
|
360
|
-
2
|
|
361
|
-
)
|
|
362
|
-
],
|
|
363
|
-
6
|
|
364
|
-
),
|
|
365
|
-
!_ctx.inlinePrompt && (_ctx.activeIcon || _ctx.activeText || _ctx.$slots.active) ? (openBlock(), createElementBlock(
|
|
366
|
-
"span",
|
|
367
|
-
{
|
|
368
|
-
key: 1,
|
|
369
|
-
class: normalizeClass(labelRightKls.value)
|
|
370
|
-
},
|
|
371
|
-
[
|
|
372
|
-
renderSlot(_ctx.$slots, "active", {}, () => [
|
|
373
|
-
_ctx.activeIcon ? (openBlock(), createBlock(unref(ElIcon), { key: 0 }, {
|
|
374
|
-
default: withCtx(() => [
|
|
375
|
-
(openBlock(), createBlock(resolveDynamicComponent(_ctx.activeIcon)))
|
|
376
|
-
]),
|
|
377
|
-
_: 1
|
|
378
|
-
})) : createCommentVNode("v-if", true),
|
|
379
|
-
!_ctx.activeIcon && _ctx.activeText ? (openBlock(), createElementBlock("span", {
|
|
380
|
-
key: 1,
|
|
381
|
-
"aria-hidden": !checked.value
|
|
382
|
-
}, toDisplayString(_ctx.activeText), 9, _hoisted_5)) : createCommentVNode("v-if", true)
|
|
383
|
-
])
|
|
384
|
-
],
|
|
385
|
-
2
|
|
386
|
-
)) : createCommentVNode("v-if", true)
|
|
387
|
-
],
|
|
388
|
-
2
|
|
389
|
-
);
|
|
390
|
-
};
|
|
391
|
-
}
|
|
392
|
-
});
|
|
393
|
-
var Switch = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/switch/src/switch.vue"]]);
|
|
394
|
-
|
|
395
|
-
const ElSwitch = withInstall(Switch);
|
|
9
|
+
import { _ as _export_sfc } from '../../chunk/pcqpp-6-.mjs';
|
|
396
10
|
|
|
397
11
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
398
12
|
__name: "switch",
|
|
@@ -410,7 +24,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
410
24
|
const emits = __emit;
|
|
411
25
|
const myValue = useVModel(props, "modelValue", emits);
|
|
412
26
|
const mainRef = useTemplateRef("mainRef");
|
|
413
|
-
const formDisabled = useFormDisabled
|
|
27
|
+
const formDisabled = useFormDisabled();
|
|
414
28
|
function getSwitchEle() {
|
|
415
29
|
if (!mainRef.value) {
|
|
416
30
|
return;
|
|
@@ -463,7 +77,7 @@ const style0 = {
|
|
|
463
77
|
const cssModules = {
|
|
464
78
|
"$style": style0
|
|
465
79
|
};
|
|
466
|
-
const Component = /* @__PURE__ */ _export_sfc
|
|
80
|
+
const Component = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
|
|
467
81
|
|
|
468
82
|
const __vite_glob_0_51 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
469
83
|
__proto__: null,
|
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
import './index.css'
|
|
2
|
-
import '
|
|
3
|
-
import '
|
|
4
|
-
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
|
|
2
|
+
import { ElSpace, ElTag, ElInput, ElPopover, ElAlert } from 'element-plus/es';
|
|
3
|
+
import 'element-plus/es/components/base/style/css';
|
|
4
|
+
import 'element-plus/es/components/popover/style/css';
|
|
5
|
+
import 'element-plus/es/components/alert/style/css';
|
|
6
|
+
import 'element-plus/es/components/input/style/css';
|
|
7
|
+
import 'element-plus/es/components/space/style/css';
|
|
8
|
+
import 'element-plus/es/components/tag/style/css';
|
|
9
9
|
import { defineComponent, ref, computed, watch, createBlock, unref, openBlock, withCtx, createElementBlock, Fragment, renderList, mergeProps, createTextVNode, toDisplayString, createVNode, createCommentVNode, normalizeClass, isRef, withDirectives, withKeys } from 'vue';
|
|
10
10
|
import { useFormDisabled, useFormItem } from 'element-plus';
|
|
11
11
|
import { VueDraggable } from 'vue-draggable-plus';
|
|
12
12
|
import { v as vFocus } from '../../chunk/CL65DvCP.mjs';
|
|
13
13
|
import { C as Component$1 } from '../button/button.mjs';
|
|
14
|
-
import { E as ElTag } from '../../chunk/Dmi-1GRO.mjs';
|
|
15
|
-
import { E as ElPopover } from '../../chunk/Da199A5L.mjs';
|
|
16
14
|
import { _ as _export_sfc } from '../../chunk/pcqpp-6-.mjs';
|
|
17
15
|
|
|
18
16
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import './index.css'
|
|
2
|
-
import '
|
|
3
|
-
|
|
4
|
-
import
|
|
2
|
+
import { ElTooltip } from 'element-plus/es';
|
|
3
|
+
import 'element-plus/es/components/base/style/css';
|
|
4
|
+
import 'element-plus/es/components/tooltip/style/css';
|
|
5
5
|
import { defineComponent, ref, useTemplateRef, computed, watch, onMounted, nextTick, createElementBlock, openBlock, normalizeStyle, normalizeClass, unref, createBlock, createCommentVNode, withCtx, createElementVNode, renderSlot, createTextVNode, toDisplayString } from 'vue';
|
|
6
6
|
import { _ as _export_sfc } from '../../chunk/pcqpp-6-.mjs';
|
|
7
7
|
|
|
@@ -2,9 +2,41 @@ import './index.css'
|
|
|
2
2
|
import { defineComponent, useTemplateRef, computed, ref, watch, nextTick, withDirectives, createCommentVNode, unref, createBlock, openBlock, mergeProps, isRef, createSlots, withCtx, renderSlot } from 'vue';
|
|
3
3
|
import { t as thousand } from '../../chunk/Mq_fqKb4.mjs';
|
|
4
4
|
import { C as Component$1 } from '../input/input.mjs';
|
|
5
|
-
import {
|
|
5
|
+
import { b as baseIsEqual } from '../../chunk/uuUHUjSk.mjs';
|
|
6
6
|
import { _ as _export_sfc } from '../../chunk/pcqpp-6-.mjs';
|
|
7
7
|
|
|
8
|
+
/**
|
|
9
|
+
* Performs a deep comparison between two values to determine if they are
|
|
10
|
+
* equivalent.
|
|
11
|
+
*
|
|
12
|
+
* **Note:** This method supports comparing arrays, array buffers, booleans,
|
|
13
|
+
* date objects, error objects, maps, numbers, `Object` objects, regexes,
|
|
14
|
+
* sets, strings, symbols, and typed arrays. `Object` objects are compared
|
|
15
|
+
* by their own, not inherited, enumerable properties. Functions and DOM
|
|
16
|
+
* nodes are compared by strict equality, i.e. `===`.
|
|
17
|
+
*
|
|
18
|
+
* @static
|
|
19
|
+
* @memberOf _
|
|
20
|
+
* @since 0.1.0
|
|
21
|
+
* @category Lang
|
|
22
|
+
* @param {*} value The value to compare.
|
|
23
|
+
* @param {*} other The other value to compare.
|
|
24
|
+
* @returns {boolean} Returns `true` if the values are equivalent, else `false`.
|
|
25
|
+
* @example
|
|
26
|
+
*
|
|
27
|
+
* var object = { 'a': 1 };
|
|
28
|
+
* var other = { 'a': 1 };
|
|
29
|
+
*
|
|
30
|
+
* _.isEqual(object, other);
|
|
31
|
+
* // => true
|
|
32
|
+
*
|
|
33
|
+
* object === other;
|
|
34
|
+
* // => false
|
|
35
|
+
*/
|
|
36
|
+
function isEqual(value, other) {
|
|
37
|
+
return baseIsEqual(value, other);
|
|
38
|
+
}
|
|
39
|
+
|
|
8
40
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
41
|
__name: "thousand-input",
|
|
10
42
|
props: {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import './index.css'
|
|
2
|
-
import '
|
|
3
|
-
import
|
|
2
|
+
import { ElLoadingDirective } from 'element-plus/es';
|
|
3
|
+
import 'element-plus/es/components/base/style/css';
|
|
4
|
+
import 'element-plus/es/components/loading/style/css';
|
|
4
5
|
import { defineComponent, useCssVars, shallowRef, ref, computed, watch, onMounted, onBeforeUnmount, withDirectives, createElementBlock, openBlock, normalizeClass, createElementVNode, unref } from 'vue';
|
|
5
6
|
import { useDark } from '@vueuse/core';
|
|
6
7
|
import { i as index } from '../../chunk/BaJ7k5Lg.mjs';
|
|
@@ -172,7 +173,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
172
173
|
}
|
|
173
174
|
__expose({ setContent, getContent });
|
|
174
175
|
return (_ctx, _cache) => {
|
|
175
|
-
const _directive_loading =
|
|
176
|
+
const _directive_loading = ElLoadingDirective;
|
|
176
177
|
return withDirectives((openBlock(), createElementBlock("div", {
|
|
177
178
|
class: normalizeClass(_ctx.$style.tinymce)
|
|
178
179
|
}, [
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import './index.css'
|
|
2
|
-
import '
|
|
3
|
-
import '
|
|
4
|
-
|
|
2
|
+
import { ElPopover } from 'element-plus/es';
|
|
3
|
+
import 'element-plus/es/components/base/style/css';
|
|
4
|
+
import 'element-plus/es/components/popover/style/css';
|
|
5
5
|
import { defineComponent, useCssVars, unref, computed, useCssModule, useTemplateRef, createBlock, openBlock, withCtx, createElementVNode, normalizeClass, createVNode, isRef, mergeProps } from 'vue';
|
|
6
6
|
import { useFormDisabled } from 'element-plus';
|
|
7
7
|
import { f as formatToPx } from '../../chunk/DZ5W9TaA.mjs';
|
|
8
8
|
import { C as Component$2 } from '../select/select.mjs';
|
|
9
9
|
import { C as Component$1 } from '../transfer-panel/transfer-panel.mjs';
|
|
10
10
|
import { useVModel, useToggle, useThrottleFn, onClickOutside } from '@vueuse/core';
|
|
11
|
-
import { E as ElPopover } from '../../chunk/Da199A5L.mjs';
|
|
12
11
|
import { _ as _export_sfc } from '../../chunk/pcqpp-6-.mjs';
|
|
13
12
|
|
|
14
13
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import './index.css'
|
|
2
2
|
import { defineComponent, useCssVars, ref, computed, createElementBlock, openBlock, normalizeClass, createVNode, createElementVNode, unref, withKeys, isRef, withCtx, createBlock, createTextVNode, toDisplayString, Fragment, renderList, createCommentVNode, renderSlot } from 'vue';
|
|
3
3
|
import { useFormDisabled } from 'element-plus';
|
|
4
|
-
import '
|
|
5
|
-
import
|
|
6
|
-
import
|
|
4
|
+
import { ElInput, ElText } from 'element-plus/es';
|
|
5
|
+
import 'element-plus/es/components/base/style/css';
|
|
6
|
+
import 'element-plus/es/components/input/style/css';
|
|
7
|
+
import 'element-plus/es/components/text/style/css';
|
|
7
8
|
import { Search } from '@element-plus/icons-vue';
|
|
8
9
|
import { C as Component$3 } from '../button/button.mjs';
|
|
9
10
|
import { C as Component$2 } from '../iconify-icon/iconify-icon.mjs';
|
|
10
11
|
import { C as Component$1 } from '../scrollbar/scrollbar.mjs';
|
|
11
12
|
import { useVModel } from '@vueuse/core';
|
|
12
|
-
import { d as debounce } from '../../chunk/
|
|
13
|
+
import { d as debounce } from '../../chunk/CzWfBa_8.mjs';
|
|
13
14
|
import { _ as _export_sfc } from '../../chunk/pcqpp-6-.mjs';
|
|
14
15
|
|
|
15
16
|
const _hoisted_1 = ["onClick"];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* source: src/components/tree-picker/components/popover-cascader.vue */
|
|
2
|
-
.
|
|
2
|
+
._selected_1r65k_1 {
|
|
3
3
|
box-sizing: border-box;
|
|
4
4
|
flex: 1 1 180px;
|
|
5
5
|
min-width: 180px;
|
|
@@ -1,19 +1,14 @@
|
|
|
1
1
|
import './index.css'
|
|
2
2
|
import './popover-cascader.css'
|
|
3
|
-
import '
|
|
4
|
-
import '
|
|
5
|
-
|
|
6
|
-
import
|
|
7
|
-
import '../../chunk/DX-2VRY2.mjs';
|
|
8
|
-
/* empty css */
|
|
9
|
-
import '../../chunk/NsldgdCh.mjs';
|
|
10
|
-
import '../../chunk/CCVL_Zj-.mjs';
|
|
11
|
-
import '../../chunk/CjLR27-a.mjs';
|
|
3
|
+
import { ElPopover, ElCascader } from 'element-plus/es';
|
|
4
|
+
import 'element-plus/es/components/base/style/css';
|
|
5
|
+
import 'element-plus/es/components/popover/style/css';
|
|
6
|
+
import 'element-plus/es/components/cascader/style/css';
|
|
12
7
|
import { defineComponent, useCssVars, unref, computed, useCssModule, useTemplateRef, ref, createBlock, openBlock, withCtx, createElementVNode, normalizeClass, createVNode, mergeProps, isRef, createTextVNode, toDisplayString, nextTick } from 'vue';
|
|
13
8
|
import { useFormDisabled, useFormItem } from 'element-plus';
|
|
14
9
|
import { f as formatToPx } from '../../chunk/DZ5W9TaA.mjs';
|
|
10
|
+
import { P as PopoverCascader } from '../../chunk/Bw0Rhd-r.mjs';
|
|
15
11
|
import { useVModel, useToggle, useThrottleFn, onClickOutside } from '@vueuse/core';
|
|
16
|
-
import { E as ElPopover } from '../../chunk/Da199A5L.mjs';
|
|
17
12
|
import { _ as _export_sfc } from '../../chunk/pcqpp-6-.mjs';
|
|
18
13
|
|
|
19
14
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|