@dt-frames/ui 2.0.2 → 2.0.4
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/es/assets/locales/en.ts +1 -1
- package/es/components/container/index.d.ts +4 -3
- package/es/components/container/index.js +24 -22
- package/es/components/container/src/slot-container.d.ts +5 -3
- package/es/components/curd/index.js +261 -229
- package/es/components/curd/src/components/Curd.d.ts +126 -331
- package/es/components/curd/src/props.d.ts +14 -15
- package/es/components/drawer/index.d.ts +3 -5
- package/es/components/drawer/index.js +55 -54
- package/es/components/drawer/src/components/DrawerHeader.d.ts +1 -3
- package/es/components/drawer/src/index.d.ts +4 -7
- package/es/components/form/index.d.ts +213 -361
- package/es/components/form/index.js +210 -163
- package/es/components/form/index.less +206 -8
- package/es/components/form/src/components/FormButtons.d.ts +3 -3
- package/es/components/form/src/components/FormItem.d.ts +152 -304
- package/es/components/form/src/components/formIcon.d.ts +4 -4
- package/es/components/form/src/components/formInputUseDialog.d.ts +3 -3
- package/es/components/form/src/enums/index.d.ts +1 -1
- package/es/components/form/src/index.d.ts +199 -347
- package/es/components/form/src/props.d.ts +8 -12
- package/es/components/form/src/types/form.type.d.ts +2 -2
- package/es/components/icons/index.d.ts +496 -2
- package/es/components/icons/index.less +5 -0
- package/es/components/icons/src/pick-icon.d.ts +5 -5
- package/es/components/modal/index.js +76 -74
- package/es/components/modal/index.less +10 -0
- package/es/components/modal/src/components/Modal.d.ts +108 -215
- package/es/components/modal/src/components/ModalFooter.d.ts +3 -3
- package/es/components/modal/src/index.d.ts +116 -223
- package/es/components/source/hooks/useSource.d.ts +14 -0
- package/es/components/source/index.js +66 -27
- package/es/components/source/types/source.type.d.ts +4 -8
- package/es/components/table/index.js +452 -820
- package/es/components/table/index.less +50 -14
- package/es/components/table/src/components/TableAction.d.ts +1 -1
- package/es/components/table/src/components/TableHeader.d.ts +109 -216
- package/es/components/table/src/components/TableRender.d.ts +13 -9
- package/es/components/table/src/components/tableSetting/Download.d.ts +107 -214
- package/es/components/table/src/components/tableSetting/DownloadCtrl.d.ts +107 -214
- package/es/components/table/src/components/tableSetting/index.d.ts +107 -214
- package/es/components/table/src/hooks/useDataSource.d.ts +1 -2
- package/es/components/table/src/hooks/usePagination.d.ts +3 -118
- package/es/components/table/src/index.d.ts +99 -435
- package/es/components/table/src/props.d.ts +19 -74
- package/es/components/table/src/types/actions.type.d.ts +1 -2
- package/es/components/table/src/types/table.type.d.ts +13 -8
- package/es/index.d.ts +1 -1
- package/es/index.js +2 -3240
- package/es/theme/index.js +688 -453
- package/es/theme/index.less +150 -0
- package/es/theme/src/components/header/components/logo.d.ts +0 -1
- package/es/theme/src/components/header/components/notify.d.ts +4 -3
- package/es/theme/src/components/header/components/setting-theme.d.ts +2 -1
- package/es/theme/src/components/header/components/user-info.d.ts +4 -3
- package/es/theme/src/components/header/helper/menu-tree.d.ts +1 -0
- package/es/theme/src/components/header/index.d.ts +8 -7
- package/es/theme/src/components/header/multiple-header.d.ts +22 -25
- package/es/theme/src/components/sider/components/drag-bar.d.ts +1 -1
- package/es/theme/src/components/sider/components/sider-trigger.d.ts +0 -1
- package/es/theme/src/components/sider/index.d.ts +147 -3
- package/es/theme/src/components/sider/mix-sider.d.ts +146 -0
- package/es/theme/src/enums/theme.enum.d.ts +2 -1
- package/es/theme/src/hooks/useMenu.d.ts +4 -2
- package/es/theme/src/index.d.ts +166 -23
- package/es/theme/src/stores/theme.store.d.ts +3 -0
- package/es/theme/src/types/theme.type.d.ts +2 -1
- package/package.json +3 -4
- package/vite.config.ts +0 -27
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import { useApp, isFunction, isObject, error, useTimeoutFn, useSlots, useI18n, off, on, windowResizeFn, dispatchResize, isArray, deepMerge } from "@dt-frames/core";
|
|
2
|
+
import { reactive, ref, getCurrentInstance, watchEffect, unref, nextTick, onUnmounted, toRaw, toRefs, useAttrs, createVNode, isVNode, defineComponent, computed, openBlock, createElementBlock, normalizeClass, Fragment, createBlock, withCtx, createElementVNode, createCommentVNode, inject, h, provide, onMounted, onBeforeUnmount, normalizeStyle, resolveDynamicComponent, renderSlot, mergeProps, watch, resolveDirective, normalizeProps, renderList, withDirectives, createTextVNode, toDisplayString, createSlots, guardReactiveProps } from "vue";
|
|
2
3
|
import { Tooltip, Button, FormItem, Col, Spin } from "ant-design-vue/es";
|
|
3
|
-
import
|
|
4
|
+
import "ant-design-vue/es/spin/style";
|
|
4
5
|
import { omit } from "lodash-es";
|
|
5
|
-
import { Modal
|
|
6
|
+
import { Modal } from "ant-design-vue";
|
|
7
|
+
import "ant-design-vue/es/modal/style";
|
|
8
|
+
import "ant-design-vue/es/tooltip/style";
|
|
9
|
+
import "ant-design-vue/es/col/style";
|
|
6
10
|
import "ant-design-vue/es/form/style";
|
|
7
11
|
import "ant-design-vue/es/button/style";
|
|
8
12
|
const orgDialogProp = reactive({});
|
|
@@ -119,8 +123,6 @@ function useModal(props, setModalData) {
|
|
|
119
123
|
};
|
|
120
124
|
return [register, methods];
|
|
121
125
|
}
|
|
122
|
-
const _default = "";
|
|
123
|
-
const index$2 = "";
|
|
124
126
|
const basicProps = {
|
|
125
127
|
t: {
|
|
126
128
|
type: String
|
|
@@ -277,7 +279,7 @@ function useDragMove(context) {
|
|
|
277
279
|
function _isSlot(s) {
|
|
278
280
|
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
|
|
279
281
|
}
|
|
280
|
-
const
|
|
282
|
+
const _sfc_main$8 = {
|
|
281
283
|
name: "Modal",
|
|
282
284
|
inheritAttrs: false,
|
|
283
285
|
props: basicProps,
|
|
@@ -311,14 +313,13 @@ const Modal = defineComponent({
|
|
|
311
313
|
};
|
|
312
314
|
if (!propsData?.visible)
|
|
313
315
|
return null;
|
|
314
|
-
return createVNode(Modal
|
|
316
|
+
return createVNode(Modal, propsData, _isSlot(_slot = extendSlots(slots)) ? _slot : {
|
|
315
317
|
default: () => [_slot]
|
|
316
318
|
});
|
|
317
319
|
};
|
|
318
320
|
}
|
|
319
|
-
}
|
|
320
|
-
const
|
|
321
|
-
const _sfc_main$7 = /* @__PURE__ */ defineComponent$1({
|
|
321
|
+
};
|
|
322
|
+
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
322
323
|
__name: "CloseIcon",
|
|
323
324
|
props: {
|
|
324
325
|
canFullscreen: { type: Boolean, default: true },
|
|
@@ -348,12 +349,12 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent$1({
|
|
|
348
349
|
return (_ctx, _cache) => {
|
|
349
350
|
const _component_ATooltip = Tooltip;
|
|
350
351
|
return openBlock(), createElementBlock("div", {
|
|
351
|
-
class: normalizeClass(["flex h-14 items-center justify-center", unref
|
|
352
|
+
class: normalizeClass(["flex h-14 items-center justify-center", unref(getClass)])
|
|
352
353
|
}, [
|
|
353
354
|
__props.canFullscreen ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
354
355
|
__props.fullScreen ? (openBlock(), createBlock(_component_ATooltip, {
|
|
355
356
|
key: 0,
|
|
356
|
-
title: unref
|
|
357
|
+
title: unref(t)("EXIT_FULLSCREEN"),
|
|
357
358
|
placement: "bottom"
|
|
358
359
|
}, {
|
|
359
360
|
default: withCtx(() => [
|
|
@@ -365,7 +366,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent$1({
|
|
|
365
366
|
_: 1
|
|
366
367
|
}, 8, ["title"])) : (openBlock(), createBlock(_component_ATooltip, {
|
|
367
368
|
key: 1,
|
|
368
|
-
title: unref
|
|
369
|
+
title: unref(t)("FULLSCREEN"),
|
|
369
370
|
placement: "bottom"
|
|
370
371
|
}, {
|
|
371
372
|
default: withCtx(() => [
|
|
@@ -445,7 +446,7 @@ function removeResizeListener(element, fn) {
|
|
|
445
446
|
element.__ro__.disconnect();
|
|
446
447
|
}
|
|
447
448
|
}
|
|
448
|
-
const Bar = defineComponent
|
|
449
|
+
const Bar = defineComponent({
|
|
449
450
|
name: "Bar",
|
|
450
451
|
props: {
|
|
451
452
|
vertical: Boolean,
|
|
@@ -453,14 +454,14 @@ const Bar = defineComponent$1({
|
|
|
453
454
|
move: Number
|
|
454
455
|
},
|
|
455
456
|
setup(props) {
|
|
456
|
-
const instance = getCurrentInstance
|
|
457
|
-
const thumb = ref
|
|
457
|
+
const instance = getCurrentInstance();
|
|
458
|
+
const thumb = ref();
|
|
458
459
|
const wrap = inject("scroll-bar-wrap", {});
|
|
459
|
-
const bar = computed
|
|
460
|
+
const bar = computed(() => {
|
|
460
461
|
return BAR_MAP[props.vertical ? "vertical" : "horizontal"];
|
|
461
462
|
});
|
|
462
|
-
const barStore = ref
|
|
463
|
-
const cursorDown = ref
|
|
463
|
+
const barStore = ref({});
|
|
464
|
+
const cursorDown = ref();
|
|
464
465
|
const clickThumbHandler = (e) => {
|
|
465
466
|
if (e.ctrlKey || e.button === 2) {
|
|
466
467
|
return;
|
|
@@ -501,16 +502,16 @@ const Bar = defineComponent$1({
|
|
|
501
502
|
off(document, "mousemove", mouseMoveDocumentHandler);
|
|
502
503
|
document.onselectstart = null;
|
|
503
504
|
}
|
|
504
|
-
onUnmounted
|
|
505
|
+
onUnmounted(() => {
|
|
505
506
|
off(document, "mouseup", mouseUpDocumentHandler);
|
|
506
507
|
});
|
|
507
|
-
return () => h
|
|
508
|
+
return () => h(
|
|
508
509
|
"div",
|
|
509
510
|
{
|
|
510
511
|
class: ["scrollbar__bar", "is-" + bar.value.key],
|
|
511
512
|
onMousedown: clickTrackHandler
|
|
512
513
|
},
|
|
513
|
-
h
|
|
514
|
+
h("div", {
|
|
514
515
|
ref: thumb,
|
|
515
516
|
class: "scrollbar__thumb",
|
|
516
517
|
onMousedown: clickThumbHandler,
|
|
@@ -524,7 +525,7 @@ const Bar = defineComponent$1({
|
|
|
524
525
|
}
|
|
525
526
|
});
|
|
526
527
|
const _hoisted_1$1 = { class: "scrollbar relative h-full overflow-hidden" };
|
|
527
|
-
const _sfc_main$6 = /* @__PURE__ */ defineComponent
|
|
528
|
+
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
528
529
|
__name: "scroll-bar",
|
|
529
530
|
props: {
|
|
530
531
|
wrapClass: {
|
|
@@ -598,7 +599,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent$1({
|
|
|
598
599
|
ref_key: "wrap",
|
|
599
600
|
ref: wrap,
|
|
600
601
|
class: normalizeClass([[__props.wrapClass, "scrollbar__wrap--hidden-default"], "h-full overflow-auto"]),
|
|
601
|
-
style: normalizeStyle(unref
|
|
602
|
+
style: normalizeStyle(unref(style)),
|
|
602
603
|
onScroll: handleScroll
|
|
603
604
|
}, [
|
|
604
605
|
(openBlock(), createBlock(resolveDynamicComponent(__props.tag), {
|
|
@@ -613,20 +614,20 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent$1({
|
|
|
613
614
|
_: 3
|
|
614
615
|
}, 8, ["class", "style"]))
|
|
615
616
|
], 38),
|
|
616
|
-
createVNode(unref
|
|
617
|
-
move:
|
|
618
|
-
size:
|
|
617
|
+
createVNode(unref(Bar), {
|
|
618
|
+
move: moveX.value,
|
|
619
|
+
size: sizeWidth.value
|
|
619
620
|
}, null, 8, ["move", "size"]),
|
|
620
|
-
createVNode(unref
|
|
621
|
+
createVNode(unref(Bar), {
|
|
621
622
|
vertical: "",
|
|
622
|
-
move:
|
|
623
|
-
size:
|
|
623
|
+
move: moveY.value,
|
|
624
|
+
size: sizeHeight.value
|
|
624
625
|
}, null, 8, ["move", "size"])
|
|
625
626
|
]);
|
|
626
627
|
};
|
|
627
628
|
}
|
|
628
629
|
});
|
|
629
|
-
const _sfc_main$5 = /* @__PURE__ */ defineComponent
|
|
630
|
+
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
630
631
|
__name: "scroll-container",
|
|
631
632
|
setup(__props) {
|
|
632
633
|
const scrollbarRef = ref(null);
|
|
@@ -643,8 +644,8 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent$1({
|
|
|
643
644
|
};
|
|
644
645
|
}
|
|
645
646
|
});
|
|
646
|
-
const _sfc_main$4 = defineComponent({
|
|
647
|
-
|
|
647
|
+
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
648
|
+
__name: "slot-container",
|
|
648
649
|
props: {
|
|
649
650
|
template: {
|
|
650
651
|
type: Function
|
|
@@ -653,9 +654,11 @@ const _sfc_main$4 = defineComponent({
|
|
|
653
654
|
type: Object
|
|
654
655
|
}
|
|
655
656
|
},
|
|
656
|
-
setup(
|
|
657
|
-
|
|
658
|
-
|
|
657
|
+
setup(__props) {
|
|
658
|
+
const props = __props;
|
|
659
|
+
const Container = h("div", [props.template(props.data)]);
|
|
660
|
+
return (_ctx, _cache) => {
|
|
661
|
+
return openBlock(), createBlock(unref(Container));
|
|
659
662
|
};
|
|
660
663
|
}
|
|
661
664
|
});
|
|
@@ -667,7 +670,7 @@ const withInstall = (comp) => {
|
|
|
667
670
|
};
|
|
668
671
|
const DtScrollContainer = withInstall(_sfc_main$5);
|
|
669
672
|
withInstall(_sfc_main$4);
|
|
670
|
-
const _sfc_main$3 = /* @__PURE__ */ defineComponent
|
|
673
|
+
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
671
674
|
__name: "ModalWrap",
|
|
672
675
|
props: {
|
|
673
676
|
useWrapper: { type: Boolean, default: true },
|
|
@@ -700,10 +703,10 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent$1({
|
|
|
700
703
|
const wrapperRefDom = unref(wrapperRef);
|
|
701
704
|
if (!wrapperRefDom)
|
|
702
705
|
return;
|
|
703
|
-
const bodyDom = wrapperRefDom.$el.parentElement;
|
|
706
|
+
const bodyDom = wrapperRefDom.$el.parentElement.parentElement.parentElement;
|
|
704
707
|
if (!bodyDom)
|
|
705
708
|
return;
|
|
706
|
-
bodyDom.style.padding = "0";
|
|
709
|
+
bodyDom.style.padding = props.useWrapper ? "24px" : "0";
|
|
707
710
|
await nextTick();
|
|
708
711
|
const modalDom = bodyDom.parentElement && bodyDom.parentElement.parentElement;
|
|
709
712
|
return modalDom;
|
|
@@ -755,7 +758,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent$1({
|
|
|
755
758
|
}
|
|
756
759
|
);
|
|
757
760
|
return (_ctx, _cache) => {
|
|
758
|
-
return openBlock(), createBlock(unref
|
|
761
|
+
return openBlock(), createBlock(unref(DtScrollContainer), {
|
|
759
762
|
ref_key: "wrapperRef",
|
|
760
763
|
ref: wrapperRef
|
|
761
764
|
}, {
|
|
@@ -763,7 +766,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent$1({
|
|
|
763
766
|
createElementVNode("div", {
|
|
764
767
|
ref_key: "wrapRef",
|
|
765
768
|
ref: wrapRef,
|
|
766
|
-
style: normalizeStyle(unref
|
|
769
|
+
style: normalizeStyle(unref(wrapStyle))
|
|
767
770
|
}, [
|
|
768
771
|
renderSlot(_ctx.$slots, "default")
|
|
769
772
|
], 4)
|
|
@@ -773,7 +776,6 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent$1({
|
|
|
773
776
|
};
|
|
774
777
|
}
|
|
775
778
|
});
|
|
776
|
-
const index = "";
|
|
777
779
|
const _hoisted_1 = {
|
|
778
780
|
key: 0,
|
|
779
781
|
className: "preIcon pr-1"
|
|
@@ -787,7 +789,7 @@ const _hoisted_4 = /* @__PURE__ */ createElementVNode("i", { class: "text-2xl i
|
|
|
787
789
|
const _hoisted_5 = [
|
|
788
790
|
_hoisted_4
|
|
789
791
|
];
|
|
790
|
-
const _sfc_main$2 = /* @__PURE__ */ defineComponent
|
|
792
|
+
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
791
793
|
__name: "FormButtons",
|
|
792
794
|
props: {
|
|
793
795
|
mode: {
|
|
@@ -874,7 +876,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent$1({
|
|
|
874
876
|
const _component_ACol = Col;
|
|
875
877
|
const _directive_icon = resolveDirective("icon");
|
|
876
878
|
const _directive_auth = resolveDirective("auth");
|
|
877
|
-
return __props.show ? (openBlock(), createBlock(_component_ACol, normalizeProps(mergeProps({ key: 0 }, unref
|
|
879
|
+
return __props.show ? (openBlock(), createBlock(_component_ACol, normalizeProps(mergeProps({ key: 0 }, unref(colOpt))), {
|
|
878
880
|
default: withCtx(() => [
|
|
879
881
|
createVNode(_component_AFormItem, {
|
|
880
882
|
class: "dt-form-btns",
|
|
@@ -890,7 +892,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent$1({
|
|
|
890
892
|
class: normalizeClass(button.class),
|
|
891
893
|
loading: button.loading,
|
|
892
894
|
disabled: button.disabled,
|
|
893
|
-
key: unref
|
|
895
|
+
key: unref(key),
|
|
894
896
|
onClick: ($event) => handleBtnClick(button)
|
|
895
897
|
}, {
|
|
896
898
|
icon: withCtx(() => [
|
|
@@ -899,7 +901,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent$1({
|
|
|
899
901
|
]) : createCommentVNode("", true)
|
|
900
902
|
]),
|
|
901
903
|
default: withCtx(() => [
|
|
902
|
-
createTextVNode(" " + toDisplayString(unref
|
|
904
|
+
createTextVNode(" " + toDisplayString(unref(t)(button.label)) + " ", 1),
|
|
903
905
|
button.postIcon ? withDirectives((openBlock(), createElementBlock("span", _hoisted_2, null, 512)), [
|
|
904
906
|
[_directive_icon, button.postIcon]
|
|
905
907
|
]) : createCommentVNode("", true)
|
|
@@ -910,16 +912,16 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent$1({
|
|
|
910
912
|
]) : createCommentVNode("", true)
|
|
911
913
|
], 64);
|
|
912
914
|
}), 256)),
|
|
913
|
-
unref
|
|
915
|
+
unref(showAdvanceRef) ? (openBlock(), createBlock(_component_AButton, {
|
|
914
916
|
key: 0,
|
|
915
917
|
type: "link",
|
|
916
918
|
class: "advanced",
|
|
917
919
|
onClick: toggleAdvanced
|
|
918
920
|
}, {
|
|
919
921
|
default: withCtx(() => [
|
|
920
|
-
createElementVNode("span", _hoisted_3, toDisplayString(
|
|
922
|
+
createElementVNode("span", _hoisted_3, toDisplayString(advancedRef.value ? unref(t)("UI.ADVANCED") : unref(t)("UI.EXPAND")), 1),
|
|
921
923
|
createElementVNode("span", {
|
|
922
|
-
class: normalizeClass(unref
|
|
924
|
+
class: normalizeClass(unref(getAdvanceClass))
|
|
923
925
|
}, _hoisted_5, 2)
|
|
924
926
|
]),
|
|
925
927
|
_: 1
|
|
@@ -933,7 +935,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent$1({
|
|
|
933
935
|
};
|
|
934
936
|
}
|
|
935
937
|
});
|
|
936
|
-
const _sfc_main$1 = /* @__PURE__ */ defineComponent
|
|
938
|
+
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
937
939
|
__name: "ModalFooter",
|
|
938
940
|
props: {
|
|
939
941
|
buttons: Object,
|
|
@@ -949,12 +951,12 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent$1({
|
|
|
949
951
|
setup(__props, { emit: emits }) {
|
|
950
952
|
const props = __props;
|
|
951
953
|
const { t } = useI18n("UI");
|
|
952
|
-
const buttonList = computed
|
|
954
|
+
const buttonList = computed(() => {
|
|
953
955
|
if (props.buttons && props.buttons.length)
|
|
954
956
|
return props.buttons;
|
|
955
957
|
let buttonActions = [
|
|
956
|
-
{ t: "\u4FDD\u5B58",
|
|
957
|
-
{ t: "\u5173\u95ED",
|
|
958
|
+
{ t: "\u4FDD\u5B58", label: props.okText || t("SAVE"), preIcon: "mdi:content-save", type: "primary", flag: "OK" },
|
|
959
|
+
{ t: "\u5173\u95ED", label: props.cancelText || t("CLOSE"), preIcon: "mdi:close", flag: "CANCEL" }
|
|
958
960
|
];
|
|
959
961
|
if (!props.showSave)
|
|
960
962
|
buttonActions = buttonActions.filter((btn) => btn.flag !== "OK");
|
|
@@ -977,7 +979,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent$1({
|
|
|
977
979
|
renderSlot(_ctx.$slots, "appendFooter"),
|
|
978
980
|
createVNode(_sfc_main$2, {
|
|
979
981
|
mode: "dialog",
|
|
980
|
-
buttonList: unref
|
|
982
|
+
buttonList: unref(buttonList),
|
|
981
983
|
onHandleMethod: _cache[0] || (_cache[0] = ($event) => handleMethod($event))
|
|
982
984
|
}, null, 8, ["buttonList"])
|
|
983
985
|
], 64);
|
|
@@ -1002,7 +1004,7 @@ function useFullScreen(wrapClassName) {
|
|
|
1002
1004
|
toggleFullScreen
|
|
1003
1005
|
};
|
|
1004
1006
|
}
|
|
1005
|
-
const _sfc_main = /* @__PURE__ */ defineComponent
|
|
1007
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
1006
1008
|
__name: "index",
|
|
1007
1009
|
props: basicProps,
|
|
1008
1010
|
emits: ["visible-change", "height-change", "cancel", "save", "register", "update:visible"],
|
|
@@ -1102,23 +1104,23 @@ const _sfc_main = /* @__PURE__ */ defineComponent$1({
|
|
|
1102
1104
|
});
|
|
1103
1105
|
return (_ctx, _cache) => {
|
|
1104
1106
|
const _component_ASpin = Spin;
|
|
1105
|
-
return openBlock(), createBlock(
|
|
1107
|
+
return openBlock(), createBlock(_sfc_main$8, mergeProps(unref(getBindValue), { onCancel: handleCancel }), createSlots({
|
|
1106
1108
|
default: withCtx(() => [
|
|
1107
1109
|
createVNode(_component_ASpin, {
|
|
1108
|
-
spinning: unref
|
|
1109
|
-
tip: unref
|
|
1110
|
+
spinning: unref(getBindValue).loading,
|
|
1111
|
+
tip: unref(getBindValue).loadingTip
|
|
1110
1112
|
}, {
|
|
1111
1113
|
default: withCtx(() => [
|
|
1112
1114
|
createVNode(_sfc_main$3, mergeProps({
|
|
1113
|
-
useWrapper: unref
|
|
1114
|
-
fullScreen: unref
|
|
1115
|
+
useWrapper: unref(getBindValue).useWrapper,
|
|
1116
|
+
fullScreen: unref(fullScreenRef),
|
|
1115
1117
|
ref_key: "modalWrapperRef",
|
|
1116
1118
|
ref: modalWrapperRef,
|
|
1117
|
-
minHeight: unref
|
|
1118
|
-
height: unref
|
|
1119
|
-
visible:
|
|
1120
|
-
modalFooterHeight: unref
|
|
1121
|
-
}, unref
|
|
1119
|
+
minHeight: unref(getBindValue).minHeight,
|
|
1120
|
+
height: unref(getWrapperHeight),
|
|
1121
|
+
visible: visibleRef.value,
|
|
1122
|
+
modalFooterHeight: unref(modalFooterHeight)
|
|
1123
|
+
}, unref(omit)(unref(getBindValue).wrapperProps, "visible", "height", "modalFooterHeight"), { onHeightChange: handleHeightChange }), {
|
|
1122
1124
|
default: withCtx(() => [
|
|
1123
1125
|
renderSlot(_ctx.$slots, "default")
|
|
1124
1126
|
]),
|
|
@@ -1134,10 +1136,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent$1({
|
|
|
1134
1136
|
name: "closeIcon",
|
|
1135
1137
|
fn: withCtx(() => [
|
|
1136
1138
|
createVNode(_sfc_main$7, {
|
|
1137
|
-
canFullscreen: unref
|
|
1138
|
-
fullScreen: unref
|
|
1139
|
+
canFullscreen: unref(getBindValue).canFullscreen,
|
|
1140
|
+
fullScreen: unref(fullScreenRef),
|
|
1139
1141
|
onCancel: handleCancel,
|
|
1140
|
-
onFullscreen: unref
|
|
1142
|
+
onFullscreen: unref(toggleFullScreen)
|
|
1141
1143
|
}, null, 8, ["canFullscreen", "fullScreen", "onFullscreen"])
|
|
1142
1144
|
]),
|
|
1143
1145
|
key: "0"
|
|
@@ -1145,7 +1147,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent$1({
|
|
|
1145
1147
|
!_ctx.$slots.title ? {
|
|
1146
1148
|
name: "title",
|
|
1147
1149
|
fn: withCtx(() => [
|
|
1148
|
-
createTextVNode(toDisplayString(unref
|
|
1150
|
+
createTextVNode(toDisplayString(unref(getMergeProps).title), 1)
|
|
1149
1151
|
]),
|
|
1150
1152
|
key: "1"
|
|
1151
1153
|
} : void 0,
|
|
@@ -1153,11 +1155,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent$1({
|
|
|
1153
1155
|
name: "footer",
|
|
1154
1156
|
fn: withCtx(() => [
|
|
1155
1157
|
createVNode(_sfc_main$1, {
|
|
1156
|
-
buttons:
|
|
1157
|
-
showSave: unref
|
|
1158
|
-
showCancel: unref
|
|
1159
|
-
okText: unref
|
|
1160
|
-
cancelText: unref
|
|
1158
|
+
buttons: propsRef.value?.footer,
|
|
1159
|
+
showSave: unref(getBindValue).showOkBtn,
|
|
1160
|
+
showCancel: unref(getBindValue).showCancelBtn,
|
|
1161
|
+
okText: unref(getBindValue).okText,
|
|
1162
|
+
cancelText: unref(getBindValue).cancelText,
|
|
1161
1163
|
onHandleSave: handleSave,
|
|
1162
1164
|
onHandleCancel: handleCancel
|
|
1163
1165
|
}, createSlots({ _: 2 }, [
|
|
@@ -1173,7 +1175,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent$1({
|
|
|
1173
1175
|
]),
|
|
1174
1176
|
key: "2"
|
|
1175
1177
|
} : void 0,
|
|
1176
|
-
renderList(Object.keys(unref
|
|
1178
|
+
renderList(Object.keys(unref(omit)(_ctx.$slots, "default")), (item) => {
|
|
1177
1179
|
return {
|
|
1178
1180
|
name: item,
|
|
1179
1181
|
fn: withCtx((data) => [
|