@dt-frames/ui 2.0.10 → 2.0.12

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 (64) hide show
  1. package/es/components/container/index.d.ts +2 -93
  2. package/es/components/curd/index.js +7 -2966
  3. package/es/components/curd/src/components/Curd.d.ts +19 -891
  4. package/es/components/curd/src/hooks/useCurd.d.ts +2 -2
  5. package/es/components/curd/src/props.d.ts +6 -4
  6. package/es/components/curd/src/types/curd.type.d.ts +2 -2
  7. package/es/components/drawer/index.d.ts +10 -167
  8. package/es/components/drawer/index.js +24 -462
  9. package/es/components/drawer/src/components/DrawerFooter.d.ts +1 -84
  10. package/es/components/drawer/src/index.d.ts +10 -167
  11. package/es/components/drawer/src/types/index.type.d.ts +2 -2
  12. package/es/components/form/index.d.ts +5 -1
  13. package/es/components/form/index.js +81 -485
  14. package/es/components/form/src/components/FormItem.d.ts +3 -1
  15. package/es/components/form/src/components/formIcon.d.ts +3 -11
  16. package/es/components/form/src/components/formInputUseDialog.d.ts +2 -2
  17. package/es/components/form/src/props.d.ts +7 -5
  18. package/es/components/form/src/types/form.type.d.ts +3 -0
  19. package/es/components/form/src/types/items.type.d.ts +6 -4
  20. package/es/components/icons/index.d.ts +497 -497
  21. package/es/components/iframe/index.d.ts +2 -0
  22. package/es/components/iframe/index.js +72 -0
  23. package/es/components/iframe/index.less +29 -0
  24. package/es/components/iframe/src/index.d.ts +38 -0
  25. package/es/components/modal/index.d.ts +2 -1
  26. package/es/components/modal/index.js +23 -475
  27. package/es/components/modal/src/components/Modal.d.ts +1 -1
  28. package/es/components/modal/src/components/ModalFooter.d.ts +2 -95
  29. package/es/components/modal/src/components/ModalWrap.d.ts +1 -75
  30. package/es/components/modal/src/index.d.ts +14 -179
  31. package/es/components/table/index.js +328 -2030
  32. package/es/components/table/src/components/TableAction.d.ts +1 -1
  33. package/es/components/table/src/components/editTable/EditTableCell.d.ts +1 -1
  34. package/es/components/table/src/components/tableSetting/DownloadCtrl.d.ts +1 -877
  35. package/es/components/table/src/index.d.ts +10 -10
  36. package/es/components/tree/src/components/TreeHeader.d.ts +1 -1
  37. package/es/components/tree/src/index.d.ts +2 -2
  38. package/es/components/upload/index.d.ts +2 -0
  39. package/es/components/upload/index.js +419 -0
  40. package/es/components/upload/index.less +37 -0
  41. package/es/components/upload/src/basicProps.d.ts +89 -0
  42. package/es/components/upload/src/components/PdfView.d.ts +9 -0
  43. package/es/components/upload/src/hooks/useFile.d.ts +15 -0
  44. package/es/components/upload/src/index.d.ts +236 -0
  45. package/es/components/upload/src/type/file.d.ts +10 -0
  46. package/es/components/upload/src/utils/upload.d.ts +2 -0
  47. package/es/theme/index.d.ts +2 -1
  48. package/es/theme/index.js +98 -145
  49. package/es/theme/index.less +5 -1
  50. package/es/theme/src/components/content/index.d.ts +2 -0
  51. package/es/theme/src/components/header/index.d.ts +809 -809
  52. package/es/theme/src/components/header/multiple-header.d.ts +918 -918
  53. package/es/theme/src/hooks/useMenu.d.ts +1 -1
  54. package/es/theme/src/index.d.ts +2059 -2057
  55. package/index.d.ts +3 -1
  56. package/index.js +24 -2
  57. package/manualContentPath.js +124 -0
  58. package/package.json +8 -3
  59. package/vite.config.ts +19 -4
  60. package/es/components/curd/index.less +0 -2
  61. package/es/components/form/src/index.d.ts +0 -2922
  62. package/es/components/table/src/components/TableHeader.d.ts +0 -1136
  63. package/es/components/table/src/components/tableSetting/Download.d.ts +0 -922
  64. package/es/components/table/src/components/tableSetting/index.d.ts +0 -1030
@@ -1,14 +1,13 @@
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";
3
- import { Tooltip, Button, FormItem, Col, Spin } from "ant-design-vue/es";
1
+ import { useApp, isFunction, isObject, error, useTimeoutFn, useSlots, getPopupContainer, useI18n, 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, onMounted, watch, normalizeStyle, renderSlot, mergeProps, createSlots, createTextVNode, toDisplayString, renderList, normalizeProps, guardReactiveProps } from "vue";
3
+ import { Tooltip, Spin } from "ant-design-vue/es";
4
4
  import "ant-design-vue/es/spin/style";
5
5
  import { omit } from "lodash-es";
6
6
  import { Modal } from "ant-design-vue";
7
7
  import "ant-design-vue/es/modal/style";
8
8
  import "ant-design-vue/es/tooltip/style";
9
- import "ant-design-vue/es/col/style";
10
- import "ant-design-vue/es/form/style";
11
- import "ant-design-vue/es/button/style";
9
+ import { DtScrollContainer } from "../container";
10
+ import { DtFormButtons } from "../form";
12
11
  const orgDialogProp = reactive({});
13
12
  const cbTransfer = reactive({});
14
13
  const dataTransfer = reactive({});
@@ -99,7 +98,7 @@ function useModal(props, setModalData) {
99
98
  if (!setModalData || !isFunction(setModalData))
100
99
  return;
101
100
  nextTick(() => {
102
- setModalData(data);
101
+ setModalData(data ?? {});
103
102
  if (!data)
104
103
  return;
105
104
  if (props?.title && isFunction(props?.title)) {
@@ -282,7 +281,7 @@ function useDragMove(context) {
282
281
  function _isSlot(s) {
283
282
  return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
284
283
  }
285
- const _sfc_main$8 = {
284
+ const _sfc_main$4 = {
286
285
  name: "Modal",
287
286
  inheritAttrs: false,
288
287
  props: basicProps,
@@ -312,7 +311,8 @@ const _sfc_main$8 = {
312
311
  ...unref(attrs),
313
312
  ...props,
314
313
  destroyOnClose: true,
315
- onCancel
314
+ onCancel,
315
+ getContainer: getPopupContainer()
316
316
  };
317
317
  if (!propsData?.visible)
318
318
  return null;
@@ -322,7 +322,7 @@ const _sfc_main$8 = {
322
322
  };
323
323
  }
324
324
  };
325
- const _sfc_main$7 = /* @__PURE__ */ defineComponent({
325
+ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
326
326
  __name: "CloseIcon",
327
327
  props: {
328
328
  canFullscreen: { type: Boolean, default: true },
@@ -389,291 +389,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
389
389
  };
390
390
  }
391
391
  });
392
- const isServer = typeof window === "undefined";
393
- const BAR_MAP = {
394
- vertical: {
395
- offset: "offsetHeight",
396
- scroll: "scrollTop",
397
- scrollSize: "scrollHeight",
398
- size: "height",
399
- key: "vertical",
400
- axis: "Y",
401
- client: "clientY",
402
- direction: "top"
403
- },
404
- horizontal: {
405
- offset: "offsetWidth",
406
- scroll: "scrollLeft",
407
- scrollSize: "scrollWidth",
408
- size: "width",
409
- key: "horizontal",
410
- axis: "X",
411
- client: "clientX",
412
- direction: "left"
413
- }
414
- };
415
- function renderThumbStyle({ move, size, bar }) {
416
- const style = {};
417
- const translate = `translate${bar.axis}(${move}%)`;
418
- style[bar.size] = size;
419
- style.transform = translate;
420
- style.msTransform = translate;
421
- style.webkitTransform = translate;
422
- return style;
423
- }
424
- function resizeHandler(entries) {
425
- for (const entry of entries) {
426
- const listeners = entry.target.__resizeListeners__ || [];
427
- if (listeners.length) {
428
- listeners.forEach((fn) => {
429
- fn();
430
- });
431
- }
432
- }
433
- }
434
- function addResizeListener(element, fn) {
435
- if (isServer)
436
- return;
437
- if (!element.__resizeListeners__) {
438
- element.__resizeListeners__ = [];
439
- element.__ro__ = new ResizeObserver(resizeHandler);
440
- element.__ro__.observe(element);
441
- }
442
- element.__resizeListeners__.push(fn);
443
- }
444
- function removeResizeListener(element, fn) {
445
- if (!element || !element.__resizeListeners__)
446
- return;
447
- element.__resizeListeners__.splice(element.__resizeListeners__.indexOf(fn), 1);
448
- if (!element.__resizeListeners__.length) {
449
- element.__ro__.disconnect();
450
- }
451
- }
452
- const Bar = defineComponent({
453
- name: "Bar",
454
- props: {
455
- vertical: Boolean,
456
- size: String,
457
- move: Number
458
- },
459
- setup(props) {
460
- const instance = getCurrentInstance();
461
- const thumb = ref();
462
- const wrap = inject("scroll-bar-wrap", {});
463
- const bar = computed(() => {
464
- return BAR_MAP[props.vertical ? "vertical" : "horizontal"];
465
- });
466
- const barStore = ref({});
467
- const cursorDown = ref();
468
- const clickThumbHandler = (e) => {
469
- if (e.ctrlKey || e.button === 2) {
470
- return;
471
- }
472
- window.getSelection()?.removeAllRanges();
473
- startDrag(e);
474
- barStore.value[bar.value.axis] = e.currentTarget[bar.value.offset] - (e[bar.value.client] - e.currentTarget.getBoundingClientRect()[bar.value.direction]);
475
- };
476
- const clickTrackHandler = (e) => {
477
- const offset = Math.abs(
478
- e.target.getBoundingClientRect()[bar.value.direction] - e[bar.value.client]
479
- );
480
- const thumbHalf = thumb.value[bar.value.offset] / 2;
481
- const thumbPositionPercentage = (offset - thumbHalf) * 100 / instance?.vnode.el?.[bar.value.offset];
482
- wrap.value[bar.value.scroll] = thumbPositionPercentage * wrap.value[bar.value.scrollSize] / 100;
483
- };
484
- const startDrag = (e) => {
485
- e.stopImmediatePropagation();
486
- cursorDown.value = true;
487
- on(document, "mousemove", mouseMoveDocumentHandler);
488
- on(document, "mouseup", mouseUpDocumentHandler);
489
- document.onselectstart = () => false;
490
- };
491
- const mouseMoveDocumentHandler = (e) => {
492
- if (cursorDown.value === false)
493
- return;
494
- const prevPage = barStore.value[bar.value.axis];
495
- if (!prevPage)
496
- return;
497
- const offset = (instance?.vnode.el?.getBoundingClientRect()[bar.value.direction] - e[bar.value.client]) * -1;
498
- const thumbClickPosition = thumb.value[bar.value.offset] - prevPage;
499
- const thumbPositionPercentage = (offset - thumbClickPosition) * 100 / instance?.vnode.el?.[bar.value.offset];
500
- wrap.value[bar.value.scroll] = thumbPositionPercentage * wrap.value[bar.value.scrollSize] / 100;
501
- };
502
- function mouseUpDocumentHandler() {
503
- cursorDown.value = false;
504
- barStore.value[bar.value.axis] = 0;
505
- off(document, "mousemove", mouseMoveDocumentHandler);
506
- document.onselectstart = null;
507
- }
508
- onUnmounted(() => {
509
- off(document, "mouseup", mouseUpDocumentHandler);
510
- });
511
- return () => h(
512
- "div",
513
- {
514
- class: ["scrollbar__bar", "is-" + bar.value.key],
515
- onMousedown: clickTrackHandler
516
- },
517
- h("div", {
518
- ref: thumb,
519
- class: "scrollbar__thumb",
520
- onMousedown: clickThumbHandler,
521
- style: renderThumbStyle({
522
- size: props.size,
523
- move: props.move,
524
- bar: bar.value
525
- })
526
- })
527
- );
528
- }
529
- });
530
- const _hoisted_1$1 = { class: "scrollbar relative h-full overflow-hidden" };
531
- const _sfc_main$6 = /* @__PURE__ */ defineComponent({
532
- __name: "scroll-bar",
533
- props: {
534
- wrapClass: {
535
- type: [String, Array],
536
- default: ""
537
- },
538
- wrapStyle: Array,
539
- viewClass: {
540
- type: [String, Array],
541
- default: ""
542
- },
543
- viewStyle: {
544
- type: [String, Array],
545
- default: ""
546
- },
547
- noresize: Boolean,
548
- tag: {
549
- type: String,
550
- default: "div"
551
- }
552
- },
553
- setup(__props) {
554
- const props = __props;
555
- const sizeWidth = ref("0");
556
- const sizeHeight = ref("0");
557
- const moveX = ref(0);
558
- const moveY = ref(0);
559
- const wrap = ref();
560
- const resize = ref();
561
- provide("scroll-bar-wrap", wrap);
562
- const style = computed(() => {
563
- let rsStyle = {};
564
- if (Array.isArray(props.wrapStyle)) {
565
- props.wrapStyle.forEach((it) => {
566
- if (it)
567
- rsStyle = Object.assign({}, rsStyle, it);
568
- });
569
- }
570
- return rsStyle;
571
- });
572
- const handleScroll = () => {
573
- moveY.value = unref(wrap).scrollTop * 100 / unref(wrap).clientHeight;
574
- moveX.value = unref(wrap).scrollLeft * 100 / unref(wrap).clientWidth;
575
- };
576
- const update = () => {
577
- if (!unref(wrap))
578
- return;
579
- const heightPercentage = unref(wrap).clientHeight * 100 / unref(wrap).scrollHeight;
580
- const widthPercentage = unref(wrap).clientWidth * 100 / unref(wrap).scrollWidth;
581
- sizeHeight.value = heightPercentage < 100 ? heightPercentage + "%" : "";
582
- sizeWidth.value = widthPercentage < 100 ? widthPercentage + "%" : "";
583
- };
584
- onMounted(() => {
585
- nextTick(update);
586
- if (!props.noresize) {
587
- addResizeListener(unref(resize), update);
588
- addResizeListener(unref(wrap), update);
589
- addEventListener("resize", update);
590
- }
591
- });
592
- onBeforeUnmount(() => {
593
- if (!props.noresize) {
594
- removeResizeListener(unref(resize), update);
595
- removeResizeListener(unref(wrap), update);
596
- removeEventListener("resize", update);
597
- }
598
- });
599
- return (_ctx, _cache) => {
600
- return openBlock(), createElementBlock("div", _hoisted_1$1, [
601
- createElementVNode("div", {
602
- ref_key: "wrap",
603
- ref: wrap,
604
- class: normalizeClass([[__props.wrapClass, "scrollbar__wrap--hidden-default"], "h-full overflow-auto"]),
605
- style: normalizeStyle(unref(style)),
606
- onScroll: handleScroll
607
- }, [
608
- (openBlock(), createBlock(resolveDynamicComponent(__props.tag), {
609
- class: normalizeClass(["box-border", __props.viewClass]),
610
- ref_key: "resize",
611
- ref: resize,
612
- style: normalizeStyle(__props.viewStyle)
613
- }, {
614
- default: withCtx(() => [
615
- renderSlot(_ctx.$slots, "default")
616
- ]),
617
- _: 3
618
- }, 8, ["class", "style"]))
619
- ], 38),
620
- createVNode(unref(Bar), {
621
- move: moveX.value,
622
- size: sizeWidth.value
623
- }, null, 8, ["move", "size"]),
624
- createVNode(unref(Bar), {
625
- vertical: "",
626
- move: moveY.value,
627
- size: sizeHeight.value
628
- }, null, 8, ["move", "size"])
629
- ]);
630
- };
631
- }
632
- });
633
- const _sfc_main$5 = /* @__PURE__ */ defineComponent({
634
- __name: "scroll-container",
635
- setup(__props) {
636
- const scrollbarRef = ref(null);
637
- return (_ctx, _cache) => {
638
- return openBlock(), createBlock(_sfc_main$6, mergeProps({
639
- ref_key: "scrollbarRef",
640
- ref: scrollbarRef
641
- }, _ctx.$attrs, { class: "w-full h-full" }), {
642
- default: withCtx(() => [
643
- renderSlot(_ctx.$slots, "default")
644
- ]),
645
- _: 3
646
- }, 16);
647
- };
648
- }
649
- });
650
- const _sfc_main$4 = /* @__PURE__ */ defineComponent({
651
- __name: "slot-container",
652
- props: {
653
- template: {
654
- type: Function
655
- },
656
- data: {
657
- type: Object
658
- }
659
- },
660
- setup(__props) {
661
- const props = __props;
662
- const Container = h("div", [props.template(props.data)]);
663
- return (_ctx, _cache) => {
664
- return openBlock(), createBlock(unref(Container));
665
- };
666
- }
667
- });
668
- const withInstall = (comp) => {
669
- comp.install = (app) => {
670
- app.component(comp.name, comp);
671
- };
672
- return comp;
673
- };
674
- const DtScrollContainer = withInstall(_sfc_main$5);
675
- withInstall(_sfc_main$4);
676
- const _sfc_main$3 = /* @__PURE__ */ defineComponent({
392
+ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
677
393
  __name: "ModalWrap",
678
394
  props: {
679
395
  useWrapper: { type: Boolean, default: true },
@@ -779,179 +495,6 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
779
495
  };
780
496
  }
781
497
  });
782
- const _hoisted_1 = {
783
- key: 0,
784
- className: "preIcon pr-1"
785
- };
786
- const _hoisted_2 = {
787
- key: 0,
788
- className: "preIcon pl-1"
789
- };
790
- const _hoisted_3 = { class: "text" };
791
- const _hoisted_4 = /* @__PURE__ */ createElementVNode("i", { class: "text-2xl i ic:baseline-arrow-drop-down" }, null, -1);
792
- const _hoisted_5 = [
793
- _hoisted_4
794
- ];
795
- const _sfc_main$2 = /* @__PURE__ */ defineComponent({
796
- __name: "FormButtons",
797
- props: {
798
- mode: {
799
- type: String,
800
- default: "search"
801
- },
802
- show: {
803
- type: Boolean,
804
- default: true
805
- },
806
- showAdvancedButton: {
807
- type: Boolean,
808
- default: true
809
- },
810
- minShowColumn: {
811
- type: Number,
812
- default: 2
813
- },
814
- buttonList: {
815
- type: [Array],
816
- default: []
817
- },
818
- isAdvanced: {
819
- type: Boolean,
820
- default: true
821
- },
822
- colspan: {
823
- type: Object
824
- }
825
- },
826
- emits: ["handle-method"],
827
- setup(__props, { emit: emits }) {
828
- const props = __props;
829
- const { t } = useI18n();
830
- const advancedRef = ref(props.isAdvanced);
831
- let key = 0;
832
- const showAdvanceRef = computed(() => {
833
- return props.mode === "search" ? props.showAdvancedButton : false;
834
- });
835
- const colOpt = computed(() => {
836
- let style = {
837
- textAlign: "right"
838
- };
839
- if (props.mode === "dialog") {
840
- Object.assign(style, {
841
- display: "inline-block"
842
- });
843
- return { style };
844
- } else if (props.mode === null) {
845
- Object.assign(style, {
846
- display: "flex",
847
- justifyContent: "center",
848
- marginBottom: "20px"
849
- });
850
- return {
851
- style,
852
- span: 24
853
- };
854
- }
855
- return { style };
856
- });
857
- const getAdvanceClass = computed(() => {
858
- return [
859
- "basic-arrow",
860
- { "basic-arrow--active": !advancedRef.value }
861
- ];
862
- });
863
- const toggleAdvanced = () => {
864
- advancedRef.value = !advancedRef.value;
865
- dispatchResize();
866
- emits("handle-method", advancedRef.value);
867
- };
868
- function handleBtnClick(button) {
869
- if (button.onClick && isFunction(button.onClick)) {
870
- button.onClick();
871
- } else {
872
- emits("handle-method", button);
873
- }
874
- }
875
- watch(() => props.isAdvanced, (v) => {
876
- if (v || props.mode !== "search") {
877
- requestAnimationFrame(toggleAdvanced);
878
- }
879
- }, {
880
- immediate: true
881
- });
882
- watch(
883
- () => props.buttonList,
884
- (v) => key = new Date().getTime(),
885
- {
886
- immediate: true,
887
- deep: true
888
- }
889
- );
890
- return (_ctx, _cache) => {
891
- const _component_AButton = Button;
892
- const _component_AFormItem = FormItem;
893
- const _component_ACol = Col;
894
- const _directive_icon = resolveDirective("icon");
895
- const _directive_auth = resolveDirective("auth");
896
- return __props.show ? (openBlock(), createBlock(_component_ACol, normalizeProps(mergeProps({ key: 0 }, unref(colOpt))), {
897
- default: withCtx(() => [
898
- createVNode(_component_AFormItem, {
899
- class: "dt-form-btns",
900
- style: normalizeStyle({
901
- "margin-bottom": __props.mode === "search" ? "16px" : "0px"
902
- })
903
- }, {
904
- default: withCtx(() => [
905
- (openBlock(true), createElementBlock(Fragment, null, renderList(__props.buttonList, (button) => {
906
- return openBlock(), createElementBlock(Fragment, null, [
907
- (button.show === void 0 ? true : button.show) ? withDirectives((openBlock(), createBlock(_component_AButton, {
908
- class: normalizeClass(["items-center", button.class]),
909
- type: button.type,
910
- loading: button.loading,
911
- disabled: button.disabled,
912
- key: unref(key),
913
- onClick: ($event) => handleBtnClick(button)
914
- }, {
915
- icon: withCtx(() => [
916
- button.preIcon ? withDirectives((openBlock(), createElementBlock("span", _hoisted_1, null, 512)), [
917
- [_directive_icon, button.preIcon]
918
- ]) : createCommentVNode("", true)
919
- ]),
920
- default: withCtx(() => [
921
- createTextVNode(" " + toDisplayString(unref(t)(button.label)) + " ", 1),
922
- button.postIcon ? withDirectives((openBlock(), createElementBlock("span", _hoisted_2, null, 512)), [
923
- [_directive_icon, button.postIcon]
924
- ]) : createCommentVNode("", true)
925
- ]),
926
- _: 2
927
- }, 1032, ["type", "class", "loading", "disabled", "onClick"])), [
928
- [_directive_auth, button.auth]
929
- ]) : createCommentVNode("", true)
930
- ], 64);
931
- }), 256)),
932
- unref(showAdvanceRef) ? (openBlock(), createBlock(_component_AButton, {
933
- key: 0,
934
- type: "link",
935
- class: "advanced",
936
- onClick: toggleAdvanced
937
- }, {
938
- default: withCtx(() => [
939
- createElementVNode("span", _hoisted_3, toDisplayString(advancedRef.value ? unref(t)("UI.ADVANCED") : unref(t)("UI.EXPAND")), 1),
940
- createElementVNode("span", {
941
- class: normalizeClass(unref(getAdvanceClass))
942
- }, _hoisted_5, 2)
943
- ]),
944
- _: 1
945
- })) : createCommentVNode("", true)
946
- ]),
947
- _: 1
948
- }, 8, ["style"])
949
- ]),
950
- _: 1
951
- }, 16)) : createCommentVNode("", true);
952
- };
953
- }
954
- });
955
498
  const _sfc_main$1 = /* @__PURE__ */ defineComponent({
956
499
  __name: "ModalFooter",
957
500
  props: {
@@ -994,7 +537,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
994
537
  return (_ctx, _cache) => {
995
538
  return openBlock(), createElementBlock(Fragment, null, [
996
539
  renderSlot(_ctx.$slots, "appendFooter"),
997
- createVNode(_sfc_main$2, {
540
+ createVNode(unref(DtFormButtons), {
998
541
  mode: "dialog",
999
542
  buttonList: unref(buttonList),
1000
543
  onHandleMethod: _cache[0] || (_cache[0] = ($event) => handleMethod($event))
@@ -1024,13 +567,17 @@ function useFullScreen(wrapClassName) {
1024
567
  const _sfc_main = /* @__PURE__ */ defineComponent({
1025
568
  __name: "index",
1026
569
  props: basicProps,
1027
- emits: ["visible-change", "height-change", "cancel", "save", "register", "update:visible"],
570
+ emits: ["visible-change", "height-change", "cancel", "save", "register", "toggle-fullscreen", "update:visible"],
1028
571
  setup(__props, { emit: emits }) {
1029
572
  const props = __props;
1030
573
  const visibleRef = ref(false);
1031
574
  const propsRef = ref();
1032
575
  const modalWrapperRef = ref(null);
1033
576
  const { getWrapClassName, toggleFullScreen, fullScreenRef } = useFullScreen(computed(() => unref(propsRef)?.wrapClassName));
577
+ function handleFullscreen(e) {
578
+ toggleFullScreen(e);
579
+ emits("toggle-fullscreen", unref(fullScreenRef));
580
+ }
1034
581
  const getMergeProps = computed(() => {
1035
582
  return {
1036
583
  ...props,
@@ -1121,14 +668,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1121
668
  });
1122
669
  return (_ctx, _cache) => {
1123
670
  const _component_ASpin = Spin;
1124
- return openBlock(), createBlock(_sfc_main$8, mergeProps(unref(getBindValue), { onCancel: handleCancel }), createSlots({
671
+ return openBlock(), createBlock(_sfc_main$4, mergeProps(unref(getBindValue), { onCancel: handleCancel }), createSlots({
1125
672
  default: withCtx(() => [
1126
673
  createVNode(_component_ASpin, {
1127
674
  spinning: unref(getBindValue).loading,
1128
675
  tip: unref(getBindValue).loadingTip
1129
676
  }, {
1130
677
  default: withCtx(() => [
1131
- createVNode(_sfc_main$3, mergeProps({
678
+ createVNode(_sfc_main$2, mergeProps({
1132
679
  useWrapper: unref(getBindValue).useWrapper,
1133
680
  fullScreen: unref(fullScreenRef),
1134
681
  ref_key: "modalWrapperRef",
@@ -1152,12 +699,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1152
699
  !_ctx.$slots.closeIcon ? {
1153
700
  name: "closeIcon",
1154
701
  fn: withCtx(() => [
1155
- createVNode(_sfc_main$7, {
702
+ createVNode(_sfc_main$3, {
1156
703
  canFullscreen: unref(getBindValue).canFullscreen,
1157
704
  fullScreen: unref(fullScreenRef),
1158
705
  onCancel: handleCancel,
1159
- onFullscreen: unref(toggleFullScreen)
1160
- }, null, 8, ["canFullscreen", "fullScreen", "onFullscreen"])
706
+ onFullscreen: handleFullscreen
707
+ }, null, 8, ["canFullscreen", "fullScreen"])
1161
708
  ]),
1162
709
  key: "0"
1163
710
  } : void 0,
@@ -1206,6 +753,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1206
753
  });
1207
754
  export {
1208
755
  _sfc_main as DtModal,
756
+ basicProps,
1209
757
  useModal,
1210
758
  useModalOut
1211
759
  };
@@ -91,7 +91,7 @@ declare const _sfc_main: {
91
91
  };
92
92
  maskStyle: import("vue").PropType<import("vue").CSSProperties>;
93
93
  footer: {
94
- type: import("vue").PropType<import("../../../form/src/types/form.type").ButtonProps[]>;
94
+ type: import("vue").PropType<import("../../../form").ButtonProps[]>;
95
95
  };
96
96
  bodyStyle: import("vue").PropType<import("vue").CSSProperties>;
97
97
  wrapperProps: ObjectConstructor;