vxe-table 4.23.7 → 4.23.9

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 (148) hide show
  1. package/dist/all.esm.js +5859 -4018
  2. package/es/colgroup/index.js +1 -1
  3. package/es/column/index.js +1 -1
  4. package/es/components.d.ts +3 -0
  5. package/es/components.js +4 -8
  6. package/es/grid/index.js +1 -1
  7. package/es/grid/src/emits.js +1 -15
  8. package/es/grid/src/grid.js +398 -121
  9. package/es/grid/src/props.js +1 -1
  10. package/es/index.esm.js +6 -0
  11. package/es/index.js +6 -0
  12. package/es/table/index.js +1 -1
  13. package/es/table/module/custom/hook.js +50 -43
  14. package/es/table/module/custom/panel.js +778 -528
  15. package/es/table/module/edit/hook.js +141 -63
  16. package/es/table/module/export/export-panel.js +400 -317
  17. package/es/table/module/export/hook.js +396 -338
  18. package/es/table/module/export/import-panel.js +153 -124
  19. package/es/table/module/filter/hook.js +17 -3
  20. package/es/table/module/filter/panel.js +147 -85
  21. package/es/table/module/keyboard/hook.js +9 -5
  22. package/es/table/module/menu/hook.js +1 -1
  23. package/es/table/module/menu/panel.js +198 -127
  24. package/es/table/module/validator/hook.js +1 -1
  25. package/es/table/render/index.js +152 -99
  26. package/es/table/src/body.js +356 -234
  27. package/es/table/src/cell.js +427 -270
  28. package/es/table/src/columnInfo.js +2 -1
  29. package/es/table/src/footer.js +145 -100
  30. package/es/table/src/group.js +7 -3
  31. package/es/table/src/header.js +230 -173
  32. package/es/table/src/props.js +1 -1
  33. package/es/table/src/table.js +1504 -1031
  34. package/es/table/src/util.js +15 -19
  35. package/es/toolbar/index.js +1 -1
  36. package/es/toolbar/src/toolbar.js +133 -76
  37. package/es/ui/index.d.ts +0 -1
  38. package/es/ui/index.js +1 -2
  39. package/es/ui/src/dom.js +9 -6
  40. package/es/ui/src/log.js +1 -1
  41. package/es/ui/src/utils.d.ts +1 -1
  42. package/es/v-x-e-table/index.d.ts +0 -1
  43. package/es/v-x-e-table/index.js +0 -1
  44. package/lib/colgroup/index.js +5 -5
  45. package/lib/column/index.js +5 -5
  46. package/lib/components.js +8 -12
  47. package/lib/grid/index.js +4 -4
  48. package/lib/grid/src/emits.js +1 -15
  49. package/lib/grid/src/grid.js +419 -142
  50. package/lib/grid/src/props.js +2 -2
  51. package/lib/index.common.js +6 -0
  52. package/lib/index.js +6 -0
  53. package/lib/index.umd.js +5825 -3945
  54. package/lib/index.umd.min.js +3 -3
  55. package/lib/table/index.js +5 -5
  56. package/lib/table/module/custom/hook.js +51 -44
  57. package/lib/table/module/custom/panel.js +790 -540
  58. package/lib/table/module/edit/hook.js +142 -64
  59. package/lib/table/module/export/export-panel.js +406 -323
  60. package/lib/table/module/export/hook.js +419 -361
  61. package/lib/table/module/export/import-panel.js +157 -128
  62. package/lib/table/module/filter/hook.js +18 -4
  63. package/lib/table/module/filter/panel.js +149 -87
  64. package/lib/table/module/keyboard/hook.js +10 -6
  65. package/lib/table/module/menu/hook.js +2 -2
  66. package/lib/table/module/menu/panel.js +199 -128
  67. package/lib/table/module/validator/hook.js +2 -2
  68. package/lib/table/render/index.js +153 -100
  69. package/lib/table/src/body.js +357 -235
  70. package/lib/table/src/cell.js +428 -271
  71. package/lib/table/src/columnInfo.js +3 -2
  72. package/lib/table/src/footer.js +146 -101
  73. package/lib/table/src/group.js +7 -3
  74. package/lib/table/src/header.js +231 -174
  75. package/lib/table/src/props.js +2 -2
  76. package/lib/table/src/table.js +1487 -1045
  77. package/lib/table/src/util.js +15 -19
  78. package/lib/toolbar/index.js +4 -4
  79. package/lib/toolbar/src/toolbar.js +135 -78
  80. package/lib/ui/index.js +1 -3
  81. package/lib/ui/src/dom.js +9 -6
  82. package/lib/ui/src/log.js +1 -1
  83. package/lib/v-x-e-table/index.js +0 -2
  84. package/package.json +8 -3
  85. package/packages/colgroup/index.ts +22 -22
  86. package/packages/column/index.ts +22 -22
  87. package/packages/components.ts +41 -43
  88. package/packages/grid/index.ts +18 -18
  89. package/packages/grid/src/emits.ts +5 -19
  90. package/packages/grid/src/grid.ts +2229 -1925
  91. package/packages/grid/src/props.ts +22 -23
  92. package/packages/index.ts +11 -4
  93. package/packages/locale/lang/fr-FR.ts +15 -15
  94. package/packages/locale/lang/it-IT.ts +4 -4
  95. package/packages/locale/lang/uk-UA.ts +1 -1
  96. package/packages/locale/lang/uz-UZ.ts +13 -13
  97. package/packages/locale/lang/zh-CN.ts +907 -907
  98. package/packages/table/index.ts +26 -26
  99. package/packages/table/module/custom/hook.ts +510 -503
  100. package/packages/table/module/custom/panel.ts +2002 -1743
  101. package/packages/table/module/edit/hook.ts +1224 -1131
  102. package/packages/table/module/export/export-panel.ts +697 -611
  103. package/packages/table/module/export/hook.ts +2160 -2059
  104. package/packages/table/module/export/import-panel.ts +319 -279
  105. package/packages/table/module/export/util.ts +25 -24
  106. package/packages/table/module/filter/hook.ts +519 -501
  107. package/packages/table/module/filter/panel.ts +368 -304
  108. package/packages/table/module/keyboard/hook.ts +498 -494
  109. package/packages/table/module/menu/hook.ts +330 -330
  110. package/packages/table/module/menu/panel.ts +272 -201
  111. package/packages/table/module/validator/hook.ts +653 -635
  112. package/packages/table/render/index.ts +1819 -1744
  113. package/packages/table/src/body.ts +1078 -955
  114. package/packages/table/src/cell.ts +1524 -1359
  115. package/packages/table/src/column.ts +192 -192
  116. package/packages/table/src/columnInfo.ts +232 -232
  117. package/packages/table/src/emits.ts +134 -134
  118. package/packages/table/src/footer.ts +425 -380
  119. package/packages/table/src/group.ts +67 -63
  120. package/packages/table/src/header.ts +642 -581
  121. package/packages/table/src/props.ts +336 -336
  122. package/packages/table/src/store.ts +14 -14
  123. package/packages/table/src/table.ts +16011 -15454
  124. package/packages/table/src/use/cell-view.ts +41 -44
  125. package/packages/table/src/use/index.ts +1 -1
  126. package/packages/table/src/util.ts +1206 -1216
  127. package/packages/toolbar/index.ts +18 -18
  128. package/packages/toolbar/src/toolbar.ts +768 -706
  129. package/packages/ui/index.ts +519 -521
  130. package/packages/ui/src/anime.ts +51 -52
  131. package/packages/ui/src/comp.ts +3 -3
  132. package/packages/ui/src/dom.ts +466 -463
  133. package/packages/ui/src/log.ts +19 -19
  134. package/packages/ui/src/utils.ts +66 -66
  135. package/packages/ui/src/vn.ts +55 -55
  136. package/packages/v-x-e-table/index.d.ts +3 -4
  137. package/packages/v-x-e-table/index.ts +3 -4
  138. package/types/all.d.ts +76 -76
  139. package/types/index.d.ts +4 -4
  140. /package/dist/{iconfont.1792979665397.ttf → iconfont.1793009263429.ttf} +0 -0
  141. /package/dist/{iconfont.1792979665397.woff → iconfont.1793009263429.woff} +0 -0
  142. /package/dist/{iconfont.1792979665397.woff2 → iconfont.1793009263429.woff2} +0 -0
  143. /package/es/{iconfont.1792979665397.ttf → iconfont.1793009263429.ttf} +0 -0
  144. /package/es/{iconfont.1792979665397.woff → iconfont.1793009263429.woff} +0 -0
  145. /package/es/{iconfont.1792979665397.woff2 → iconfont.1793009263429.woff2} +0 -0
  146. /package/lib/{iconfont.1792979665397.ttf → iconfont.1793009263429.ttf} +0 -0
  147. /package/lib/{iconfont.1792979665397.woff → iconfont.1793009263429.woff} +0 -0
  148. /package/lib/{iconfont.1792979665397.woff2 → iconfont.1793009263429.woff2} +0 -0
@@ -34,13 +34,13 @@ __export(panel_exports, {
34
34
  module.exports = __toCommonJS(panel_exports);
35
35
  var import_vue = require("vue");
36
36
  var import_comp = require("../../../ui/src/comp");
37
- var import_ui = require("../../../ui");
37
+ var import_core = require("@vxe-ui/core");
38
38
  var import_utils = require("../../../ui/src/utils");
39
39
  var import_dom = require("../../../ui/src/dom");
40
40
  var import_log = require("../../../ui/src/log");
41
41
  var import_xe_utils = __toESM(require("xe-utils"));
42
42
  const { errLog } = (0, import_log.createComponentLog)("table");
43
- const { getI18n, getIcon, renderEmptyElement } = import_ui.VxeUI;
43
+ const { getI18n, getIcon, renderEmptyElement } = import_core.VxeUI;
44
44
  function createInternalData() {
45
45
  return {
46
46
  // teleportTo: undefined,
@@ -62,11 +62,11 @@ var panel_default = (0, import_comp.defineVxeComponent)({
62
62
  },
63
63
  setup(props, context) {
64
64
  const xID = import_xe_utils.default.uniqueId();
65
- const VxeUIModalComponent = import_ui.VxeUI.getComponent("VxeModal");
66
- const VxeUIDrawerComponent = import_ui.VxeUI.getComponent("VxeDrawer");
67
- const VxeUIButtonComponent = import_ui.VxeUI.getComponent("VxeButton");
68
- const VxeUINumberInputComponent = import_ui.VxeUI.getComponent("VxeNumberInput");
69
- const VxeUIRadioGroupComponent = import_ui.VxeUI.getComponent("VxeRadioGroup");
65
+ const VxeUIModalComponent = import_core.VxeUI.getComponent("VxeModal");
66
+ const VxeUIDrawerComponent = import_core.VxeUI.getComponent("VxeDrawer");
67
+ const VxeUIButtonComponent = import_core.VxeUI.getComponent("VxeButton");
68
+ const VxeUINumberInputComponent = import_core.VxeUI.getComponent("VxeNumberInput");
69
+ const VxeUIRadioGroupComponent = import_core.VxeUI.getComponent("VxeRadioGroup");
70
70
  const $xeTable = (0, import_vue.inject)("$xeTable", {});
71
71
  const { props: tableProps, reactData: tableReactData, internalData: tableInternalData } = $xeTable;
72
72
  const { computeSize, computeCustomOpts, computeMouseOpts, computeColumnDragOpts, computeColumnOpts, computeIsMaxFixedColumn, computeResizableOpts, computeAggregateOpts } = $xeTable.getComputeMaps();
@@ -135,8 +135,8 @@ var panel_default = (0, import_comp.defineVxeComponent)({
135
135
  $xeTable.dispatchEvent("custom-close", {}, evnt);
136
136
  };
137
137
  const resetCustomEvent = ({ $event }) => {
138
- if (import_ui.VxeUI.modal) {
139
- import_ui.VxeUI.modal.confirm({
138
+ if (import_core.VxeUI.modal) {
139
+ import_core.VxeUI.modal.confirm({
140
140
  content: getI18n("vxe.custom.cstmConfirmRestore"),
141
141
  className: "vxe-table--ignore-clear",
142
142
  escClosable: true
@@ -415,8 +415,8 @@ var panel_default = (0, import_comp.defineVxeComponent)({
415
415
  if (oldAllMaps[newColumn.id]) {
416
416
  isSelfToChildStatus = true;
417
417
  if (!(isCrossDrag && isSelfToChildDrag)) {
418
- if (import_ui.VxeUI.modal) {
419
- import_ui.VxeUI.modal.message({
418
+ if (import_core.VxeUI.modal) {
419
+ import_core.VxeUI.modal.message({
420
420
  status: "error",
421
421
  content: getI18n("vxe.error.treeDragChild")
422
422
  });
@@ -436,8 +436,8 @@ var panel_default = (0, import_comp.defineVxeComponent)({
436
436
  if (oldAllMaps[newColumn.id]) {
437
437
  isSelfToChildStatus = true;
438
438
  if (!(isCrossDrag && isSelfToChildDrag)) {
439
- if (import_ui.VxeUI.modal) {
440
- import_ui.VxeUI.modal.message({
439
+ if (import_core.VxeUI.modal) {
440
+ import_core.VxeUI.modal.message({
441
441
  status: "error",
442
442
  content: getI18n("vxe.error.treeDragChild")
443
443
  });
@@ -448,7 +448,7 @@ var panel_default = (0, import_comp.defineVxeComponent)({
448
448
  } else {
449
449
  }
450
450
  const oldewMatchRest = import_xe_utils.default.findTree(collectColumn, (item) => item.id === dragColumn.id);
451
- if (isSelfToChildStatus && (isCrossDrag && isSelfToChildDrag)) {
451
+ if (isSelfToChildStatus && isCrossDrag && isSelfToChildDrag) {
452
452
  if (oldewMatchRest) {
453
453
  const { items: oCols, index: oIndex } = oldewMatchRest;
454
454
  const childList = dragColumn.children || [];
@@ -635,41 +635,60 @@ var panel_default = (0, import_comp.defineVxeComponent)({
635
635
  return (0, import_vue.h)("div", {}, [
636
636
  (0, import_vue.h)("div", {
637
637
  ref: refDragLineElem,
638
- class: ["vxe-table-custom-popup--drag-line", {
639
- "is--guides": columnDragOpts.showGuidesStatus
640
- }]
638
+ class: [
639
+ "vxe-table-custom-popup--drag-line",
640
+ {
641
+ "is--guides": columnDragOpts.showGuidesStatus
642
+ }
643
+ ]
641
644
  }),
642
- (0, import_vue.h)("div", {
643
- ref: refDragTipElem,
644
- class: "vxe-table-custom-popup--drag-tip"
645
- }, [
646
- (0, import_vue.h)("div", {
647
- class: "vxe-table-custom-popup--drag-tip-wrapper"
648
- }, [
649
- (0, import_vue.h)("div", {
650
- class: "vxe-table-custom-popup--drag-tip-status"
651
- }, [
652
- (0, import_vue.h)("span", {
653
- class: ["vxe-table-custom-popup--drag-tip-normal-status", getIcon().TABLE_DRAG_STATUS_ROW]
654
- }),
655
- (0, import_vue.h)("span", {
656
- class: ["vxe-table-custom-popup--drag-tip-sub-status", getIcon().TABLE_DRAG_STATUS_SUB_ROW]
657
- }),
658
- (0, import_vue.h)("span", {
659
- class: ["vxe-table-custom-popup--drag-tip-group-status", getIcon().TABLE_DRAG_STATUS_AGG_GROUP]
660
- }),
661
- (0, import_vue.h)("span", {
662
- class: ["vxe-table-custom-popup--drag-tip-values-status", getIcon().TABLE_DRAG_STATUS_AGG_VALUES]
663
- }),
664
- (0, import_vue.h)("span", {
665
- class: ["vxe-table-custom-popup--drag-tip-disabled-status", getIcon().TABLE_DRAG_DISABLED]
666
- })
667
- ]),
668
- (0, import_vue.h)("div", {
669
- class: "vxe-table-custom-popup--drag-tip-content"
670
- }, `${dragTipText || ""}`)
671
- ])
672
- ])
645
+ (0, import_vue.h)(
646
+ "div",
647
+ {
648
+ ref: refDragTipElem,
649
+ class: "vxe-table-custom-popup--drag-tip"
650
+ },
651
+ [
652
+ (0, import_vue.h)(
653
+ "div",
654
+ {
655
+ class: "vxe-table-custom-popup--drag-tip-wrapper"
656
+ },
657
+ [
658
+ (0, import_vue.h)(
659
+ "div",
660
+ {
661
+ class: "vxe-table-custom-popup--drag-tip-status"
662
+ },
663
+ [
664
+ (0, import_vue.h)("span", {
665
+ class: ["vxe-table-custom-popup--drag-tip-normal-status", getIcon().TABLE_DRAG_STATUS_ROW]
666
+ }),
667
+ (0, import_vue.h)("span", {
668
+ class: ["vxe-table-custom-popup--drag-tip-sub-status", getIcon().TABLE_DRAG_STATUS_SUB_ROW]
669
+ }),
670
+ (0, import_vue.h)("span", {
671
+ class: ["vxe-table-custom-popup--drag-tip-group-status", getIcon().TABLE_DRAG_STATUS_AGG_GROUP]
672
+ }),
673
+ (0, import_vue.h)("span", {
674
+ class: ["vxe-table-custom-popup--drag-tip-values-status", getIcon().TABLE_DRAG_STATUS_AGG_VALUES]
675
+ }),
676
+ (0, import_vue.h)("span", {
677
+ class: ["vxe-table-custom-popup--drag-tip-disabled-status", getIcon().TABLE_DRAG_DISABLED]
678
+ })
679
+ ]
680
+ ),
681
+ (0, import_vue.h)(
682
+ "div",
683
+ {
684
+ class: "vxe-table-custom-popup--drag-tip-content"
685
+ },
686
+ `${dragTipText || ""}`
687
+ )
688
+ ]
689
+ )
690
+ ]
691
+ )
673
692
  ]);
674
693
  };
675
694
  const renderSimplePanel = () => {
@@ -720,234 +739,347 @@ var panel_default = (0, import_comp.defineVxeComponent)({
720
739
  const isHidden = !isChecked;
721
740
  const showSortBtn = (isCrossDrag || isPeerDrag ? immediate : false) || column.level === 1;
722
741
  colVNs.push(
723
- (0, import_vue.h)("li", {
724
- key: column.id,
725
- colid: column.id,
726
- class: ["vxe-table-custom--option", `level--${column.level}`, {
727
- "is--hidden": isDisabled || isHidden,
728
- "is--group": isColGroup
729
- }],
730
- onDragstart: sortDragstartEvent,
731
- onDragend: sortDragendEvent,
732
- onDragover: sortDragoverEvent
733
- }, [
734
- allowVisible ? (0, import_vue.h)("div", {
735
- class: ["vxe-table-custom--checkbox-option", {
736
- "is--checked": isChecked,
737
- "is--indeterminate": isIndeterminate,
738
- "is--disabled": isDisabled
739
- }],
740
- title: getI18n("vxe.custom.setting.colVisible"),
741
- onClick: (evnt) => {
742
- if (!isDisabled) {
743
- changeCheckboxOption(column, evnt);
742
+ (0, import_vue.h)(
743
+ "li",
744
+ {
745
+ key: column.id,
746
+ colid: column.id,
747
+ class: [
748
+ "vxe-table-custom--option",
749
+ `level--${column.level}`,
750
+ {
751
+ "is--hidden": isDisabled || isHidden,
752
+ "is--group": isColGroup
744
753
  }
745
- }
746
- }, [
747
- (0, import_vue.h)("span", {
748
- class: ["vxe-checkbox--icon", isIndeterminate ? getIcon().TABLE_CHECKBOX_INDETERMINATE : isChecked ? getIcon().TABLE_CHECKBOX_CHECKED : getIcon().TABLE_CHECKBOX_UNCHECKED]
749
- })
750
- ]) : renderEmptyElement($xeTable),
751
- (0, import_vue.h)("div", {
752
- class: "vxe-table-custom--name-option"
753
- }, [
754
- allowSort && showSortDragButton || (allowGroup || allowValues) ? showSortBtn || (allowGroup || allowValues) && !isColGroup ? (0, import_vue.h)("div", {
755
- class: "vxe-table-custom--sort-option"
756
- }, [
757
- (0, import_vue.h)("span", {
758
- class: ["vxe-table-custom--sort-btn", {
759
- "is--disabled": isHidden
760
- }],
761
- title: getI18n("vxe.custom.setting.sortHelpTip"),
762
- ...isHidden ? {} : {
763
- onMousedown: sortMousedownEvent,
764
- onMouseup: sortMouseupEvent
754
+ ],
755
+ onDragstart: sortDragstartEvent,
756
+ onDragend: sortDragendEvent,
757
+ onDragover: sortDragoverEvent
758
+ },
759
+ [
760
+ allowVisible ? (0, import_vue.h)(
761
+ "div",
762
+ {
763
+ class: [
764
+ "vxe-table-custom--checkbox-option",
765
+ {
766
+ "is--checked": isChecked,
767
+ "is--indeterminate": isIndeterminate,
768
+ "is--disabled": isDisabled
769
+ }
770
+ ],
771
+ title: getI18n("vxe.custom.setting.colVisible"),
772
+ onClick: (evnt) => {
773
+ if (!isDisabled) {
774
+ changeCheckboxOption(column, evnt);
775
+ }
765
776
  }
766
- }, [
767
- (0, import_vue.h)("i", {
768
- class: getIcon().TABLE_CUSTOM_SORT
777
+ },
778
+ [
779
+ (0, import_vue.h)("span", {
780
+ class: ["vxe-checkbox--icon", isIndeterminate ? getIcon().TABLE_CHECKBOX_INDETERMINATE : isChecked ? getIcon().TABLE_CHECKBOX_CHECKED : getIcon().TABLE_CHECKBOX_UNCHECKED]
769
781
  })
770
- ])
771
- ]) : renderEmptyElement($xeTable) : renderEmptyElement($xeTable),
772
- column.type === "html" ? (0, import_vue.h)("div", {
773
- key: "1",
774
- class: "vxe-table-custom--checkbox-label",
775
- innerHTML: colTitle
776
- }) : (0, import_vue.h)("div", {
777
- key: "0",
778
- class: "vxe-table-custom--checkbox-label"
779
- }, colTitle)
780
- ]),
781
- showSortBtn && (showSortMoveButton || showSortPutButton) ? (0, import_vue.h)("div", {
782
- class: "vxe-table-custom--move-btn-option"
783
- }, VxeUIButtonComponent ? [
784
- showSortMoveButton ? (0, import_vue.h)(VxeUIButtonComponent, {
785
- mode: "text",
786
- icon: "vxe-icon-arrows-up",
787
- title: getI18n("vxe.custom.setting.moveUpTitle"),
788
- disabled: index <= 0,
789
- onClick(evntParame) {
790
- sortMoveUpEvent(evntParame, column);
791
- }
792
- }) : renderEmptyElement($xeTable),
793
- showSortMoveButton ? (0, import_vue.h)(VxeUIButtonComponent, {
794
- mode: "text",
795
- icon: "vxe-icon-arrows-down",
796
- title: getI18n("vxe.custom.setting.moveDnTitle"),
797
- disabled: index >= items.length - 1,
798
- onClick(evntParame) {
799
- sortMoveDnEvent(evntParame, column);
800
- }
801
- }) : renderEmptyElement($xeTable),
802
- showSortPutButton && !parentItem ? (0, import_vue.h)(VxeUIButtonComponent, {
803
- mode: "text",
804
- icon: "vxe-icon-top",
805
- title: getI18n("vxe.custom.setting.putTopTitle"),
806
- disabled: index <= 0,
807
- onClick(evntParame) {
808
- sortMoveTopEvent(evntParame, column);
809
- }
810
- }) : renderEmptyElement($xeTable),
811
- showSortPutButton && !parentItem ? (0, import_vue.h)(VxeUIButtonComponent, {
812
- mode: "text",
813
- icon: "vxe-icon-bottom",
814
- title: getI18n("vxe.custom.setting.putBottomTitle"),
815
- disabled: index >= items.length - 1,
816
- onClick(evntParame) {
817
- sortMoveBottomEvent(evntParame, column);
818
- }
819
- }) : renderEmptyElement($xeTable)
820
- ] : []) : renderEmptyElement($xeTable),
821
- !parentItem && allowFixed ? (0, import_vue.h)("div", {
822
- class: "vxe-table-custom--fixed-option"
823
- }, VxeUIButtonComponent ? [
824
- (0, import_vue.h)(VxeUIButtonComponent, {
825
- mode: "text",
826
- icon: column.renderFixed === "left" ? getIcon().TOOLBAR_TOOLS_FIXED_LEFT_ACTIVE : getIcon().TOOLBAR_TOOLS_FIXED_LEFT,
827
- status: column.renderFixed === "left" ? "primary" : "",
828
- disabled: isHidden || isMaxFixedColumn && !column.renderFixed,
829
- title: getI18n(column.renderFixed === "left" ? "vxe.toolbar.cancelFixed" : "vxe.toolbar.fixedLeft"),
830
- onClick: ({ $event }) => {
831
- changeFixedOption(column, "left", $event);
832
- }
833
- }),
834
- (0, import_vue.h)(VxeUIButtonComponent, {
835
- mode: "text",
836
- icon: column.renderFixed === "right" ? getIcon().TOOLBAR_TOOLS_FIXED_RIGHT_ACTIVE : getIcon().TOOLBAR_TOOLS_FIXED_RIGHT,
837
- status: column.renderFixed === "right" ? "primary" : "",
838
- disabled: isHidden || isMaxFixedColumn && !column.renderFixed,
839
- title: getI18n(column.renderFixed === "right" ? "vxe.toolbar.cancelFixed" : "vxe.toolbar.fixedRight"),
840
- onClick: ({ $event }) => {
841
- changeFixedOption(column, "right", $event);
842
- }
843
- })
844
- ] : []) : renderEmptyElement($xeTable)
845
- ])
782
+ ]
783
+ ) : renderEmptyElement($xeTable),
784
+ (0, import_vue.h)(
785
+ "div",
786
+ {
787
+ class: "vxe-table-custom--name-option"
788
+ },
789
+ [
790
+ allowSort && showSortDragButton || allowGroup || allowValues ? showSortBtn || (allowGroup || allowValues) && !isColGroup ? (0, import_vue.h)(
791
+ "div",
792
+ {
793
+ class: "vxe-table-custom--sort-option"
794
+ },
795
+ [
796
+ (0, import_vue.h)(
797
+ "span",
798
+ {
799
+ class: [
800
+ "vxe-table-custom--sort-btn",
801
+ {
802
+ "is--disabled": isHidden
803
+ }
804
+ ],
805
+ title: getI18n("vxe.custom.setting.sortHelpTip"),
806
+ ...isHidden ? {} : {
807
+ onMousedown: sortMousedownEvent,
808
+ onMouseup: sortMouseupEvent
809
+ }
810
+ },
811
+ [
812
+ (0, import_vue.h)("i", {
813
+ class: getIcon().TABLE_CUSTOM_SORT
814
+ })
815
+ ]
816
+ )
817
+ ]
818
+ ) : renderEmptyElement($xeTable) : renderEmptyElement($xeTable),
819
+ column.type === "html" ? (0, import_vue.h)("div", {
820
+ key: "1",
821
+ class: "vxe-table-custom--checkbox-label",
822
+ innerHTML: colTitle
823
+ }) : (0, import_vue.h)(
824
+ "div",
825
+ {
826
+ key: "0",
827
+ class: "vxe-table-custom--checkbox-label"
828
+ },
829
+ colTitle
830
+ )
831
+ ]
832
+ ),
833
+ showSortBtn && (showSortMoveButton || showSortPutButton) ? (0, import_vue.h)(
834
+ "div",
835
+ {
836
+ class: "vxe-table-custom--move-btn-option"
837
+ },
838
+ VxeUIButtonComponent ? [
839
+ showSortMoveButton ? (0, import_vue.h)(VxeUIButtonComponent, {
840
+ mode: "text",
841
+ icon: "vxe-icon-arrows-up",
842
+ title: getI18n("vxe.custom.setting.moveUpTitle"),
843
+ disabled: index <= 0,
844
+ onClick(evntParame) {
845
+ sortMoveUpEvent(evntParame, column);
846
+ }
847
+ }) : renderEmptyElement($xeTable),
848
+ showSortMoveButton ? (0, import_vue.h)(VxeUIButtonComponent, {
849
+ mode: "text",
850
+ icon: "vxe-icon-arrows-down",
851
+ title: getI18n("vxe.custom.setting.moveDnTitle"),
852
+ disabled: index >= items.length - 1,
853
+ onClick(evntParame) {
854
+ sortMoveDnEvent(evntParame, column);
855
+ }
856
+ }) : renderEmptyElement($xeTable),
857
+ showSortPutButton && !parentItem ? (0, import_vue.h)(VxeUIButtonComponent, {
858
+ mode: "text",
859
+ icon: "vxe-icon-top",
860
+ title: getI18n("vxe.custom.setting.putTopTitle"),
861
+ disabled: index <= 0,
862
+ onClick(evntParame) {
863
+ sortMoveTopEvent(evntParame, column);
864
+ }
865
+ }) : renderEmptyElement($xeTable),
866
+ showSortPutButton && !parentItem ? (0, import_vue.h)(VxeUIButtonComponent, {
867
+ mode: "text",
868
+ icon: "vxe-icon-bottom",
869
+ title: getI18n("vxe.custom.setting.putBottomTitle"),
870
+ disabled: index >= items.length - 1,
871
+ onClick(evntParame) {
872
+ sortMoveBottomEvent(evntParame, column);
873
+ }
874
+ }) : renderEmptyElement($xeTable)
875
+ ] : []
876
+ ) : renderEmptyElement($xeTable),
877
+ !parentItem && allowFixed ? (0, import_vue.h)(
878
+ "div",
879
+ {
880
+ class: "vxe-table-custom--fixed-option"
881
+ },
882
+ VxeUIButtonComponent ? [
883
+ (0, import_vue.h)(VxeUIButtonComponent, {
884
+ mode: "text",
885
+ icon: column.renderFixed === "left" ? getIcon().TOOLBAR_TOOLS_FIXED_LEFT_ACTIVE : getIcon().TOOLBAR_TOOLS_FIXED_LEFT,
886
+ status: column.renderFixed === "left" ? "primary" : "",
887
+ disabled: isHidden || isMaxFixedColumn && !column.renderFixed,
888
+ title: getI18n(column.renderFixed === "left" ? "vxe.toolbar.cancelFixed" : "vxe.toolbar.fixedLeft"),
889
+ onClick: ({ $event }) => {
890
+ changeFixedOption(column, "left", $event);
891
+ }
892
+ }),
893
+ (0, import_vue.h)(VxeUIButtonComponent, {
894
+ mode: "text",
895
+ icon: column.renderFixed === "right" ? getIcon().TOOLBAR_TOOLS_FIXED_RIGHT_ACTIVE : getIcon().TOOLBAR_TOOLS_FIXED_RIGHT,
896
+ status: column.renderFixed === "right" ? "primary" : "",
897
+ disabled: isHidden || isMaxFixedColumn && !column.renderFixed,
898
+ title: getI18n(column.renderFixed === "right" ? "vxe.toolbar.cancelFixed" : "vxe.toolbar.fixedRight"),
899
+ onClick: ({ $event }) => {
900
+ changeFixedOption(column, "right", $event);
901
+ }
902
+ })
903
+ ] : []
904
+ ) : renderEmptyElement($xeTable)
905
+ ]
906
+ )
846
907
  );
847
908
  }
848
909
  });
849
- return (0, import_vue.h)("div", {
850
- ref: refElem,
851
- key: "simple",
852
- class: ["vxe-table-custom-wrapper", `placement--${placement}`, {
853
- [`size--${vSize}`]: vSize,
854
- "is--active": customStore.visible
855
- }],
856
- style: defPopupStyle
857
- }, customStore.visible ? [
858
- (0, import_vue.h)("div", {
859
- ref: refBodyWrapperElem,
860
- class: "vxe-table-custom-simple--body-wrapper"
861
- }, [
862
- !treeConfig && (aggregateConfig || rowGroupConfig) && $xeTable.getPivotTableAggregateSimplePanel ? (0, import_vue.h)($xeTable.getPivotTableAggregateSimplePanel(), {
863
- customStore
864
- }) : renderEmptyElement($xeTable),
865
- (0, import_vue.h)("div", {
866
- ref: refCustomBodyElem,
867
- class: "vxe-table-custom--handle-wrapper"
868
- }, [
869
- (0, import_vue.h)("div", {
870
- class: "vxe-table-custom--header"
871
- }, headerSlot ? $xeTable.callSlot(headerSlot, params) : [
872
- (0, import_vue.h)("ul", {
873
- class: "vxe-table-custom--panel-list"
874
- }, [
875
- (0, import_vue.h)("li", {
876
- class: "vxe-table-custom--option"
877
- }, [
878
- allowVisible ? (0, import_vue.h)("div", {
879
- class: ["vxe-table-custom--checkbox-option", {
880
- "is--checked": isAllChecked,
881
- "is--indeterminate": isAllIndeterminate
882
- }],
883
- title: getI18n("vxe.table.allTitle"),
884
- onClick: allOptionEvent
885
- }, [
886
- (0, import_vue.h)("span", {
887
- class: ["vxe-checkbox--icon", isAllIndeterminate ? getIcon().TABLE_CHECKBOX_INDETERMINATE : isAllChecked ? getIcon().TABLE_CHECKBOX_CHECKED : getIcon().TABLE_CHECKBOX_UNCHECKED]
888
- }),
889
- (0, import_vue.h)("span", {
890
- class: "vxe-checkbox--label"
891
- }, getI18n("vxe.toolbar.customAll"))
892
- ]) : (0, import_vue.h)("span", {
893
- class: "vxe-checkbox--label"
894
- }, getI18n("vxe.table.customTitle"))
895
- ])
896
- ])
897
- ]),
898
- (0, import_vue.h)("div", {
899
- class: "vxe-table-custom--body"
900
- }, [
901
- topSlot ? (0, import_vue.h)("div", {
902
- class: "vxe-table-custom--panel-top"
903
- }, $xeTable.callSlot(topSlot, params)) : renderEmptyElement($xeTable),
904
- defaultSlot ? (0, import_vue.h)("div", {
905
- class: "vxe-table-custom--panel-body"
906
- }, $xeTable.callSlot(defaultSlot, params)) : (0, import_vue.h)(import_vue.TransitionGroup, {
907
- class: "vxe-table-custom--panel-list",
908
- name: isCustomDragStatus ? "vxe-table-custom--list" : "",
909
- tag: "ul",
910
- ...customWrapperOns
911
- }, {
912
- default: () => colVNs
913
- }),
914
- bottomSlot ? (0, import_vue.h)("div", {
915
- class: "vxe-table-custom--panel-bottom"
916
- }, $xeTable.callSlot(bottomSlot, params)) : renderEmptyElement($xeTable)
917
- ]),
918
- customOpts.showFooter ? (0, import_vue.h)("div", {
919
- class: "vxe-table-custom--footer"
920
- }, footerSlot ? $xeTable.callSlot(footerSlot, params) : [
921
- (0, import_vue.h)("div", {
922
- class: "vxe-table-custom--footer-buttons"
923
- }, [
924
- VxeUIButtonComponent ? (0, import_vue.h)(VxeUIButtonComponent, {
925
- mode: "text",
926
- content: customOpts.resetButtonText || getI18n("vxe.table.customRestore"),
927
- disabled: !isCustomStatus,
928
- onClick: resetCustomEvent
929
- }) : renderEmptyElement($xeTable),
930
- immediate ? VxeUIButtonComponent ? (0, import_vue.h)(VxeUIButtonComponent, {
931
- mode: "text",
932
- content: customOpts.closeButtonText || getI18n("vxe.table.customClose"),
933
- onClick: cancelCloseEvent
934
- }) : renderEmptyElement($xeTable) : VxeUIButtonComponent ? (0, import_vue.h)(VxeUIButtonComponent, {
935
- mode: "text",
936
- content: customOpts.cancelButtonText || getI18n("vxe.table.customCancel"),
937
- onClick: cancelCustomEvent
938
- }) : renderEmptyElement($xeTable),
939
- immediate ? renderEmptyElement($xeTable) : VxeUIButtonComponent ? (0, import_vue.h)(VxeUIButtonComponent, {
940
- mode: "text",
941
- status: "primary",
942
- content: customOpts.confirmButtonText || getI18n("vxe.table.customConfirm"),
943
- onClick: confirmCustomEvent
944
- }) : renderEmptyElement($xeTable)
945
- ])
946
- ]) : null
947
- ]),
948
- renderDragTip()
949
- ])
950
- ] : []);
910
+ return (0, import_vue.h)(
911
+ "div",
912
+ {
913
+ ref: refElem,
914
+ key: "simple",
915
+ class: [
916
+ "vxe-table-custom-wrapper",
917
+ `placement--${placement}`,
918
+ {
919
+ [`size--${vSize}`]: vSize,
920
+ "is--active": customStore.visible
921
+ }
922
+ ],
923
+ style: defPopupStyle
924
+ },
925
+ customStore.visible ? [
926
+ (0, import_vue.h)(
927
+ "div",
928
+ {
929
+ ref: refBodyWrapperElem,
930
+ class: "vxe-table-custom-simple--body-wrapper"
931
+ },
932
+ [
933
+ !treeConfig && (aggregateConfig || rowGroupConfig) && $xeTable.getPivotTableAggregateSimplePanel ? (0, import_vue.h)($xeTable.getPivotTableAggregateSimplePanel(), {
934
+ customStore
935
+ }) : renderEmptyElement($xeTable),
936
+ (0, import_vue.h)(
937
+ "div",
938
+ {
939
+ ref: refCustomBodyElem,
940
+ class: "vxe-table-custom--handle-wrapper"
941
+ },
942
+ [
943
+ (0, import_vue.h)(
944
+ "div",
945
+ {
946
+ class: "vxe-table-custom--header"
947
+ },
948
+ headerSlot ? $xeTable.callSlot(headerSlot, params) : [
949
+ (0, import_vue.h)(
950
+ "ul",
951
+ {
952
+ class: "vxe-table-custom--panel-list"
953
+ },
954
+ [
955
+ (0, import_vue.h)(
956
+ "li",
957
+ {
958
+ class: "vxe-table-custom--option"
959
+ },
960
+ [
961
+ allowVisible ? (0, import_vue.h)(
962
+ "div",
963
+ {
964
+ class: [
965
+ "vxe-table-custom--checkbox-option",
966
+ {
967
+ "is--checked": isAllChecked,
968
+ "is--indeterminate": isAllIndeterminate
969
+ }
970
+ ],
971
+ title: getI18n("vxe.table.allTitle"),
972
+ onClick: allOptionEvent
973
+ },
974
+ [
975
+ (0, import_vue.h)("span", {
976
+ class: ["vxe-checkbox--icon", isAllIndeterminate ? getIcon().TABLE_CHECKBOX_INDETERMINATE : isAllChecked ? getIcon().TABLE_CHECKBOX_CHECKED : getIcon().TABLE_CHECKBOX_UNCHECKED]
977
+ }),
978
+ (0, import_vue.h)(
979
+ "span",
980
+ {
981
+ class: "vxe-checkbox--label"
982
+ },
983
+ getI18n("vxe.toolbar.customAll")
984
+ )
985
+ ]
986
+ ) : (0, import_vue.h)(
987
+ "span",
988
+ {
989
+ class: "vxe-checkbox--label"
990
+ },
991
+ getI18n("vxe.table.customTitle")
992
+ )
993
+ ]
994
+ )
995
+ ]
996
+ )
997
+ ]
998
+ ),
999
+ (0, import_vue.h)(
1000
+ "div",
1001
+ {
1002
+ class: "vxe-table-custom--body"
1003
+ },
1004
+ [
1005
+ topSlot ? (0, import_vue.h)(
1006
+ "div",
1007
+ {
1008
+ class: "vxe-table-custom--panel-top"
1009
+ },
1010
+ $xeTable.callSlot(topSlot, params)
1011
+ ) : renderEmptyElement($xeTable),
1012
+ defaultSlot ? (0, import_vue.h)(
1013
+ "div",
1014
+ {
1015
+ class: "vxe-table-custom--panel-body"
1016
+ },
1017
+ $xeTable.callSlot(defaultSlot, params)
1018
+ ) : (0, import_vue.h)(
1019
+ import_vue.TransitionGroup,
1020
+ {
1021
+ class: "vxe-table-custom--panel-list",
1022
+ name: isCustomDragStatus ? "vxe-table-custom--list" : "",
1023
+ tag: "ul",
1024
+ ...customWrapperOns
1025
+ },
1026
+ {
1027
+ default: () => colVNs
1028
+ }
1029
+ ),
1030
+ bottomSlot ? (0, import_vue.h)(
1031
+ "div",
1032
+ {
1033
+ class: "vxe-table-custom--panel-bottom"
1034
+ },
1035
+ $xeTable.callSlot(bottomSlot, params)
1036
+ ) : renderEmptyElement($xeTable)
1037
+ ]
1038
+ ),
1039
+ customOpts.showFooter ? (0, import_vue.h)(
1040
+ "div",
1041
+ {
1042
+ class: "vxe-table-custom--footer"
1043
+ },
1044
+ footerSlot ? $xeTable.callSlot(footerSlot, params) : [
1045
+ (0, import_vue.h)(
1046
+ "div",
1047
+ {
1048
+ class: "vxe-table-custom--footer-buttons"
1049
+ },
1050
+ [
1051
+ VxeUIButtonComponent ? (0, import_vue.h)(VxeUIButtonComponent, {
1052
+ mode: "text",
1053
+ content: customOpts.resetButtonText || getI18n("vxe.table.customRestore"),
1054
+ disabled: !isCustomStatus,
1055
+ onClick: resetCustomEvent
1056
+ }) : renderEmptyElement($xeTable),
1057
+ immediate ? VxeUIButtonComponent ? (0, import_vue.h)(VxeUIButtonComponent, {
1058
+ mode: "text",
1059
+ content: customOpts.closeButtonText || getI18n("vxe.table.customClose"),
1060
+ onClick: cancelCloseEvent
1061
+ }) : renderEmptyElement($xeTable) : VxeUIButtonComponent ? (0, import_vue.h)(VxeUIButtonComponent, {
1062
+ mode: "text",
1063
+ content: customOpts.cancelButtonText || getI18n("vxe.table.customCancel"),
1064
+ onClick: cancelCustomEvent
1065
+ }) : renderEmptyElement($xeTable),
1066
+ immediate ? renderEmptyElement($xeTable) : VxeUIButtonComponent ? (0, import_vue.h)(VxeUIButtonComponent, {
1067
+ mode: "text",
1068
+ status: "primary",
1069
+ content: customOpts.confirmButtonText || getI18n("vxe.table.customConfirm"),
1070
+ onClick: confirmCustomEvent
1071
+ }) : renderEmptyElement($xeTable)
1072
+ ]
1073
+ )
1074
+ ]
1075
+ ) : null
1076
+ ]
1077
+ ),
1078
+ renderDragTip()
1079
+ ]
1080
+ )
1081
+ ] : []
1082
+ );
951
1083
  };
952
1084
  const renderPopupBodys = () => {
953
1085
  const { resizable: allResizable } = tableProps;
@@ -999,128 +1131,166 @@ var panel_default = (0, import_comp.defineVxeComponent)({
999
1131
  const tdVNs = [];
1000
1132
  if (allowVisible) {
1001
1133
  tdVNs.push(
1002
- (0, import_vue.h)("td", {
1003
- key: "av",
1004
- class: "vxe-table-custom-popup--column-td col--visible"
1005
- }, [
1006
- (0, import_vue.h)("div", {
1007
- class: ["vxe-table-custom--checkbox-option", {
1008
- "is--checked": isChecked,
1009
- "is--indeterminate": isIndeterminate,
1010
- "is--disabled": isDisabled
1011
- }],
1012
- title: getI18n("vxe.custom.setting.colVisible"),
1013
- onClick: (evnt) => {
1014
- if (!isDisabled) {
1015
- changeCheckboxOption(column, evnt);
1016
- }
1017
- }
1018
- }, [
1019
- (0, import_vue.h)("span", {
1020
- class: ["vxe-checkbox--icon", isIndeterminate ? getIcon().TABLE_CHECKBOX_INDETERMINATE : isChecked ? getIcon().TABLE_CHECKBOX_CHECKED : getIcon().TABLE_CHECKBOX_UNCHECKED]
1021
- })
1022
- ])
1023
- ])
1134
+ (0, import_vue.h)(
1135
+ "td",
1136
+ {
1137
+ key: "av",
1138
+ class: "vxe-table-custom-popup--column-td col--visible"
1139
+ },
1140
+ [
1141
+ (0, import_vue.h)(
1142
+ "div",
1143
+ {
1144
+ class: [
1145
+ "vxe-table-custom--checkbox-option",
1146
+ {
1147
+ "is--checked": isChecked,
1148
+ "is--indeterminate": isIndeterminate,
1149
+ "is--disabled": isDisabled
1150
+ }
1151
+ ],
1152
+ title: getI18n("vxe.custom.setting.colVisible"),
1153
+ onClick: (evnt) => {
1154
+ if (!isDisabled) {
1155
+ changeCheckboxOption(column, evnt);
1156
+ }
1157
+ }
1158
+ },
1159
+ [
1160
+ (0, import_vue.h)("span", {
1161
+ class: ["vxe-checkbox--icon", isIndeterminate ? getIcon().TABLE_CHECKBOX_INDETERMINATE : isChecked ? getIcon().TABLE_CHECKBOX_CHECKED : getIcon().TABLE_CHECKBOX_UNCHECKED]
1162
+ })
1163
+ ]
1164
+ )
1165
+ ]
1166
+ )
1024
1167
  );
1025
1168
  }
1026
1169
  tdVNs.push(
1027
- (0, import_vue.h)("td", {
1028
- key: "at",
1029
- class: "vxe-table-custom-popup--column-td col--name"
1030
- }, [
1031
- (0, import_vue.h)("div", {
1032
- class: "vxe-table-custom-popup--name"
1033
- }, [
1034
- allowSort && showSortDragButton || (allowGroup || allowValues) ? showSortBtn || (allowGroup || allowValues) && !isColGroup ? (0, import_vue.h)("div", {
1035
- class: ["vxe-table-custom-popup--column-sort-btn", {
1036
- "is--disabled": isHidden
1037
- }],
1038
- title: getI18n("vxe.custom.setting.sortHelpTip"),
1039
- ...isHidden ? {} : {
1040
- onMousedown: sortMousedownEvent,
1041
- onMouseup: sortMouseupEvent
1042
- }
1043
- }, [
1044
- (0, import_vue.h)("i", {
1045
- class: getIcon().TABLE_CUSTOM_SORT
1046
- })
1047
- ]) : (0, import_vue.h)("div", {
1048
- class: "vxe-table-custom-popup--column-sort-placeholder"
1049
- }) : renderEmptyElement($xeTable),
1050
- column.type === "html" ? (0, import_vue.h)("div", {
1051
- key: "1",
1052
- class: "vxe-table-custom-popup--title",
1053
- innerHTML: colTitle
1054
- }) : (0, import_vue.h)("div", {
1055
- key: "0",
1056
- class: "vxe-table-custom-popup--title",
1057
- title: colTitle
1058
- }, colTitle),
1059
- showSortBtn && (showSortMoveButton || showSortPutButton) ? (0, import_vue.h)("div", {
1060
- class: "vxe-table-custom-popup--move-btn"
1061
- }, VxeUIButtonComponent ? [
1062
- showSortMoveButton ? (0, import_vue.h)(VxeUIButtonComponent, {
1063
- mode: "text",
1064
- icon: "vxe-icon-arrows-up",
1065
- title: getI18n("vxe.custom.setting.moveUpTitle"),
1066
- disabled: index <= 0,
1067
- onClick(evntParame) {
1068
- sortMoveUpEvent(evntParame, column);
1069
- }
1070
- }) : renderEmptyElement($xeTable),
1071
- showSortMoveButton ? (0, import_vue.h)(VxeUIButtonComponent, {
1072
- mode: "text",
1073
- icon: "vxe-icon-arrows-down",
1074
- title: getI18n("vxe.custom.setting.moveDnTitle"),
1075
- disabled: index >= items.length - 1,
1076
- onClick(evntParame) {
1077
- sortMoveDnEvent(evntParame, column);
1078
- }
1079
- }) : renderEmptyElement($xeTable),
1080
- showSortPutButton && !parentItem ? (0, import_vue.h)(VxeUIButtonComponent, {
1081
- mode: "text",
1082
- icon: "vxe-icon-top",
1083
- title: getI18n("vxe.custom.setting.putTopTitle"),
1084
- disabled: index <= 0,
1085
- onClick(evntParame) {
1086
- sortMoveTopEvent(evntParame, column);
1087
- }
1088
- }) : renderEmptyElement($xeTable),
1089
- showSortPutButton && !parentItem ? (0, import_vue.h)(VxeUIButtonComponent, {
1090
- mode: "text",
1091
- icon: "vxe-icon-bottom",
1092
- title: getI18n("vxe.custom.setting.putBottomTitle"),
1093
- disabled: index >= items.length - 1,
1094
- onClick(evntParame) {
1095
- sortMoveBottomEvent(evntParame, column);
1096
- }
1097
- }) : renderEmptyElement($xeTable)
1098
- ] : []) : renderEmptyElement($xeTable)
1099
- ])
1100
- ])
1170
+ (0, import_vue.h)(
1171
+ "td",
1172
+ {
1173
+ key: "at",
1174
+ class: "vxe-table-custom-popup--column-td col--name"
1175
+ },
1176
+ [
1177
+ (0, import_vue.h)(
1178
+ "div",
1179
+ {
1180
+ class: "vxe-table-custom-popup--name"
1181
+ },
1182
+ [
1183
+ allowSort && showSortDragButton || allowGroup || allowValues ? showSortBtn || (allowGroup || allowValues) && !isColGroup ? (0, import_vue.h)(
1184
+ "div",
1185
+ {
1186
+ class: [
1187
+ "vxe-table-custom-popup--column-sort-btn",
1188
+ {
1189
+ "is--disabled": isHidden
1190
+ }
1191
+ ],
1192
+ title: getI18n("vxe.custom.setting.sortHelpTip"),
1193
+ ...isHidden ? {} : {
1194
+ onMousedown: sortMousedownEvent,
1195
+ onMouseup: sortMouseupEvent
1196
+ }
1197
+ },
1198
+ [
1199
+ (0, import_vue.h)("i", {
1200
+ class: getIcon().TABLE_CUSTOM_SORT
1201
+ })
1202
+ ]
1203
+ ) : (0, import_vue.h)("div", {
1204
+ class: "vxe-table-custom-popup--column-sort-placeholder"
1205
+ }) : renderEmptyElement($xeTable),
1206
+ column.type === "html" ? (0, import_vue.h)("div", {
1207
+ key: "1",
1208
+ class: "vxe-table-custom-popup--title",
1209
+ innerHTML: colTitle
1210
+ }) : (0, import_vue.h)(
1211
+ "div",
1212
+ {
1213
+ key: "0",
1214
+ class: "vxe-table-custom-popup--title",
1215
+ title: colTitle
1216
+ },
1217
+ colTitle
1218
+ ),
1219
+ showSortBtn && (showSortMoveButton || showSortPutButton) ? (0, import_vue.h)(
1220
+ "div",
1221
+ {
1222
+ class: "vxe-table-custom-popup--move-btn"
1223
+ },
1224
+ VxeUIButtonComponent ? [
1225
+ showSortMoveButton ? (0, import_vue.h)(VxeUIButtonComponent, {
1226
+ mode: "text",
1227
+ icon: "vxe-icon-arrows-up",
1228
+ title: getI18n("vxe.custom.setting.moveUpTitle"),
1229
+ disabled: index <= 0,
1230
+ onClick(evntParame) {
1231
+ sortMoveUpEvent(evntParame, column);
1232
+ }
1233
+ }) : renderEmptyElement($xeTable),
1234
+ showSortMoveButton ? (0, import_vue.h)(VxeUIButtonComponent, {
1235
+ mode: "text",
1236
+ icon: "vxe-icon-arrows-down",
1237
+ title: getI18n("vxe.custom.setting.moveDnTitle"),
1238
+ disabled: index >= items.length - 1,
1239
+ onClick(evntParame) {
1240
+ sortMoveDnEvent(evntParame, column);
1241
+ }
1242
+ }) : renderEmptyElement($xeTable),
1243
+ showSortPutButton && !parentItem ? (0, import_vue.h)(VxeUIButtonComponent, {
1244
+ mode: "text",
1245
+ icon: "vxe-icon-top",
1246
+ title: getI18n("vxe.custom.setting.putTopTitle"),
1247
+ disabled: index <= 0,
1248
+ onClick(evntParame) {
1249
+ sortMoveTopEvent(evntParame, column);
1250
+ }
1251
+ }) : renderEmptyElement($xeTable),
1252
+ showSortPutButton && !parentItem ? (0, import_vue.h)(VxeUIButtonComponent, {
1253
+ mode: "text",
1254
+ icon: "vxe-icon-bottom",
1255
+ title: getI18n("vxe.custom.setting.putBottomTitle"),
1256
+ disabled: index >= items.length - 1,
1257
+ onClick(evntParame) {
1258
+ sortMoveBottomEvent(evntParame, column);
1259
+ }
1260
+ }) : renderEmptyElement($xeTable)
1261
+ ] : []
1262
+ ) : renderEmptyElement($xeTable)
1263
+ ]
1264
+ )
1265
+ ]
1266
+ )
1101
1267
  );
1102
1268
  if (allowResizable) {
1103
1269
  tdVNs.push(
1104
- (0, import_vue.h)("td", {
1105
- key: "aw",
1106
- class: "vxe-table-custom-popup--column-td col--resizable"
1107
- }, [
1108
- column.children && column.children.length || !(import_xe_utils.default.isBoolean(column.resizable) ? column.resizable : columnOpts.resizable || allResizable) ? (0, import_vue.h)("span", "-") : VxeUINumberInputComponent ? (0, import_vue.h)(VxeUINumberInputComponent, {
1109
- type: "integer",
1110
- immediate: false,
1111
- disabled: isHidden,
1112
- modelValue: column.renderResizeWidth,
1113
- min: customMinWidth || 0,
1114
- max: customMaxWidth || 9999,
1115
- "onUpdate:modelValue"(value) {
1116
- const width = Math.max(0, Number(value));
1117
- column.renderResizeWidth = width;
1118
- },
1119
- onChange() {
1120
- changeColumnWidth(column);
1121
- }
1122
- }) : renderEmptyElement($xeTable)
1123
- ])
1270
+ (0, import_vue.h)(
1271
+ "td",
1272
+ {
1273
+ key: "aw",
1274
+ class: "vxe-table-custom-popup--column-td col--resizable"
1275
+ },
1276
+ [
1277
+ column.children && column.children.length || !(import_xe_utils.default.isBoolean(column.resizable) ? column.resizable : columnOpts.resizable || allResizable) ? (0, import_vue.h)("span", "-") : VxeUINumberInputComponent ? (0, import_vue.h)(VxeUINumberInputComponent, {
1278
+ type: "integer",
1279
+ immediate: false,
1280
+ disabled: isHidden,
1281
+ modelValue: column.renderResizeWidth,
1282
+ min: customMinWidth || 0,
1283
+ max: customMaxWidth || 9999,
1284
+ "onUpdate:modelValue"(value) {
1285
+ const width = Math.max(0, Number(value));
1286
+ column.renderResizeWidth = width;
1287
+ },
1288
+ onChange() {
1289
+ changeColumnWidth(column);
1290
+ }
1291
+ }) : renderEmptyElement($xeTable)
1292
+ ]
1293
+ )
1124
1294
  );
1125
1295
  }
1126
1296
  if (allowFixed) {
@@ -1224,16 +1394,23 @@ var panel_default = (0, import_comp.defineVxeComponent)({
1224
1394
  );
1225
1395
  }
1226
1396
  trVNs.push(
1227
- (0, import_vue.h)("tr", {
1228
- key: column.id,
1229
- colid: column.id,
1230
- class: [`vxe-table-custom-popup--row level--${column.level}`, {
1231
- "is--group": isColGroup
1232
- }],
1233
- onDragstart: sortDragstartEvent,
1234
- onDragend: sortDragendEvent,
1235
- onDragover: sortDragoverEvent
1236
- }, tdVNs)
1397
+ (0, import_vue.h)(
1398
+ "tr",
1399
+ {
1400
+ key: column.id,
1401
+ colid: column.id,
1402
+ class: [
1403
+ `vxe-table-custom-popup--row level--${column.level}`,
1404
+ {
1405
+ "is--group": isColGroup
1406
+ }
1407
+ ],
1408
+ onDragstart: sortDragstartEvent,
1409
+ onDragend: sortDragendEvent,
1410
+ onDragover: sortDragoverEvent
1411
+ },
1412
+ tdVNs
1413
+ )
1237
1414
  );
1238
1415
  }
1239
1416
  });
@@ -1283,26 +1460,37 @@ var panel_default = (0, import_comp.defineVxeComponent)({
1283
1460
  })
1284
1461
  );
1285
1462
  headVNs.push(
1286
- (0, import_vue.h)("th", {
1287
- key: "av",
1288
- class: "vxe-table-custom-popup--column-th col--checkbox"
1289
- }, [
1290
- (0, import_vue.h)("div", {
1291
- class: ["vxe-table-custom--checkbox-option", {
1292
- "is--checked": isAllChecked,
1293
- "is--indeterminate": isAllIndeterminate
1294
- }],
1295
- title: getI18n("vxe.table.allTitle"),
1296
- onClick: allOptionEvent
1297
- }, [
1298
- (0, import_vue.h)("span", {
1299
- class: ["vxe-checkbox--icon", isAllIndeterminate ? getIcon().TABLE_CHECKBOX_INDETERMINATE : isAllChecked ? getIcon().TABLE_CHECKBOX_CHECKED : getIcon().TABLE_CHECKBOX_UNCHECKED]
1300
- })
1301
- // h('span', {
1302
- // class: 'vxe-checkbox--label'
1303
- // }, getI18n('vxe.toolbar.customAll'))
1304
- ])
1305
- ])
1463
+ (0, import_vue.h)(
1464
+ "th",
1465
+ {
1466
+ key: "av",
1467
+ class: "vxe-table-custom-popup--column-th col--checkbox"
1468
+ },
1469
+ [
1470
+ (0, import_vue.h)(
1471
+ "div",
1472
+ {
1473
+ class: [
1474
+ "vxe-table-custom--checkbox-option",
1475
+ {
1476
+ "is--checked": isAllChecked,
1477
+ "is--indeterminate": isAllIndeterminate
1478
+ }
1479
+ ],
1480
+ title: getI18n("vxe.table.allTitle"),
1481
+ onClick: allOptionEvent
1482
+ },
1483
+ [
1484
+ (0, import_vue.h)("span", {
1485
+ class: ["vxe-checkbox--icon", isAllIndeterminate ? getIcon().TABLE_CHECKBOX_INDETERMINATE : isAllChecked ? getIcon().TABLE_CHECKBOX_CHECKED : getIcon().TABLE_CHECKBOX_UNCHECKED]
1486
+ })
1487
+ // h('span', {
1488
+ // class: 'vxe-checkbox--label'
1489
+ // }, getI18n('vxe.toolbar.customAll'))
1490
+ ]
1491
+ )
1492
+ ]
1493
+ )
1306
1494
  );
1307
1495
  }
1308
1496
  colVNs.push(
@@ -1312,10 +1500,14 @@ var panel_default = (0, import_comp.defineVxeComponent)({
1312
1500
  })
1313
1501
  );
1314
1502
  headVNs.push(
1315
- (0, import_vue.h)("th", {
1316
- key: "at",
1317
- class: "vxe-table-custom-popup--column-th col--title"
1318
- }, getI18n("vxe.custom.setting.colTitle"))
1503
+ (0, import_vue.h)(
1504
+ "th",
1505
+ {
1506
+ key: "at",
1507
+ class: "vxe-table-custom-popup--column-th col--title"
1508
+ },
1509
+ getI18n("vxe.custom.setting.colTitle")
1510
+ )
1319
1511
  );
1320
1512
  if (allowResizable) {
1321
1513
  colVNs.push(
@@ -1325,10 +1517,14 @@ var panel_default = (0, import_comp.defineVxeComponent)({
1325
1517
  })
1326
1518
  );
1327
1519
  headVNs.push(
1328
- (0, import_vue.h)("th", {
1329
- key: "aw",
1330
- class: "vxe-table-custom-popup--column-th col--width"
1331
- }, getI18n("vxe.custom.setting.colResizable"))
1520
+ (0, import_vue.h)(
1521
+ "th",
1522
+ {
1523
+ key: "aw",
1524
+ class: "vxe-table-custom-popup--column-th col--width"
1525
+ },
1526
+ getI18n("vxe.custom.setting.colResizable")
1527
+ )
1332
1528
  );
1333
1529
  }
1334
1530
  if (allowFixed) {
@@ -1339,10 +1535,14 @@ var panel_default = (0, import_comp.defineVxeComponent)({
1339
1535
  })
1340
1536
  );
1341
1537
  headVNs.push(
1342
- (0, import_vue.h)("th", {
1343
- key: "af",
1344
- class: "vxe-table-custom-popup--column-th col--fixed"
1345
- }, getI18n(`vxe.custom.setting.${maxFixedSize ? "colFixedMax" : "colFixed"}`, [maxFixedSize]))
1538
+ (0, import_vue.h)(
1539
+ "th",
1540
+ {
1541
+ key: "af",
1542
+ class: "vxe-table-custom-popup--column-th col--fixed"
1543
+ },
1544
+ getI18n(`vxe.custom.setting.${maxFixedSize ? "colFixedMax" : "colFixed"}`, [maxFixedSize])
1545
+ )
1346
1546
  );
1347
1547
  }
1348
1548
  if (allowAlign) {
@@ -1353,10 +1553,14 @@ var panel_default = (0, import_comp.defineVxeComponent)({
1353
1553
  })
1354
1554
  );
1355
1555
  headVNs.push(
1356
- (0, import_vue.h)("th", {
1357
- key: "aa",
1358
- class: "vxe-table-custom-popup--column-th col--align"
1359
- }, getI18n("vxe.custom.setting.colAlign"))
1556
+ (0, import_vue.h)(
1557
+ "th",
1558
+ {
1559
+ key: "aa",
1560
+ class: "vxe-table-custom-popup--column-th col--align"
1561
+ },
1562
+ getI18n("vxe.custom.setting.colAlign")
1563
+ )
1360
1564
  );
1361
1565
  }
1362
1566
  if (allowHeaderAlign) {
@@ -1367,10 +1571,14 @@ var panel_default = (0, import_comp.defineVxeComponent)({
1367
1571
  })
1368
1572
  );
1369
1573
  headVNs.push(
1370
- (0, import_vue.h)("th", {
1371
- key: "aha",
1372
- class: "vxe-table-custom-popup--column-th col--header-align"
1373
- }, getI18n("vxe.custom.setting.colHeadAlign"))
1574
+ (0, import_vue.h)(
1575
+ "th",
1576
+ {
1577
+ key: "aha",
1578
+ class: "vxe-table-custom-popup--column-th col--header-align"
1579
+ },
1580
+ getI18n("vxe.custom.setting.colHeadAlign")
1581
+ )
1374
1582
  );
1375
1583
  }
1376
1584
  if (allowFooterAlign) {
@@ -1381,131 +1589,173 @@ var panel_default = (0, import_comp.defineVxeComponent)({
1381
1589
  })
1382
1590
  );
1383
1591
  headVNs.push(
1384
- (0, import_vue.h)("th", {
1385
- key: "afa",
1386
- class: "vxe-table-custom-popup--column-th col--footer-align"
1387
- }, getI18n("vxe.custom.setting.colFootAlign"))
1592
+ (0, import_vue.h)(
1593
+ "th",
1594
+ {
1595
+ key: "afa",
1596
+ class: "vxe-table-custom-popup--column-th col--footer-align"
1597
+ },
1598
+ getI18n("vxe.custom.setting.colFootAlign")
1599
+ )
1388
1600
  );
1389
1601
  }
1390
1602
  const scopedSlots = {
1391
1603
  default: () => {
1392
- return (0, import_vue.h)("div", {
1393
- ref: refBodyWrapperElem,
1394
- class: ["vxe-table-custom-popup--body-wrapper", `agg-layout--${aggPlacement}`, {
1395
- [`size--${vSize}`]: vSize
1396
- }],
1397
- style: panePopupStyle
1398
- }, defaultSlot ? $xeTable.callSlot(defaultSlot, params) : [
1399
- !isAggRtBmLayout && !treeConfig && (aggregateConfig || rowGroupConfig) && $xeTable.getPivotTableAggregatePopupPanel ? (0, import_vue.h)($xeTable.getPivotTableAggregatePopupPanel(), {
1400
- customStore
1401
- }) : renderEmptyElement($xeTable),
1402
- (0, import_vue.h)("div", {
1403
- ref: refCustomBodyElem,
1404
- class: "vxe-table-custom-popup--handle-wrapper"
1405
- }, [
1406
- topSlot ? (0, import_vue.h)("div", {
1407
- class: "vxe-table-custom-popup--table-top"
1408
- }, $xeTable.callSlot(topSlot, params)) : renderEmptyElement($xeTable),
1409
- (0, import_vue.h)("div", {
1410
- class: "vxe-table-custom-popup--table-wrapper"
1411
- }, [
1412
- (0, import_vue.h)("table", {}, [
1413
- (0, import_vue.h)("colgroup", {}, colVNs),
1414
- (0, import_vue.h)("thead", {}, [
1415
- (0, import_vue.h)("tr", {}, headVNs)
1416
- ]),
1417
- (0, import_vue.h)(import_vue.TransitionGroup, {
1418
- class: "vxe-table-custom--panel-list",
1419
- tag: "tbody",
1420
- name: "vxe-table-custom--list"
1421
- }, {
1422
- default: () => renderPopupBodys()
1423
- })
1424
- ])
1425
- ]),
1426
- bottomSlot ? (0, import_vue.h)("div", {
1427
- class: "vxe-table-custom-popup--table-bottom"
1428
- }, $xeTable.callSlot(bottomSlot, params)) : renderEmptyElement($xeTable),
1429
- renderDragTip()
1430
- ]),
1431
- isAggRtBmLayout && !treeConfig && (aggregateConfig || rowGroupConfig) && $xeTable.getPivotTableAggregatePopupPanel ? (0, import_vue.h)($xeTable.getPivotTableAggregatePopupPanel(), {
1432
- customStore
1433
- }) : renderEmptyElement($xeTable)
1434
- ]);
1604
+ return (0, import_vue.h)(
1605
+ "div",
1606
+ {
1607
+ ref: refBodyWrapperElem,
1608
+ class: [
1609
+ "vxe-table-custom-popup--body-wrapper",
1610
+ `agg-layout--${aggPlacement}`,
1611
+ {
1612
+ [`size--${vSize}`]: vSize
1613
+ }
1614
+ ],
1615
+ style: panePopupStyle
1616
+ },
1617
+ defaultSlot ? $xeTable.callSlot(defaultSlot, params) : [
1618
+ !isAggRtBmLayout && !treeConfig && (aggregateConfig || rowGroupConfig) && $xeTable.getPivotTableAggregatePopupPanel ? (0, import_vue.h)($xeTable.getPivotTableAggregatePopupPanel(), {
1619
+ customStore
1620
+ }) : renderEmptyElement($xeTable),
1621
+ (0, import_vue.h)(
1622
+ "div",
1623
+ {
1624
+ ref: refCustomBodyElem,
1625
+ class: "vxe-table-custom-popup--handle-wrapper"
1626
+ },
1627
+ [
1628
+ topSlot ? (0, import_vue.h)(
1629
+ "div",
1630
+ {
1631
+ class: "vxe-table-custom-popup--table-top"
1632
+ },
1633
+ $xeTable.callSlot(topSlot, params)
1634
+ ) : renderEmptyElement($xeTable),
1635
+ (0, import_vue.h)(
1636
+ "div",
1637
+ {
1638
+ class: "vxe-table-custom-popup--table-wrapper"
1639
+ },
1640
+ [
1641
+ (0, import_vue.h)("table", {}, [
1642
+ (0, import_vue.h)("colgroup", {}, colVNs),
1643
+ (0, import_vue.h)("thead", {}, [(0, import_vue.h)("tr", {}, headVNs)]),
1644
+ (0, import_vue.h)(
1645
+ import_vue.TransitionGroup,
1646
+ {
1647
+ class: "vxe-table-custom--panel-list",
1648
+ tag: "tbody",
1649
+ name: "vxe-table-custom--list"
1650
+ },
1651
+ {
1652
+ default: () => renderPopupBodys()
1653
+ }
1654
+ )
1655
+ ])
1656
+ ]
1657
+ ),
1658
+ bottomSlot ? (0, import_vue.h)(
1659
+ "div",
1660
+ {
1661
+ class: "vxe-table-custom-popup--table-bottom"
1662
+ },
1663
+ $xeTable.callSlot(bottomSlot, params)
1664
+ ) : renderEmptyElement($xeTable),
1665
+ renderDragTip()
1666
+ ]
1667
+ ),
1668
+ isAggRtBmLayout && !treeConfig && (aggregateConfig || rowGroupConfig) && $xeTable.getPivotTableAggregatePopupPanel ? (0, import_vue.h)($xeTable.getPivotTableAggregatePopupPanel(), {
1669
+ customStore
1670
+ }) : renderEmptyElement($xeTable)
1671
+ ]
1672
+ );
1435
1673
  },
1436
1674
  footer: () => {
1437
1675
  if (footerSlot) {
1438
1676
  return $xeTable.callSlot(footerSlot, params);
1439
1677
  }
1440
- return (0, import_vue.h)("div", {
1441
- class: "vxe-table-custom-popup--footer"
1442
- }, [
1443
- VxeUIButtonComponent ? (0, import_vue.h)(VxeUIButtonComponent, {
1444
- content: customOpts.resetButtonText || getI18n("vxe.custom.cstmRestore"),
1445
- disabled: !isCustomStatus,
1446
- onClick: resetCustomEvent
1447
- }) : renderEmptyElement($xeTable),
1448
- immediate ? VxeUIButtonComponent ? (0, import_vue.h)(VxeUIButtonComponent, {
1449
- status: "primary",
1450
- content: customOpts.closeButtonText || getI18n("vxe.table.customClose"),
1451
- onClick: cancelCloseEvent
1452
- }) : renderEmptyElement($xeTable) : VxeUIButtonComponent ? (0, import_vue.h)(VxeUIButtonComponent, {
1453
- content: customOpts.cancelButtonText || getI18n("vxe.table.customCancel"),
1454
- onClick: cancelCustomEvent
1455
- }) : renderEmptyElement($xeTable),
1456
- immediate ? renderEmptyElement($xeTable) : VxeUIButtonComponent ? (0, import_vue.h)(VxeUIButtonComponent, {
1457
- status: "primary",
1458
- content: customOpts.confirmButtonText || getI18n("vxe.custom.cstmConfirm"),
1459
- onClick: confirmCustomEvent
1460
- }) : renderEmptyElement($xeTable)
1461
- ]);
1678
+ return (0, import_vue.h)(
1679
+ "div",
1680
+ {
1681
+ class: "vxe-table-custom-popup--footer"
1682
+ },
1683
+ [
1684
+ VxeUIButtonComponent ? (0, import_vue.h)(VxeUIButtonComponent, {
1685
+ content: customOpts.resetButtonText || getI18n("vxe.custom.cstmRestore"),
1686
+ disabled: !isCustomStatus,
1687
+ onClick: resetCustomEvent
1688
+ }) : renderEmptyElement($xeTable),
1689
+ immediate ? VxeUIButtonComponent ? (0, import_vue.h)(VxeUIButtonComponent, {
1690
+ status: "primary",
1691
+ content: customOpts.closeButtonText || getI18n("vxe.table.customClose"),
1692
+ onClick: cancelCloseEvent
1693
+ }) : renderEmptyElement($xeTable) : VxeUIButtonComponent ? (0, import_vue.h)(VxeUIButtonComponent, {
1694
+ content: customOpts.cancelButtonText || getI18n("vxe.table.customCancel"),
1695
+ onClick: cancelCustomEvent
1696
+ }) : renderEmptyElement($xeTable),
1697
+ immediate ? renderEmptyElement($xeTable) : VxeUIButtonComponent ? (0, import_vue.h)(VxeUIButtonComponent, {
1698
+ status: "primary",
1699
+ content: customOpts.confirmButtonText || getI18n("vxe.custom.cstmConfirm"),
1700
+ onClick: confirmCustomEvent
1701
+ }) : renderEmptyElement($xeTable)
1702
+ ]
1703
+ );
1462
1704
  }
1463
1705
  };
1464
1706
  if (headerSlot) {
1465
1707
  scopedSlots.header = () => $xeTable.callSlot(headerSlot, params);
1466
1708
  }
1467
1709
  if (mode === "drawer") {
1468
- return VxeUIDrawerComponent ? (0, import_vue.h)(VxeUIDrawerComponent, {
1469
- key: "drawer",
1470
- className: ["vxe-table-custom-drawer-wrapper", "vxe-table--ignore-clear", drawerOpts.className || ""].join(" "),
1710
+ return VxeUIDrawerComponent ? (0, import_vue.h)(
1711
+ VxeUIDrawerComponent,
1712
+ {
1713
+ key: "drawer",
1714
+ className: ["vxe-table-custom-drawer-wrapper", "vxe-table--ignore-clear", drawerOpts.className || ""].join(" "),
1715
+ modelValue: customStore.visible,
1716
+ title: drawerOpts.title || getI18n("vxe.custom.cstmTitle"),
1717
+ width: drawerOpts.width || Math.min(880, Math.floor(document.documentElement.clientWidth * 0.6)),
1718
+ position: drawerOpts.position,
1719
+ resize: !!drawerOpts.resize,
1720
+ escClosable: !!drawerOpts.escClosable,
1721
+ maskClosable: !!drawerOpts.maskClosable,
1722
+ destroyOnClose: true,
1723
+ showFooter: true,
1724
+ "onUpdate:modelValue"(value) {
1725
+ customStore.visible = value;
1726
+ }
1727
+ },
1728
+ scopedSlots
1729
+ ) : renderEmptyElement($xeTable);
1730
+ }
1731
+ return VxeUIModalComponent ? (0, import_vue.h)(
1732
+ VxeUIModalComponent,
1733
+ {
1734
+ key: "modal",
1735
+ className: ["vxe-table-custom-modal-wrapper", "vxe-table--ignore-clear", modalOpts.className || ""].join(" "),
1471
1736
  modelValue: customStore.visible,
1472
- title: drawerOpts.title || getI18n("vxe.custom.cstmTitle"),
1473
- width: drawerOpts.width || Math.min(880, Math.floor(document.documentElement.clientWidth * 0.6)),
1474
- position: drawerOpts.position,
1475
- resize: !!drawerOpts.resize,
1476
- escClosable: !!drawerOpts.escClosable,
1477
- maskClosable: !!drawerOpts.maskClosable,
1737
+ title: modalOpts.title || getI18n("vxe.custom.cstmTitle"),
1738
+ width: modalOpts.width || Math.min(1e3, document.documentElement.clientWidth),
1739
+ minWidth: modalOpts.minWidth || 800,
1740
+ height: modalOpts.height || Math.min(680, document.documentElement.clientHeight),
1741
+ minHeight: modalOpts.minHeight || 400,
1742
+ showZoom: modalOpts.showZoom,
1743
+ showMaximize: modalOpts.showMaximize,
1744
+ showMinimize: modalOpts.showMinimize,
1745
+ mask: modalOpts.mask,
1746
+ lockView: modalOpts.lockView,
1747
+ resize: modalOpts.resize,
1748
+ transfer: modalOpts.transfer,
1749
+ escClosable: !!modalOpts.escClosable,
1750
+ maskClosable: !!modalOpts.maskClosable,
1478
1751
  destroyOnClose: true,
1479
1752
  showFooter: true,
1480
1753
  "onUpdate:modelValue"(value) {
1481
1754
  customStore.visible = value;
1482
1755
  }
1483
- }, scopedSlots) : renderEmptyElement($xeTable);
1484
- }
1485
- return VxeUIModalComponent ? (0, import_vue.h)(VxeUIModalComponent, {
1486
- key: "modal",
1487
- className: ["vxe-table-custom-modal-wrapper", "vxe-table--ignore-clear", modalOpts.className || ""].join(" "),
1488
- modelValue: customStore.visible,
1489
- title: modalOpts.title || getI18n("vxe.custom.cstmTitle"),
1490
- width: modalOpts.width || Math.min(1e3, document.documentElement.clientWidth),
1491
- minWidth: modalOpts.minWidth || 800,
1492
- height: modalOpts.height || Math.min(680, document.documentElement.clientHeight),
1493
- minHeight: modalOpts.minHeight || 400,
1494
- showZoom: modalOpts.showZoom,
1495
- showMaximize: modalOpts.showMaximize,
1496
- showMinimize: modalOpts.showMinimize,
1497
- mask: modalOpts.mask,
1498
- lockView: modalOpts.lockView,
1499
- resize: modalOpts.resize,
1500
- transfer: modalOpts.transfer,
1501
- escClosable: !!modalOpts.escClosable,
1502
- maskClosable: !!modalOpts.maskClosable,
1503
- destroyOnClose: true,
1504
- showFooter: true,
1505
- "onUpdate:modelValue"(value) {
1506
- customStore.visible = value;
1507
- }
1508
- }, scopedSlots) : renderEmptyElement($xeTable);
1756
+ },
1757
+ scopedSlots
1758
+ ) : renderEmptyElement($xeTable);
1509
1759
  };
1510
1760
  const renderVN = () => {
1511
1761
  const customOpts = computeCustomOpts.value;