@dt-frames/ui 2.0.10 → 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 (48) hide show
  1. package/es/components/curd/index.js +7 -2966
  2. package/es/components/curd/src/components/Curd.d.ts +13 -889
  3. package/es/components/curd/src/hooks/useCurd.d.ts +2 -2
  4. package/es/components/curd/src/props.d.ts +3 -3
  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 +50 -473
  13. package/es/components/form/src/components/formIcon.d.ts +3 -3
  14. package/es/components/form/src/components/formInputUseDialog.d.ts +2 -2
  15. package/es/components/form/src/props.d.ts +4 -4
  16. package/es/components/form/src/types/form.type.d.ts +2 -0
  17. package/es/components/modal/index.d.ts +2 -1
  18. package/es/components/modal/index.js +13 -470
  19. package/es/components/modal/src/components/Modal.d.ts +1 -1
  20. package/es/components/modal/src/components/ModalFooter.d.ts +2 -95
  21. package/es/components/modal/src/components/ModalWrap.d.ts +1 -75
  22. package/es/components/modal/src/index.d.ts +10 -177
  23. package/es/components/table/index.js +46 -1827
  24. package/es/components/table/src/components/TableAction.d.ts +1 -1
  25. package/es/components/table/src/components/editTable/EditTableCell.d.ts +1 -1
  26. package/es/components/table/src/components/tableSetting/DownloadCtrl.d.ts +1 -877
  27. package/es/components/table/src/index.d.ts +10 -10
  28. package/es/components/tree/index.js +29 -39
  29. package/es/components/tree/src/components/TreeHeader.d.ts +1 -1
  30. package/es/components/tree/src/index.d.ts +2 -2
  31. package/es/components/upload/index.d.ts +2 -0
  32. package/es/components/upload/index.js +16 -0
  33. package/es/components/upload/index.less +0 -0
  34. package/es/components/upload/src/index.d.ts +2 -0
  35. package/es/theme/index.d.ts +2 -1
  36. package/es/theme/index.js +95 -144
  37. package/es/theme/src/hooks/useMenu.d.ts +1 -1
  38. package/index.js +21 -1
  39. package/manualContentPath.js +110 -0
  40. package/package.json +5 -2
  41. package/vite.config.ts +16 -4
  42. package/vite.config.ts.timestamp-1678694558071.mjs +59 -0
  43. package/vite.config.ts.timestamp-1678700851971.mjs +61 -0
  44. package/es/components/curd/index.less +0 -2
  45. package/es/components/form/src/index.d.ts +0 -2922
  46. package/es/components/table/src/components/TableHeader.d.ts +0 -1136
  47. package/es/components/table/src/components/tableSetting/Download.d.ts +0 -922
  48. 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({});
@@ -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,
@@ -322,7 +321,7 @@ const _sfc_main$8 = {
322
321
  };
323
322
  }
324
323
  };
325
- const _sfc_main$7 = /* @__PURE__ */ defineComponent({
324
+ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
326
325
  __name: "CloseIcon",
327
326
  props: {
328
327
  canFullscreen: { type: Boolean, default: true },
@@ -389,291 +388,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
389
388
  };
390
389
  }
391
390
  });
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({
391
+ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
677
392
  __name: "ModalWrap",
678
393
  props: {
679
394
  useWrapper: { type: Boolean, default: true },
@@ -779,179 +494,6 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
779
494
  };
780
495
  }
781
496
  });
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
497
  const _sfc_main$1 = /* @__PURE__ */ defineComponent({
956
498
  __name: "ModalFooter",
957
499
  props: {
@@ -994,7 +536,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
994
536
  return (_ctx, _cache) => {
995
537
  return openBlock(), createElementBlock(Fragment, null, [
996
538
  renderSlot(_ctx.$slots, "appendFooter"),
997
- createVNode(_sfc_main$2, {
539
+ createVNode(unref(DtFormButtons), {
998
540
  mode: "dialog",
999
541
  buttonList: unref(buttonList),
1000
542
  onHandleMethod: _cache[0] || (_cache[0] = ($event) => handleMethod($event))
@@ -1121,14 +663,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1121
663
  });
1122
664
  return (_ctx, _cache) => {
1123
665
  const _component_ASpin = Spin;
1124
- 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({
1125
667
  default: withCtx(() => [
1126
668
  createVNode(_component_ASpin, {
1127
669
  spinning: unref(getBindValue).loading,
1128
670
  tip: unref(getBindValue).loadingTip
1129
671
  }, {
1130
672
  default: withCtx(() => [
1131
- createVNode(_sfc_main$3, mergeProps({
673
+ createVNode(_sfc_main$2, mergeProps({
1132
674
  useWrapper: unref(getBindValue).useWrapper,
1133
675
  fullScreen: unref(fullScreenRef),
1134
676
  ref_key: "modalWrapperRef",
@@ -1152,7 +694,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1152
694
  !_ctx.$slots.closeIcon ? {
1153
695
  name: "closeIcon",
1154
696
  fn: withCtx(() => [
1155
- createVNode(_sfc_main$7, {
697
+ createVNode(_sfc_main$3, {
1156
698
  canFullscreen: unref(getBindValue).canFullscreen,
1157
699
  fullScreen: unref(fullScreenRef),
1158
700
  onCancel: handleCancel,
@@ -1206,6 +748,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1206
748
  });
1207
749
  export {
1208
750
  _sfc_main as DtModal,
751
+ basicProps,
1209
752
  useModal,
1210
753
  useModalOut
1211
754
  };
@@ -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,100 +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
- colspan: {
58
- type: ObjectConstructor;
59
- };
60
- }, {
61
- props: any;
62
- emits: (event: "handle-method", ...args: any[]) => void;
63
- t: {
64
- (key: string): string;
65
- (key: string, locale: string): string;
66
- (key: string, locale: string, list: unknown[]): string;
67
- (key: string, locale: string, named: Record<string, unknown>): string;
68
- (key: string, list: unknown[]): string;
69
- (key: string, named: Record<string, unknown>): string;
70
- };
71
- advancedRef: import("vue").Ref<{
72
- valueOf: () => boolean;
73
- }>;
74
- key: number;
75
- showAdvanceRef: import("vue").ComputedRef<boolean>;
76
- colOpt: import("vue").ComputedRef<{
77
- style: import("@dt-frames/core").Recordable<any>;
78
- span?: undefined;
79
- } | {
80
- style: import("@dt-frames/core").Recordable<any>;
81
- span: number;
82
- }>;
83
- getAdvanceClass: import("vue").ComputedRef<(string | {
84
- 'basic-arrow--active': boolean;
85
- })[]>;
86
- toggleAdvanced: () => void;
87
- handleBtnClick: (button: ButtonProps) => void;
88
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "handle-method"[], "handle-method", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
89
- mode: {
90
- type: PropType<"search" | "dialog">;
91
- default: string;
92
- };
93
- show: {
94
- type: BooleanConstructor;
95
- default: boolean;
96
- };
97
- showAdvancedButton: {
98
- type: BooleanConstructor;
99
- default: boolean;
100
- };
101
- minShowColumn: {
102
- type: NumberConstructor;
103
- default: number;
104
- };
105
- buttonList: {
106
- type: PropType<ButtonProps[]>;
107
- default: any[];
108
- };
109
- isAdvanced: {
110
- type: BooleanConstructor;
111
- default: boolean;
112
- };
113
- colspan: {
114
- type: ObjectConstructor;
115
- };
116
- }>> & {
117
- "onHandle-method"?: (...args: any[]) => any;
118
- }, {
119
- mode: "search" | "dialog";
120
- show: boolean;
121
- showAdvancedButton: boolean;
122
- minShowColumn: number;
123
- buttonList: ButtonProps[];
124
- isAdvanced: boolean;
125
- }>;
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<{}>>, {}>;
126
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<{
127
34
  buttons: PropType<ButtonProps[]>;
128
35
  showSave: {