@dt-frames/ui 2.0.9 → 2.0.11

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 (60) hide show
  1. package/es/components/curd/index.js +6 -2973
  2. package/es/components/curd/src/components/Curd.d.ts +13 -881
  3. package/es/components/curd/src/hooks/useCurd.d.ts +3 -3
  4. package/es/components/curd/src/props.d.ts +3 -4
  5. package/es/components/curd/src/types/curd.type.d.ts +2 -2
  6. package/es/components/drawer/index.d.ts +9 -166
  7. package/es/components/drawer/index.js +20 -458
  8. package/es/components/drawer/src/components/DrawerFooter.d.ts +1 -84
  9. package/es/components/drawer/src/index.d.ts +9 -166
  10. package/es/components/drawer/src/types/index.type.d.ts +1 -1
  11. package/es/components/form/index.d.ts +5 -1
  12. package/es/components/form/index.js +97 -491
  13. package/es/components/form/index.less +18 -0
  14. package/es/components/form/src/components/FormButtons.d.ts +13 -3
  15. package/es/components/form/src/components/FormItem.d.ts +0 -1
  16. package/es/components/form/src/components/formIcon.d.ts +3 -3
  17. package/es/components/form/src/components/formInputUseDialog.d.ts +2 -2
  18. package/es/components/form/src/hooks/useLabelWidth.d.ts +2 -18
  19. package/es/components/form/src/props.d.ts +3 -4
  20. package/es/components/form/src/types/form.type.d.ts +5 -3
  21. package/es/components/form/src/types/items.type.d.ts +12 -5
  22. package/es/components/modal/index.d.ts +2 -1
  23. package/es/components/modal/index.js +19 -456
  24. package/es/components/modal/src/components/Modal.d.ts +2 -2
  25. package/es/components/modal/src/components/ModalFooter.d.ts +2 -85
  26. package/es/components/modal/src/components/ModalWrap.d.ts +1 -75
  27. package/es/components/modal/src/index.d.ts +14 -171
  28. package/es/components/modal/src/props.d.ts +2 -1
  29. package/es/components/table/index.js +47 -1849
  30. package/es/components/table/index.less +3 -3
  31. package/es/components/table/src/components/TableAction.d.ts +1 -1
  32. package/es/components/table/src/components/editTable/EditTableCell.d.ts +1 -1
  33. package/es/components/table/src/components/tableSetting/DownloadCtrl.d.ts +1 -867
  34. package/es/components/table/src/index.d.ts +10 -10
  35. package/es/components/tree/index.js +29 -39
  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 +16 -0
  40. package/es/components/upload/index.less +0 -0
  41. package/es/components/upload/src/index.d.ts +2 -0
  42. package/es/theme/index.d.ts +2 -1
  43. package/es/theme/index.js +11 -4
  44. package/es/theme/index.less +1 -0
  45. package/es/theme/src/components/header/components/size.d.ts +5 -5
  46. package/es/theme/src/components/header/index.d.ts +5 -5
  47. package/es/theme/src/components/header/multiple-header.d.ts +5 -5
  48. package/es/theme/src/hooks/useMenu.d.ts +1 -1
  49. package/es/theme/src/index.d.ts +10 -10
  50. package/es/theme/transition.less +105 -0
  51. package/index.js +21 -1
  52. package/manualContentPath.js +110 -0
  53. package/package.json +5 -2
  54. package/vite.config.ts +16 -4
  55. package/vite.config.ts.timestamp-1678694558071.mjs +59 -0
  56. package/vite.config.ts.timestamp-1678700851971.mjs +61 -0
  57. package/es/components/form/src/index.d.ts +0 -2922
  58. package/es/components/table/src/components/TableHeader.d.ts +0 -1136
  59. package/es/components/table/src/components/tableSetting/Download.d.ts +0 -922
  60. 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, 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({});
@@ -100,6 +99,12 @@ function useModal(props, setModalData) {
100
99
  return;
101
100
  nextTick(() => {
102
101
  setModalData(data);
102
+ if (!data)
103
+ return;
104
+ if (props?.title && isFunction(props?.title)) {
105
+ let title = props.title(data);
106
+ methods.setModalProps({ title });
107
+ }
103
108
  });
104
109
  });
105
110
  const methods = {
@@ -276,7 +281,7 @@ function useDragMove(context) {
276
281
  function _isSlot(s) {
277
282
  return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
278
283
  }
279
- const _sfc_main$8 = {
284
+ const _sfc_main$4 = {
280
285
  name: "Modal",
281
286
  inheritAttrs: false,
282
287
  props: basicProps,
@@ -316,7 +321,7 @@ const _sfc_main$8 = {
316
321
  };
317
322
  }
318
323
  };
319
- const _sfc_main$7 = /* @__PURE__ */ defineComponent({
324
+ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
320
325
  __name: "CloseIcon",
321
326
  props: {
322
327
  canFullscreen: { type: Boolean, default: true },
@@ -383,291 +388,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
383
388
  };
384
389
  }
385
390
  });
386
- const isServer = typeof window === "undefined";
387
- const BAR_MAP = {
388
- vertical: {
389
- offset: "offsetHeight",
390
- scroll: "scrollTop",
391
- scrollSize: "scrollHeight",
392
- size: "height",
393
- key: "vertical",
394
- axis: "Y",
395
- client: "clientY",
396
- direction: "top"
397
- },
398
- horizontal: {
399
- offset: "offsetWidth",
400
- scroll: "scrollLeft",
401
- scrollSize: "scrollWidth",
402
- size: "width",
403
- key: "horizontal",
404
- axis: "X",
405
- client: "clientX",
406
- direction: "left"
407
- }
408
- };
409
- function renderThumbStyle({ move, size, bar }) {
410
- const style = {};
411
- const translate = `translate${bar.axis}(${move}%)`;
412
- style[bar.size] = size;
413
- style.transform = translate;
414
- style.msTransform = translate;
415
- style.webkitTransform = translate;
416
- return style;
417
- }
418
- function resizeHandler(entries) {
419
- for (const entry of entries) {
420
- const listeners = entry.target.__resizeListeners__ || [];
421
- if (listeners.length) {
422
- listeners.forEach((fn) => {
423
- fn();
424
- });
425
- }
426
- }
427
- }
428
- function addResizeListener(element, fn) {
429
- if (isServer)
430
- return;
431
- if (!element.__resizeListeners__) {
432
- element.__resizeListeners__ = [];
433
- element.__ro__ = new ResizeObserver(resizeHandler);
434
- element.__ro__.observe(element);
435
- }
436
- element.__resizeListeners__.push(fn);
437
- }
438
- function removeResizeListener(element, fn) {
439
- if (!element || !element.__resizeListeners__)
440
- return;
441
- element.__resizeListeners__.splice(element.__resizeListeners__.indexOf(fn), 1);
442
- if (!element.__resizeListeners__.length) {
443
- element.__ro__.disconnect();
444
- }
445
- }
446
- const Bar = defineComponent({
447
- name: "Bar",
448
- props: {
449
- vertical: Boolean,
450
- size: String,
451
- move: Number
452
- },
453
- setup(props) {
454
- const instance = getCurrentInstance();
455
- const thumb = ref();
456
- const wrap = inject("scroll-bar-wrap", {});
457
- const bar = computed(() => {
458
- return BAR_MAP[props.vertical ? "vertical" : "horizontal"];
459
- });
460
- const barStore = ref({});
461
- const cursorDown = ref();
462
- const clickThumbHandler = (e) => {
463
- if (e.ctrlKey || e.button === 2) {
464
- return;
465
- }
466
- window.getSelection()?.removeAllRanges();
467
- startDrag(e);
468
- barStore.value[bar.value.axis] = e.currentTarget[bar.value.offset] - (e[bar.value.client] - e.currentTarget.getBoundingClientRect()[bar.value.direction]);
469
- };
470
- const clickTrackHandler = (e) => {
471
- const offset = Math.abs(
472
- e.target.getBoundingClientRect()[bar.value.direction] - e[bar.value.client]
473
- );
474
- const thumbHalf = thumb.value[bar.value.offset] / 2;
475
- const thumbPositionPercentage = (offset - thumbHalf) * 100 / instance?.vnode.el?.[bar.value.offset];
476
- wrap.value[bar.value.scroll] = thumbPositionPercentage * wrap.value[bar.value.scrollSize] / 100;
477
- };
478
- const startDrag = (e) => {
479
- e.stopImmediatePropagation();
480
- cursorDown.value = true;
481
- on(document, "mousemove", mouseMoveDocumentHandler);
482
- on(document, "mouseup", mouseUpDocumentHandler);
483
- document.onselectstart = () => false;
484
- };
485
- const mouseMoveDocumentHandler = (e) => {
486
- if (cursorDown.value === false)
487
- return;
488
- const prevPage = barStore.value[bar.value.axis];
489
- if (!prevPage)
490
- return;
491
- const offset = (instance?.vnode.el?.getBoundingClientRect()[bar.value.direction] - e[bar.value.client]) * -1;
492
- const thumbClickPosition = thumb.value[bar.value.offset] - prevPage;
493
- const thumbPositionPercentage = (offset - thumbClickPosition) * 100 / instance?.vnode.el?.[bar.value.offset];
494
- wrap.value[bar.value.scroll] = thumbPositionPercentage * wrap.value[bar.value.scrollSize] / 100;
495
- };
496
- function mouseUpDocumentHandler() {
497
- cursorDown.value = false;
498
- barStore.value[bar.value.axis] = 0;
499
- off(document, "mousemove", mouseMoveDocumentHandler);
500
- document.onselectstart = null;
501
- }
502
- onUnmounted(() => {
503
- off(document, "mouseup", mouseUpDocumentHandler);
504
- });
505
- return () => h(
506
- "div",
507
- {
508
- class: ["scrollbar__bar", "is-" + bar.value.key],
509
- onMousedown: clickTrackHandler
510
- },
511
- h("div", {
512
- ref: thumb,
513
- class: "scrollbar__thumb",
514
- onMousedown: clickThumbHandler,
515
- style: renderThumbStyle({
516
- size: props.size,
517
- move: props.move,
518
- bar: bar.value
519
- })
520
- })
521
- );
522
- }
523
- });
524
- const _hoisted_1$1 = { class: "scrollbar relative h-full overflow-hidden" };
525
- const _sfc_main$6 = /* @__PURE__ */ defineComponent({
526
- __name: "scroll-bar",
527
- props: {
528
- wrapClass: {
529
- type: [String, Array],
530
- default: ""
531
- },
532
- wrapStyle: Array,
533
- viewClass: {
534
- type: [String, Array],
535
- default: ""
536
- },
537
- viewStyle: {
538
- type: [String, Array],
539
- default: ""
540
- },
541
- noresize: Boolean,
542
- tag: {
543
- type: String,
544
- default: "div"
545
- }
546
- },
547
- setup(__props) {
548
- const props = __props;
549
- const sizeWidth = ref("0");
550
- const sizeHeight = ref("0");
551
- const moveX = ref(0);
552
- const moveY = ref(0);
553
- const wrap = ref();
554
- const resize = ref();
555
- provide("scroll-bar-wrap", wrap);
556
- const style = computed(() => {
557
- let rsStyle = {};
558
- if (Array.isArray(props.wrapStyle)) {
559
- props.wrapStyle.forEach((it) => {
560
- if (it)
561
- rsStyle = Object.assign({}, rsStyle, it);
562
- });
563
- }
564
- return rsStyle;
565
- });
566
- const handleScroll = () => {
567
- moveY.value = unref(wrap).scrollTop * 100 / unref(wrap).clientHeight;
568
- moveX.value = unref(wrap).scrollLeft * 100 / unref(wrap).clientWidth;
569
- };
570
- const update = () => {
571
- if (!unref(wrap))
572
- return;
573
- const heightPercentage = unref(wrap).clientHeight * 100 / unref(wrap).scrollHeight;
574
- const widthPercentage = unref(wrap).clientWidth * 100 / unref(wrap).scrollWidth;
575
- sizeHeight.value = heightPercentage < 100 ? heightPercentage + "%" : "";
576
- sizeWidth.value = widthPercentage < 100 ? widthPercentage + "%" : "";
577
- };
578
- onMounted(() => {
579
- nextTick(update);
580
- if (!props.noresize) {
581
- addResizeListener(unref(resize), update);
582
- addResizeListener(unref(wrap), update);
583
- addEventListener("resize", update);
584
- }
585
- });
586
- onBeforeUnmount(() => {
587
- if (!props.noresize) {
588
- removeResizeListener(unref(resize), update);
589
- removeResizeListener(unref(wrap), update);
590
- removeEventListener("resize", update);
591
- }
592
- });
593
- return (_ctx, _cache) => {
594
- return openBlock(), createElementBlock("div", _hoisted_1$1, [
595
- createElementVNode("div", {
596
- ref_key: "wrap",
597
- ref: wrap,
598
- class: normalizeClass([[__props.wrapClass, "scrollbar__wrap--hidden-default"], "h-full overflow-auto"]),
599
- style: normalizeStyle(unref(style)),
600
- onScroll: handleScroll
601
- }, [
602
- (openBlock(), createBlock(resolveDynamicComponent(__props.tag), {
603
- class: normalizeClass(["box-border", __props.viewClass]),
604
- ref_key: "resize",
605
- ref: resize,
606
- style: normalizeStyle(__props.viewStyle)
607
- }, {
608
- default: withCtx(() => [
609
- renderSlot(_ctx.$slots, "default")
610
- ]),
611
- _: 3
612
- }, 8, ["class", "style"]))
613
- ], 38),
614
- createVNode(unref(Bar), {
615
- move: moveX.value,
616
- size: sizeWidth.value
617
- }, null, 8, ["move", "size"]),
618
- createVNode(unref(Bar), {
619
- vertical: "",
620
- move: moveY.value,
621
- size: sizeHeight.value
622
- }, null, 8, ["move", "size"])
623
- ]);
624
- };
625
- }
626
- });
627
- const _sfc_main$5 = /* @__PURE__ */ defineComponent({
628
- __name: "scroll-container",
629
- setup(__props) {
630
- const scrollbarRef = ref(null);
631
- return (_ctx, _cache) => {
632
- return openBlock(), createBlock(_sfc_main$6, mergeProps({
633
- ref_key: "scrollbarRef",
634
- ref: scrollbarRef
635
- }, _ctx.$attrs, { class: "w-full h-full" }), {
636
- default: withCtx(() => [
637
- renderSlot(_ctx.$slots, "default")
638
- ]),
639
- _: 3
640
- }, 16);
641
- };
642
- }
643
- });
644
- const _sfc_main$4 = /* @__PURE__ */ defineComponent({
645
- __name: "slot-container",
646
- props: {
647
- template: {
648
- type: Function
649
- },
650
- data: {
651
- type: Object
652
- }
653
- },
654
- setup(__props) {
655
- const props = __props;
656
- const Container = h("div", [props.template(props.data)]);
657
- return (_ctx, _cache) => {
658
- return openBlock(), createBlock(unref(Container));
659
- };
660
- }
661
- });
662
- const withInstall = (comp) => {
663
- comp.install = (app) => {
664
- app.component(comp.name, comp);
665
- };
666
- return comp;
667
- };
668
- const DtScrollContainer = withInstall(_sfc_main$5);
669
- withInstall(_sfc_main$4);
670
- const _sfc_main$3 = /* @__PURE__ */ defineComponent({
391
+ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
671
392
  __name: "ModalWrap",
672
393
  props: {
673
394
  useWrapper: { type: Boolean, default: true },
@@ -773,165 +494,6 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
773
494
  };
774
495
  }
775
496
  });
776
- const _hoisted_1 = {
777
- key: 0,
778
- className: "preIcon pr-1"
779
- };
780
- const _hoisted_2 = {
781
- key: 0,
782
- className: "preIcon pl-1"
783
- };
784
- const _hoisted_3 = { class: "text" };
785
- const _hoisted_4 = /* @__PURE__ */ createElementVNode("i", { class: "text-2xl i ic:baseline-arrow-drop-down" }, null, -1);
786
- const _hoisted_5 = [
787
- _hoisted_4
788
- ];
789
- const _sfc_main$2 = /* @__PURE__ */ defineComponent({
790
- __name: "FormButtons",
791
- props: {
792
- mode: {
793
- type: String,
794
- default: "search"
795
- },
796
- show: {
797
- type: Boolean,
798
- default: true
799
- },
800
- showAdvancedButton: {
801
- type: Boolean,
802
- default: true
803
- },
804
- minShowColumn: {
805
- type: Number,
806
- default: 2
807
- },
808
- buttonList: {
809
- type: [Array],
810
- default: []
811
- },
812
- isAdvanced: {
813
- type: Boolean,
814
- default: true
815
- }
816
- },
817
- emits: ["handle-method"],
818
- setup(__props, { emit: emits }) {
819
- const props = __props;
820
- const { t } = useI18n();
821
- const advancedRef = ref(props.isAdvanced);
822
- let key = 0;
823
- const showAdvanceRef = computed(() => {
824
- return props.mode === "search" ? props.showAdvancedButton : false;
825
- });
826
- const colOpt = computed(() => {
827
- let style = {
828
- textAlign: "right"
829
- };
830
- if (props.mode === "dialog") {
831
- Object.assign(style, {
832
- display: "inline-block"
833
- });
834
- }
835
- return { style };
836
- });
837
- const getAdvanceClass = computed(() => {
838
- return [
839
- "basic-arrow",
840
- { "basic-arrow--active": !advancedRef.value }
841
- ];
842
- });
843
- const toggleAdvanced = () => {
844
- advancedRef.value = !advancedRef.value;
845
- dispatchResize();
846
- emits("handle-method", advancedRef.value);
847
- };
848
- function handleBtnClick(button) {
849
- if (button.onClick && isFunction(button.onClick)) {
850
- button.onClick();
851
- } else {
852
- emits("handle-method", button);
853
- }
854
- }
855
- watch(() => props.isAdvanced, (v) => {
856
- if (v) {
857
- nextTick(() => toggleAdvanced());
858
- }
859
- }, {
860
- immediate: true
861
- });
862
- watch(
863
- () => props.buttonList,
864
- (v) => key = new Date().getTime(),
865
- {
866
- immediate: true,
867
- deep: true
868
- }
869
- );
870
- return (_ctx, _cache) => {
871
- const _component_AButton = Button;
872
- const _component_AFormItem = FormItem;
873
- const _component_ACol = Col;
874
- const _directive_icon = resolveDirective("icon");
875
- const _directive_auth = resolveDirective("auth");
876
- return __props.show ? (openBlock(), createBlock(_component_ACol, normalizeProps(mergeProps({ key: 0 }, unref(colOpt))), {
877
- default: withCtx(() => [
878
- createVNode(_component_AFormItem, {
879
- class: "dt-form-btns",
880
- style: normalizeStyle({
881
- "margin-bottom": __props.mode === "search" ? "16px" : "0px"
882
- })
883
- }, {
884
- default: withCtx(() => [
885
- (openBlock(true), createElementBlock(Fragment, null, renderList(__props.buttonList, (button) => {
886
- return openBlock(), createElementBlock(Fragment, null, [
887
- (button.show === void 0 ? true : button.show) ? withDirectives((openBlock(), createBlock(_component_AButton, {
888
- class: normalizeClass(["items-center", button.class]),
889
- type: button.type,
890
- loading: button.loading,
891
- disabled: button.disabled,
892
- key: unref(key),
893
- onClick: ($event) => handleBtnClick(button)
894
- }, {
895
- icon: withCtx(() => [
896
- button.preIcon ? withDirectives((openBlock(), createElementBlock("span", _hoisted_1, null, 512)), [
897
- [_directive_icon, button.preIcon]
898
- ]) : createCommentVNode("", true)
899
- ]),
900
- default: withCtx(() => [
901
- createTextVNode(" " + toDisplayString(unref(t)(button.label)) + " ", 1),
902
- button.postIcon ? withDirectives((openBlock(), createElementBlock("span", _hoisted_2, null, 512)), [
903
- [_directive_icon, button.postIcon]
904
- ]) : createCommentVNode("", true)
905
- ]),
906
- _: 2
907
- }, 1032, ["type", "class", "loading", "disabled", "onClick"])), [
908
- [_directive_auth, button.auth]
909
- ]) : createCommentVNode("", true)
910
- ], 64);
911
- }), 256)),
912
- unref(showAdvanceRef) ? (openBlock(), createBlock(_component_AButton, {
913
- key: 0,
914
- type: "link",
915
- class: "advanced",
916
- onClick: toggleAdvanced
917
- }, {
918
- default: withCtx(() => [
919
- createElementVNode("span", _hoisted_3, toDisplayString(advancedRef.value ? unref(t)("UI.ADVANCED") : unref(t)("UI.EXPAND")), 1),
920
- createElementVNode("span", {
921
- class: normalizeClass(unref(getAdvanceClass))
922
- }, _hoisted_5, 2)
923
- ]),
924
- _: 1
925
- })) : createCommentVNode("", true)
926
- ]),
927
- _: 1
928
- }, 8, ["style"])
929
- ]),
930
- _: 1
931
- }, 16)) : createCommentVNode("", true);
932
- };
933
- }
934
- });
935
497
  const _sfc_main$1 = /* @__PURE__ */ defineComponent({
936
498
  __name: "ModalFooter",
937
499
  props: {
@@ -974,7 +536,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
974
536
  return (_ctx, _cache) => {
975
537
  return openBlock(), createElementBlock(Fragment, null, [
976
538
  renderSlot(_ctx.$slots, "appendFooter"),
977
- createVNode(_sfc_main$2, {
539
+ createVNode(unref(DtFormButtons), {
978
540
  mode: "dialog",
979
541
  buttonList: unref(buttonList),
980
542
  onHandleMethod: _cache[0] || (_cache[0] = ($event) => handleMethod($event))
@@ -1101,14 +663,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1101
663
  });
1102
664
  return (_ctx, _cache) => {
1103
665
  const _component_ASpin = Spin;
1104
- return openBlock(), createBlock(_sfc_main$8, mergeProps(unref(getBindValue), { onCancel: handleCancel }), createSlots({
666
+ return openBlock(), createBlock(_sfc_main$4, mergeProps(unref(getBindValue), { onCancel: handleCancel }), createSlots({
1105
667
  default: withCtx(() => [
1106
668
  createVNode(_component_ASpin, {
1107
669
  spinning: unref(getBindValue).loading,
1108
670
  tip: unref(getBindValue).loadingTip
1109
671
  }, {
1110
672
  default: withCtx(() => [
1111
- createVNode(_sfc_main$3, mergeProps({
673
+ createVNode(_sfc_main$2, mergeProps({
1112
674
  useWrapper: unref(getBindValue).useWrapper,
1113
675
  fullScreen: unref(fullScreenRef),
1114
676
  ref_key: "modalWrapperRef",
@@ -1132,7 +694,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1132
694
  !_ctx.$slots.closeIcon ? {
1133
695
  name: "closeIcon",
1134
696
  fn: withCtx(() => [
1135
- createVNode(_sfc_main$7, {
697
+ createVNode(_sfc_main$3, {
1136
698
  canFullscreen: unref(getBindValue).canFullscreen,
1137
699
  fullScreen: unref(fullScreenRef),
1138
700
  onCancel: handleCancel,
@@ -1186,6 +748,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1186
748
  });
1187
749
  export {
1188
750
  _sfc_main as DtModal,
751
+ basicProps,
1189
752
  useModal,
1190
753
  useModalOut
1191
754
  };
@@ -40,7 +40,7 @@ declare const _sfc_main: {
40
40
  default: boolean;
41
41
  };
42
42
  title: {
43
- type: import("vue").PropType<String | import("vue").ComputedRef<String>>;
43
+ type: import("vue").PropType<String | import("vue").ComputedRef<String> | ((data: import("@dt-frames/core").Recordable<any>) => String)>;
44
44
  };
45
45
  loading: {
46
46
  type: BooleanConstructor;
@@ -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;
@@ -1,4 +1,4 @@
1
- import { ButtonProps } from '../../../form/src/types/form.type';
1
+ import { ButtonProps } from '../../../form';
2
2
  import { PropType } from 'vue';
3
3
  declare const _sfc_main: import("vue").DefineComponent<{
4
4
  buttons: PropType<ButtonProps[]>;
@@ -29,90 +29,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
29
29
  props: any;
30
30
  buttonList: import("vue").ComputedRef<ButtonProps[]>;
31
31
  handleMethod: (item: ButtonProps) => void;
32
- DtFormButtons: import("vue").DefineComponent<{
33
- mode: {
34
- type: PropType<"search" | "dialog">;
35
- default: string;
36
- };
37
- show: {
38
- type: BooleanConstructor;
39
- default: boolean;
40
- };
41
- showAdvancedButton: {
42
- type: BooleanConstructor;
43
- default: boolean;
44
- };
45
- minShowColumn: {
46
- type: NumberConstructor;
47
- default: number;
48
- };
49
- buttonList: {
50
- type: PropType<ButtonProps[]>;
51
- default: any[];
52
- };
53
- isAdvanced: {
54
- type: BooleanConstructor;
55
- default: boolean;
56
- };
57
- }, {
58
- props: any;
59
- emits: (event: "handle-method", ...args: any[]) => void;
60
- t: {
61
- (key: string): string;
62
- (key: string, locale: string): string;
63
- (key: string, locale: string, list: unknown[]): string;
64
- (key: string, locale: string, named: Record<string, unknown>): string;
65
- (key: string, list: unknown[]): string;
66
- (key: string, named: Record<string, unknown>): string;
67
- };
68
- advancedRef: import("vue").Ref<{
69
- valueOf: () => boolean;
70
- }>;
71
- key: number;
72
- showAdvanceRef: import("vue").ComputedRef<boolean>;
73
- colOpt: import("vue").ComputedRef<{
74
- style: import("@dt-frames/core").Recordable<any>;
75
- }>;
76
- getAdvanceClass: import("vue").ComputedRef<(string | {
77
- 'basic-arrow--active': boolean;
78
- })[]>;
79
- toggleAdvanced: () => void;
80
- handleBtnClick: (button: ButtonProps) => void;
81
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "handle-method"[], "handle-method", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
82
- mode: {
83
- type: PropType<"search" | "dialog">;
84
- default: string;
85
- };
86
- show: {
87
- type: BooleanConstructor;
88
- default: boolean;
89
- };
90
- showAdvancedButton: {
91
- type: BooleanConstructor;
92
- default: boolean;
93
- };
94
- minShowColumn: {
95
- type: NumberConstructor;
96
- default: number;
97
- };
98
- buttonList: {
99
- type: PropType<ButtonProps[]>;
100
- default: any[];
101
- };
102
- isAdvanced: {
103
- type: BooleanConstructor;
104
- default: boolean;
105
- };
106
- }>> & {
107
- "onHandle-method"?: (...args: any[]) => any;
108
- }, {
109
- mode: "search" | "dialog";
110
- show: boolean;
111
- showAdvancedButton: boolean;
112
- minShowColumn: number;
113
- buttonList: ButtonProps[];
114
- isAdvanced: boolean;
115
- }>;
32
+ readonly DtFormButtons: import("vue").DefineComponent<{}, {}, any, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
116
33
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("handleSave" | "handleCancel")[], "handleSave" | "handleCancel", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
117
34
  buttons: PropType<ButtonProps[]>;
118
35
  showSave: {