@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.
Files changed (69) hide show
  1. package/es/assets/locales/en.ts +1 -1
  2. package/es/components/container/index.d.ts +4 -3
  3. package/es/components/container/index.js +24 -22
  4. package/es/components/container/src/slot-container.d.ts +5 -3
  5. package/es/components/curd/index.js +261 -229
  6. package/es/components/curd/src/components/Curd.d.ts +126 -331
  7. package/es/components/curd/src/props.d.ts +14 -15
  8. package/es/components/drawer/index.d.ts +3 -5
  9. package/es/components/drawer/index.js +55 -54
  10. package/es/components/drawer/src/components/DrawerHeader.d.ts +1 -3
  11. package/es/components/drawer/src/index.d.ts +4 -7
  12. package/es/components/form/index.d.ts +213 -361
  13. package/es/components/form/index.js +210 -163
  14. package/es/components/form/index.less +206 -8
  15. package/es/components/form/src/components/FormButtons.d.ts +3 -3
  16. package/es/components/form/src/components/FormItem.d.ts +152 -304
  17. package/es/components/form/src/components/formIcon.d.ts +4 -4
  18. package/es/components/form/src/components/formInputUseDialog.d.ts +3 -3
  19. package/es/components/form/src/enums/index.d.ts +1 -1
  20. package/es/components/form/src/index.d.ts +199 -347
  21. package/es/components/form/src/props.d.ts +8 -12
  22. package/es/components/form/src/types/form.type.d.ts +2 -2
  23. package/es/components/icons/index.d.ts +496 -2
  24. package/es/components/icons/index.less +5 -0
  25. package/es/components/icons/src/pick-icon.d.ts +5 -5
  26. package/es/components/modal/index.js +76 -74
  27. package/es/components/modal/index.less +10 -0
  28. package/es/components/modal/src/components/Modal.d.ts +108 -215
  29. package/es/components/modal/src/components/ModalFooter.d.ts +3 -3
  30. package/es/components/modal/src/index.d.ts +116 -223
  31. package/es/components/source/hooks/useSource.d.ts +14 -0
  32. package/es/components/source/index.js +66 -27
  33. package/es/components/source/types/source.type.d.ts +4 -8
  34. package/es/components/table/index.js +452 -820
  35. package/es/components/table/index.less +50 -14
  36. package/es/components/table/src/components/TableAction.d.ts +1 -1
  37. package/es/components/table/src/components/TableHeader.d.ts +109 -216
  38. package/es/components/table/src/components/TableRender.d.ts +13 -9
  39. package/es/components/table/src/components/tableSetting/Download.d.ts +107 -214
  40. package/es/components/table/src/components/tableSetting/DownloadCtrl.d.ts +107 -214
  41. package/es/components/table/src/components/tableSetting/index.d.ts +107 -214
  42. package/es/components/table/src/hooks/useDataSource.d.ts +1 -2
  43. package/es/components/table/src/hooks/usePagination.d.ts +3 -118
  44. package/es/components/table/src/index.d.ts +99 -435
  45. package/es/components/table/src/props.d.ts +19 -74
  46. package/es/components/table/src/types/actions.type.d.ts +1 -2
  47. package/es/components/table/src/types/table.type.d.ts +13 -8
  48. package/es/index.d.ts +1 -1
  49. package/es/index.js +2 -3240
  50. package/es/theme/index.js +688 -453
  51. package/es/theme/index.less +150 -0
  52. package/es/theme/src/components/header/components/logo.d.ts +0 -1
  53. package/es/theme/src/components/header/components/notify.d.ts +4 -3
  54. package/es/theme/src/components/header/components/setting-theme.d.ts +2 -1
  55. package/es/theme/src/components/header/components/user-info.d.ts +4 -3
  56. package/es/theme/src/components/header/helper/menu-tree.d.ts +1 -0
  57. package/es/theme/src/components/header/index.d.ts +8 -7
  58. package/es/theme/src/components/header/multiple-header.d.ts +22 -25
  59. package/es/theme/src/components/sider/components/drag-bar.d.ts +1 -1
  60. package/es/theme/src/components/sider/components/sider-trigger.d.ts +0 -1
  61. package/es/theme/src/components/sider/index.d.ts +147 -3
  62. package/es/theme/src/components/sider/mix-sider.d.ts +146 -0
  63. package/es/theme/src/enums/theme.enum.d.ts +2 -1
  64. package/es/theme/src/hooks/useMenu.d.ts +4 -2
  65. package/es/theme/src/index.d.ts +166 -23
  66. package/es/theme/src/stores/theme.store.d.ts +3 -0
  67. package/es/theme/src/types/theme.type.d.ts +2 -1
  68. package/package.json +3 -4
  69. 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 { createVNode, isVNode, defineComponent as defineComponent$1, openBlock, createElementBlock, normalizeClass, unref as unref$1, Fragment, createBlock, withCtx, createElementVNode, createCommentVNode, getCurrentInstance as getCurrentInstance$1, ref as ref$1, inject, computed as computed$1, onUnmounted as onUnmounted$1, h as h$1, normalizeStyle, resolveDynamicComponent, renderSlot, mergeProps, resolveDirective, normalizeProps, renderList, withDirectives, createTextVNode, toDisplayString, createSlots, guardReactiveProps } from "vue";
4
+ import "ant-design-vue/es/spin/style";
4
5
  import { omit } from "lodash-es";
5
- import { Modal as Modal$1 } from "ant-design-vue";
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 Modal = defineComponent({
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$1, propsData, _isSlot(_slot = extendSlots(slots)) ? _slot : {
316
+ return createVNode(Modal, propsData, _isSlot(_slot = extendSlots(slots)) ? _slot : {
315
317
  default: () => [_slot]
316
318
  });
317
319
  };
318
320
  }
319
- });
320
- const index$1 = "";
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$1(getClass)])
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$1(t)("EXIT_FULLSCREEN"),
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$1(t)("FULLSCREEN"),
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$1({
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$1();
457
- const thumb = ref$1();
457
+ const instance = getCurrentInstance();
458
+ const thumb = ref();
458
459
  const wrap = inject("scroll-bar-wrap", {});
459
- const bar = computed$1(() => {
460
+ const bar = computed(() => {
460
461
  return BAR_MAP[props.vertical ? "vertical" : "horizontal"];
461
462
  });
462
- const barStore = ref$1({});
463
- const cursorDown = ref$1();
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$1(() => {
505
+ onUnmounted(() => {
505
506
  off(document, "mouseup", mouseUpDocumentHandler);
506
507
  });
507
- return () => h$1(
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$1("div", {
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$1({
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$1(style)),
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$1(Bar), {
617
- move: unref$1(moveX),
618
- size: unref$1(sizeWidth)
617
+ createVNode(unref(Bar), {
618
+ move: moveX.value,
619
+ size: sizeWidth.value
619
620
  }, null, 8, ["move", "size"]),
620
- createVNode(unref$1(Bar), {
621
+ createVNode(unref(Bar), {
621
622
  vertical: "",
622
- move: unref$1(moveY),
623
- size: unref$1(sizeHeight)
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$1({
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
- name: "slot-container",
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(props) {
657
- return () => {
658
- return h("div", [props.template(props.data)]);
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$1({
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$1(DtScrollContainer), {
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$1(wrapStyle))
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$1({
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$1(colOpt))), {
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$1(key),
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$1(t)(button.name)) + " ", 1),
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$1(showAdvanceRef) ? (openBlock(), createBlock(_component_AButton, {
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(unref$1(advancedRef) ? unref$1(t)("UI.ADVANCED") : unref$1(t)("UI.EXPAND")), 1),
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$1(getAdvanceClass))
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$1({
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$1(() => {
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", name: props.okText || t("SAVE"), preIcon: "mdi:content-save", type: "primary", flag: "OK" },
957
- { t: "\u5173\u95ED", name: props.cancelText || t("CLOSE"), preIcon: "mdi:close", flag: "CANCEL" }
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$1(buttonList),
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$1({
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(unref$1(Modal), mergeProps(unref$1(getBindValue), { onCancel: handleCancel }), createSlots({
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$1(getBindValue).loading,
1109
- tip: unref$1(getBindValue).loadingTip
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$1(getBindValue).useWrapper,
1114
- fullScreen: unref$1(fullScreenRef),
1115
+ useWrapper: unref(getBindValue).useWrapper,
1116
+ fullScreen: unref(fullScreenRef),
1115
1117
  ref_key: "modalWrapperRef",
1116
1118
  ref: modalWrapperRef,
1117
- minHeight: unref$1(getBindValue).minHeight,
1118
- height: unref$1(getWrapperHeight),
1119
- visible: unref$1(visibleRef),
1120
- modalFooterHeight: unref$1(modalFooterHeight)
1121
- }, unref$1(omit)(unref$1(getBindValue).wrapperProps, "visible", "height", "modalFooterHeight"), { onHeightChange: handleHeightChange }), {
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$1(getBindValue).canFullscreen,
1138
- fullScreen: unref$1(fullScreenRef),
1139
+ canFullscreen: unref(getBindValue).canFullscreen,
1140
+ fullScreen: unref(fullScreenRef),
1139
1141
  onCancel: handleCancel,
1140
- onFullscreen: unref$1(toggleFullScreen)
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$1(getMergeProps).title), 1)
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: unref$1(propsRef)?.footer,
1157
- showSave: unref$1(getBindValue).showOkBtn,
1158
- showCancel: unref$1(getBindValue).showCancelBtn,
1159
- okText: unref$1(getBindValue).okText,
1160
- cancelText: unref$1(getBindValue).cancelText,
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$1(omit)(_ctx.$slots, "default")), (item) => {
1178
+ renderList(Object.keys(unref(omit)(_ctx.$slots, "default")), (item) => {
1177
1179
  return {
1178
1180
  name: item,
1179
1181
  fn: withCtx((data) => [
@@ -14,6 +14,16 @@
14
14
  height: 100%;
15
15
  }
16
16
  }
17
+
18
+ .ant-modal-content{
19
+ display: flex;
20
+ flex-direction: column;
21
+
22
+ .ant-modal-body{
23
+ flex: 1;
24
+ height: 0;
25
+ }
26
+ }
17
27
  }
18
28
 
19
29