@wfrog/vc-ui 1.3.1 → 1.4.0
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/{CCmEeM7D.mjs → B3GxuXVE.mjs} +6 -6
- package/dist/es/chunk/BL8WhaLp.mjs +427 -0
- package/dist/es/chunk/{BiHWk71g.mjs → BPqrpkTb.mjs} +4 -4
- package/dist/es/chunk/{C_7t9blX.mjs → BZ1uhZQF.mjs} +1 -1
- package/dist/es/chunk/{-ga82G_B.mjs → BdVq9mV6.mjs} +1 -1
- package/dist/es/chunk/{DGGhWn1A.mjs → BfjuZmry.mjs} +6 -5
- package/dist/es/chunk/{BLLKi_0v.mjs → Bu3XHP55.mjs} +1 -1
- package/dist/es/chunk/{DEiqPcuO.mjs → BvNFaD5d.mjs} +3 -3
- package/dist/es/chunk/BxibBO68.mjs +5741 -0
- package/dist/es/chunk/{DO-mBaf5.mjs → By7FMB3I.mjs} +1 -43
- package/dist/es/chunk/{DATKTbFj.mjs → CGhekNBa.mjs} +5 -5
- package/dist/es/chunk/{plK2vnjp.mjs → CJ0afvkJ.mjs} +1 -1
- package/dist/es/chunk/{CtYp4FB7.mjs → CK5Bluh4.mjs} +2 -2
- package/dist/es/chunk/{Vv8g5_A1.mjs → CKZGL4_3.mjs} +9 -8
- package/dist/es/chunk/CNEMJL35.mjs +69 -0
- package/dist/es/chunk/{C9ldJ8Hh.mjs → CPCieLBG.mjs} +1 -1
- package/dist/es/chunk/{C50_dziC.mjs → CQz3lhyS.mjs} +2 -1
- package/dist/es/chunk/{Cekqdlxf.mjs → CbYM6R_O.mjs} +12 -77
- package/dist/es/chunk/{CQbpo0im.mjs → CboHfRXN.mjs} +5 -6
- package/dist/es/chunk/{BambM7zX.mjs → Cdh3HNZa.mjs} +2 -2
- package/dist/es/chunk/{aX4SRHmD.mjs → Cg-Krnly.mjs} +2 -1
- package/dist/es/chunk/{9qQNa4bM.mjs → Cjp0Czyu.mjs} +1 -1
- package/dist/es/chunk/Cmb_E8Ip.mjs +184 -0
- package/dist/es/chunk/{BIK5Djc_.mjs → Co77DVCw.mjs} +2 -2
- package/dist/es/chunk/CqTa_Vd-.mjs +375 -0
- package/dist/es/{components/dual-pane/dual-pane.mjs → chunk/CsjEhAYY.mjs} +11 -91
- package/dist/es/chunk/{BQyZW57B.mjs → CwXV7M2F.mjs} +3 -3
- package/dist/es/chunk/{b9dx0jdT.mjs → D1MHFKtN.mjs} +3 -3
- package/dist/es/chunk/{DskGUrkJ.mjs → D6m3vWpc.mjs} +2 -1
- package/dist/es/chunk/{4F1xxyju.mjs → D6nWUATi.mjs} +48 -2117
- package/dist/es/chunk/{C6bIuBQg.mjs → D7CQDxqy.mjs} +3 -3
- package/dist/es/chunk/{Dqk3gyUk.mjs → D9Lr0Bzb.mjs} +1 -374
- package/dist/es/chunk/{Xk5kfdyT.mjs → DAIuzoFs.mjs} +2 -1
- package/dist/es/chunk/{OVbHCQoq.mjs → DCS0eqqM.mjs} +3 -101
- package/dist/es/chunk/{BJTCqgn1.mjs → DDR6UjaC.mjs} +1 -1
- package/dist/es/chunk/{BKmk2ptO.mjs → DNsAO9iB.mjs} +2 -2
- package/dist/es/chunk/{-_x5oKYF.mjs → DQK0ezHm.mjs} +5 -4
- package/dist/es/chunk/{BQHHM_Gw.mjs → DQi1QPak.mjs} +30 -70
- package/dist/es/chunk/{BaqDgAvL.mjs → DSt2uDNE.mjs} +22 -434
- package/dist/es/chunk/DSw4GnC6.mjs +44 -0
- package/dist/es/chunk/DTbnchOm.mjs +94 -0
- package/dist/es/chunk/DViraU6I.mjs +45 -0
- package/dist/es/chunk/{C540ZOUa.mjs → DX84QR5M.mjs} +10 -9
- package/dist/es/chunk/DYKOYbzT.mjs +2003 -0
- package/dist/es/chunk/{D1PKXAql.mjs → D_F7nIja.mjs} +3 -4
- package/dist/es/chunk/{DcTh6n4x.mjs → D_Mvdscy.mjs} +5 -4
- package/dist/es/chunk/DhGOsWxx.mjs +6 -0
- package/dist/es/chunk/{DFxeI_lP.mjs → DhGcJR5p.mjs} +6 -6
- package/dist/es/chunk/DxxbB5jY.mjs +34 -0
- package/dist/es/chunk/EMeQxUfH.mjs +49 -0
- package/dist/es/chunk/{eN6VJ63C.mjs → F2ph6lWu.mjs} +9 -8
- package/dist/es/chunk/{Dn-BFXcJ.mjs → dN0VcQc2.mjs} +1 -1
- package/dist/es/chunk/{DTpr71Gd.mjs → e5i7OJY-.mjs} +4 -4
- package/dist/es/chunk/fueZ9sVu.mjs +890 -0
- package/dist/es/chunk/{CV2NA_2e.mjs → ipA7n6-J.mjs} +1 -1
- package/dist/es/chunk/{Dw-yyl2m.mjs → q2jRgbir.mjs} +2 -2
- package/dist/es/chunk/{C72pWnuz.mjs → w7VqVeWU.mjs} +5 -4
- package/dist/es/chunk/{DWcIzeMM.mjs → ytiKcA3H.mjs} +108 -10
- package/dist/es/chunk/{DFHjl3eL.mjs → yuIXvUxc.mjs} +1 -1
- package/dist/es/components/backbottom/backbottom.mjs +2 -2
- package/dist/es/components/button/button.d.ts +2 -1
- package/dist/es/components/button/button.mjs +68 -17
- package/dist/es/components/button/button.vue.d.ts +4 -1
- package/dist/es/components/choice/choice.mjs +3 -2
- package/dist/es/components/color-switcher/color-switcher.d.ts +15 -0
- package/dist/es/components/color-switcher/color-switcher.mjs +1215 -0
- package/dist/es/components/color-switcher/color-switcher.vue.d.ts +122 -0
- package/dist/es/components/color-switcher/index.css +5 -0
- package/dist/es/components/color-switcher/index.d.ts +4 -0
- package/dist/es/components/color-switcher/index.mjs +6 -0
- package/dist/es/components/cropper/cropper.mjs +12 -11
- package/dist/es/components/cropper/cropper.vue.d.ts +2 -2
- package/dist/es/components/currency/currency.mjs +7 -7
- package/dist/es/components/dark-switcher/dark-switcher.d.ts +10 -0
- package/dist/es/components/dark-switcher/dark-switcher.mjs +87 -0
- package/dist/es/components/dark-switcher/dark-switcher.vue.d.ts +12 -0
- package/dist/es/components/dark-switcher/index.css +11 -0
- package/dist/es/components/dark-switcher/index.d.ts +4 -0
- package/dist/es/components/dark-switcher/index.mjs +6 -0
- package/dist/es/components/daterange-picker/daterange-picker.mjs +21 -20
- package/dist/es/components/dialog/dialog.d.ts +1 -1
- package/dist/es/components/dialog/dialog.mjs +46 -61
- package/dist/es/components/dialog/dialog.vue.d.ts +1 -3
- package/dist/es/components/dialog/index.css +31 -32
- package/dist/es/components/dialog-camera-upload/dialog-camera-upload.mjs +12 -12
- package/dist/es/components/dialog-map-point/dialog-map-point.mjs +5 -5
- package/dist/es/components/dialog-upload-images/dialog-upload-images.mjs +14 -13
- package/dist/es/components/drag-verify/drag-verify.mjs +14 -14
- package/dist/es/components/drag-verify/index.css +11 -11
- package/dist/es/components/drawer/drawer.mjs +14 -14
- package/dist/es/components/drawer/index.css +16 -15
- package/dist/es/components/easy-pagination/easy-pagination.mjs +4 -4
- package/dist/es/components/el-icon/el-icon.mjs +2 -2
- package/dist/es/components/explorer/docs/data.d.ts +13 -0
- package/dist/es/components/explorer/explorer.d.ts +12 -0
- package/dist/es/components/explorer/explorer.mjs +64 -0
- package/dist/es/components/explorer/explorer.vue.d.ts +183 -0
- package/dist/es/components/explorer/explorer2.mjs +6 -0
- package/dist/es/components/explorer/index.css +14 -0
- package/dist/es/components/explorer/index.d.ts +4 -0
- package/dist/es/components/explorer/index.mjs +6 -0
- package/dist/es/components/explorer-column-table/explorer-column-table.d.ts +23 -0
- package/dist/es/components/explorer-column-table/explorer-column-table.mjs +2948 -0
- package/dist/es/components/explorer-column-table/explorer-column-table.vue.d.ts +1486 -0
- package/dist/es/components/explorer-column-table/index.css +49 -0
- package/dist/es/components/explorer-column-table/index.d.ts +4 -0
- package/dist/es/components/explorer-column-table/index.mjs +6 -0
- package/dist/es/components/explorer-filter/explorer-filter.d.ts +12 -0
- package/dist/es/components/explorer-filter/explorer-filter.mjs +81 -0
- package/dist/es/components/explorer-filter/explorer-filter.vue.d.ts +14 -0
- package/dist/es/components/explorer-filter/index.css +7 -0
- package/dist/es/components/explorer-filter/index.d.ts +4 -0
- package/dist/es/components/explorer-filter/index.mjs +6 -0
- package/dist/es/components/explorer-footer/explorer-footer.d.ts +5 -0
- package/dist/es/components/explorer-footer/explorer-footer.mjs +92 -0
- package/dist/es/components/explorer-footer/explorer-footer.vue.d.ts +21 -0
- package/dist/es/components/explorer-footer/index.css +7 -0
- package/dist/es/components/explorer-footer/index.d.ts +4 -0
- package/dist/es/components/explorer-footer/index.mjs +6 -0
- package/dist/es/components/explorer-list/explorer-list.d.ts +23 -0
- package/dist/es/components/explorer-list/explorer-list.mjs +157 -0
- package/dist/es/components/explorer-list/explorer-list.vue.d.ts +38 -0
- package/dist/es/components/explorer-list/index.css +47 -0
- package/dist/es/components/explorer-list/index.d.ts +4 -0
- package/dist/es/components/explorer-list/index.mjs +6 -0
- package/dist/es/components/explorer-panel/explorer-panel.d.ts +14 -0
- package/dist/es/components/explorer-panel/explorer-panel.mjs +77 -0
- package/dist/es/components/explorer-panel/explorer-panel.vue.d.ts +253 -0
- package/dist/es/components/explorer-panel/explorer-panel2.mjs +6 -0
- package/dist/es/components/explorer-panel/index.css +12 -0
- package/dist/es/components/explorer-panel/index.d.ts +4 -0
- package/dist/es/components/explorer-panel/index.mjs +6 -0
- package/dist/es/components/explorer-query/explorer-query.d.ts +11 -0
- package/dist/es/components/explorer-query/explorer-query.mjs +2376 -0
- package/dist/es/components/explorer-query/explorer-query.vue.d.ts +396 -0
- package/dist/es/components/explorer-query/index.css +36 -0
- package/dist/es/components/explorer-query/index.d.ts +4 -0
- package/dist/es/components/explorer-query/index.mjs +6 -0
- package/dist/es/components/explorer-table/explorer-table.d.ts +11 -0
- package/dist/es/components/explorer-table/explorer-table.mjs +116 -0
- package/dist/es/components/explorer-table/explorer-table.vue.d.ts +25 -0
- package/dist/es/components/explorer-table/index.css +18 -0
- package/dist/es/components/explorer-table/index.d.ts +4 -0
- package/dist/es/components/explorer-table/index.mjs +6 -0
- package/dist/es/components/explorer-tools/components/column-setter.vue.d.ts +3028 -0
- package/dist/es/components/explorer-tools/explorer-tools.d.ts +35 -0
- package/dist/es/components/explorer-tools/explorer-tools.mjs +585 -0
- package/dist/es/components/explorer-tools/explorer-tools.vue.d.ts +43 -0
- package/dist/es/components/explorer-tools/index.css +60 -0
- package/dist/es/components/explorer-tools/index.d.ts +4 -0
- package/dist/es/components/explorer-tools/index.mjs +6 -0
- package/dist/es/components/explorer-tree/explorer-tree.d.ts +22 -0
- package/dist/es/components/explorer-tree/explorer-tree.mjs +174 -0
- package/dist/es/components/explorer-tree/explorer-tree.vue.d.ts +2055 -0
- package/dist/es/components/explorer-tree/index.css +55 -0
- package/dist/es/components/explorer-tree/index.d.ts +4 -0
- package/dist/es/components/explorer-tree/index.mjs +6 -0
- package/dist/es/components/icon/icon2.mjs +2 -2
- package/dist/es/components/icon-picker/components/collections.vue.d.ts +242 -196
- package/dist/es/components/icon-picker/icon-picker.mjs +38 -921
- package/dist/es/components/icon-picker/index.css +31 -29
- package/dist/es/components/iconify-icon/iconify-icon.mjs +2 -2
- package/dist/es/components/image/image.mjs +5 -5
- package/dist/es/components/image/image.vue.d.ts +7 -7
- package/dist/es/components/input/index.css +4 -5
- package/dist/es/components/input/input.mjs +7 -7
- package/dist/es/components/input/input.vue.d.ts +3 -3
- package/dist/es/components/input-number/input-number.mjs +5 -5
- package/dist/es/components/pca-picker/components/c.vue.d.ts +3 -3
- package/dist/es/components/pca-picker/index.css +4 -4
- package/dist/es/components/pca-picker/pca-picker.mjs +21 -209
- package/dist/es/components/pca-picker/pca-picker.vue.d.ts +10 -10
- package/dist/es/components/screenfull/screenfull.mjs +4 -4
- package/dist/es/components/scrollbar/index.css +6 -5
- package/dist/es/components/scrollbar/scrollbar.d.ts +2 -0
- package/dist/es/components/scrollbar/scrollbar.mjs +17 -12
- package/dist/es/components/scrollbar/scrollbar.vue.d.ts +156 -134
- package/dist/es/components/select/select.mjs +7 -7
- package/dist/es/components/single-player/index.css +11 -11
- package/dist/es/components/single-player/single-player.mjs +20 -19
- package/dist/es/components/splitter/index.d.ts +4 -0
- package/dist/es/components/splitter/index.mjs +6 -0
- package/dist/es/components/splitter/splitter.d.ts +4 -0
- package/dist/es/components/splitter/splitter.mjs +28 -0
- package/dist/es/components/{dual-pane/dual-pane.vue.d.ts → splitter/splitter.vue.d.ts} +3 -5
- package/dist/es/components/splitter-panel/index.css +5 -0
- package/dist/es/components/splitter-panel/index.d.ts +4 -0
- package/dist/es/components/splitter-panel/index.mjs +6 -0
- package/dist/es/components/splitter-panel/splitter-panel.d.ts +3 -0
- package/dist/es/components/splitter-panel/splitter-panel.mjs +49 -0
- package/dist/es/components/splitter-panel/splitter-panel.vue.d.ts +20 -0
- package/dist/es/components/svg-icon/svg-icon.mjs +2 -2
- package/dist/es/components/switch/switch.mjs +2 -2
- package/dist/es/components/sync-scroll-container/sync-scroll-container.mjs +2 -2
- package/dist/es/components/tags/tags.mjs +12 -11
- package/dist/es/components/text-ellipsis/text-ellipsis.mjs +4 -4
- package/dist/es/components/text-ellipsis/text-ellipsis.vue.d.ts +1 -1
- package/dist/es/components/thousand-input/thousand-input.mjs +3 -3
- package/dist/es/components/thousand-input/thousand-input.vue.d.ts +8 -8
- package/dist/es/components/tinymce/index.css +1 -1
- package/dist/es/components/tinymce/tinymce.d.ts +1 -0
- package/dist/es/components/tinymce/tinymce.mjs +20 -11
- package/dist/es/components/tinymce/tinymce.vue.d.ts +1 -0
- package/dist/es/components/tree-picker/popover-cascader.css +1 -1
- package/dist/es/components/tree-picker/tree-picker.mjs +11 -10
- package/dist/es/components/tree-picker/tree-picker.vue.d.ts +10 -10
- package/dist/es/components/upload-file/upload-file.mjs +2 -2
- package/dist/es/index.d.ts +14 -1
- package/dist/es/index.mjs +69 -39
- package/dist/es/use/usePersistentModel/index.d.ts +4 -0
- package/dist/es/use/usePersistentModel/index.mjs +19 -0
- package/dist/global.d.ts +14 -1
- package/dist/index.css +450 -123
- package/package.json +4 -1
- package/dist/es/chunk/DVNTpOBR.mjs +0 -4
- package/dist/es/components/dual-pane/dual-pane.d.ts +0 -8
- package/dist/es/components/dual-pane/index.css +0 -8
- package/dist/es/components/dual-pane/index.d.ts +0 -4
- package/dist/es/components/dual-pane/index.mjs +0 -6
|
@@ -0,0 +1,375 @@
|
|
|
1
|
+
import { computed, inject, ref, useSlots, Text, defineComponent, createBlock, openBlock, resolveDynamicComponent, mergeProps, unref, withCtx, createElementBlock, createCommentVNode, Fragment, renderSlot, normalizeClass, provide, reactive, toRef } from 'vue';
|
|
2
|
+
import { E as ElIcon } from './D1MHFKtN.mjs';
|
|
3
|
+
import { u as useDeprecated } from './yuIXvUxc.mjs';
|
|
4
|
+
import { u as useGlobalConfig } from './B3GxuXVE.mjs';
|
|
5
|
+
import { u as useFormItem, c as useFormSize, a as useFormDisabled } from './BvNFaD5d.mjs';
|
|
6
|
+
import { Loading } from '@element-plus/icons-vue';
|
|
7
|
+
import { b as buildProps, d as definePropType, u as useNamespace } from './By7FMB3I.mjs';
|
|
8
|
+
import { u as useSizeProp } from './CPCieLBG.mjs';
|
|
9
|
+
import { i as iconPropType } from '../components/icon/icon2.mjs';
|
|
10
|
+
import { T as TinyColor } from './D9Lr0Bzb.mjs';
|
|
11
|
+
import { _ as _export_sfc, w as withInstall, a as withNoopInstall } from './dN0VcQc2.mjs';
|
|
12
|
+
|
|
13
|
+
const buttonGroupContextKey = Symbol(
|
|
14
|
+
"buttonGroupContextKey"
|
|
15
|
+
);
|
|
16
|
+
|
|
17
|
+
const useButton = (props, emit) => {
|
|
18
|
+
useDeprecated(
|
|
19
|
+
{
|
|
20
|
+
from: "type.text",
|
|
21
|
+
replacement: "link",
|
|
22
|
+
version: "3.0.0",
|
|
23
|
+
scope: "props",
|
|
24
|
+
ref: "https://element-plus.org/en-US/component/button.html#button-attributes"
|
|
25
|
+
},
|
|
26
|
+
computed(() => props.type === "text")
|
|
27
|
+
);
|
|
28
|
+
const buttonGroupContext = inject(buttonGroupContextKey, void 0);
|
|
29
|
+
const globalConfig = useGlobalConfig("button");
|
|
30
|
+
const { form } = useFormItem();
|
|
31
|
+
const _size = useFormSize(computed(() => buttonGroupContext == null ? void 0 : buttonGroupContext.size));
|
|
32
|
+
const _disabled = useFormDisabled();
|
|
33
|
+
const _ref = ref();
|
|
34
|
+
const slots = useSlots();
|
|
35
|
+
const _type = computed(
|
|
36
|
+
() => {
|
|
37
|
+
var _a;
|
|
38
|
+
return props.type || (buttonGroupContext == null ? void 0 : buttonGroupContext.type) || ((_a = globalConfig.value) == null ? void 0 : _a.type) || "";
|
|
39
|
+
}
|
|
40
|
+
);
|
|
41
|
+
const autoInsertSpace = computed(
|
|
42
|
+
() => {
|
|
43
|
+
var _a, _b, _c;
|
|
44
|
+
return (_c = (_b = props.autoInsertSpace) != null ? _b : (_a = globalConfig.value) == null ? void 0 : _a.autoInsertSpace) != null ? _c : false;
|
|
45
|
+
}
|
|
46
|
+
);
|
|
47
|
+
const _plain = computed(
|
|
48
|
+
() => {
|
|
49
|
+
var _a, _b, _c;
|
|
50
|
+
return (_c = (_b = props.plain) != null ? _b : (_a = globalConfig.value) == null ? void 0 : _a.plain) != null ? _c : false;
|
|
51
|
+
}
|
|
52
|
+
);
|
|
53
|
+
const _round = computed(
|
|
54
|
+
() => {
|
|
55
|
+
var _a, _b, _c;
|
|
56
|
+
return (_c = (_b = props.round) != null ? _b : (_a = globalConfig.value) == null ? void 0 : _a.round) != null ? _c : false;
|
|
57
|
+
}
|
|
58
|
+
);
|
|
59
|
+
const _text = computed(() => {
|
|
60
|
+
var _a, _b, _c;
|
|
61
|
+
return (_c = (_b = props.text) != null ? _b : (_a = globalConfig.value) == null ? void 0 : _a.text) != null ? _c : false;
|
|
62
|
+
});
|
|
63
|
+
const _props = computed(() => {
|
|
64
|
+
if (props.tag === "button") {
|
|
65
|
+
return {
|
|
66
|
+
ariaDisabled: _disabled.value || props.loading,
|
|
67
|
+
disabled: _disabled.value || props.loading,
|
|
68
|
+
autofocus: props.autofocus,
|
|
69
|
+
type: props.nativeType
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
return {};
|
|
73
|
+
});
|
|
74
|
+
const shouldAddSpace = computed(() => {
|
|
75
|
+
var _a;
|
|
76
|
+
const defaultSlot = (_a = slots.default) == null ? void 0 : _a.call(slots);
|
|
77
|
+
if (autoInsertSpace.value && (defaultSlot == null ? void 0 : defaultSlot.length) === 1) {
|
|
78
|
+
const slot = defaultSlot[0];
|
|
79
|
+
if ((slot == null ? void 0 : slot.type) === Text) {
|
|
80
|
+
const text = slot.children;
|
|
81
|
+
return /^\p{Unified_Ideograph}{2}$/u.test(text.trim());
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
return false;
|
|
85
|
+
});
|
|
86
|
+
const handleClick = (evt) => {
|
|
87
|
+
if (_disabled.value || props.loading) {
|
|
88
|
+
evt.stopPropagation();
|
|
89
|
+
return;
|
|
90
|
+
}
|
|
91
|
+
if (props.nativeType === "reset") {
|
|
92
|
+
form == null ? void 0 : form.resetFields();
|
|
93
|
+
}
|
|
94
|
+
emit("click", evt);
|
|
95
|
+
};
|
|
96
|
+
return {
|
|
97
|
+
_disabled,
|
|
98
|
+
_size,
|
|
99
|
+
_type,
|
|
100
|
+
_ref,
|
|
101
|
+
_props,
|
|
102
|
+
_plain,
|
|
103
|
+
_round,
|
|
104
|
+
_text,
|
|
105
|
+
shouldAddSpace,
|
|
106
|
+
handleClick
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
const buttonTypes = [
|
|
111
|
+
"default",
|
|
112
|
+
"primary",
|
|
113
|
+
"success",
|
|
114
|
+
"warning",
|
|
115
|
+
"info",
|
|
116
|
+
"danger",
|
|
117
|
+
"text",
|
|
118
|
+
""
|
|
119
|
+
];
|
|
120
|
+
const buttonNativeTypes = ["button", "submit", "reset"];
|
|
121
|
+
const buttonProps = buildProps({
|
|
122
|
+
size: useSizeProp,
|
|
123
|
+
disabled: {
|
|
124
|
+
type: Boolean,
|
|
125
|
+
default: void 0
|
|
126
|
+
},
|
|
127
|
+
type: {
|
|
128
|
+
type: String,
|
|
129
|
+
values: buttonTypes,
|
|
130
|
+
default: ""
|
|
131
|
+
},
|
|
132
|
+
icon: {
|
|
133
|
+
type: iconPropType
|
|
134
|
+
},
|
|
135
|
+
nativeType: {
|
|
136
|
+
type: String,
|
|
137
|
+
values: buttonNativeTypes,
|
|
138
|
+
default: "button"
|
|
139
|
+
},
|
|
140
|
+
loading: Boolean,
|
|
141
|
+
loadingIcon: {
|
|
142
|
+
type: iconPropType,
|
|
143
|
+
default: () => Loading
|
|
144
|
+
},
|
|
145
|
+
plain: {
|
|
146
|
+
type: Boolean,
|
|
147
|
+
default: void 0
|
|
148
|
+
},
|
|
149
|
+
text: {
|
|
150
|
+
type: Boolean,
|
|
151
|
+
default: void 0
|
|
152
|
+
},
|
|
153
|
+
link: Boolean,
|
|
154
|
+
bg: Boolean,
|
|
155
|
+
autofocus: Boolean,
|
|
156
|
+
round: {
|
|
157
|
+
type: Boolean,
|
|
158
|
+
default: void 0
|
|
159
|
+
},
|
|
160
|
+
circle: Boolean,
|
|
161
|
+
color: String,
|
|
162
|
+
dark: Boolean,
|
|
163
|
+
autoInsertSpace: {
|
|
164
|
+
type: Boolean,
|
|
165
|
+
default: void 0
|
|
166
|
+
},
|
|
167
|
+
tag: {
|
|
168
|
+
type: definePropType([String, Object]),
|
|
169
|
+
default: "button"
|
|
170
|
+
}
|
|
171
|
+
});
|
|
172
|
+
const buttonEmits = {
|
|
173
|
+
click: (evt) => evt instanceof MouseEvent
|
|
174
|
+
};
|
|
175
|
+
|
|
176
|
+
function darken(color, amount = 20) {
|
|
177
|
+
return color.mix("#141414", amount).toString();
|
|
178
|
+
}
|
|
179
|
+
function useButtonCustomStyle(props) {
|
|
180
|
+
const _disabled = useFormDisabled();
|
|
181
|
+
const ns = useNamespace("button");
|
|
182
|
+
return computed(() => {
|
|
183
|
+
let styles = {};
|
|
184
|
+
let buttonColor = props.color;
|
|
185
|
+
if (buttonColor) {
|
|
186
|
+
const match = buttonColor.match(/var\((.*?)\)/);
|
|
187
|
+
if (match) {
|
|
188
|
+
buttonColor = window.getComputedStyle(window.document.documentElement).getPropertyValue(match[1]);
|
|
189
|
+
}
|
|
190
|
+
const color = new TinyColor(buttonColor);
|
|
191
|
+
const activeBgColor = props.dark ? color.tint(20).toString() : darken(color, 20);
|
|
192
|
+
if (props.plain) {
|
|
193
|
+
styles = ns.cssVarBlock({
|
|
194
|
+
"bg-color": props.dark ? darken(color, 90) : color.tint(90).toString(),
|
|
195
|
+
"text-color": buttonColor,
|
|
196
|
+
"border-color": props.dark ? darken(color, 50) : color.tint(50).toString(),
|
|
197
|
+
"hover-text-color": `var(${ns.cssVarName("color-white")})`,
|
|
198
|
+
"hover-bg-color": buttonColor,
|
|
199
|
+
"hover-border-color": buttonColor,
|
|
200
|
+
"active-bg-color": activeBgColor,
|
|
201
|
+
"active-text-color": `var(${ns.cssVarName("color-white")})`,
|
|
202
|
+
"active-border-color": activeBgColor
|
|
203
|
+
});
|
|
204
|
+
if (_disabled.value) {
|
|
205
|
+
styles[ns.cssVarBlockName("disabled-bg-color")] = props.dark ? darken(color, 90) : color.tint(90).toString();
|
|
206
|
+
styles[ns.cssVarBlockName("disabled-text-color")] = props.dark ? darken(color, 50) : color.tint(50).toString();
|
|
207
|
+
styles[ns.cssVarBlockName("disabled-border-color")] = props.dark ? darken(color, 80) : color.tint(80).toString();
|
|
208
|
+
}
|
|
209
|
+
} else {
|
|
210
|
+
const hoverBgColor = props.dark ? darken(color, 30) : color.tint(30).toString();
|
|
211
|
+
const textColor = color.isDark() ? `var(${ns.cssVarName("color-white")})` : `var(${ns.cssVarName("color-black")})`;
|
|
212
|
+
styles = ns.cssVarBlock({
|
|
213
|
+
"bg-color": buttonColor,
|
|
214
|
+
"text-color": textColor,
|
|
215
|
+
"border-color": buttonColor,
|
|
216
|
+
"hover-bg-color": hoverBgColor,
|
|
217
|
+
"hover-text-color": textColor,
|
|
218
|
+
"hover-border-color": hoverBgColor,
|
|
219
|
+
"active-bg-color": activeBgColor,
|
|
220
|
+
"active-border-color": activeBgColor
|
|
221
|
+
});
|
|
222
|
+
if (_disabled.value) {
|
|
223
|
+
const disabledButtonColor = props.dark ? darken(color, 50) : color.tint(50).toString();
|
|
224
|
+
styles[ns.cssVarBlockName("disabled-bg-color")] = disabledButtonColor;
|
|
225
|
+
styles[ns.cssVarBlockName("disabled-text-color")] = props.dark ? "rgba(255, 255, 255, 0.5)" : `var(${ns.cssVarName("color-white")})`;
|
|
226
|
+
styles[ns.cssVarBlockName("disabled-border-color")] = disabledButtonColor;
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
return styles;
|
|
231
|
+
});
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
const _sfc_main$1 = defineComponent({
|
|
235
|
+
...{
|
|
236
|
+
name: "ElButton"
|
|
237
|
+
},
|
|
238
|
+
__name: "button",
|
|
239
|
+
props: buttonProps,
|
|
240
|
+
emits: buttonEmits,
|
|
241
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
242
|
+
const props = __props;
|
|
243
|
+
const emit = __emit;
|
|
244
|
+
const buttonStyle = useButtonCustomStyle(props);
|
|
245
|
+
const ns = useNamespace("button");
|
|
246
|
+
const {
|
|
247
|
+
_ref,
|
|
248
|
+
_size,
|
|
249
|
+
_type,
|
|
250
|
+
_disabled,
|
|
251
|
+
_props,
|
|
252
|
+
_plain,
|
|
253
|
+
_round,
|
|
254
|
+
_text,
|
|
255
|
+
shouldAddSpace,
|
|
256
|
+
handleClick
|
|
257
|
+
} = useButton(props, emit);
|
|
258
|
+
const buttonKls = computed(() => [
|
|
259
|
+
ns.b(),
|
|
260
|
+
ns.m(_type.value),
|
|
261
|
+
ns.m(_size.value),
|
|
262
|
+
ns.is("disabled", _disabled.value),
|
|
263
|
+
ns.is("loading", props.loading),
|
|
264
|
+
ns.is("plain", _plain.value),
|
|
265
|
+
ns.is("round", _round.value),
|
|
266
|
+
ns.is("circle", props.circle),
|
|
267
|
+
ns.is("text", _text.value),
|
|
268
|
+
ns.is("link", props.link),
|
|
269
|
+
ns.is("has-bg", props.bg)
|
|
270
|
+
]);
|
|
271
|
+
__expose({
|
|
272
|
+
ref: _ref,
|
|
273
|
+
size: _size,
|
|
274
|
+
type: _type,
|
|
275
|
+
disabled: _disabled,
|
|
276
|
+
shouldAddSpace
|
|
277
|
+
});
|
|
278
|
+
return (_ctx, _cache) => {
|
|
279
|
+
return openBlock(), createBlock(resolveDynamicComponent(_ctx.tag), mergeProps({
|
|
280
|
+
ref_key: "_ref",
|
|
281
|
+
ref: _ref
|
|
282
|
+
}, unref(_props), {
|
|
283
|
+
class: buttonKls.value,
|
|
284
|
+
style: unref(buttonStyle),
|
|
285
|
+
onClick: unref(handleClick)
|
|
286
|
+
}), {
|
|
287
|
+
default: withCtx(() => [
|
|
288
|
+
_ctx.loading ? (openBlock(), createElementBlock(
|
|
289
|
+
Fragment,
|
|
290
|
+
{ key: 0 },
|
|
291
|
+
[
|
|
292
|
+
_ctx.$slots.loading ? renderSlot(_ctx.$slots, "loading", { key: 0 }) : (openBlock(), createBlock(unref(ElIcon), {
|
|
293
|
+
key: 1,
|
|
294
|
+
class: normalizeClass(unref(ns).is("loading"))
|
|
295
|
+
}, {
|
|
296
|
+
default: withCtx(() => [
|
|
297
|
+
(openBlock(), createBlock(resolveDynamicComponent(_ctx.loadingIcon)))
|
|
298
|
+
]),
|
|
299
|
+
_: 1
|
|
300
|
+
}, 8, ["class"]))
|
|
301
|
+
],
|
|
302
|
+
64
|
|
303
|
+
)) : _ctx.icon || _ctx.$slots.icon ? (openBlock(), createBlock(unref(ElIcon), { key: 1 }, {
|
|
304
|
+
default: withCtx(() => [
|
|
305
|
+
_ctx.icon ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.icon), { key: 0 })) : renderSlot(_ctx.$slots, "icon", { key: 1 })
|
|
306
|
+
]),
|
|
307
|
+
_: 3
|
|
308
|
+
})) : createCommentVNode("v-if", true),
|
|
309
|
+
_ctx.$slots.default ? (openBlock(), createElementBlock(
|
|
310
|
+
"span",
|
|
311
|
+
{
|
|
312
|
+
key: 2,
|
|
313
|
+
class: normalizeClass({ [unref(ns).em("text", "expand")]: unref(shouldAddSpace) })
|
|
314
|
+
},
|
|
315
|
+
[
|
|
316
|
+
renderSlot(_ctx.$slots, "default")
|
|
317
|
+
],
|
|
318
|
+
2
|
|
319
|
+
)) : createCommentVNode("v-if", true)
|
|
320
|
+
]),
|
|
321
|
+
_: 3
|
|
322
|
+
}, 16, ["class", "style", "onClick"]);
|
|
323
|
+
};
|
|
324
|
+
}
|
|
325
|
+
});
|
|
326
|
+
var Button = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/button/src/button.vue"]]);
|
|
327
|
+
|
|
328
|
+
const buttonGroupProps = {
|
|
329
|
+
size: buttonProps.size,
|
|
330
|
+
type: buttonProps.type,
|
|
331
|
+
direction: {
|
|
332
|
+
type: definePropType(String),
|
|
333
|
+
values: ["horizontal", "vertical"],
|
|
334
|
+
default: "horizontal"
|
|
335
|
+
}
|
|
336
|
+
};
|
|
337
|
+
|
|
338
|
+
const _sfc_main = defineComponent({
|
|
339
|
+
...{
|
|
340
|
+
name: "ElButtonGroup"
|
|
341
|
+
},
|
|
342
|
+
__name: "button-group",
|
|
343
|
+
props: buttonGroupProps,
|
|
344
|
+
setup(__props) {
|
|
345
|
+
const props = __props;
|
|
346
|
+
provide(
|
|
347
|
+
buttonGroupContextKey,
|
|
348
|
+
reactive({
|
|
349
|
+
size: toRef(props, "size"),
|
|
350
|
+
type: toRef(props, "type")
|
|
351
|
+
})
|
|
352
|
+
);
|
|
353
|
+
const ns = useNamespace("button");
|
|
354
|
+
return (_ctx, _cache) => {
|
|
355
|
+
return openBlock(), createElementBlock(
|
|
356
|
+
"div",
|
|
357
|
+
{
|
|
358
|
+
class: normalizeClass([unref(ns).b("group"), unref(ns).bm("group", props.direction)])
|
|
359
|
+
},
|
|
360
|
+
[
|
|
361
|
+
renderSlot(_ctx.$slots, "default")
|
|
362
|
+
],
|
|
363
|
+
2
|
|
364
|
+
);
|
|
365
|
+
};
|
|
366
|
+
}
|
|
367
|
+
});
|
|
368
|
+
var ButtonGroup = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/button/src/button-group.vue"]]);
|
|
369
|
+
|
|
370
|
+
const ElButton = withInstall(Button, {
|
|
371
|
+
ButtonGroup
|
|
372
|
+
});
|
|
373
|
+
withNoopInstall(ButtonGroup);
|
|
374
|
+
|
|
375
|
+
export { ElButton as E, buttonTypes as b };
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import '
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { C as Component$1 } from '../scrollbar/scrollbar.mjs';
|
|
5
|
-
import { _ as _export_sfc, w as withInstall, a as withNoopInstall } from '../../chunk/Dn-BFXcJ.mjs';
|
|
1
|
+
import { shallowRef, defineComponent, h, triggerRef, onMounted, isVNode, ref, computed, watch, toRef, getCurrentInstance, provide, reactive, createElementBlock, openBlock, normalizeStyle, normalizeClass, unref, renderSlot, createVNode, createCommentVNode, nextTick, createElementVNode, createBlock, resolveDynamicComponent, inject, toRefs, onBeforeUnmount, Fragment, mergeProps, withCtx } from 'vue';
|
|
2
|
+
import { b as buildProps, i as isString, N as NOOP, u as useNamespace, j as isObject, t as throwError } from './By7FMB3I.mjs';
|
|
3
|
+
import { _ as _export_sfc, w as withInstall, a as withNoopInstall } from './dN0VcQc2.mjs';
|
|
6
4
|
import { useElementSize } from '@vueuse/core';
|
|
7
|
-
import { f as flattedChildren } from '
|
|
5
|
+
import { f as flattedChildren } from './BZ1uhZQF.mjs';
|
|
8
6
|
import { ArrowLeft, ArrowUp, ArrowRight, ArrowDown } from '@element-plus/icons-vue';
|
|
9
|
-
import { _ as _export_sfc$1 } from '../../chunk/pcqpp-6-.mjs';
|
|
10
7
|
|
|
11
8
|
const getOrderedChildren = (vm, childComponentName, children) => {
|
|
12
9
|
const nodes = flattedChildren(vm.subTree).filter(
|
|
@@ -284,7 +281,7 @@ function useResize(panels, containerSize, pxSizes, lazy) {
|
|
|
284
281
|
};
|
|
285
282
|
}
|
|
286
283
|
|
|
287
|
-
const _sfc_main$
|
|
284
|
+
const _sfc_main$2 = defineComponent({
|
|
288
285
|
...{
|
|
289
286
|
name: "ElSplitter"
|
|
290
287
|
},
|
|
@@ -389,7 +386,7 @@ const _sfc_main$3 = defineComponent({
|
|
|
389
386
|
};
|
|
390
387
|
}
|
|
391
388
|
});
|
|
392
|
-
var Splitter = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
389
|
+
var Splitter = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/splitter/src/splitter.vue"]]);
|
|
393
390
|
|
|
394
391
|
function getCollapsible(collapsible) {
|
|
395
392
|
if (collapsible && isObject(collapsible)) {
|
|
@@ -410,7 +407,7 @@ function isCollapsible(panel, size, nextPanel, nextSize) {
|
|
|
410
407
|
return false;
|
|
411
408
|
}
|
|
412
409
|
|
|
413
|
-
const _sfc_main$
|
|
410
|
+
const _sfc_main$1 = defineComponent({
|
|
414
411
|
...{
|
|
415
412
|
name: "ElSplitterBar"
|
|
416
413
|
},
|
|
@@ -569,7 +566,7 @@ const _sfc_main$2 = defineComponent({
|
|
|
569
566
|
};
|
|
570
567
|
}
|
|
571
568
|
});
|
|
572
|
-
var SplitBar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
569
|
+
var SplitBar = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/splitter/src/split-bar.vue"]]);
|
|
573
570
|
|
|
574
571
|
const splitterPanelProps = buildProps({
|
|
575
572
|
min: {
|
|
@@ -592,7 +589,7 @@ const splitterPanelEmits = {
|
|
|
592
589
|
};
|
|
593
590
|
|
|
594
591
|
const COMPONENT_NAME = "ElSplitterPanel";
|
|
595
|
-
const _sfc_main
|
|
592
|
+
const _sfc_main = defineComponent({
|
|
596
593
|
...{
|
|
597
594
|
name: COMPONENT_NAME
|
|
598
595
|
},
|
|
@@ -768,88 +765,11 @@ const _sfc_main$1 = defineComponent({
|
|
|
768
765
|
};
|
|
769
766
|
}
|
|
770
767
|
});
|
|
771
|
-
var SplitPanel = /* @__PURE__ */ _export_sfc(_sfc_main
|
|
768
|
+
var SplitPanel = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/splitter/src/split-panel.vue"]]);
|
|
772
769
|
|
|
773
770
|
const ElSplitter = withInstall(Splitter, {
|
|
774
771
|
SplitPanel
|
|
775
772
|
});
|
|
776
773
|
const ElSplitterPanel = withNoopInstall(SplitPanel);
|
|
777
774
|
|
|
778
|
-
|
|
779
|
-
__name: "dual-pane",
|
|
780
|
-
props: {
|
|
781
|
-
layout: { default: "horizontal" },
|
|
782
|
-
lazy: { type: Boolean, default: true },
|
|
783
|
-
padding: { default: 8 },
|
|
784
|
-
props1: {},
|
|
785
|
-
props2: {}
|
|
786
|
-
},
|
|
787
|
-
setup(__props) {
|
|
788
|
-
useCssVars((_ctx) => ({
|
|
789
|
-
"v1d983e20": `${_ctx.padding}px`
|
|
790
|
-
}));
|
|
791
|
-
return (_ctx, _cache) => {
|
|
792
|
-
const _component_el_splitter_panel = ElSplitterPanel;
|
|
793
|
-
const _component_el_splitter = ElSplitter;
|
|
794
|
-
return openBlock(), createBlock(_component_el_splitter, {
|
|
795
|
-
layout: __props.layout,
|
|
796
|
-
lazy: __props.lazy
|
|
797
|
-
}, {
|
|
798
|
-
default: withCtx(() => [
|
|
799
|
-
createVNode(_component_el_splitter_panel, mergeProps(__props.props1, {
|
|
800
|
-
class: _ctx.$style.panel
|
|
801
|
-
}), {
|
|
802
|
-
default: withCtx(() => [
|
|
803
|
-
createVNode(Component$1, {
|
|
804
|
-
flex: "",
|
|
805
|
-
"view-class": _ctx.$style.container
|
|
806
|
-
}, {
|
|
807
|
-
default: withCtx(() => [
|
|
808
|
-
renderSlot(_ctx.$slots, "panel1")
|
|
809
|
-
]),
|
|
810
|
-
_: 3
|
|
811
|
-
}, 8, ["view-class"])
|
|
812
|
-
]),
|
|
813
|
-
_: 3
|
|
814
|
-
}, 16, ["class"]),
|
|
815
|
-
createVNode(_component_el_splitter_panel, mergeProps(__props.props2, {
|
|
816
|
-
class: _ctx.$style.panel
|
|
817
|
-
}), {
|
|
818
|
-
default: withCtx(() => [
|
|
819
|
-
createVNode(Component$1, {
|
|
820
|
-
flex: "",
|
|
821
|
-
"view-class": _ctx.$style.container
|
|
822
|
-
}, {
|
|
823
|
-
default: withCtx(() => [
|
|
824
|
-
renderSlot(_ctx.$slots, "panel2")
|
|
825
|
-
]),
|
|
826
|
-
_: 3
|
|
827
|
-
}, 8, ["view-class"])
|
|
828
|
-
]),
|
|
829
|
-
_: 3
|
|
830
|
-
}, 16, ["class"])
|
|
831
|
-
]),
|
|
832
|
-
_: 3
|
|
833
|
-
}, 8, ["layout", "lazy"]);
|
|
834
|
-
};
|
|
835
|
-
}
|
|
836
|
-
});
|
|
837
|
-
|
|
838
|
-
/* unplugin-vue-components disabled */const panel = "_panel_ixgp9_1";
|
|
839
|
-
const container = "_container_ixgp9_6";
|
|
840
|
-
const style0 = {
|
|
841
|
-
panel: panel,
|
|
842
|
-
container: container
|
|
843
|
-
};
|
|
844
|
-
|
|
845
|
-
const cssModules = {
|
|
846
|
-
"$style": style0
|
|
847
|
-
};
|
|
848
|
-
const Component = /* @__PURE__ */ _export_sfc$1(_sfc_main, [["__cssModules", cssModules]]);
|
|
849
|
-
|
|
850
|
-
const __vite_glob_0_16 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
851
|
-
__proto__: null,
|
|
852
|
-
default: Component
|
|
853
|
-
}, Symbol.toStringTag, { value: 'Module' }));
|
|
854
|
-
|
|
855
|
-
export { Component as C, __vite_glob_0_16 as _ };
|
|
775
|
+
export { ElSplitter as E, ElSplitterPanel as a };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ref, reactive, defineComponent, h, Transition, withCtx, withDirectives, createVNode, vShow, createApp, toRefs, nextTick, isRef } from 'vue';
|
|
2
|
-
import { a as useGlobalComponentSettings } from './
|
|
3
|
-
import { r as removeClass, g as getStyle, b as addClass } from './
|
|
2
|
+
import { a as useGlobalComponentSettings } from './B3GxuXVE.mjs';
|
|
3
|
+
import { r as removeClass, g as getStyle, b as addClass } from './CQz3lhyS.mjs';
|
|
4
4
|
import { isClient } from '@vueuse/core';
|
|
5
|
-
import {
|
|
5
|
+
import { i as isString, j as isObject, n as hyphenate } from './By7FMB3I.mjs';
|
|
6
6
|
|
|
7
7
|
function createLoadingComponent(options, appContext) {
|
|
8
8
|
let afterLeaveTimer;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, computed, createElementBlock, openBlock, mergeProps, unref, renderSlot } from 'vue';
|
|
2
|
-
import {
|
|
3
|
-
import { _ as _export_sfc, w as withInstall } from './
|
|
4
|
-
import { a as addUnit } from './
|
|
2
|
+
import { b as buildProps, d as definePropType, u as useNamespace } from './By7FMB3I.mjs';
|
|
3
|
+
import { _ as _export_sfc, w as withInstall } from './dN0VcQc2.mjs';
|
|
4
|
+
import { a as addUnit } from './CQz3lhyS.mjs';
|
|
5
5
|
|
|
6
6
|
const iconProps = buildProps({
|
|
7
7
|
size: {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { getCurrentInstance, inject, computed, unref, ref } from 'vue';
|
|
2
|
-
import {
|
|
2
|
+
import { b as isNumber } from './DViraU6I.mjs';
|
|
3
3
|
import { isClient } from '@vueuse/core';
|
|
4
|
+
import { a as debugWarn } from './By7FMB3I.mjs';
|
|
4
5
|
|
|
5
6
|
const initial = {
|
|
6
7
|
current: 0
|