@wfrog/vc-ui 1.10.9 → 1.11.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/{CNEMJL35.mjs → B5HpgPRt.mjs} +2 -2
- package/dist/es/chunk/{q2jRgbir.mjs → B71xEPfK.mjs} +1 -1
- package/dist/es/chunk/{BPQ3KP1S.mjs → BBhZKpIc.mjs} +10 -10
- package/dist/es/chunk/{Bu3XHP55.mjs → BDcsaNYa.mjs} +1 -1
- package/dist/es/chunk/{D-1mFPUH.mjs → BTSSEFfD.mjs} +1 -1
- package/dist/es/chunk/{BdVq9mV6.mjs → BVBK1U57.mjs} +1 -1
- package/dist/es/chunk/{o2Q7kb8Y.mjs → BlzQCBDu.mjs} +13 -13
- package/dist/es/chunk/{CGC9zZcN.mjs → BpJKnxlF.mjs} +2 -2
- package/dist/es/chunk/{eqwEsspo.mjs → Brp-qSBw.mjs} +3 -3
- package/dist/es/chunk/{B-xUksL-.mjs → BunQI8Jb.mjs} +1 -1
- package/dist/es/chunk/{KyEEoljI.mjs → C0pTANRX.mjs} +3 -3
- package/dist/es/chunk/{BZoKD2RY.mjs → CBiNtNvQ.mjs} +3 -3
- package/dist/es/chunk/{BA_oVIng.mjs → CBlJeNBO.mjs} +4 -4
- package/dist/es/chunk/{Do7HIVy5.mjs → CCVL_Zj-.mjs} +3 -3
- package/dist/es/chunk/{CJ0afvkJ.mjs → CEl4MyfJ.mjs} +1 -1
- package/dist/es/chunk/{DSw4GnC6.mjs → CKOcwq5V.mjs} +1 -1
- package/dist/es/chunk/{COvAourt.mjs → COs9dJZa.mjs} +1 -1
- package/dist/es/chunk/{Db0Pk78M.mjs → CPt6MxJW.mjs} +1 -1
- package/dist/es/chunk/{CqhShW5K.mjs → CjLR27-a.mjs} +1 -1
- package/dist/es/chunk/{BH1e_-Fa.mjs → CoGexPPD.mjs} +1 -1
- package/dist/es/chunk/{C5I6QvTa.mjs → Cuq5meQh.mjs} +4 -4
- package/dist/es/chunk/{ytiKcA3H.mjs → Cxx_YWUC.mjs} +1 -1
- package/dist/es/chunk/{DkT4qqGt.mjs → D1QnA2iT.mjs} +4 -4
- package/dist/es/chunk/{Bj4UMVBI.mjs → D3AvJlVX.mjs} +1 -1
- package/dist/es/chunk/{Cdh3HNZa.mjs → DAnWZLYj.mjs} +2 -2
- package/dist/es/chunk/{ipA7n6-J.mjs → DCkPv0hy.mjs} +1 -1
- package/dist/es/chunk/{DFOYvCRL.mjs → DX-2VRY2.mjs} +1 -1
- package/dist/es/chunk/{D_F7nIja.mjs → DZ2oTFad.mjs} +2 -2
- package/dist/es/chunk/{DdY32YAP.mjs → Da199A5L.mjs} +1 -1
- package/dist/es/chunk/{C-7W07Z_.mjs → Dm_Sj5aH.mjs} +3 -3
- package/dist/es/chunk/{jjYAptTv.mjs → Dmi-1GRO.mjs} +1 -1
- package/dist/es/chunk/{BQk-dhWy.mjs → DrrVDcwm.mjs} +4 -4
- package/dist/es/chunk/{EMeQxUfH.mjs → Du_zJ1Fz.mjs} +2 -2
- package/dist/es/chunk/{DBf73TLo.mjs → NsldgdCh.mjs} +3 -3
- package/dist/es/chunk/{QtiOxqKv.mjs → fqiLhk0V.mjs} +12 -12
- package/dist/es/chunk/{CNHQauEr.mjs → s7HLrANj.mjs} +3 -3
- package/dist/es/components/button/button.mjs +3 -3
- package/dist/es/components/choice/choice.mjs +2 -2
- package/dist/es/components/color-switch/color-switch.mjs +5 -5
- package/dist/es/components/config-provider/config-provider.d.ts +9 -0
- package/dist/es/components/config-provider/config-provider.mjs +1 -0
- package/dist/es/components/cropper/cropper.mjs +4 -4
- package/dist/es/components/currency/currency.mjs +3 -3
- package/dist/es/components/daterange-picker/daterange-picker.mjs +10 -10
- package/dist/es/components/dialog/dialog.mjs +4 -4
- package/dist/es/components/dialog-camera-upload/dialog-camera-upload.mjs +7 -7
- package/dist/es/components/dialog-map-point/dialog-map-point.mjs +2 -2
- package/dist/es/components/dialog-upload-images/dialog-upload-images.mjs +7 -7
- package/dist/es/components/document.vue.d.ts +14 -0
- package/dist/es/components/drawer/drawer.mjs +5 -5
- package/dist/es/components/easy-pagination/easy-pagination.mjs +1 -1
- package/dist/es/components/example-wrapper.vue.d.ts +19 -0
- package/dist/es/components/explorer-column-table/explorer-column-table.mjs +4 -4
- package/dist/es/components/explorer-container/explorer-container.mjs +1 -1
- package/dist/es/components/explorer-filter/explorer-filter.mjs +3 -3
- package/dist/es/components/explorer-footer/explorer-footer.mjs +6 -6
- package/dist/es/components/explorer-form/explorer-form.mjs +1 -1
- package/dist/es/components/explorer-list/explorer-list.mjs +1 -1
- package/dist/es/components/explorer-modal-form/explorer-modal-form.mjs +1 -1
- package/dist/es/components/explorer-query/explorer-query.mjs +4 -4
- package/dist/es/components/explorer-table/explorer-table.d.ts +4 -0
- package/dist/es/components/explorer-table/explorer-table.mjs +81 -18
- package/dist/es/components/explorer-table/explorer-table.vue.d.ts +7 -0
- package/dist/es/components/explorer-table/index.css +13 -4
- package/dist/es/components/explorer-tools/explorer-tools.mjs +4 -4
- package/dist/es/components/explorer-tree/explorer-tree.mjs +5 -5
- package/dist/es/components/form-item/form-item.d.ts +9 -0
- package/dist/es/components/form-item/form-item.mjs +77 -0
- package/dist/es/components/form-item/form-item.vue.d.ts +23 -0
- package/dist/es/components/form-item/index.css +9 -0
- package/dist/es/components/form-item/index.d.ts +4 -0
- package/dist/es/components/form-item/index.mjs +6 -0
- package/dist/es/components/icon-picker/components/collections.vue.d.ts +3 -3
- package/dist/es/components/icon-picker/icon-picker.mjs +10 -10
- package/dist/es/components/iconify-icon/iconify-icon.mjs +2 -2
- package/dist/es/components/image/image.mjs +4 -4
- package/dist/es/components/image/image.vue.d.ts +13 -13
- package/dist/es/components/info-tooltip/index.css +31 -0
- package/dist/es/components/info-tooltip/index.d.ts +4 -0
- package/dist/es/components/info-tooltip/index.mjs +6 -0
- package/dist/es/components/info-tooltip/info-tooltip.d.ts +11 -0
- package/dist/es/components/info-tooltip/info-tooltip.mjs +109 -0
- package/dist/es/components/info-tooltip/info-tooltip.vue.d.ts +1063 -0
- package/dist/es/components/input/input.mjs +3 -3
- package/dist/es/components/input-number/input-number.mjs +4 -4
- package/dist/es/components/pca-picker/pca-picker.mjs +11 -11
- package/dist/es/components/pca-picker/pca-picker.vue.d.ts +12 -12
- package/dist/es/components/screenfull/screenfull.mjs +3 -3
- package/dist/es/components/scrollbar/scrollbar.mjs +3 -3
- package/dist/es/components/scrollbar/scrollbar.vue.d.ts +3 -3
- package/dist/es/components/select/select.mjs +5 -5
- package/dist/es/components/single-player/single-player.mjs +10 -10
- package/dist/es/components/splitter-panel/splitter-panel.mjs +2 -2
- package/dist/es/components/svg-icon/svg-icon.mjs +2 -2
- package/dist/es/components/switch/switch.mjs +6 -6
- package/dist/es/components/sync-scroll-container/sync-scroll-container.mjs +2 -2
- package/dist/es/components/tags/tags.mjs +7 -7
- package/dist/es/components/text-ellipsis/text-ellipsis.mjs +3 -3
- package/dist/es/components/text-ellipsis/text-ellipsis.vue.d.ts +2 -2
- package/dist/es/components/thousand-input/thousand-input.mjs +3 -3
- package/dist/es/components/tinymce/tinymce.mjs +3 -3
- package/dist/es/components/transfer/transfer.mjs +4 -4
- package/dist/es/components/transfer-panel/transfer-panel.mjs +4 -4
- package/dist/es/components/tree-picker/tree-picker.mjs +9 -9
- package/dist/es/components/tree-picker/tree-picker.vue.d.ts +12 -12
- package/dist/es/components/upload-file/upload-file.mjs +2 -2
- package/dist/es/index.d.ts +2 -0
- package/dist/es/index.mjs +31 -27
- package/dist/global.d.ts +2 -0
- package/dist/index.css +53 -4
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import './index.css'
|
|
2
2
|
import { b as buildProps, u as useNamespace } from '../../chunk/Gk1J52Yw.mjs';
|
|
3
|
-
import { v as vLoading } from '../../chunk/
|
|
3
|
+
import { v as vLoading } from '../../chunk/BTSSEFfD.mjs';
|
|
4
4
|
import { E as ElSpace } from '../../chunk/Dgu95mOy.mjs';
|
|
5
|
-
import { E as ElButton } from '../../chunk/
|
|
5
|
+
import { E as ElButton } from '../../chunk/CPt6MxJW.mjs';
|
|
6
6
|
import { defineComponent, computed, createElementBlock, openBlock, normalizeClass, createBlock, createCommentVNode, renderSlot, unref, withCtx, resolveDynamicComponent, ref, useTemplateRef, shallowRef, watch, nextTick, onMounted, onUnmounted, withDirectives, isRef, createElementVNode, normalizeStyle, createVNode, createTextVNode } from 'vue';
|
|
7
7
|
import { i as index$1 } from '../../chunk/BaJ7k5Lg.mjs';
|
|
8
8
|
import '../../chunk/D9iEroQw.mjs';
|
|
@@ -11,10 +11,10 @@ import { defaultWindow } from '@vueuse/core';
|
|
|
11
11
|
import { E as ElIcon } from '../../chunk/D0QTifnI.mjs';
|
|
12
12
|
import { i as iconPropType } from '../icon/icon2.mjs';
|
|
13
13
|
import { _ as _export_sfc, w as withInstall } from '../../chunk/V6KjsUQN.mjs';
|
|
14
|
-
import { u as useGlobalConfig } from '../../chunk/
|
|
14
|
+
import { u as useGlobalConfig } from '../../chunk/C0pTANRX.mjs';
|
|
15
15
|
import { u as useDeprecated } from '../../chunk/CvYIOfT1.mjs';
|
|
16
16
|
import { d as isBoolean } from '../../chunk/Bc6yUGLs.mjs';
|
|
17
|
-
import { d as debounce } from '../../chunk/
|
|
17
|
+
import { d as debounce } from '../../chunk/DAnWZLYj.mjs';
|
|
18
18
|
import { _ as _export_sfc$1 } from '../../chunk/pcqpp-6-.mjs';
|
|
19
19
|
|
|
20
20
|
const defaultImageOption = {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import './index.css'
|
|
2
2
|
import '../../chunk/Gk1J52Yw.mjs';
|
|
3
3
|
/* empty css */
|
|
4
|
-
import { E as ElSelect, a as ElOption } from '../../chunk/
|
|
5
|
-
import '../../chunk/
|
|
6
|
-
import '../../chunk/
|
|
4
|
+
import { E as ElSelect, a as ElOption } from '../../chunk/BBhZKpIc.mjs';
|
|
5
|
+
import '../../chunk/CjLR27-a.mjs';
|
|
6
|
+
import '../../chunk/CoGexPPD.mjs';
|
|
7
7
|
import { defineComponent, computed, ref, onBeforeMount, createBlock, openBlock, mergeProps, unref, isRef, createSlots, withCtx, createElementBlock, normalizeStyle, Fragment, renderList, createCommentVNode, createTextVNode, normalizeClass, toDisplayString } from 'vue';
|
|
8
8
|
import { useFormDisabled } from 'element-plus';
|
|
9
9
|
import { _ as _sfc_main$1 } from '../flag/flag.mjs';
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import { c as isArray, e as isDate, b as buildProps, d as definePropType, u as useNamespace, a as debugWarn, N as NOOP, i as isString, f as isFunction } from '../../chunk/Gk1J52Yw.mjs';
|
|
2
|
-
import { E as ElInput } from '../../chunk/
|
|
3
|
-
import { E as ElScrollbar } from '../../chunk/
|
|
4
|
-
import { E as ElButton } from '../../chunk/
|
|
5
|
-
import { E as Ee, u as useTooltipContentProps, a as ElTooltip, c as castArray, e as extractFirst } from '../../chunk/
|
|
2
|
+
import { E as ElInput } from '../../chunk/DX-2VRY2.mjs';
|
|
3
|
+
import { E as ElScrollbar } from '../../chunk/CjLR27-a.mjs';
|
|
4
|
+
import { E as ElButton } from '../../chunk/CPt6MxJW.mjs';
|
|
5
|
+
import { E as Ee, u as useTooltipContentProps, a as ElTooltip, c as castArray, e as extractFirst } from '../../chunk/CoGexPPD.mjs';
|
|
6
6
|
import { ref, computed, defineComponent, reactive, createElementBlock, openBlock, normalizeStyle, normalizeClass, unref, renderSlot, createElementVNode, mergeProps, useAttrs as useAttrs$1, inject, watch, nextTick, onBeforeUnmount, provide, createBlock, withCtx, withModifiers, createCommentVNode, resolveDynamicComponent, toDisplayString, onMounted, Fragment, renderList, createTextVNode, withDirectives, createVNode, Transition, withKeys, useSlots, toRef, vShow, getCurrentInstance, toRefs, isVNode, isRef } from 'vue';
|
|
7
7
|
import { useFormDisabled as useFormDisabled$1, useFormItem as useFormItem$1 } from 'element-plus';
|
|
8
8
|
import { onClickOutside, unrefElement, useVModel } from '@vueuse/core';
|
|
9
9
|
import { E as ElIcon } from '../../chunk/D0QTifnI.mjs';
|
|
10
10
|
import { CircleClose, Clock, Calendar, ArrowUp, ArrowDown, DArrowLeft, ArrowLeft, ArrowRight, DArrowRight } from '@element-plus/icons-vue';
|
|
11
11
|
import { a as isEmpty, b as isNumber, c as isUndefined } from '../../chunk/Bc6yUGLs.mjs';
|
|
12
|
-
import { u as useLocale } from '../../chunk/
|
|
13
|
-
import { u as useAriaProps, f as flatten } from '../../chunk/
|
|
12
|
+
import { u as useLocale } from '../../chunk/CEl4MyfJ.mjs';
|
|
13
|
+
import { u as useAriaProps, f as flatten } from '../../chunk/BunQI8Jb.mjs';
|
|
14
14
|
import { _ as _export_sfc, w as withInstall } from '../../chunk/V6KjsUQN.mjs';
|
|
15
15
|
import { g as getStyle, h as hasClass } from '../../chunk/DodoD9a9.mjs';
|
|
16
16
|
import { v as vRepeatClick } from '../../chunk/D_bou1py.mjs';
|
|
17
17
|
import { U as UPDATE_MODEL_EVENT, C as CHANGE_EVENT } from '../../chunk/Ct6q2FXg.mjs';
|
|
18
|
-
import { d as debounce } from '../../chunk/
|
|
18
|
+
import { d as debounce } from '../../chunk/DAnWZLYj.mjs';
|
|
19
19
|
import { g as getEventCode, E as EVENT_CODE } from '../../chunk/BTpNRPQW.mjs';
|
|
20
20
|
import { C as ClickOutside } from '../../chunk/eEsLFV3s.mjs';
|
|
21
21
|
import { u as useFormItem, b as useFormItemInputId, a as useFormDisabled, c as useFormSize } from '../../chunk/CBMjhoFP.mjs';
|
|
22
|
-
import { i as isEqual } from '../../chunk/
|
|
23
|
-
import { o as omit } from '../../chunk/
|
|
22
|
+
import { i as isEqual } from '../../chunk/B71xEPfK.mjs';
|
|
23
|
+
import { o as omit } from '../../chunk/CBiNtNvQ.mjs';
|
|
24
24
|
import { u as useSizeProp } from '../../chunk/vPhxogl3.mjs';
|
|
25
|
-
import { u as useEmptyValuesProps, a as useEmptyValues } from '../../chunk/
|
|
25
|
+
import { u as useEmptyValuesProps, a as useEmptyValues } from '../../chunk/COs9dJZa.mjs';
|
|
26
26
|
import { u as useAttrs } from '../../chunk/CxHJBf4l.mjs';
|
|
27
27
|
import { u as useFocusController } from '../../chunk/CVqW0jzp.mjs';
|
|
28
28
|
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import './index.css'
|
|
2
2
|
import { u as useNamespace } from '../../chunk/Gk1J52Yw.mjs';
|
|
3
|
-
import { b as dialogContentEmits, c as dialogContentProps, e as dialogInjectionKey, d as dialogEmits, a as dialogProps, u as useDialog, E as ElOverlay, f as useSameTarget } from '../../chunk/
|
|
4
|
-
import { E as ElButton } from '../../chunk/
|
|
3
|
+
import { b as dialogContentEmits, c as dialogContentProps, e as dialogInjectionKey, d as dialogEmits, a as dialogProps, u as useDialog, E as ElOverlay, f as useSameTarget } from '../../chunk/BpJKnxlF.mjs';
|
|
4
|
+
import { E as ElButton } from '../../chunk/CPt6MxJW.mjs';
|
|
5
5
|
import { ref, onMounted, watchEffect, onBeforeUnmount, defineComponent, inject, computed, createElementBlock, openBlock, normalizeStyle, normalizeClass, unref, createElementVNode, createCommentVNode, renderSlot, toDisplayString, createVNode, withCtx, createBlock, resolveDynamicComponent, useSlots, provide, Transition, mergeProps, withDirectives, createSlots, vShow, useCssModule, watch, isRef, createTextVNode } from 'vue';
|
|
6
6
|
import { CopyDocument, FullScreen, Close } from '@element-plus/icons-vue';
|
|
7
7
|
import { C as Component$2 } from '../button/button.mjs';
|
|
8
8
|
import { C as Component$1 } from '../scrollbar/scrollbar.mjs';
|
|
9
9
|
import { useVModel, useToggle } from '@vueuse/core';
|
|
10
|
-
import { F as FOCUS_TRAP_INJECTION_KEY, b as ElTeleport, d as ElFocusTrap } from '../../chunk/
|
|
10
|
+
import { F as FOCUS_TRAP_INJECTION_KEY, b as ElTeleport, d as ElFocusTrap } from '../../chunk/CoGexPPD.mjs';
|
|
11
11
|
import { E as ElIcon } from '../../chunk/D0QTifnI.mjs';
|
|
12
12
|
import { _ as _export_sfc, w as withInstall } from '../../chunk/V6KjsUQN.mjs';
|
|
13
13
|
import { a as addUnit } from '../../chunk/DodoD9a9.mjs';
|
|
14
14
|
import { C as CloseComponents } from '../icon/icon2.mjs';
|
|
15
|
-
import { u as useLocale } from '../../chunk/
|
|
15
|
+
import { u as useLocale } from '../../chunk/CEl4MyfJ.mjs';
|
|
16
16
|
import { u as useDeprecated } from '../../chunk/CvYIOfT1.mjs';
|
|
17
17
|
import { _ as _export_sfc$1 } from '../../chunk/pcqpp-6-.mjs';
|
|
18
18
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import './index.css'
|
|
2
2
|
import '../../chunk/Gk1J52Yw.mjs';
|
|
3
|
-
import { v as vLoading } from '../../chunk/
|
|
4
|
-
import { E as ElButton } from '../../chunk/
|
|
3
|
+
import { v as vLoading } from '../../chunk/BTSSEFfD.mjs';
|
|
4
|
+
import { E as ElButton } from '../../chunk/CPt6MxJW.mjs';
|
|
5
5
|
/* empty css */
|
|
6
|
-
import { E as ElSelect, a as ElOption } from '../../chunk/
|
|
7
|
-
import '../../chunk/
|
|
8
|
-
import '../../chunk/
|
|
9
|
-
import { E as ElAlert } from '../../chunk/
|
|
10
|
-
import { E as ElImage } from '../../chunk/
|
|
6
|
+
import { E as ElSelect, a as ElOption } from '../../chunk/BBhZKpIc.mjs';
|
|
7
|
+
import '../../chunk/CjLR27-a.mjs';
|
|
8
|
+
import '../../chunk/CoGexPPD.mjs';
|
|
9
|
+
import { E as ElAlert } from '../../chunk/D3AvJlVX.mjs';
|
|
10
|
+
import { E as ElImage } from '../../chunk/DrrVDcwm.mjs';
|
|
11
11
|
import { ref, defineComponent, useTemplateRef, reactive, computed, watch, createBlock, openBlock, unref, isRef, withCtx, withDirectives, createElementBlock, normalizeStyle, normalizeClass, createCommentVNode, createVNode, vShow, createElementVNode, Transition, Fragment, renderList, createTextVNode } from 'vue';
|
|
12
12
|
import { Camera, Upload } from '@element-plus/icons-vue';
|
|
13
13
|
import { C as Component$3, i as index } from '../cropper/cropper.mjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import './index.css'
|
|
2
2
|
import '../../chunk/Gk1J52Yw.mjs';
|
|
3
|
-
import { E as ElInput } from '../../chunk/
|
|
4
|
-
import { E as ElButton } from '../../chunk/
|
|
3
|
+
import { E as ElInput } from '../../chunk/DX-2VRY2.mjs';
|
|
4
|
+
import { E as ElButton } from '../../chunk/CPt6MxJW.mjs';
|
|
5
5
|
import { defineComponent, useTemplateRef, ref, computed, watch, nextTick, onMounted, createBlock, openBlock, unref, isRef, withCtx, createElementVNode, normalizeStyle, normalizeClass, createVNode, withKeys, createTextVNode } from 'vue';
|
|
6
6
|
import { Search } from '@element-plus/icons-vue';
|
|
7
7
|
import { i as index } from '../../chunk/BaJ7k5Lg.mjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import './index.css'
|
|
2
2
|
import { b as buildProps, d as definePropType, u as useNamespace, f as isFunction, i as isString, t as throwError, c as isArray, N as NOOP, g as isPlainObject, a as debugWarn } from '../../chunk/Gk1J52Yw.mjs';
|
|
3
|
-
import { v as vLoading } from '../../chunk/
|
|
4
|
-
import { E as ElButton } from '../../chunk/
|
|
3
|
+
import { v as vLoading } from '../../chunk/BTSSEFfD.mjs';
|
|
4
|
+
import { E as ElButton } from '../../chunk/CPt6MxJW.mjs';
|
|
5
5
|
import { defineComponent, computed, createElementBlock, openBlock, normalizeClass, unref, createCommentVNode, createElementVNode, normalizeStyle, renderSlot, toDisplayString, createBlock, withCtx, resolveDynamicComponent, ref, TransitionGroup, Fragment, renderList, withKeys, withModifiers, createVNode, inject, shallowRef, watch, nextTick, onBeforeUnmount, provide, toRef, createSlots, mergeProps, isRef, withDirectives, createTextVNode } from 'vue';
|
|
6
6
|
import { VueDraggable } from 'vue-draggable-plus';
|
|
7
7
|
import { C as Component$1 } from '../dialog/dialog.mjs';
|
|
@@ -11,12 +11,12 @@ import { WarningFilled, CircleCheck, CircleClose, Check, Close, Document, ZoomIn
|
|
|
11
11
|
import { _ as _export_sfc, w as withInstall } from '../../chunk/V6KjsUQN.mjs';
|
|
12
12
|
import { i as isNil } from '../../chunk/Bc6yUGLs.mjs';
|
|
13
13
|
import { m as mutable } from '../../chunk/B-rxnVJv.mjs';
|
|
14
|
-
import { u as useLocale } from '../../chunk/
|
|
14
|
+
import { u as useLocale } from '../../chunk/CEl4MyfJ.mjs';
|
|
15
15
|
import { a as useFormDisabled } from '../../chunk/CBMjhoFP.mjs';
|
|
16
|
-
import { f as flatten } from '../../chunk/
|
|
17
|
-
import { e as entriesOf } from '../../chunk/
|
|
18
|
-
import { c as cloneDeep } from '../../chunk/
|
|
19
|
-
import { i as isEqual } from '../../chunk/
|
|
16
|
+
import { f as flatten } from '../../chunk/BunQI8Jb.mjs';
|
|
17
|
+
import { e as entriesOf } from '../../chunk/Du_zJ1Fz.mjs';
|
|
18
|
+
import { c as cloneDeep } from '../../chunk/DCkPv0hy.mjs';
|
|
19
|
+
import { i as isEqual } from '../../chunk/B71xEPfK.mjs';
|
|
20
20
|
import { useVModel } from '@vueuse/core';
|
|
21
21
|
import { _ as _export_sfc$1 } from '../../chunk/pcqpp-6-.mjs';
|
|
22
22
|
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
|
|
2
|
+
data: {
|
|
3
|
+
type: ObjectConstructor;
|
|
4
|
+
default: () => {};
|
|
5
|
+
};
|
|
6
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
7
|
+
data: {
|
|
8
|
+
type: ObjectConstructor;
|
|
9
|
+
default: () => {};
|
|
10
|
+
};
|
|
11
|
+
}>> & Readonly<{}>, {
|
|
12
|
+
data: Record<string, any>;
|
|
13
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
14
|
+
export default _default;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import './index.css'
|
|
2
2
|
import { b as buildProps, u as useNamespace } from '../../chunk/Gk1J52Yw.mjs';
|
|
3
|
-
import { d as dialogEmits, a as dialogProps, u as useDialog, E as ElOverlay } from '../../chunk/
|
|
4
|
-
import { E as ElScrollbar } from '../../chunk/
|
|
5
|
-
import { E as ElButton } from '../../chunk/
|
|
3
|
+
import { d as dialogEmits, a as dialogProps, u as useDialog, E as ElOverlay } from '../../chunk/BpJKnxlF.mjs';
|
|
4
|
+
import { E as ElScrollbar } from '../../chunk/CjLR27-a.mjs';
|
|
5
|
+
import { E as ElButton } from '../../chunk/CPt6MxJW.mjs';
|
|
6
6
|
import { computed, ref, watch, onBeforeUnmount, defineComponent, useSlots, createBlock, openBlock, unref, withCtx, createVNode, Transition, withDirectives, createElementVNode, mergeProps, withModifiers, createElementBlock, createCommentVNode, normalizeClass, renderSlot, toDisplayString, normalizeStyle, vShow, useCssVars, isRef, createTextVNode } from 'vue';
|
|
7
7
|
import { Close, CopyDocument, FullScreen } from '@element-plus/icons-vue';
|
|
8
8
|
import { C as Component$1 } from '../button/button.mjs';
|
|
9
9
|
import { useWindowSize, clamp, useEventListener, useVModel, useToggle } from '@vueuse/core';
|
|
10
|
-
import { b as ElTeleport, d as ElFocusTrap } from '../../chunk/
|
|
10
|
+
import { b as ElTeleport, d as ElFocusTrap } from '../../chunk/CoGexPPD.mjs';
|
|
11
11
|
import { E as ElIcon } from '../../chunk/D0QTifnI.mjs';
|
|
12
12
|
import { a as addUnit } from '../../chunk/DodoD9a9.mjs';
|
|
13
13
|
import { _ as _export_sfc, w as withInstall } from '../../chunk/V6KjsUQN.mjs';
|
|
14
14
|
import { u as useDeprecated } from '../../chunk/CvYIOfT1.mjs';
|
|
15
|
-
import { u as useLocale } from '../../chunk/
|
|
15
|
+
import { u as useLocale } from '../../chunk/CEl4MyfJ.mjs';
|
|
16
16
|
import { _ as _export_sfc$1 } from '../../chunk/pcqpp-6-.mjs';
|
|
17
17
|
|
|
18
18
|
const drawerProps = buildProps({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './index.css'
|
|
2
2
|
import '../../chunk/Gk1J52Yw.mjs';
|
|
3
|
-
import { E as ElButton } from '../../chunk/
|
|
3
|
+
import { E as ElButton } from '../../chunk/CPt6MxJW.mjs';
|
|
4
4
|
import { defineComponent, computed, createElementBlock, openBlock, normalizeClass, createVNode, unref, withCtx, createTextVNode, toDisplayString } from 'vue';
|
|
5
5
|
import { _ as _export_sfc } from '../../chunk/pcqpp-6-.mjs';
|
|
6
6
|
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
attrs: Partial<{}>;
|
|
3
|
+
slots: {
|
|
4
|
+
default?(_: {
|
|
5
|
+
direction: string;
|
|
6
|
+
}): any;
|
|
7
|
+
};
|
|
8
|
+
refs: {};
|
|
9
|
+
rootEl: any;
|
|
10
|
+
};
|
|
11
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
|
+
declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
13
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
14
|
+
export default _default;
|
|
15
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
16
|
+
new (): {
|
|
17
|
+
$slots: S;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import './index.css'
|
|
2
2
|
import '../../chunk/Gk1J52Yw.mjs';
|
|
3
|
-
import { E as ElTable, a as ElTableColumn } from '../../chunk/
|
|
4
|
-
import { a as ElCheckbox } from '../../chunk/
|
|
3
|
+
import { E as ElTable, a as ElTableColumn } from '../../chunk/BlzQCBDu.mjs';
|
|
4
|
+
import { a as ElCheckbox } from '../../chunk/NsldgdCh.mjs';
|
|
5
5
|
/* empty css */
|
|
6
|
-
import '../../chunk/
|
|
7
|
-
import '../../chunk/
|
|
6
|
+
import '../../chunk/CoGexPPD.mjs';
|
|
7
|
+
import '../../chunk/CjLR27-a.mjs';
|
|
8
8
|
/* empty css */
|
|
9
9
|
import { defineComponent, useTemplateRef, useCssModule, shallowRef, computed, ref, watch, onBeforeUnmount, createBlock, createCommentVNode, unref, openBlock, normalizeClass, createSlots, withCtx, renderSlot, createElementVNode, createVNode, nextTick } from 'vue';
|
|
10
10
|
import { useDraggable } from 'vue-draggable-plus';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './index.css'
|
|
2
2
|
import '../../chunk/Gk1J52Yw.mjs';
|
|
3
|
-
import { v as vLoading } from '../../chunk/
|
|
3
|
+
import { v as vLoading } from '../../chunk/BTSSEFfD.mjs';
|
|
4
4
|
import { defineComponent, withDirectives, createElementBlock, openBlock, normalizeClass, createElementVNode, createVNode, createCommentVNode, createBlock, renderSlot, createTextVNode, toDisplayString, withCtx } from 'vue';
|
|
5
5
|
import { C as Component$1 } from '../iconify-icon/iconify-icon.mjs';
|
|
6
6
|
import { C as Component$2 } from '../scrollbar/scrollbar.mjs';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import './index.css'
|
|
2
2
|
import '../../chunk/Gk1J52Yw.mjs';
|
|
3
|
-
import { E as ElButton } from '../../chunk/
|
|
4
|
-
import { E as ElInput } from '../../chunk/
|
|
3
|
+
import { E as ElButton } from '../../chunk/CPt6MxJW.mjs';
|
|
4
|
+
import { E as ElInput } from '../../chunk/DX-2VRY2.mjs';
|
|
5
5
|
import { defineComponent, useCssVars, ref, createElementBlock, openBlock, normalizeClass, createVNode, createBlock, createCommentVNode, unref, withKeys, isRef } from 'vue';
|
|
6
6
|
import { Search, Plus } from '@element-plus/icons-vue';
|
|
7
7
|
import { i as injectExplorerPanelState } from '../explorer-panel/explorer-panel2.mjs';
|
|
8
|
-
import { d as debounce } from '../../chunk/
|
|
8
|
+
import { d as debounce } from '../../chunk/DAnWZLYj.mjs';
|
|
9
9
|
import { _ as _export_sfc } from '../../chunk/pcqpp-6-.mjs';
|
|
10
10
|
|
|
11
11
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import './index.css'
|
|
2
2
|
import '../../chunk/Gk1J52Yw.mjs';
|
|
3
|
-
import { E as ElPagination } from '../../chunk/
|
|
3
|
+
import { E as ElPagination } from '../../chunk/CBlJeNBO.mjs';
|
|
4
4
|
/* empty css */
|
|
5
|
-
import '../../chunk/
|
|
6
|
-
import '../../chunk/
|
|
7
|
-
import '../../chunk/
|
|
8
|
-
import '../../chunk/
|
|
5
|
+
import '../../chunk/BBhZKpIc.mjs';
|
|
6
|
+
import '../../chunk/CjLR27-a.mjs';
|
|
7
|
+
import '../../chunk/CoGexPPD.mjs';
|
|
8
|
+
import '../../chunk/DX-2VRY2.mjs';
|
|
9
9
|
import { defineComponent, useCssVars, unref, computed, createElementBlock, openBlock, normalizeClass, createCommentVNode, createBlock, renderSlot, mergeProps } from 'vue';
|
|
10
|
-
import { i as isObjectLike, b as baseGetTag } from '../../chunk/
|
|
10
|
+
import { i as isObjectLike, b as baseGetTag } from '../../chunk/Cxx_YWUC.mjs';
|
|
11
11
|
import { _ as _export_sfc } from '../../chunk/pcqpp-6-.mjs';
|
|
12
12
|
|
|
13
13
|
/** `Object#toString` result references. */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './index.css'
|
|
2
2
|
import '../../chunk/Gk1J52Yw.mjs';
|
|
3
|
-
import { v as vLoading } from '../../chunk/
|
|
3
|
+
import { v as vLoading } from '../../chunk/BTSSEFfD.mjs';
|
|
4
4
|
import { defineComponent, ref, useTemplateRef, computed, withDirectives, createElementBlock, openBlock, normalizeClass, createElementVNode, createVNode, createBlock, createCommentVNode, renderSlot, createTextVNode, toDisplayString, unref, withCtx, mergeProps } from 'vue';
|
|
5
5
|
import { ElForm } from 'element-plus';
|
|
6
6
|
import { C as Component$2 } from '../button/button.mjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './index.css'
|
|
2
2
|
import '../../chunk/Gk1J52Yw.mjs';
|
|
3
|
-
import { E as ElCheckboxGroup, a as ElCheckbox } from '../../chunk/
|
|
3
|
+
import { E as ElCheckboxGroup, a as ElCheckbox } from '../../chunk/NsldgdCh.mjs';
|
|
4
4
|
/* empty css */
|
|
5
5
|
import { defineComponent, ref, computed, createBlock, openBlock, normalizeClass, withCtx, withDirectives, createElementBlock, createCommentVNode, createElementVNode, createVNode, unref, isRef, Fragment, renderList, renderSlot, createTextVNode, toDisplayString, mergeProps, vShow } from 'vue';
|
|
6
6
|
import { Loading } from '@element-plus/icons-vue';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './index.css'
|
|
2
2
|
import '../../chunk/Gk1J52Yw.mjs';
|
|
3
|
-
import { v as vLoading } from '../../chunk/
|
|
3
|
+
import { v as vLoading } from '../../chunk/BTSSEFfD.mjs';
|
|
4
4
|
import { defineComponent, useTemplateRef, shallowRef, ref, computed, watch, onUnmounted, createBlock, openBlock, resolveDynamicComponent, unref, mergeProps, isRef, withCtx, withDirectives, renderSlot, createCommentVNode, createTextVNode, createElementVNode, normalizeClass, toDisplayString } from 'vue';
|
|
5
5
|
import { ElForm } from 'element-plus';
|
|
6
6
|
import { C as Component$3 } from '../button/button.mjs';
|
|
@@ -7,13 +7,13 @@ import { i as injectExplorerState } from '../explorer/explorer2.mjs';
|
|
|
7
7
|
import { f as formContextKey, a as formItemContextKey, u as useId } from '../../chunk/nxVM7re4.mjs';
|
|
8
8
|
import { c as componentSizes } from '../../chunk/vPhxogl3.mjs';
|
|
9
9
|
import { d as isBoolean } from '../../chunk/Bc6yUGLs.mjs';
|
|
10
|
-
import { c as castArray } from '../../chunk/
|
|
10
|
+
import { c as castArray } from '../../chunk/CKOcwq5V.mjs';
|
|
11
11
|
import { _ as _export_sfc, w as withInstall, a as withNoopInstall } from '../../chunk/V6KjsUQN.mjs';
|
|
12
12
|
import { c as useFormSize } from '../../chunk/CBMjhoFP.mjs';
|
|
13
|
-
import { g as getProp } from '../../chunk/
|
|
14
|
-
import { h as hasPath } from '../../chunk/
|
|
13
|
+
import { g as getProp } from '../../chunk/Du_zJ1Fz.mjs';
|
|
14
|
+
import { h as hasPath } from '../../chunk/BunQI8Jb.mjs';
|
|
15
15
|
import { a as addUnit } from '../../chunk/DodoD9a9.mjs';
|
|
16
|
-
import { b as baseClone } from '../../chunk/
|
|
16
|
+
import { b as baseClone } from '../../chunk/DZ2oTFad.mjs';
|
|
17
17
|
import { _ as _export_sfc$1 } from '../../chunk/pcqpp-6-.mjs';
|
|
18
18
|
|
|
19
19
|
/** Used to compose bitmasks for cloning. */
|
|
@@ -3,6 +3,7 @@ import { IColumnConfig } from '../explorer-column-table/explorer-column-table';
|
|
|
3
3
|
export interface IExplorerTableProps {
|
|
4
4
|
data: any[];
|
|
5
5
|
selection?: boolean;
|
|
6
|
+
singleSelection?: boolean;
|
|
6
7
|
index?: boolean;
|
|
7
8
|
highlightCurrent?: boolean;
|
|
8
9
|
emptyText?: string;
|
|
@@ -13,7 +14,10 @@ export interface IExplorerTableProps {
|
|
|
13
14
|
columnRender?: (column: IColumnConfig, row: Record<string, any>, emits: IExplorerTableEmits, index: number) => VNode;
|
|
14
15
|
columnConfig?: IColumnConfig[];
|
|
15
16
|
startIndex?: number;
|
|
17
|
+
rowKey?: string | ((row: any) => string);
|
|
16
18
|
}
|
|
17
19
|
export interface IExplorerTableEmits {
|
|
18
20
|
(e: 'columnEvent', column: IColumnConfig, row: Record<string, any>, value: Record<string, any>): void;
|
|
21
|
+
(e: 'singleSelect', row: Record<string, any>): void;
|
|
22
|
+
(e: 'selectionChange', rows: Record<string, any>[]): void;
|
|
19
23
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import './index.css'
|
|
2
2
|
import '../../chunk/Gk1J52Yw.mjs';
|
|
3
|
-
import { v as vLoading } from '../../chunk/
|
|
4
|
-
import { E as ElTable } from '../../chunk/
|
|
5
|
-
import '../../chunk/
|
|
3
|
+
import { v as vLoading } from '../../chunk/BTSSEFfD.mjs';
|
|
4
|
+
import { E as ElTable } from '../../chunk/BlzQCBDu.mjs';
|
|
5
|
+
import '../../chunk/NsldgdCh.mjs';
|
|
6
6
|
/* empty css */
|
|
7
|
-
import '../../chunk/
|
|
8
|
-
import '../../chunk/
|
|
9
|
-
import { defineComponent, h, computed, watch, withDirectives, createElementBlock, openBlock, normalizeClass, createVNode, mergeProps, createSlots, withCtx, createBlock, createCommentVNode, renderSlot,
|
|
10
|
-
import { ElTableColumn } from 'element-plus';
|
|
7
|
+
import '../../chunk/CoGexPPD.mjs';
|
|
8
|
+
import '../../chunk/CjLR27-a.mjs';
|
|
9
|
+
import { defineComponent, h, useCssModule, computed, ref, watch, withDirectives, createElementBlock, openBlock, normalizeClass, unref, createVNode, mergeProps, createSlots, withCtx, createBlock, createCommentVNode, renderSlot, withModifiers, isRef, Fragment, renderList, createTextVNode, toDisplayString, resolveDynamicComponent } from 'vue';
|
|
10
|
+
import { ElTableColumn, ElRadio } from 'element-plus';
|
|
11
11
|
import { i as injectExplorerPanelState } from '../explorer-panel/explorer-panel2.mjs';
|
|
12
12
|
import { _ as _export_sfc } from '../../chunk/pcqpp-6-.mjs';
|
|
13
13
|
|
|
@@ -18,6 +18,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
18
18
|
props: {
|
|
19
19
|
data: {},
|
|
20
20
|
selection: { type: Boolean },
|
|
21
|
+
singleSelection: { type: Boolean },
|
|
21
22
|
index: { type: Boolean },
|
|
22
23
|
highlightCurrent: { type: Boolean, default: false },
|
|
23
24
|
emptyText: { default: "没有数据" },
|
|
@@ -27,20 +28,53 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
27
28
|
size: {},
|
|
28
29
|
columnRender: { type: Function, default: (column, row) => h("span", row[column.prop]) },
|
|
29
30
|
columnConfig: {},
|
|
30
|
-
startIndex: { default: 0 }
|
|
31
|
+
startIndex: { default: 0 },
|
|
32
|
+
rowKey: { type: [String, Function], default: "id" }
|
|
31
33
|
},
|
|
32
|
-
emits: ["columnEvent"],
|
|
34
|
+
emits: ["columnEvent", "singleSelect", "selectionChange"],
|
|
33
35
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
34
36
|
const props = __props;
|
|
35
37
|
const emits = __emit;
|
|
36
38
|
const state = injectExplorerPanelState();
|
|
39
|
+
const $style = useCssModule();
|
|
37
40
|
const columns = computed(() => state.columnConfig.value.filter((item) => item.visible !== false));
|
|
41
|
+
const selectedValue = ref();
|
|
42
|
+
const selectedValues = ref(/* @__PURE__ */ new Set());
|
|
43
|
+
function getRowValue(row) {
|
|
44
|
+
if (!row || !props.rowKey)
|
|
45
|
+
return void 0;
|
|
46
|
+
if (typeof props.rowKey === "function") {
|
|
47
|
+
return props.rowKey(row);
|
|
48
|
+
}
|
|
49
|
+
if (typeof props.rowKey === "string" && props.rowKey.includes(".")) {
|
|
50
|
+
return props.rowKey.split(".").reduce((obj, key) => obj?.[key], row);
|
|
51
|
+
}
|
|
52
|
+
return row[props.rowKey];
|
|
53
|
+
}
|
|
54
|
+
function handleRadioClick(row) {
|
|
55
|
+
const value = getRowValue(row);
|
|
56
|
+
if (selectedValue.value !== value) {
|
|
57
|
+
selectedValue.value = value;
|
|
58
|
+
emits("singleSelect", row);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
function handleSelectionChange(selection) {
|
|
62
|
+
selectedValues.value = new Set(selection.map((item) => getRowValue(item)));
|
|
63
|
+
emits("selectionChange", selection);
|
|
64
|
+
}
|
|
38
65
|
function columnType(item) {
|
|
39
66
|
if (item.prop.startsWith("expand")) {
|
|
40
67
|
return "expand";
|
|
41
68
|
}
|
|
42
69
|
return "default";
|
|
43
70
|
}
|
|
71
|
+
function rowClassName({ row }) {
|
|
72
|
+
const value = getRowValue(row);
|
|
73
|
+
if (value === selectedValue.value || selectedValues.value.has(value)) {
|
|
74
|
+
return $style["selected-row"];
|
|
75
|
+
}
|
|
76
|
+
return "";
|
|
77
|
+
}
|
|
44
78
|
watch(() => props.columnConfig, (val) => {
|
|
45
79
|
if (Array.isArray(state.columnConfig.value) && state.columnConfig.value.length) {
|
|
46
80
|
return;
|
|
@@ -60,25 +94,34 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
60
94
|
setColumns: (columns2) => {
|
|
61
95
|
state.columnConfig.value = columns2;
|
|
62
96
|
state.actions.saveColumnConfig();
|
|
97
|
+
},
|
|
98
|
+
setSelectedValue: (value) => {
|
|
99
|
+
selectedValue.value = value;
|
|
100
|
+
},
|
|
101
|
+
setSelectedValues: (values) => {
|
|
102
|
+
selectedValues.value = new Set(values);
|
|
63
103
|
}
|
|
64
104
|
});
|
|
65
105
|
return (_ctx, _cache) => {
|
|
66
106
|
const _component_ElTable = ElTable;
|
|
67
107
|
const _directive_loading = vLoading;
|
|
68
108
|
return withDirectives((openBlock(), createElementBlock("div", {
|
|
69
|
-
class: normalizeClass(
|
|
109
|
+
class: normalizeClass(unref($style)["explorer-table"])
|
|
70
110
|
}, [
|
|
71
111
|
createVNode(_component_ElTable, mergeProps({
|
|
72
112
|
data: __props.data,
|
|
73
113
|
stripe: "",
|
|
74
|
-
class:
|
|
114
|
+
class: unref($style).table,
|
|
75
115
|
size: __props.size
|
|
76
116
|
}, _ctx.$attrs, {
|
|
77
117
|
"scrollbar-always-on": "",
|
|
78
118
|
"highlight-current-row": __props.highlightCurrent,
|
|
79
119
|
border: "",
|
|
80
120
|
"allow-drag-last-column": true,
|
|
81
|
-
|
|
121
|
+
"row-key": __props.rowKey,
|
|
122
|
+
"row-class-name": rowClassName,
|
|
123
|
+
onHeaderDragend,
|
|
124
|
+
onSelectionChange: handleSelectionChange
|
|
82
125
|
}), createSlots({
|
|
83
126
|
empty: withCtx(() => [
|
|
84
127
|
!__props.loading && !__props.pending ? (openBlock(), createElementBlock("div", _hoisted_1, toDisplayString(__props.emptyText), 1)) : (openBlock(), createElementBlock("div", _hoisted_2))
|
|
@@ -87,10 +130,27 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
87
130
|
__props.selection ? (openBlock(), createBlock(unref(ElTableColumn), {
|
|
88
131
|
key: 0,
|
|
89
132
|
type: "selection",
|
|
90
|
-
width: __props.size === "large" ? 50 :
|
|
133
|
+
width: __props.size === "large" ? 50 : 40,
|
|
91
134
|
align: "center"
|
|
92
135
|
}, null, 8, ["width"])) : createCommentVNode("", true),
|
|
93
|
-
|
|
136
|
+
__props.singleSelection ? (openBlock(), createBlock(unref(ElTableColumn), {
|
|
137
|
+
key: 1,
|
|
138
|
+
width: __props.size === "large" ? 50 : 40,
|
|
139
|
+
align: "center",
|
|
140
|
+
fixed: "left"
|
|
141
|
+
}, {
|
|
142
|
+
default: withCtx(({ row }) => [
|
|
143
|
+
createVNode(unref(ElRadio), {
|
|
144
|
+
modelValue: unref(selectedValue),
|
|
145
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(selectedValue) ? selectedValue.value = $event : null),
|
|
146
|
+
value: getRowValue(row),
|
|
147
|
+
class: normalizeClass(unref($style).radio),
|
|
148
|
+
onClick: withModifiers(($event) => handleRadioClick(row), ["stop"])
|
|
149
|
+
}, null, 8, ["modelValue", "value", "class", "onClick"])
|
|
150
|
+
]),
|
|
151
|
+
_: 1
|
|
152
|
+
}, 8, ["width"])) : createCommentVNode("", true),
|
|
153
|
+
unref(columns).length ? (openBlock(true), createElementBlock(Fragment, { key: 2 }, renderList(unref(columns), (item) => {
|
|
94
154
|
return openBlock(), createBlock(unref(ElTableColumn), mergeProps({
|
|
95
155
|
key: item.prop
|
|
96
156
|
}, { ref_for: true }, item, {
|
|
@@ -140,7 +200,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
140
200
|
]),
|
|
141
201
|
key: "0"
|
|
142
202
|
} : void 0
|
|
143
|
-
]), 1040, ["data", "class", "size", "highlight-current-row"])
|
|
203
|
+
]), 1040, ["data", "class", "size", "highlight-current-row", "row-key"])
|
|
144
204
|
], 2)), [
|
|
145
205
|
[_directive_loading, __props.loading]
|
|
146
206
|
]);
|
|
@@ -148,10 +208,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
148
208
|
}
|
|
149
209
|
});
|
|
150
210
|
|
|
151
|
-
/* unplugin-vue-components disabled */const table = "
|
|
211
|
+
/* unplugin-vue-components disabled */const table = "_table_1adx5_7";
|
|
212
|
+
const radio = "_radio_1adx5_20";
|
|
152
213
|
const style0 = {
|
|
153
|
-
"explorer-table": "_explorer-
|
|
154
|
-
table: table
|
|
214
|
+
"explorer-table": "_explorer-table_1adx5_1",
|
|
215
|
+
table: table,
|
|
216
|
+
radio: radio,
|
|
217
|
+
"selected-row": "_selected-row_1adx5_27"
|
|
155
218
|
};
|
|
156
219
|
|
|
157
220
|
const cssModules = {
|
|
@@ -19,15 +19,22 @@ declare function __VLS_template(): {
|
|
|
19
19
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
20
20
|
declare const __VLS_component: import('vue').DefineComponent<IExplorerTableProps, {
|
|
21
21
|
setColumns: (columns: IColumnConfig[]) => void;
|
|
22
|
+
setSelectedValue: (value: any) => void;
|
|
23
|
+
setSelectedValues: (values: any[]) => void;
|
|
22
24
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
23
25
|
columnEvent: (column: IColumnConfig, row: Record<string, any>, value: Record<string, any>) => any;
|
|
26
|
+
singleSelect: (row: Record<string, any>) => any;
|
|
27
|
+
selectionChange: (rows: Record<string, any>[]) => any;
|
|
24
28
|
}, string, import('vue').PublicProps, Readonly<IExplorerTableProps> & Readonly<{
|
|
25
29
|
onColumnEvent?: ((column: IColumnConfig, row: Record<string, any>, value: Record<string, any>) => any) | undefined;
|
|
30
|
+
onSingleSelect?: ((row: Record<string, any>) => any) | undefined;
|
|
31
|
+
onSelectionChange?: ((rows: Record<string, any>[]) => any) | undefined;
|
|
26
32
|
}>, {
|
|
27
33
|
loading: boolean;
|
|
28
34
|
loadingText: string;
|
|
29
35
|
emptyText: string;
|
|
30
36
|
highlightCurrent: boolean;
|
|
37
|
+
rowKey: string | ((row: any) => string);
|
|
31
38
|
columnRender: (column: IColumnConfig, row: Record<string, any>, emits: IExplorerTableEmits, index: number) => VNode;
|
|
32
39
|
startIndex: number;
|
|
33
40
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
@@ -1,18 +1,27 @@
|
|
|
1
1
|
/* source: src/components/explorer-table/explorer-table.vue */
|
|
2
|
-
._explorer-
|
|
2
|
+
._explorer-table_1adx5_1 {
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
5
5
|
flex-grow: 1;
|
|
6
6
|
}
|
|
7
|
-
div.
|
|
7
|
+
div._table_1adx5_7 {
|
|
8
8
|
flex-grow: 1;
|
|
9
9
|
height: 100px;
|
|
10
10
|
--el-table-header-bg-color: var(--el-color-info-light-9);
|
|
11
11
|
--el-table-row-hover-bg-color: var(--el-color-primary-light-9);
|
|
12
12
|
}
|
|
13
|
-
div.
|
|
13
|
+
div._table_1adx5_7 .el-table__header-wrapper .el-table__cell:hover {
|
|
14
14
|
border-right-color: var(--el-color-primary-light-5) !important;
|
|
15
15
|
}
|
|
16
|
-
div.
|
|
16
|
+
div._table_1adx5_7 .el-table__column-resize-proxy {
|
|
17
17
|
border-color: var(--el-color-primary);
|
|
18
|
+
}
|
|
19
|
+
._radio_1adx5_20 {
|
|
20
|
+
height: unset;
|
|
21
|
+
}
|
|
22
|
+
._radio_1adx5_20 .el-radio__label {
|
|
23
|
+
display: none;
|
|
24
|
+
}
|
|
25
|
+
._selected-row_1adx5_27 td.el-table__cell {
|
|
26
|
+
background-color: var(--el-color-primary-light-9) !important;
|
|
18
27
|
}
|