vxe-table 4.23.18 → 4.24.0-beta.0

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 (71) hide show
  1. package/README.md +2 -0
  2. package/dist/all.esm.js +649 -366
  3. package/dist/all.esm.min.js +3 -3
  4. package/dist/style.css +85 -13
  5. package/dist/style.mini.css +1 -1
  6. package/es/components.d.ts +1 -3
  7. package/es/components.js +1 -2
  8. package/es/style.css +85 -13
  9. package/es/style.mini.css +1 -1
  10. package/es/table/module/custom/panel.js +2 -2
  11. package/es/table/module/edit/hook.js +97 -9
  12. package/es/table/module/export/export-panel.js +5 -5
  13. package/es/table/module/export/hook.js +8 -10
  14. package/es/table/module/export/import-panel.js +5 -5
  15. package/es/table/src/body.d.ts +2 -2
  16. package/es/table/src/body.js +26 -49
  17. package/es/table/src/table.js +256 -36
  18. package/es/table/style.css +82 -13
  19. package/es/table/style.mini.css +1 -1
  20. package/es/ui/abandon.d.ts +82 -0
  21. package/es/ui/abandon.js +90 -0
  22. package/es/ui/index.d.ts +2 -82
  23. package/es/ui/index.js +7 -91
  24. package/es/ui/src/log.js +1 -1
  25. package/es/vxe-table/style.css +82 -13
  26. package/es/vxe-table/style.mini.css +1 -1
  27. package/lib/components.d.ts +1 -3
  28. package/lib/components.js +1 -2
  29. package/lib/index.umd.js +648 -363
  30. package/lib/index.umd.min.js +3 -3
  31. package/lib/style.css +85 -13
  32. package/lib/style.mini.css +1 -1
  33. package/lib/table/module/custom/panel.js +2 -2
  34. package/lib/table/module/edit/hook.js +97 -9
  35. package/lib/table/module/export/export-panel.js +5 -5
  36. package/lib/table/module/export/hook.js +8 -10
  37. package/lib/table/module/export/import-panel.js +5 -5
  38. package/lib/table/src/body.d.ts +2 -2
  39. package/lib/table/src/body.js +26 -49
  40. package/lib/table/src/table.js +256 -36
  41. package/lib/table/style/style.css +82 -13
  42. package/lib/table/style/style.mini.css +1 -1
  43. package/lib/ui/abandon.d.ts +82 -0
  44. package/lib/ui/abandon.js +110 -0
  45. package/lib/ui/index.d.ts +2 -82
  46. package/lib/ui/index.js +8 -91
  47. package/lib/ui/src/log.js +1 -1
  48. package/lib/vxe-table/style/style.css +82 -13
  49. package/lib/vxe-table/style/style.mini.css +1 -1
  50. package/package.json +2 -2
  51. package/packages/components.ts +2 -5
  52. package/packages/table/module/custom/panel.ts +2 -2
  53. package/packages/table/module/edit/hook.ts +97 -10
  54. package/packages/table/module/export/export-panel.ts +5 -5
  55. package/packages/table/module/export/hook.ts +8 -10
  56. package/packages/table/module/export/import-panel.ts +5 -5
  57. package/packages/table/src/body.ts +28 -50
  58. package/packages/table/src/table.ts +292 -35
  59. package/packages/ui/abandon.ts +136 -0
  60. package/packages/ui/index.ts +13 -119
  61. package/styles/components/table.scss +141 -87
  62. package/styles/theme/base.scss +3 -0
  63. /package/dist/{iconfont.1794366305845.ttf → iconfont.1794558570397.ttf} +0 -0
  64. /package/dist/{iconfont.1794366305845.woff → iconfont.1794558570397.woff} +0 -0
  65. /package/dist/{iconfont.1794366305845.woff2 → iconfont.1794558570397.woff2} +0 -0
  66. /package/es/{iconfont.1794366305845.ttf → iconfont.1794558570397.ttf} +0 -0
  67. /package/es/{iconfont.1794366305845.woff → iconfont.1794558570397.woff} +0 -0
  68. /package/es/{iconfont.1794366305845.woff2 → iconfont.1794558570397.woff2} +0 -0
  69. /package/lib/{iconfont.1794366305845.ttf → iconfont.1794558570397.ttf} +0 -0
  70. /package/lib/{iconfont.1794366305845.woff → iconfont.1794558570397.woff} +0 -0
  71. /package/lib/{iconfont.1794366305845.woff2 → iconfont.1794558570397.woff2} +0 -0
package/dist/all.esm.js CHANGED
@@ -30,7 +30,6 @@ __export(index_exports, {
30
30
  VxeGrid: () => VxeGrid,
31
31
  VxeTable: () => VxeTable,
32
32
  VxeToolbar: () => VxeToolbar,
33
- VxeUI: () => VxeUI32,
34
33
  _t: () => _t,
35
34
  config: () => config,
36
35
  default: () => index_default,
@@ -40,8 +39,7 @@ __export(index_exports, {
40
39
  readFile: () => readFile,
41
40
  saveFile: () => saveFile,
42
41
  setup: () => setup,
43
- t: () => t,
44
- version: () => version
42
+ t: () => t
45
43
  });
46
44
 
47
45
  // packages_temp/components.ts
@@ -58,7 +56,6 @@ __export(components_exports, {
58
56
  VxeGrid: () => VxeGrid,
59
57
  VxeTable: () => VxeTable,
60
58
  VxeToolbar: () => VxeToolbar,
61
- VxeUI: () => VxeUI32,
62
59
  _t: () => _t,
63
60
  config: () => config,
64
61
  install: () => install,
@@ -67,12 +64,14 @@ __export(components_exports, {
67
64
  readFile: () => readFile,
68
65
  saveFile: () => saveFile,
69
66
  setup: () => setup,
70
- t: () => t,
71
- version: () => version
67
+ t: () => t
72
68
  });
73
- import { VxeUI as VxeUI32 } from "@vxe-ui/core";
69
+ import { VxeUI as VxeUI33 } from "@vxe-ui/core";
74
70
 
75
71
  // packages_temp/ui/index.ts
72
+ import { VxeUI as VxeUI3 } from "@vxe-ui/core";
73
+
74
+ // packages_temp/ui/abandon.ts
76
75
  import { VxeUI as VxeUI2 } from "@vxe-ui/core";
77
76
 
78
77
  // packages_temp/ui/src/utils.ts
@@ -122,11 +121,90 @@ function getDefaultConfig(val1, def1) {
122
121
  return XEUtils.eqNull(val1) ? def1 : val1;
123
122
  }
124
123
 
124
+ // packages_temp/ui/abandon.ts
125
+ var setup = (options) => {
126
+ return VxeUI2.setConfig(options);
127
+ };
128
+ VxeUI2.setup = setup;
129
+ var config = (options) => {
130
+ return VxeUI2.setConfig(options);
131
+ };
132
+ VxeUI2.config = config;
133
+ var t = (key, args) => {
134
+ return VxeUI2.getI18n(key, args);
135
+ };
136
+ VxeUI2.t = t;
137
+ var _t = (content, args) => {
138
+ return getFuncText(content, args);
139
+ };
140
+ VxeUI2._t = _t;
141
+ var VXETable = VxeUI2;
142
+ var saveFile = (options) => {
143
+ return VxeUI2.saveFile(options);
144
+ };
145
+ var readFile = (options) => {
146
+ return VxeUI2.readFile(options);
147
+ };
148
+ var print = (options) => {
149
+ return VxeUI2.print(options);
150
+ };
151
+ var modal = {
152
+ /**
153
+ * 已废弃,兼容老版本
154
+ * @deprecated
155
+ */
156
+ get(id) {
157
+ return VxeUI2.modal.get(id);
158
+ },
159
+ /**
160
+ * 已废弃,兼容老版本
161
+ * @deprecated
162
+ */
163
+ close(id) {
164
+ return VxeUI2.modal.close(id);
165
+ },
166
+ /**
167
+ * 已废弃,兼容老版本
168
+ * @deprecated
169
+ */
170
+ open(options) {
171
+ return VxeUI2.modal.open(options);
172
+ },
173
+ /**
174
+ * 已废弃,兼容老版本
175
+ * @deprecated
176
+ */
177
+ alert(content, title, options) {
178
+ return VxeUI2.modal.alert(content, title, options);
179
+ },
180
+ /**
181
+ * 已废弃,兼容老版本
182
+ * @deprecated
183
+ */
184
+ confirm(content, title, options) {
185
+ return VxeUI2.modal.confirm(content, title, options);
186
+ },
187
+ /**
188
+ * 已废弃,兼容老版本
189
+ * @deprecated
190
+ */
191
+ message(content, options) {
192
+ return VxeUI2.modal.message(content, options);
193
+ },
194
+ /**
195
+ * 已废弃,兼容老版本
196
+ * @deprecated
197
+ */
198
+ notification(content, title, options) {
199
+ return VxeUI2.modal.notification(content, title, options);
200
+ }
201
+ };
202
+
125
203
  // packages_temp/ui/index.ts
126
- var version = "4.23.18";
127
- VxeUI2.version = version;
128
- VxeUI2.tableVersion = version;
129
- VxeUI2.setConfig({
204
+ var version = "4.24.0-beta.0";
205
+ VxeUI3.tableVersion = version;
206
+ VxeUI3.version = version;
207
+ VxeUI3.setConfig({
130
208
  emptyCell: " ",
131
209
  table: {
132
210
  fit: true,
@@ -299,7 +377,7 @@ VxeUI2.setConfig({
299
377
  parentField: "_X_ROW_PARENT_KEY",
300
378
  childrenField: "_X_ROW_CHILDREN",
301
379
  mapChildrenField: "_X_ROW_CHILD_LIST",
302
- indent: 20,
380
+ indent: 28,
303
381
  showIcon: true,
304
382
  maxGroupSize: 4,
305
383
  showAggFuncTitle: true
@@ -311,8 +389,9 @@ VxeUI2.setConfig({
311
389
  childrenField: "children",
312
390
  hasChildField: "hasChild",
313
391
  mapChildrenField: "_X_ROW_CHILD",
314
- indent: 20,
392
+ indent: 28,
315
393
  showIcon: true,
394
+ // lineType: 'dashed',
316
395
  showRootLine: true
317
396
  },
318
397
  expandConfig: {
@@ -451,7 +530,7 @@ VxeUI2.setConfig({
451
530
  gantt: {}
452
531
  });
453
532
  var iconPrefix = "vxe-table-icon-";
454
- VxeUI2.setIcon({
533
+ VxeUI3.setIcon({
455
534
  // table
456
535
  TABLE_SORT_ASC: iconPrefix + "caret-up",
457
536
  TABLE_SORT_DESC: iconPrefix + "caret-down",
@@ -513,86 +592,9 @@ VxeUI2.setIcon({
513
592
  TOOLBAR_TOOLS_FIXED_RIGHT: iconPrefix + "fixed-right",
514
593
  TOOLBAR_TOOLS_FIXED_RIGHT_ACTIVE: iconPrefix + "fixed-right-fill"
515
594
  });
516
- var setup = (options) => {
517
- return VxeUI2.setConfig(options);
518
- };
519
- VxeUI2.setup = setup;
520
- var config = (options) => {
521
- return VxeUI2.setConfig(options);
522
- };
523
- VxeUI2.config = config;
524
- var t = (key, args) => {
525
- return VxeUI2.getI18n(key, args);
526
- };
527
- VxeUI2.t = t;
528
- var _t = (content, args) => {
529
- return getFuncText(content, args);
530
- };
531
- VxeUI2._t = _t;
532
- var VXETable = VxeUI2;
533
- var saveFile = (options) => {
534
- return VxeUI2.saveFile(options);
535
- };
536
- var readFile = (options) => {
537
- return VxeUI2.readFile(options);
538
- };
539
- var print = (options) => {
540
- return VxeUI2.print(options);
541
- };
542
- var modal = {
543
- /**
544
- * 已废弃,兼容老版本
545
- * @deprecated
546
- */
547
- get(id) {
548
- return VxeUI2.modal.get(id);
549
- },
550
- /**
551
- * 已废弃,兼容老版本
552
- * @deprecated
553
- */
554
- close(id) {
555
- return VxeUI2.modal.close(id);
556
- },
557
- /**
558
- * 已废弃,兼容老版本
559
- * @deprecated
560
- */
561
- open(options) {
562
- return VxeUI2.modal.open(options);
563
- },
564
- /**
565
- * 已废弃,兼容老版本
566
- * @deprecated
567
- */
568
- alert(content, title, options) {
569
- return VxeUI2.modal.alert(content, title, options);
570
- },
571
- /**
572
- * 已废弃,兼容老版本
573
- * @deprecated
574
- */
575
- confirm(content, title, options) {
576
- return VxeUI2.modal.confirm(content, title, options);
577
- },
578
- /**
579
- * 已废弃,兼容老版本
580
- * @deprecated
581
- */
582
- message(content, options) {
583
- return VxeUI2.modal.message(content, options);
584
- },
585
- /**
586
- * 已废弃,兼容老版本
587
- * @deprecated
588
- */
589
- notification(content, title, options) {
590
- return VxeUI2.modal.notification(content, title, options);
591
- }
592
- };
593
595
 
594
596
  // packages_temp/column/index.ts
595
- import { VxeUI as VxeUI6 } from "@vxe-ui/core";
597
+ import { VxeUI as VxeUI7 } from "@vxe-ui/core";
596
598
 
597
599
  // packages_temp/table/src/column.ts
598
600
  import { h as h2, onUnmounted, inject, ref, provide, onMounted, createCommentVNode } from "vue";
@@ -607,7 +609,7 @@ import XEUtils4 from "xe-utils";
607
609
 
608
610
  // packages_temp/table/src/columnInfo.ts
609
611
  import XEUtils3 from "xe-utils";
610
- import { VxeUI as VxeUI4 } from "@vxe-ui/core";
612
+ import { VxeUI as VxeUI5 } from "@vxe-ui/core";
611
613
 
612
614
  // packages_temp/ui/src/dom.ts
613
615
  import XEUtils2 from "xe-utils";
@@ -950,13 +952,13 @@ function getPopupAppendElement(appendTo) {
950
952
  }
951
953
 
952
954
  // packages_temp/ui/src/log.ts
953
- import { VxeUI as VxeUI3 } from "@vxe-ui/core";
954
- var { log } = VxeUI3;
955
- var tableVersion = `table v${"4.23.18"}`;
955
+ import { VxeUI as VxeUI4 } from "@vxe-ui/core";
956
+ var { log } = VxeUI4;
957
+ var tableVersion = `table v${"4.24.0-beta.0"}`;
956
958
  function createComponentLog(name) {
957
- const uiVersion = VxeUI3.uiVersion ? `ui v${VxeUI3.uiVersion}` : "";
958
- const ganttVersion = VxeUI3.ganttVersion ? `gantt v${VxeUI3.ganttVersion}` : "";
959
- const designVersion = VxeUI3.designVersion ? `design v${VxeUI3.designVersion}` : "";
959
+ const uiVersion = VxeUI4.uiVersion ? `ui v${VxeUI4.uiVersion}` : "";
960
+ const ganttVersion = VxeUI4.ganttVersion ? `gantt v${VxeUI4.ganttVersion}` : "";
961
+ const designVersion = VxeUI4.designVersion ? `design v${VxeUI4.designVersion}` : "";
960
962
  const versionInfo = [uiVersion, tableVersion, ganttVersion, designVersion].filter((v) => v).join(" ");
961
963
  return {
962
964
  warnLog: log.create("warn", versionInfo + "] [" + name),
@@ -968,7 +970,7 @@ var errLog = log.create("error", tableVersion);
968
970
 
969
971
  // packages_temp/table/src/columnInfo.ts
970
972
  var { warnLog: warnLog2, errLog: errLog2 } = createComponentLog("table");
971
- var { getI18n, formats, renderer } = VxeUI4;
973
+ var { getI18n, formats, renderer } = VxeUI5;
972
974
  var ColumnInfo = class {
973
975
  /* eslint-disable @typescript-eslint/no-use-before-define */
974
976
  constructor($xeTable, colConfs, { renderHeader, renderCell, renderFooter, renderData } = {}) {
@@ -2241,7 +2243,7 @@ function handleCustomStoreConfig($xeTable) {
2241
2243
  // packages_temp/table/src/cell.ts
2242
2244
  import { h } from "vue";
2243
2245
  import XEUtils6 from "xe-utils";
2244
- import { VxeUI as VxeUI5 } from "@vxe-ui/core";
2246
+ import { VxeUI as VxeUI6 } from "@vxe-ui/core";
2245
2247
 
2246
2248
  // packages_temp/ui/src/vn.ts
2247
2249
  import XEUtils5 from "xe-utils";
@@ -2293,7 +2295,7 @@ function getSlotVNs(vns) {
2293
2295
  }
2294
2296
 
2295
2297
  // packages_temp/table/src/cell.ts
2296
- var { getConfig: getConfig2, getI18n: getI18n2, getIcon, renderer: renderer2, renderEmptyElement } = VxeUI5;
2298
+ var { getConfig: getConfig2, getI18n: getI18n2, getIcon, renderer: renderer2, renderEmptyElement } = VxeUI6;
2297
2299
  function renderTitlePrefixIcon(params) {
2298
2300
  const { $table, column } = params;
2299
2301
  const titlePrefix = column.titlePrefix || column.titleHelp;
@@ -3894,15 +3896,15 @@ var VxeColumn = Object.assign({}, column_default, {
3894
3896
  app.component("VxeTableColumn", column_default);
3895
3897
  }
3896
3898
  });
3897
- if (VxeUI6.dynamicApp) {
3898
- VxeUI6.dynamicApp.component(column_default.name, column_default);
3899
- VxeUI6.dynamicApp.component("VxeTableColumn", column_default);
3899
+ if (VxeUI7.dynamicApp) {
3900
+ VxeUI7.dynamicApp.component(column_default.name, column_default);
3901
+ VxeUI7.dynamicApp.component("VxeTableColumn", column_default);
3900
3902
  }
3901
- VxeUI6.component(column_default);
3903
+ VxeUI7.component(column_default);
3902
3904
  var Column = VxeColumn;
3903
3905
 
3904
3906
  // packages_temp/colgroup/index.ts
3905
- import { VxeUI as VxeUI7 } from "@vxe-ui/core";
3907
+ import { VxeUI as VxeUI8 } from "@vxe-ui/core";
3906
3908
 
3907
3909
  // packages_temp/table/src/group.ts
3908
3910
  import { h as h3, onUnmounted as onUnmounted2, provide as provide2, inject as inject2, ref as ref2, onMounted as onMounted2, createCommentVNode as createCommentVNode2 } from "vue";
@@ -3964,27 +3966,27 @@ var VxeColgroup = Object.assign({}, group_default, {
3964
3966
  app.component("VxeTableColgroup", group_default);
3965
3967
  }
3966
3968
  });
3967
- if (VxeUI7.dynamicApp) {
3968
- VxeUI7.dynamicApp.component(group_default.name, group_default);
3969
- VxeUI7.dynamicApp.component("VxeTableColgroup", group_default);
3969
+ if (VxeUI8.dynamicApp) {
3970
+ VxeUI8.dynamicApp.component(group_default.name, group_default);
3971
+ VxeUI8.dynamicApp.component("VxeTableColgroup", group_default);
3970
3972
  }
3971
- VxeUI7.component(group_default);
3973
+ VxeUI8.component(group_default);
3972
3974
  var Colgroup = VxeColgroup;
3973
3975
 
3974
3976
  // packages_temp/grid/index.ts
3975
- import { VxeUI as VxeUI31 } from "@vxe-ui/core";
3977
+ import { VxeUI as VxeUI32 } from "@vxe-ui/core";
3976
3978
 
3977
3979
  // packages_temp/grid/src/grid.ts
3978
3980
  import { h as h15, ref as ref13, computed as computed7, provide as provide5, reactive as reactive9, onBeforeUnmount as onBeforeUnmount3, watch as watch4, nextTick as nextTick15, onMounted as onMounted7 } from "vue";
3979
- import { VxeUI as VxeUI30 } from "@vxe-ui/core";
3981
+ import { VxeUI as VxeUI31 } from "@vxe-ui/core";
3980
3982
  import XEUtils27 from "xe-utils";
3981
3983
 
3982
3984
  // packages_temp/grid/src/props.ts
3983
- import { VxeUI as VxeUI9 } from "@vxe-ui/core";
3985
+ import { VxeUI as VxeUI10 } from "@vxe-ui/core";
3984
3986
 
3985
3987
  // packages_temp/table/src/props.ts
3986
- import { VxeUI as VxeUI8 } from "@vxe-ui/core";
3987
- var { getConfig: getConfig3 } = VxeUI8;
3988
+ import { VxeUI as VxeUI9 } from "@vxe-ui/core";
3989
+ var { getConfig: getConfig3 } = VxeUI9;
3988
3990
  var tableComponenProps = {
3989
3991
  /** 基本属性 */
3990
3992
  id: [String, Function],
@@ -4314,7 +4316,7 @@ var tableComponenProps = {
4314
4316
  };
4315
4317
 
4316
4318
  // packages_temp/grid/src/props.ts
4317
- var { getConfig: getConfig4 } = VxeUI9;
4319
+ var { getConfig: getConfig4 } = VxeUI10;
4318
4320
  var gridComponeProps = {
4319
4321
  ...tableComponenProps,
4320
4322
  layouts: Array,
@@ -4460,12 +4462,12 @@ var tableComponenEmits = [
4460
4462
  var gridComponeEmits = [...tableComponenEmits, "page-change", "form-submit", "form-submit-invalid", "form-reset", "form-collapse", "form-toggle-collapse", "proxy-query", "proxy-delete", "proxy-save", "toolbar-button-click", "toolbar-tool-click", "zoom"];
4461
4463
 
4462
4464
  // packages_temp/table/index.ts
4463
- import { VxeUI as VxeUI27 } from "@vxe-ui/core";
4465
+ import { VxeUI as VxeUI28 } from "@vxe-ui/core";
4464
4466
 
4465
4467
  // packages_temp/table/src/table.ts
4466
4468
  import { h as h13, reactive as reactive7, ref as ref11, provide as provide4, inject as inject11, nextTick as nextTick13, Teleport as Teleport3, onActivated, onDeactivated, onBeforeUnmount, onUnmounted as onUnmounted7, watch as watch3, computed as computed4, onMounted as onMounted6 } from "vue";
4467
4469
  import XEUtils24 from "xe-utils";
4468
- import { VxeUI as VxeUI26 } from "@vxe-ui/core";
4470
+ import { VxeUI as VxeUI27 } from "@vxe-ui/core";
4469
4471
 
4470
4472
  // packages_temp/ui/src/anime.ts
4471
4473
  import XEUtils7 from "xe-utils";
@@ -4520,8 +4522,8 @@ function getCrossTableDragRowInfo() {
4520
4522
  // packages_temp/table/src/body.ts
4521
4523
  import { h as h4, ref as ref3, inject as inject3, nextTick, onMounted as onMounted3, onUnmounted as onUnmounted3 } from "vue";
4522
4524
  import XEUtils8 from "xe-utils";
4523
- import { VxeUI as VxeUI10 } from "@vxe-ui/core";
4524
- var { getI18n: getI18n3, renderer: renderer3, renderEmptyElement: renderEmptyElement2 } = VxeUI10;
4525
+ import { VxeUI as VxeUI11 } from "@vxe-ui/core";
4526
+ var { getI18n: getI18n3, renderer: renderer3, renderEmptyElement: renderEmptyElement2 } = VxeUI11;
4525
4527
  var sourceType = "table";
4526
4528
  var renderType = "body";
4527
4529
  var body_default = (
@@ -4561,7 +4563,8 @@ var body_default = (
4561
4563
  computeVirtualXOpts,
4562
4564
  computeVirtualYOpts,
4563
4565
  computeIsBodyRenderOptimize,
4564
- computeRendererOpts
4566
+ computeRendererOpts,
4567
+ computeShowTreeLine
4565
4568
  } = $xeTable.getComputeMaps();
4566
4569
  const refElem = ref3();
4567
4570
  const refBodyScroll = ref3();
@@ -4577,60 +4580,33 @@ var body_default = (
4577
4580
  const { lastSTime } = tableInternalData;
4578
4581
  return !!(isDragResize || lastSTime && Date.now() < lastSTime + delayHover);
4579
4582
  };
4580
- const renderLine = (rowid, params, cellHeight) => {
4583
+ const renderLine = (rowid, params) => {
4581
4584
  const { column } = params;
4582
4585
  const { treeConfig } = tableProps;
4583
- const cellOpts = computeCellOpts.value;
4584
- const rowOpts = computeRowOpts.value;
4585
- const defaultRowHeight = computeDefaultRowHeight.value;
4586
- const treeOpts = computeTreeOpts.value;
4587
4586
  const { slots, treeNode } = column;
4588
- const { fullAllDataRowIdData } = tableInternalData;
4589
- if (treeConfig && treeNode && (treeOpts.showLine || treeOpts.line)) {
4587
+ const lineVNs = [];
4588
+ if (treeConfig && treeNode) {
4590
4589
  if (slots && slots.line) {
4591
4590
  return $xeTable.callSlot(slots.line, params);
4592
4591
  }
4592
+ const treeOpts = computeTreeOpts.value;
4593
+ const { fullAllDataRowIdData } = tableInternalData;
4594
+ const { lineType } = treeOpts;
4593
4595
  const rowRest = fullAllDataRowIdData[rowid];
4594
- let rLevel = 0;
4595
- let prevRow = null;
4596
- let parentRow = null;
4597
- let lineHeight = "";
4598
- if (rowRest) {
4599
- rLevel = rowRest.level;
4600
- prevRow = rowRest.items[rowRest.treeIndex - 1];
4601
- parentRow = rowRest.parent;
4602
- }
4603
- if (!rLevel && !treeOpts.showRootLine) {
4604
- return [];
4605
- }
4606
- if (prevRow) {
4607
- const prevRowRest = fullAllDataRowIdData[getRowid($xeTable, prevRow)] || {};
4608
- lineHeight = `${prevRowRest.lineHeight || 0}px`;
4609
- } else if (rLevel && parentRow) {
4610
- const parentRowRest = fullAllDataRowIdData[getRowid($xeTable, parentRow)] || {};
4611
- lineHeight = `calc(-1em + ${Math.floor(cellHeight / 2 + getCellRestHeight(parentRowRest, cellOpts, rowOpts, defaultRowHeight) / 2)}px)`;
4612
- }
4613
- return [
4614
- h4(
4615
- "div",
4616
- {
4617
- key: "tl",
4618
- class: "vxe-tree--line-wrapper"
4619
- },
4620
- [
4621
- h4("div", {
4622
- class: "vxe-tree--line",
4623
- style: {
4624
- height: lineHeight,
4625
- bottom: `-${Math.floor(cellHeight / 2)}px`,
4626
- left: `calc(${rLevel * treeOpts.indent}px + 1em)`
4627
- }
4596
+ const treeLines = rowRest.treeLines;
4597
+ if (treeLines) {
4598
+ treeLines.forEach((item, i) => {
4599
+ lineVNs.push(
4600
+ h4("span", {
4601
+ key: "le" + i,
4602
+ class: ["vxe-tree--line", `type--${lineType || "dashed"}`, item.type],
4603
+ style: item.style
4628
4604
  })
4629
- ]
4630
- )
4631
- ];
4605
+ );
4606
+ });
4607
+ }
4632
4608
  }
4633
- return [];
4609
+ return lineVNs;
4634
4610
  };
4635
4611
  const renderTdColumn = (seq, rowid, fixedType, isOptimizeMode, rowLevel, row, rowIndex, $rowIndex, _rowIndex, column, $columnIndex, columns, items) => {
4636
4612
  const $xeGrid = $xeTable.xeGrid;
@@ -4638,6 +4614,7 @@ var body_default = (
4638
4614
  const { columnKey, resizable: allResizable, showOverflow: allShowOverflow, border, height, treeConfig, cellClassName: allCellClassName, cellStyle, align: allAlign, spanMethod, mouseConfig, editConfig, editRules, tooltipConfig, padding: allPadding } = tableProps;
4639
4615
  const { tableData, tableColumn, dragRow, overflowX, overflowY, scrollXLoad, scrollYLoad, mergeBodyFlag, calcCellHeightFlag, resizeHeightFlag, resizeWidthFlag, editStore, isAllOverflow, validErrorMaps, currColFlag } = tableReactData;
4640
4616
  const { fullAllDataRowIdData, fullColumnIdData, mergeBodyCellMaps, visibleColumn, afterFullData, mergeBodyList, scrollXStore, scrollYStore, keepUpdateFieldMaps, currentCol } = tableInternalData;
4617
+ const showTreeLine = computeShowTreeLine.value;
4641
4618
  const cellOpts = computeCellOpts.value;
4642
4619
  const validOpts = computeValidOpts.value;
4643
4620
  const checkboxOpts = computeCheckboxOpts.value;
@@ -4831,6 +4808,7 @@ var body_default = (
4831
4808
  }
4832
4809
  }
4833
4810
  }
4811
+ const tdStyle = {};
4834
4812
  const tcStyle = {};
4835
4813
  if (maxHeight) {
4836
4814
  tcStyle.maxHeight = maxHeight + "px";
@@ -4849,6 +4827,7 @@ var body_default = (
4849
4827
  }
4850
4828
  if (scrollYLoad || scrollXLoad || hasEllipsis || isCsHeight || isRsHeight) {
4851
4829
  tcStyle.height = cellHeight + "px";
4830
+ tdStyle["--vxe-ui-table-cell-height"] = cellHeight + "px";
4852
4831
  } else {
4853
4832
  tcStyle.minHeight = cellHeight + "px";
4854
4833
  }
@@ -4872,8 +4851,8 @@ var body_default = (
4872
4851
  })
4873
4852
  );
4874
4853
  } else {
4875
- if (treeConfig) {
4876
- tdVNs.push(...renderLine(rowid, cellParams, cellHeight));
4854
+ if (treeConfig && showTreeLine) {
4855
+ tdVNs.push(...renderLine(rowid, cellParams));
4877
4856
  }
4878
4857
  const clVNs = [];
4879
4858
  if (!isVNPreEmptyStatus) {
@@ -5014,7 +4993,7 @@ var body_default = (
5014
4993
  ],
5015
4994
  key: columnKey || scrollXLoad || scrollYLoad || columnOpts.useKey || rowOpts.useKey || columnOpts.drag ? colid : $columnIndex,
5016
4995
  ...tdAttrs,
5017
- style: Object.assign({}, XEUtils8.isFunction(compCellStyle) ? compCellStyle(cellParams) : compCellStyle, XEUtils8.isFunction(cellStyle) ? cellStyle(cellParams) : cellStyle),
4996
+ style: Object.assign(tdStyle, XEUtils8.isFunction(compCellStyle) ? compCellStyle(cellParams) : compCellStyle, XEUtils8.isFunction(cellStyle) ? cellStyle(cellParams) : cellStyle),
5018
4997
  ...tdOns
5019
4998
  },
5020
4999
  isOptimizeMode && fixedHiddenColumn ? [] : tdVNs
@@ -5507,8 +5486,8 @@ var body_default = (
5507
5486
  // packages_temp/table/src/header.ts
5508
5487
  import { h as h5, ref as ref4, inject as inject4, nextTick as nextTick2, watch as watch2, onMounted as onMounted4, onUnmounted as onUnmounted4 } from "vue";
5509
5488
  import XEUtils9 from "xe-utils";
5510
- import { VxeUI as VxeUI11 } from "@vxe-ui/core";
5511
- var { renderer: renderer4, renderEmptyElement: renderEmptyElement3 } = VxeUI11;
5489
+ import { VxeUI as VxeUI12 } from "@vxe-ui/core";
5490
+ var { renderer: renderer4, renderEmptyElement: renderEmptyElement3 } = VxeUI12;
5512
5491
  var sourceType2 = "table";
5513
5492
  var renderType2 = "header";
5514
5493
  var header_default = (
@@ -6106,8 +6085,8 @@ var header_default = (
6106
6085
  // packages_temp/table/src/footer.ts
6107
6086
  import { h as h6, ref as ref5, inject as inject5, nextTick as nextTick3, onMounted as onMounted5, onUnmounted as onUnmounted5 } from "vue";
6108
6087
  import XEUtils10 from "xe-utils";
6109
- import { VxeUI as VxeUI12 } from "@vxe-ui/core";
6110
- var { renderer: renderer5, renderEmptyElement: renderEmptyElement4 } = VxeUI12;
6088
+ import { VxeUI as VxeUI13 } from "@vxe-ui/core";
6089
+ var { renderer: renderer5, renderEmptyElement: renderEmptyElement4 } = VxeUI13;
6111
6090
  var sourceType3 = "table";
6112
6091
  var renderType3 = "footer";
6113
6092
  var footer_default = (
@@ -6493,10 +6472,10 @@ var footer_default = (
6493
6472
 
6494
6473
  // packages_temp/table/module/custom/panel.ts
6495
6474
  import { h as h7, inject as inject6, ref as ref6, provide as provide3, nextTick as nextTick4, TransitionGroup, reactive as reactive3, onUnmounted as onUnmounted6 } from "vue";
6496
- import { VxeUI as VxeUI13 } from "@vxe-ui/core";
6475
+ import { VxeUI as VxeUI14 } from "@vxe-ui/core";
6497
6476
  import XEUtils11 from "xe-utils";
6498
6477
  var { errLog: errLog3 } = createComponentLog("table");
6499
- var { getI18n: getI18n4, getIcon: getIcon2, renderEmptyElement: renderEmptyElement5 } = VxeUI13;
6478
+ var { getI18n: getI18n4, getIcon: getIcon2, renderEmptyElement: renderEmptyElement5 } = VxeUI14;
6500
6479
  function createInternalData2() {
6501
6480
  return {
6502
6481
  // teleportTo: undefined,
@@ -6520,11 +6499,11 @@ var panel_default = (
6520
6499
  },
6521
6500
  setup(props, context) {
6522
6501
  const xID = XEUtils11.uniqueId();
6523
- const VxeUIModalComponent = VxeUI13.getComponent("VxeModal");
6524
- const VxeUIDrawerComponent = VxeUI13.getComponent("VxeDrawer");
6525
- const VxeUIButtonComponent = VxeUI13.getComponent("VxeButton");
6526
- const VxeUINumberInputComponent = VxeUI13.getComponent("VxeNumberInput");
6527
- const VxeUIRadioGroupComponent = VxeUI13.getComponent("VxeRadioGroup");
6502
+ const VxeUIModalComponent = VxeUI14.getComponent("VxeModal");
6503
+ const VxeUIDrawerComponent = VxeUI14.getComponent("VxeDrawer");
6504
+ const VxeUIButtonComponent = VxeUI14.getComponent("VxeButton");
6505
+ const VxeUINumberInputComponent = VxeUI14.getComponent("VxeNumberInput");
6506
+ const VxeUIRadioGroupComponent = VxeUI14.getComponent("VxeRadioGroup");
6528
6507
  const $xeTable = inject6("$xeTable", {});
6529
6508
  const { props: tableProps, reactData: tableReactData, internalData: tableInternalData } = $xeTable;
6530
6509
  const { computeSize, computeCustomOpts, computeMouseOpts, computeColumnDragOpts, computeColumnOpts, computeIsMaxFixedColumn, computeResizableOpts, computeAggregateOpts } = $xeTable.getComputeMaps();
@@ -6593,8 +6572,8 @@ var panel_default = (
6593
6572
  $xeTable.dispatchEvent("custom-close", {}, evnt);
6594
6573
  };
6595
6574
  const resetCustomEvent = ({ $event }) => {
6596
- if (VxeUI13.modal) {
6597
- VxeUI13.modal.confirm({
6575
+ if (VxeUI14.modal) {
6576
+ VxeUI14.modal.confirm({
6598
6577
  content: getI18n4("vxe.custom.cstmConfirmRestore"),
6599
6578
  className: "vxe-table--ignore-clear",
6600
6579
  escClosable: true
@@ -6833,8 +6812,8 @@ var panel_default = (
6833
6812
  const { prevDragCol, prevDragGroupField, prevDragAggFnColid, prevDragPos, prevDragToChild } = customPanelInternalData;
6834
6813
  const dragOffsetIndex = prevDragPos === "bottom" ? 1 : 0;
6835
6814
  if (prevDragGroupField || prevDragAggFnColid) {
6836
- if ($xeTable.handlePivotTableAggPanelDragendEvent) {
6837
- $xeTable.handlePivotTableAggPanelDragendEvent(evnt);
6815
+ if ($xeTable.handlePivotTableAggPanelDgedEvent) {
6816
+ $xeTable.handlePivotTableAggPanelDgedEvent(evnt);
6838
6817
  }
6839
6818
  } else if (prevDragCol && dragCol) {
6840
6819
  if (prevDragCol !== dragCol) {
@@ -6873,8 +6852,8 @@ var panel_default = (
6873
6852
  if (oldAllMaps[newColumn.id]) {
6874
6853
  isSelfToChildStatus = true;
6875
6854
  if (!(isCrossDrag && isSelfToChildDrag)) {
6876
- if (VxeUI13.modal) {
6877
- VxeUI13.modal.message({
6855
+ if (VxeUI14.modal) {
6856
+ VxeUI14.modal.message({
6878
6857
  status: "error",
6879
6858
  content: getI18n4("vxe.error.treeDragChild")
6880
6859
  });
@@ -6894,8 +6873,8 @@ var panel_default = (
6894
6873
  if (oldAllMaps[newColumn.id]) {
6895
6874
  isSelfToChildStatus = true;
6896
6875
  if (!(isCrossDrag && isSelfToChildDrag)) {
6897
- if (VxeUI13.modal) {
6898
- VxeUI13.modal.message({
6876
+ if (VxeUI14.modal) {
6877
+ VxeUI14.modal.message({
6899
6878
  status: "error",
6900
6879
  content: getI18n4("vxe.error.treeDragChild")
6901
6880
  });
@@ -8266,10 +8245,10 @@ var panel_default = (
8266
8245
 
8267
8246
  // packages_temp/table/module/filter/panel.ts
8268
8247
  import { h as h8, ref as ref7, computed, inject as inject7, Teleport } from "vue";
8269
- import { VxeUI as VxeUI14 } from "@vxe-ui/core";
8248
+ import { VxeUI as VxeUI15 } from "@vxe-ui/core";
8270
8249
  import XEUtils12 from "xe-utils";
8271
8250
  var { warnLog: warnLog3 } = createComponentLog("table");
8272
- var { getI18n: getI18n5, getIcon: getIcon3, renderer: renderer6, renderEmptyElement: renderEmptyElement6 } = VxeUI14;
8251
+ var { getI18n: getI18n5, getIcon: getIcon3, renderer: renderer6, renderEmptyElement: renderEmptyElement6 } = VxeUI15;
8273
8252
  var panel_default2 = (
8274
8253
  /* define-vxe-component start */
8275
8254
  defineVxeComponent({
@@ -8282,7 +8261,7 @@ var panel_default2 = (
8282
8261
  },
8283
8262
  setup(props, context) {
8284
8263
  const xID = XEUtils12.uniqueId();
8285
- const VxeUIScrollbarComponent = VxeUI14.getComponent("VxeScrollbar");
8264
+ const VxeUIScrollbarComponent = VxeUI15.getComponent("VxeScrollbar");
8286
8265
  const $xeTable = inject7("$xeTable", {});
8287
8266
  const { reactData: tableReactData, internalData: tableInternalData, getComputeMaps } = $xeTable;
8288
8267
  const { computeFilterOpts, computeRendererOpts } = getComputeMaps();
@@ -8581,10 +8560,10 @@ var panel_default2 = (
8581
8560
 
8582
8561
  // packages_temp/table/module/export/import-panel.ts
8583
8562
  import { h as h9, ref as ref8, computed as computed2, inject as inject8, reactive as reactive4, nextTick as nextTick5 } from "vue";
8584
- import { VxeUI as VxeUI15 } from "@vxe-ui/core";
8563
+ import { VxeUI as VxeUI16 } from "@vxe-ui/core";
8585
8564
  import XEUtils13 from "xe-utils";
8586
8565
  var { errLog: errLog4 } = createComponentLog("table");
8587
- var { getI18n: getI18n6, getIcon: getIcon4, renderEmptyElement: renderEmptyElement7 } = VxeUI15;
8566
+ var { getI18n: getI18n6, getIcon: getIcon4, renderEmptyElement: renderEmptyElement7 } = VxeUI16;
8588
8567
  var import_panel_default = (
8589
8568
  /* define-vxe-component start */
8590
8569
  defineVxeComponent({
@@ -8600,9 +8579,9 @@ var import_panel_default = (
8600
8579
  }
8601
8580
  },
8602
8581
  setup(props) {
8603
- const VxeUIModalComponent = VxeUI15.getComponent("VxeModal");
8604
- const VxeUIButtonComponent = VxeUI15.getComponent("VxeButton");
8605
- const VxeUISelectComponent = VxeUI15.getComponent("VxeSelect");
8582
+ const VxeUIModalComponent = VxeUI16.getComponent("VxeModal");
8583
+ const VxeUIButtonComponent = VxeUI16.getComponent("VxeButton");
8584
+ const VxeUISelectComponent = VxeUI16.getComponent("VxeSelect");
8606
8585
  const $xeTable = inject8("$xeTable", {});
8607
8586
  const { computeImportOpts } = $xeTable.getComputeMaps();
8608
8587
  const reactData = reactive4({
@@ -8685,17 +8664,17 @@ var import_panel_default = (
8685
8664
  {
8686
8665
  id: "VXE_IMPORT_MODAL",
8687
8666
  modelValue: storeData.visible,
8688
- title: modelOptions.title || getI18n6("vxe.import.impTitle"),
8689
- className: "vxe-table-export-popup-wrapper",
8667
+ title: getDefaultConfig(modelOptions.title, getI18n6("vxe.import.impTitle")),
8668
+ className: "vxe-table-import-popup-wrapper" + (modelOptions.className ? ` ${modelOptions.className}` : ""),
8690
8669
  width: modelOptions.width || 540,
8691
8670
  height: modelOptions.height,
8692
8671
  minWidth: modelOptions.minWidth || 360,
8693
8672
  minHeight: modelOptions.minHeight || 240,
8694
8673
  mask: getDefaultConfig(modelOptions.mask, true),
8695
8674
  lockView: getDefaultConfig(modelOptions.lockView, true),
8696
- showFooter: true,
8697
- escClosable: true,
8698
- maskClosable: true,
8675
+ showFooter: getDefaultConfig(modelOptions.showFooter, true),
8676
+ escClosable: getDefaultConfig(modelOptions.escClosable, true),
8677
+ maskClosable: getDefaultConfig(modelOptions.maskClosable, true),
8699
8678
  position: modelOptions.position,
8700
8679
  fullscreen: modelOptions.fullscreen,
8701
8680
  remember: modelOptions.remember,
@@ -8857,10 +8836,10 @@ var import_panel_default = (
8857
8836
 
8858
8837
  // packages_temp/table/module/export/export-panel.ts
8859
8838
  import { h as h10, ref as ref9, computed as computed3, reactive as reactive5, inject as inject9, nextTick as nextTick6 } from "vue";
8860
- import { VxeUI as VxeUI16 } from "@vxe-ui/core";
8839
+ import { VxeUI as VxeUI17 } from "@vxe-ui/core";
8861
8840
  import XEUtils14 from "xe-utils";
8862
8841
  var { errLog: errLog5 } = createComponentLog("table");
8863
- var { getI18n: getI18n7, getIcon: getIcon5, renderEmptyElement: renderEmptyElement8 } = VxeUI16;
8842
+ var { getI18n: getI18n7, getIcon: getIcon5, renderEmptyElement: renderEmptyElement8 } = VxeUI17;
8864
8843
  var export_panel_default = (
8865
8844
  /* define-vxe-component start */
8866
8845
  defineVxeComponent({
@@ -8876,11 +8855,11 @@ var export_panel_default = (
8876
8855
  }
8877
8856
  },
8878
8857
  setup(props) {
8879
- const VxeUIModalComponent = VxeUI16.getComponent("VxeModal");
8880
- const VxeUIButtonComponent = VxeUI16.getComponent("VxeButton");
8881
- const VxeUISelectComponent = VxeUI16.getComponent("VxeSelect");
8882
- const VxeUIInputComponent = VxeUI16.getComponent("VxeInput");
8883
- const VxeUICheckboxComponent = VxeUI16.getComponent("VxeCheckbox");
8858
+ const VxeUIModalComponent = VxeUI17.getComponent("VxeModal");
8859
+ const VxeUIButtonComponent = VxeUI17.getComponent("VxeButton");
8860
+ const VxeUISelectComponent = VxeUI17.getComponent("VxeSelect");
8861
+ const VxeUIInputComponent = VxeUI17.getComponent("VxeInput");
8862
+ const VxeUICheckboxComponent = VxeUI17.getComponent("VxeCheckbox");
8884
8863
  const $xeTable = inject9("$xeTable", {});
8885
8864
  const { computeExportOpts, computePrintOpts } = $xeTable.getComputeMaps();
8886
8865
  const reactData = reactive5({
@@ -9081,17 +9060,17 @@ var export_panel_default = (
9081
9060
  {
9082
9061
  id: "VXE_EXPORT_MODAL",
9083
9062
  modelValue: storeData.visible,
9084
- title: modelOptions.title || getI18n7(isPrint ? "vxe.export.printTitle" : "vxe.export.expTitle"),
9085
- className: "vxe-table-export-popup-wrapper",
9063
+ title: getDefaultConfig(modelOptions.title, getI18n7(isPrint ? "vxe.export.printTitle" : "vxe.export.expTitle")),
9064
+ className: "vxe-table-export-popup-wrapper" + (modelOptions.className ? ` ${modelOptions.className}` : ""),
9086
9065
  width: modelOptions.width || 660,
9087
9066
  height: modelOptions.height,
9088
9067
  minWidth: modelOptions.minWidth || 500,
9089
9068
  minHeight: modelOptions.minHeight || 400,
9090
9069
  mask: getDefaultConfig(modelOptions.mask, true),
9091
9070
  lockView: getDefaultConfig(modelOptions.lockView, true),
9092
- showFooter: true,
9093
- escClosable: true,
9094
- maskClosable: true,
9071
+ showFooter: getDefaultConfig(modelOptions.showFooter, true),
9072
+ escClosable: getDefaultConfig(modelOptions.escClosable, true),
9073
+ maskClosable: getDefaultConfig(modelOptions.maskClosable, true),
9095
9074
  position: modelOptions.position,
9096
9075
  fullscreen: modelOptions.fullscreen,
9097
9076
  remember: modelOptions.remember,
@@ -9468,8 +9447,8 @@ var export_panel_default = (
9468
9447
  // packages_temp/table/module/menu/panel.ts
9469
9448
  import { h as h11, Teleport as Teleport2, inject as inject10, ref as ref10 } from "vue";
9470
9449
  import XEUtils15 from "xe-utils";
9471
- import { VxeUI as VxeUI17 } from "@vxe-ui/core";
9472
- var { getIcon: getIcon6, getI18n: getI18n8, renderEmptyElement: renderEmptyElement9 } = VxeUI17;
9450
+ import { VxeUI as VxeUI18 } from "@vxe-ui/core";
9451
+ var { getIcon: getIcon6, getI18n: getI18n8, renderEmptyElement: renderEmptyElement9 } = VxeUI18;
9473
9452
  var panel_default3 = (
9474
9453
  /* define-vxe-component start */
9475
9454
  defineVxeComponent({
@@ -9707,8 +9686,8 @@ var panel_default3 = (
9707
9686
  // packages_temp/table/module/filter/hook.ts
9708
9687
  import { nextTick as nextTick7 } from "vue";
9709
9688
  import XEUtils16 from "xe-utils";
9710
- import { VxeUI as VxeUI18 } from "@vxe-ui/core";
9711
- var { renderer: renderer7, hooks } = VxeUI18;
9689
+ import { VxeUI as VxeUI19 } from "@vxe-ui/core";
9690
+ var { renderer: renderer7, hooks } = VxeUI19;
9712
9691
  var tableFilterMethodKeys = ["openFilter", "setFilter", "clearFilter", "saveFilter", "saveFilterByEvent", "saveFilterPanel", "saveFilterPanelByEvent", "resetFilter", "resetFilterByEvent", "resetFilterPanel", "resetFilterPanelByEvent", "getCheckedFilters", "updateFilterOptionStatus"];
9713
9692
  var sourceType4 = "table";
9714
9693
  hooks.add("tableFilterModule", {
@@ -10187,8 +10166,8 @@ hooks.add("tableFilterModule", {
10187
10166
  // packages_temp/table/module/menu/hook.ts
10188
10167
  import { nextTick as nextTick8 } from "vue";
10189
10168
  import XEUtils17 from "xe-utils";
10190
- import { VxeUI as VxeUI19 } from "@vxe-ui/core";
10191
- var { menus, hooks: hooks2, globalEvents, GLOBAL_EVENT_KEYS } = VxeUI19;
10169
+ import { VxeUI as VxeUI20 } from "@vxe-ui/core";
10170
+ var { menus, hooks: hooks2, globalEvents, GLOBAL_EVENT_KEYS } = VxeUI20;
10192
10171
  var tableMenuMethodKeys = ["closeMenu"];
10193
10172
  hooks2.add("tableMenuModule", {
10194
10173
  setupTable($xeTable) {
@@ -10491,9 +10470,9 @@ hooks2.add("tableMenuModule", {
10491
10470
  // packages_temp/table/module/edit/hook.ts
10492
10471
  import { reactive as reactive6, nextTick as nextTick9 } from "vue";
10493
10472
  import XEUtils18 from "xe-utils";
10494
- import { VxeUI as VxeUI20 } from "@vxe-ui/core";
10473
+ import { VxeUI as VxeUI21 } from "@vxe-ui/core";
10495
10474
  var { warnLog: warnLog4, errLog: errLog6 } = createComponentLog("table");
10496
- var { getConfig: getConfig5, renderer: renderer8, hooks: hooks3, getI18n: getI18n9 } = VxeUI20;
10475
+ var { getConfig: getConfig5, renderer: renderer8, hooks: hooks3, getI18n: getI18n9 } = VxeUI21;
10497
10476
  var tableEditMethodKeys = [
10498
10477
  "insert",
10499
10478
  "insertAt",
@@ -10530,8 +10509,6 @@ hooks3.add("tableEditModule", {
10530
10509
  const { refElem } = $xeTable.getRefMaps();
10531
10510
  const { computeMouseOpts, computeEditOpts, computeCheckboxOpts, computeTreeOpts, computeValidOpts, computeRendererOpts } = $xeTable.getComputeMaps();
10532
10511
  const browseObj = XEUtils18.browse();
10533
- let editMethods = {};
10534
- let editPrivateMethods = {};
10535
10512
  const getEditColumnModel = (row, column) => {
10536
10513
  const { model, editRender } = column;
10537
10514
  if (editRender) {
@@ -10593,7 +10570,25 @@ hooks3.add("tableEditModule", {
10593
10570
  }
10594
10571
  pChilds[funcName](item);
10595
10572
  pMapChilds[funcName](item);
10596
- const rest = { row: item, rowid, _seq: -1, seq: -1, index: -1, _index: -1, $index: -1, treeIndex: -1, _tIndex: -1, items: pChilds, parent: parentRow, level: parentLevel + 1, height: 0, resizeHeight: 0, oTop: 0, expandHeight: 0 };
10573
+ const rest = {
10574
+ row: item,
10575
+ rowid,
10576
+ _seq: -1,
10577
+ seq: -1,
10578
+ index: -1,
10579
+ _index: -1,
10580
+ $index: -1,
10581
+ treeIndex: -1,
10582
+ _tIndex: -1,
10583
+ items: pChilds,
10584
+ parent: parentRow,
10585
+ level: parentLevel + 1,
10586
+ linesMask: 0,
10587
+ height: 0,
10588
+ resizeHeight: 0,
10589
+ oTop: 0,
10590
+ expandHeight: 0
10591
+ };
10597
10592
  fullDataRowIdData[rowid] = rest;
10598
10593
  fullAllDataRowIdData[rowid] = rest;
10599
10594
  } else {
@@ -10602,7 +10597,25 @@ hooks3.add("tableEditModule", {
10602
10597
  }
10603
10598
  afterFullData[funcName](item);
10604
10599
  tableFullTreeData[funcName](item);
10605
- const rest = { row: item, rowid, _seq: -1, seq: -1, index: -1, _index: -1, $index: -1, treeIndex: -1, _tIndex: -1, items: tableFullTreeData, parent: null, level: 0, height: 0, resizeHeight: 0, oTop: 0, expandHeight: 0 };
10600
+ const rest = {
10601
+ row: item,
10602
+ rowid,
10603
+ _seq: -1,
10604
+ seq: -1,
10605
+ index: -1,
10606
+ _index: -1,
10607
+ $index: -1,
10608
+ treeIndex: -1,
10609
+ _tIndex: -1,
10610
+ items: tableFullTreeData,
10611
+ parent: null,
10612
+ level: 0,
10613
+ linesMask: 0,
10614
+ height: 0,
10615
+ resizeHeight: 0,
10616
+ oTop: 0,
10617
+ expandHeight: 0
10618
+ };
10606
10619
  fullDataRowIdData[rowid] = rest;
10607
10620
  fullAllDataRowIdData[rowid] = rest;
10608
10621
  }
@@ -10645,7 +10658,25 @@ hooks3.add("tableEditModule", {
10645
10658
  } else {
10646
10659
  newRecords.forEach((item) => {
10647
10660
  const rowid = getRowid($xeTable, item);
10648
- const rest = { row: item, rowid, _seq: -1, seq: -1, index: -1, _index: -1, $index: -1, treeIndex: -1, _tIndex: -1, items: afterFullData, parent: null, level: 0, height: 0, resizeHeight: 0, oTop: 0, expandHeight: 0 };
10661
+ const rest = {
10662
+ row: item,
10663
+ rowid,
10664
+ _seq: -1,
10665
+ seq: -1,
10666
+ index: -1,
10667
+ _index: -1,
10668
+ $index: -1,
10669
+ treeIndex: -1,
10670
+ _tIndex: -1,
10671
+ items: afterFullData,
10672
+ parent: null,
10673
+ level: 0,
10674
+ linesMask: 0,
10675
+ height: 0,
10676
+ resizeHeight: 0,
10677
+ oTop: 0,
10678
+ expandHeight: 0
10679
+ };
10649
10680
  fullDataRowIdData[rowid] = rest;
10650
10681
  fullAllDataRowIdData[rowid] = rest;
10651
10682
  afterFullData.unshift(item);
@@ -10670,7 +10701,25 @@ hooks3.add("tableEditModule", {
10670
10701
  } else {
10671
10702
  newRecords.forEach((item) => {
10672
10703
  const rowid = getRowid($xeTable, item);
10673
- const rest = { row: item, rowid, _seq: -1, seq: -1, index: -1, _index: -1, treeIndex: -1, _tIndex: -1, $index: -1, items: afterFullData, parent: null, level: 0, height: 0, resizeHeight: 0, oTop: 0, expandHeight: 0 };
10704
+ const rest = {
10705
+ row: item,
10706
+ rowid,
10707
+ _seq: -1,
10708
+ seq: -1,
10709
+ index: -1,
10710
+ _index: -1,
10711
+ treeIndex: -1,
10712
+ _tIndex: -1,
10713
+ $index: -1,
10714
+ items: afterFullData,
10715
+ parent: null,
10716
+ level: 0,
10717
+ linesMask: 0,
10718
+ height: 0,
10719
+ resizeHeight: 0,
10720
+ oTop: 0,
10721
+ expandHeight: 0
10722
+ };
10674
10723
  fullDataRowIdData[rowid] = rest;
10675
10724
  fullAllDataRowIdData[rowid] = rest;
10676
10725
  afterFullData.push(item);
@@ -10709,7 +10758,25 @@ hooks3.add("tableEditModule", {
10709
10758
  treeRecords,
10710
10759
  (item) => {
10711
10760
  const rowid = getRowid($xeTable, item);
10712
- const rest = { row: item, rowid, _seq: -1, seq: -1, index: -1, _index: -1, $index: -1, treeIndex: -1, _tIndex: -1, items: parentMapChilds, parent: parentRow, level: parentLevel + 1, height: 0, resizeHeight: 0, oTop: 0, expandHeight: 0 };
10761
+ const rest = {
10762
+ row: item,
10763
+ rowid,
10764
+ _seq: -1,
10765
+ seq: -1,
10766
+ index: -1,
10767
+ _index: -1,
10768
+ $index: -1,
10769
+ treeIndex: -1,
10770
+ _tIndex: -1,
10771
+ items: parentMapChilds,
10772
+ parent: parentRow,
10773
+ level: parentLevel + 1,
10774
+ linesMask: 0,
10775
+ height: 0,
10776
+ resizeHeight: 0,
10777
+ oTop: 0,
10778
+ expandHeight: 0
10779
+ };
10713
10780
  if (item[childrenField]) {
10714
10781
  item[mapChildrenField] = item[childrenField];
10715
10782
  }
@@ -11029,7 +11096,7 @@ hooks3.add("tableEditModule", {
11029
11096
  }
11030
11097
  return nextTick9();
11031
11098
  };
11032
- editMethods = {
11099
+ const editMethods = {
11033
11100
  /**
11034
11101
  * 往表格中插入临时数据
11035
11102
  *
@@ -11477,7 +11544,7 @@ hooks3.add("tableEditModule", {
11477
11544
  }
11478
11545
  return null;
11479
11546
  };
11480
- editPrivateMethods = {
11547
+ const editPrivateMethods = {
11481
11548
  /**
11482
11549
  * 处理激活编辑
11483
11550
  */
@@ -11609,7 +11676,7 @@ hooks3.add("tableEditModule", {
11609
11676
  // packages_temp/table/module/export/hook.ts
11610
11677
  import { nextTick as nextTick10 } from "vue";
11611
11678
  import XEUtils19 from "xe-utils";
11612
- import { VxeUI as VxeUI21 } from "@vxe-ui/core";
11679
+ import { VxeUI as VxeUI22 } from "@vxe-ui/core";
11613
11680
 
11614
11681
  // packages_temp/table/module/export/util.ts
11615
11682
  var defaultHtmlStyle = 'body{padding:0;color:rgba(0,0,0,0.7);font-family:"Microsoft YaHei",微软雅黑,"MicrosoftJhengHei",华文细黑,STHeiti,MingLiu}body *{-webkit-box-sizing:border-box;box-sizing:border-box}.vxe-table{border-collapse:collapse;text-align:left;border-spacing:0}.vxe-table.is--default-width,.vxe-table.is--auto-width{width:100%}.vxe-table.is--scale-width{table-layout:fixed}.vxe-table,.vxe-table th,.vxe-table td,.vxe-table td{white-space:pre-line;word-break:break-all;border-color:#D0D0D0;border-style:solid;border-width:0}.border--default,.border--full,.border--outer{border-top-width:1px}.border--default,.border--full,.border--outer{border-left-width:1px}.border--outer,.border--default th,.border--default td,.border--full th,.border--full td,.border--outer th,.border--inner th,.border--inner td{border-bottom-width:1px}.border--default,.border--outer,.border--full th,.border--full td{border-right-width:1px}.border--default th,.border--full th,.border--outer th{background-color:#f8f8f9}.vxe-table td>div,.vxe-table th>div{padding:0.5em 0.4em}.col--center{text-align:center}.col--right{text-align:right}.vxe-table .col--ellipsis>div{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-break:break-all}.vxe-table--tree-node{text-align:left}.vxe-table--tree-node-wrapper{position:relative}.vxe-table--tree-icon-wrapper{position:absolute;top:50%;width:1em;height:1em;text-align:center;-webkit-transform:translateY(-50%);transform:translateY(-50%);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer}.vxe-table--tree-unfold-icon,.vxe-table--tree-fold-icon{position:absolute;width:0;height:0;border-style:solid;border-width:0.5em;border-right-color:transparent;border-bottom-color:transparent}.vxe-table--tree-unfold-icon{left:.3em;top:0;border-left-color:#939599;border-top-color:transparent}.vxe-table--tree-fold-icon{left:0;top:.3em;border-left-color:transparent;border-top-color:#939599}.vxe-table--tree-cell{display:block;padding-left:1.5em}.vxe-table input[type="checkbox"]{margin:0}.vxe-table input[type="checkbox"],.vxe-table input[type="radio"],.vxe-table input[type="checkbox"]+span,.vxe-table input[type="radio"]+span{vertical-align:middle;padding-left:0.4em}';
@@ -11634,7 +11701,7 @@ function createHtmlPage(opts, content) {
11634
11701
 
11635
11702
  // packages_temp/table/module/export/hook.ts
11636
11703
  var { warnLog: warnLog5, errLog: errLog7 } = createComponentLog("table");
11637
- var { getI18n: getI18n10, hooks: hooks4, renderer: renderer9 } = VxeUI21;
11704
+ var { getI18n: getI18n10, hooks: hooks4, renderer: renderer9 } = VxeUI22;
11638
11705
  var htmlCellElem;
11639
11706
  var csvBOM = "\uFEFF";
11640
11707
  var enterSymbol = "\r\n";
@@ -12598,11 +12665,11 @@ hooks4.add("tableExportModule", {
12598
12665
  const blob = getExportBlobByContent(content, opts);
12599
12666
  return Promise.resolve({ type, content, blob });
12600
12667
  }
12601
- if (VxeUI21.saveFile) {
12602
- VxeUI21.saveFile({ filename, type, content }).then(() => {
12668
+ if (VxeUI22.saveFile) {
12669
+ VxeUI22.saveFile({ filename, type, content }).then(() => {
12603
12670
  if (opts.message !== false) {
12604
- if (VxeUI21.modal) {
12605
- VxeUI21.modal.message({ content: getI18n10("vxe.table.expSuccess"), status: "success" });
12671
+ if (VxeUI22.modal) {
12672
+ VxeUI22.modal.message({ content: getI18n10("vxe.table.expSuccess"), status: "success" });
12606
12673
  }
12607
12674
  }
12608
12675
  });
@@ -12689,8 +12756,8 @@ hooks4.add("tableExportModule", {
12689
12756
  loadRest = $xeTable.reloadData(data);
12690
12757
  }
12691
12758
  if (opts.message !== false) {
12692
- if (VxeUI21.modal) {
12693
- VxeUI21.modal.message({ content: getI18n10("vxe.table.impSuccess", [rows.length]), status: "success" });
12759
+ if (VxeUI22.modal) {
12760
+ VxeUI22.modal.message({ content: getI18n10("vxe.table.impSuccess", [rows.length]), status: "success" });
12694
12761
  }
12695
12762
  }
12696
12763
  return loadRest.then(() => {
@@ -12699,9 +12766,11 @@ hooks4.add("tableExportModule", {
12699
12766
  }
12700
12767
  });
12701
12768
  });
12702
- } else if (opts.message !== false) {
12703
- if (VxeUI21.modal) {
12704
- VxeUI21.modal.message({ content: getI18n10("vxe.error.impFields"), status: "error" });
12769
+ } else {
12770
+ if (opts.message !== false) {
12771
+ if (VxeUI22.modal) {
12772
+ VxeUI22.modal.message({ content: getI18n10("vxe.error.impFields"), status: "error" });
12773
+ }
12705
12774
  }
12706
12775
  if (_importReject) {
12707
12776
  _importReject({ status: false, msg: "field mismatching" });
@@ -12714,8 +12783,8 @@ hooks4.add("tableExportModule", {
12714
12783
  const importOpts = computeImportOpts.value;
12715
12784
  if (!importMethod && !XEUtils19.includes(XEUtils19.keys(importOpts._typeMaps), type)) {
12716
12785
  if (opts.message !== false) {
12717
- if (VxeUI21.modal) {
12718
- VxeUI21.modal.message({ content: getI18n10("vxe.error.notType", [type]), status: "error" });
12786
+ if (VxeUI22.modal) {
12787
+ VxeUI22.modal.message({ content: getI18n10("vxe.error.notType", [type]), status: "error" });
12719
12788
  }
12720
12789
  }
12721
12790
  const params = { status: false, msg: "type error" };
@@ -12918,13 +12987,9 @@ hooks4.add("tableExportModule", {
12918
12987
  exportStore.isPrint = !!isPrint;
12919
12988
  exportStore.hasColgroup = isGroup;
12920
12989
  exportStore.visible = true;
12921
- Object.assign(
12922
- exportParams,
12923
- {
12924
- mode: selectRecords.length ? "selected" : "current"
12925
- },
12926
- defOpts
12927
- );
12990
+ Object.assign(exportParams, {
12991
+ mode: selectRecords.length ? "selected" : "current"
12992
+ }, defOpts);
12928
12993
  const { filename, sheetName, mode, type } = exportParams;
12929
12994
  if (filename) {
12930
12995
  if (XEUtils19.isFunction(filename)) {
@@ -12963,8 +13028,8 @@ hooks4.add("tableExportModule", {
12963
13028
  return nextTick10();
12964
13029
  };
12965
13030
  const handleCloseExport = () => {
12966
- if (VxeUI21.modal) {
12967
- return VxeUI21.modal.close("VXE_EXPORT_MODAL");
13031
+ if (VxeUI22.modal) {
13032
+ return VxeUI22.modal.close("VXE_EXPORT_MODAL");
12968
13033
  }
12969
13034
  return Promise.resolve();
12970
13035
  };
@@ -13325,7 +13390,7 @@ hooks4.add("tableExportModule", {
13325
13390
  warnLog5("vxe.error.returnErr", ["beforeImportMethod", "boolean", biRest]);
13326
13391
  }
13327
13392
  }
13328
- return VxeUI21.readFile(opts).catch((e) => {
13393
+ return VxeUI22.readFile(opts).catch((e) => {
13329
13394
  if (afterImportMethod) {
13330
13395
  afterImportMethod({ status: false, options: opts, $table: $xeTable });
13331
13396
  }
@@ -13336,10 +13401,10 @@ hooks4.add("tableExportModule", {
13336
13401
  });
13337
13402
  },
13338
13403
  saveFile(options) {
13339
- return VxeUI21.saveFile(options);
13404
+ return VxeUI22.saveFile(options);
13340
13405
  },
13341
13406
  readFile(options) {
13342
- return VxeUI21.readFile(options);
13407
+ return VxeUI22.readFile(options);
13343
13408
  },
13344
13409
  print(options) {
13345
13410
  const $xeGrid = $xeTable.xeGrid;
@@ -13380,10 +13445,10 @@ hooks4.add("tableExportModule", {
13380
13445
  const printMethod = opts.printMethod;
13381
13446
  const tableHtml = opts.html || opts.content;
13382
13447
  return new Promise((resolve, reject) => {
13383
- if (VxeUI21.print) {
13448
+ if (VxeUI22.print) {
13384
13449
  if (tableHtml) {
13385
13450
  resolve(
13386
- VxeUI21.print({
13451
+ VxeUI22.print({
13387
13452
  title: printTitle,
13388
13453
  html: tableHtml,
13389
13454
  customStyle: opts.style,
@@ -13422,7 +13487,7 @@ hooks4.add("tableExportModule", {
13422
13487
  } else {
13423
13488
  resolve(
13424
13489
  exportMethods.exportData(opts).then(({ content }) => {
13425
- return VxeUI21.print({
13490
+ return VxeUI22.print({
13426
13491
  title: printTitle,
13427
13492
  html: content,
13428
13493
  customStyle: opts.style,
@@ -13490,8 +13555,8 @@ hooks4.add("tableExportModule", {
13490
13555
  });
13491
13556
  },
13492
13557
  closeImport() {
13493
- if (VxeUI21.modal) {
13494
- return VxeUI21.modal.close("VXE_IMPORT_MODAL");
13558
+ if (VxeUI22.modal) {
13559
+ return VxeUI22.modal.close("VXE_IMPORT_MODAL");
13495
13560
  }
13496
13561
  return Promise.resolve();
13497
13562
  },
@@ -13514,8 +13579,8 @@ hooks4.add("tableExportModule", {
13514
13579
  const isTree = !!treeConfig;
13515
13580
  if (isTree) {
13516
13581
  if (defOpts.message) {
13517
- if (VxeUI21.modal) {
13518
- VxeUI21.modal.message({ content: getI18n10("vxe.error.treeNotImp"), status: "error" });
13582
+ if (VxeUI22.modal) {
13583
+ VxeUI22.modal.message({ content: getI18n10("vxe.error.treeNotImp"), status: "error" });
13519
13584
  }
13520
13585
  }
13521
13586
  return;
@@ -13601,8 +13666,8 @@ hooks4.add("tableExportModule", {
13601
13666
 
13602
13667
  // packages_temp/table/module/keyboard/hook.ts
13603
13668
  import XEUtils20 from "xe-utils";
13604
- import { VxeUI as VxeUI22 } from "@vxe-ui/core";
13605
- var { hooks: hooks5 } = VxeUI22;
13669
+ import { VxeUI as VxeUI23 } from "@vxe-ui/core";
13670
+ var { hooks: hooks5 } = VxeUI23;
13606
13671
  hooks5.add("tableKeyboardModule", {
13607
13672
  setupTable($xeTable) {
13608
13673
  const { props, reactData, internalData } = $xeTable;
@@ -14069,9 +14134,9 @@ hooks5.add("tableKeyboardModule", {
14069
14134
  // packages_temp/table/module/validator/hook.ts
14070
14135
  import { nextTick as nextTick11 } from "vue";
14071
14136
  import XEUtils21 from "xe-utils";
14072
- import { VxeUI as VxeUI23 } from "@vxe-ui/core";
14137
+ import { VxeUI as VxeUI24 } from "@vxe-ui/core";
14073
14138
  var { warnLog: warnLog6, errLog: errLog8 } = createComponentLog("table");
14074
- var { getConfig: getConfig6, validators, hooks: hooks6 } = VxeUI23;
14139
+ var { getConfig: getConfig6, validators, hooks: hooks6 } = VxeUI24;
14075
14140
  var Rule = class {
14076
14141
  constructor(rule) {
14077
14142
  Object.assign(this, {
@@ -14623,11 +14688,11 @@ hooks6.add("tableValidatorModule", {
14623
14688
 
14624
14689
  // packages_temp/table/module/custom/hook.ts
14625
14690
  import { nextTick as nextTick12 } from "vue";
14626
- import { VxeUI as VxeUI24 } from "@vxe-ui/core";
14691
+ import { VxeUI as VxeUI25 } from "@vxe-ui/core";
14627
14692
  import XEUtils22 from "xe-utils";
14628
14693
  var tableCustomMethodKeys = ["openCustom", "closeCustom", "getCustomVisible", "toggleCustom", "saveCustom", "cancelCustom", "resetCustom", "toggleCustomAllCheckbox", "setCustomAllCheckbox"];
14629
14694
  var customColumnCssKeys = ["checkbox", "sort", "title", "width", "fixed", "align", "header-align", "footer-align"];
14630
- VxeUI24.hooks.add("tableCustomModule", {
14695
+ VxeUI25.hooks.add("tableCustomModule", {
14631
14696
  setupTable($xeTable) {
14632
14697
  const { reactData, internalData } = $xeTable;
14633
14698
  const { computeCustomOpts, computeRowGroupFields, computeCustomSimpleMode } = $xeTable.getComputeMaps();
@@ -15100,9 +15165,9 @@ VxeUI24.hooks.add("tableCustomModule", {
15100
15165
  // packages_temp/table/render/index.ts
15101
15166
  import { h as h12, resolveComponent } from "vue";
15102
15167
  import XEUtils23 from "xe-utils";
15103
- import { VxeUI as VxeUI25 } from "@vxe-ui/core";
15168
+ import { VxeUI as VxeUI26 } from "@vxe-ui/core";
15104
15169
  var { errLog: errLog9 } = createComponentLog("table");
15105
- var { getConfig: getConfig7, renderer: renderer10, getI18n: getI18n11, getComponent } = VxeUI25;
15170
+ var { getConfig: getConfig7, renderer: renderer10, getI18n: getI18n11, getComponent } = VxeUI26;
15106
15171
  var componentDefaultModelProp = "modelValue";
15107
15172
  var defaultCompProps = {};
15108
15173
  function handleDefaultValue(value, defaultVal, initVal) {
@@ -16738,7 +16803,7 @@ renderer10.mixin({
16738
16803
 
16739
16804
  // packages_temp/table/src/table.ts
16740
16805
  var { warnLog: warnLog7, errLog: errLog10 } = createComponentLog("table");
16741
- var { getConfig: getConfig8, getIcon: getIcon7, getI18n: getI18n12, renderer: renderer11, formats: formats2, createEvent, dbUtils, globalResize, interceptor, hooks: hooks7, domUtils, globalEvents: globalEvents2, GLOBAL_EVENT_KEYS: GLOBAL_EVENT_KEYS2, useFns, renderEmptyElement: renderEmptyElement10 } = VxeUI26;
16806
+ var { getConfig: getConfig8, getIcon: getIcon7, getI18n: getI18n12, renderer: renderer11, formats: formats2, createEvent, dbUtils, globalResize, interceptor, hooks: hooks7, domUtils, globalEvents: globalEvents2, GLOBAL_EVENT_KEYS: GLOBAL_EVENT_KEYS2, useFns, renderEmptyElement: renderEmptyElement10 } = VxeUI27;
16742
16807
  var supportMaxRow = 5e6;
16743
16808
  var customStorageKey = "VXE_CUSTOM_STORE";
16744
16809
  var maxYHeight = 5e6;
@@ -16756,8 +16821,8 @@ var table_default = (
16756
16821
  const xID = XEUtils24.uniqueId();
16757
16822
  const browseObj = XEUtils24.browse();
16758
16823
  const scrollDefaultConf = Object.assign({}, getConfig8().scrollbar);
16759
- const VxeUILoadingComponent = VxeUI26.getComponent("VxeLoading");
16760
- const VxeUITooltipComponent = VxeUI26.getComponent("VxeTooltip");
16824
+ const VxeUILoadingComponent = VxeUI27.getComponent("VxeLoading");
16825
+ const VxeUITooltipComponent = VxeUI27.getComponent("VxeTooltip");
16761
16826
  const $xeModal = inject11("$xeModal", null);
16762
16827
  const $xeTabs = inject11("$xeTabs", null);
16763
16828
  const $xeParentTable = inject11("$xeTable", null);
@@ -17257,6 +17322,14 @@ var table_default = (
17257
17322
  const computeTreeOpts = computed4(() => {
17258
17323
  return Object.assign({}, getConfig8().table.treeConfig, props.treeConfig);
17259
17324
  });
17325
+ const computeShowTreeLine = computed4(() => {
17326
+ const treeOpts = computeTreeOpts.value;
17327
+ return getDefaultConfig(treeOpts.showLine, treeOpts.line);
17328
+ });
17329
+ const computeShowTreeRootLine = computed4(() => {
17330
+ const treeOpts = computeTreeOpts.value;
17331
+ return treeOpts.showRootLine;
17332
+ });
17260
17333
  const computeEmptyOpts = computed4(() => {
17261
17334
  return Object.assign({}, getConfig8().table.emptyRender, props.emptyRender);
17262
17335
  });
@@ -17290,8 +17363,11 @@ var table_default = (
17290
17363
  return "";
17291
17364
  });
17292
17365
  const computeTableStyle = computed4(() => {
17366
+ const { treeConfig } = props;
17293
17367
  const barWidth = computeScrollYWidth.value;
17294
17368
  const barHeight = computeScrollXHeight.value;
17369
+ const treeOpts = computeTreeOpts.value;
17370
+ const { indent, lineWidth, lineColor } = treeOpts;
17295
17371
  const stys = {};
17296
17372
  if (barWidth || barHeight) {
17297
17373
  stys["--vxe-ui-table-view-scrollbar-width"] = toCssUnit(barWidth || barHeight);
@@ -17299,6 +17375,15 @@ var table_default = (
17299
17375
  stys["--vxe-ui-table-view-scrollbar-height"] = toCssUnit(barHeight || barWidth);
17300
17376
  stys["--vxe-ui-scrollbar-x-height"] = toCssUnit(barHeight || barWidth);
17301
17377
  }
17378
+ if (treeConfig) {
17379
+ stys["--vxe-ui-table-tree-node-indent"] = toCssUnit(indent);
17380
+ }
17381
+ if (lineWidth) {
17382
+ stys["--vxe-ui-table-tree-node-line-width"] = toCssUnit(lineWidth);
17383
+ }
17384
+ if (lineColor) {
17385
+ stys["--vxe-ui-table-tree-node-line-color"] = toCssUnit(lineColor);
17386
+ }
17302
17387
  return stys;
17303
17388
  });
17304
17389
  const computeTableRowExpandedList = computed4(() => {
@@ -17543,6 +17628,7 @@ var table_default = (
17543
17628
  computePrintOpts,
17544
17629
  computeExpandOpts,
17545
17630
  computeTreeOpts,
17631
+ computeShowTreeLine,
17546
17632
  computeEmptyOpts,
17547
17633
  computeLoadingOpts,
17548
17634
  computeCellOffsetWidth,
@@ -18726,9 +18812,9 @@ var table_default = (
18726
18812
  if (!el || !el.clientWidth) {
18727
18813
  return;
18728
18814
  }
18729
- const treeOpts = computeTreeOpts.value;
18730
18815
  const defaultRowHeight = computeDefaultRowHeight.value;
18731
- if (!isAllOverflow && (scrollYLoad || scrollXLoad || treeConfig && treeOpts.showLine)) {
18816
+ const showTreeLine = computeShowTreeLine.value;
18817
+ if (!isAllOverflow && (scrollYLoad || scrollXLoad || treeConfig && showTreeLine)) {
18732
18818
  const { handleGetRowId } = createHandleGetRowId($xeTable);
18733
18819
  const rowWrapperMaps = {};
18734
18820
  el.querySelectorAll(".vxe-cell--wrapper[rowid]").forEach((wrapperElem) => {
@@ -18789,36 +18875,174 @@ var table_default = (
18789
18875
  return cellValue;
18790
18876
  };
18791
18877
  };
18878
+ function getTreeNodeLines(isExpandable, depth, linesMask, isFirstRow, isLastRow, showRootLine) {
18879
+ const lines = [];
18880
+ for (let col = 1; col <= depth; col++) {
18881
+ const leftVal = `var(--vxe-ui-table-tree-node-btn-width) + var(--vxe-ui-table-tree-node-indent) * ${col - 1}`;
18882
+ const through = (linesMask & 1 << col - 1) !== 0;
18883
+ if (col === 1 && !showRootLine) {
18884
+ continue;
18885
+ }
18886
+ if (col < depth) {
18887
+ if (through) {
18888
+ let top = "0";
18889
+ let height = "100%";
18890
+ if (isFirstRow) {
18891
+ top = "50%";
18892
+ height = "50%";
18893
+ } else if (isLastRow) {
18894
+ top = "0";
18895
+ height = "50%";
18896
+ }
18897
+ lines.push({
18898
+ type: "v",
18899
+ style: {
18900
+ left: `calc(${leftVal})`,
18901
+ top,
18902
+ height
18903
+ }
18904
+ });
18905
+ }
18906
+ } else {
18907
+ let vTop = "0";
18908
+ let vHeight = through ? "100%" : "50%";
18909
+ if (isFirstRow && isLastRow) {
18910
+ vTop = "50%";
18911
+ vHeight = "0px";
18912
+ } else if (isFirstRow) {
18913
+ vTop = "50%";
18914
+ vHeight = "50%";
18915
+ } else if (isLastRow) {
18916
+ vTop = "0";
18917
+ vHeight = "50%";
18918
+ }
18919
+ if (isExpandable && vHeight !== "0px") {
18920
+ let cutType = "v cut";
18921
+ if (vTop === "0" && vHeight === "50%") {
18922
+ cutType = "v cut-top";
18923
+ } else if (vTop === "50%" && vHeight === "50%") {
18924
+ cutType = "v cut-bottom";
18925
+ } else if (vHeight === "100%") {
18926
+ cutType = "v cut-full";
18927
+ }
18928
+ lines.push({
18929
+ type: cutType,
18930
+ style: {
18931
+ left: `calc(${leftVal})`,
18932
+ top: vTop,
18933
+ height: vHeight
18934
+ }
18935
+ });
18936
+ } else {
18937
+ if (vHeight !== "0px") {
18938
+ lines.push({
18939
+ type: "v",
18940
+ style: {
18941
+ left: `calc(${leftVal})`,
18942
+ top: vTop,
18943
+ height: vHeight
18944
+ }
18945
+ });
18946
+ }
18947
+ }
18948
+ if (isExpandable) {
18949
+ lines.push({
18950
+ type: "h",
18951
+ style: {
18952
+ left: `calc(${leftVal} + var(--vxe-ui-table-tree-node-btn-width) / 2 + 1px)`,
18953
+ top: "50%",
18954
+ width: "calc(var(--vxe-ui-table-tree-node-indent) - var(--vxe-ui-table-tree-node-btn-width) - 0.25em)"
18955
+ }
18956
+ });
18957
+ } else {
18958
+ lines.push({
18959
+ type: "h",
18960
+ style: {
18961
+ left: `calc(${leftVal})`,
18962
+ top: "50%",
18963
+ width: "calc(var(--vxe-ui-table-tree-node-indent) - var(--vxe-ui-table-tree-node-btn-width))"
18964
+ }
18965
+ });
18966
+ }
18967
+ }
18968
+ }
18969
+ return lines;
18970
+ }
18792
18971
  const updateAfterTreeIndex = () => {
18793
18972
  const { fullDataRowIdData, fullAllDataRowIdData, afterFullData, afterTreeFullData } = internalData;
18794
18973
  const treeOpts = computeTreeOpts.value;
18795
- const { transform, mapChildrenField } = treeOpts;
18974
+ const { lazy, transform, showRootLine, mapChildrenField } = treeOpts;
18796
18975
  const childrenField = treeOpts.children || treeOpts.childrenField;
18976
+ const hasChildField = treeOpts.hasChild || treeOpts.hasChildField;
18977
+ const showTreeLine = computeShowTreeLine.value;
18797
18978
  const fullMaps = {};
18798
- let rowNum = 0;
18979
+ const treeFullSize = afterTreeFullData.length;
18980
+ const rowNum = 0;
18799
18981
  const { handleGetRowId } = createHandleGetRowId($xeTable);
18800
- XEUtils24.eachTree(
18801
- afterTreeFullData,
18802
- (row, index, items, path, parentRow) => {
18803
- const rowid = handleGetRowId(row);
18804
- const rowRest = fullAllDataRowIdData[rowid];
18805
- const seq = path.map((num, i) => i % 2 === 0 ? Number(num) + 1 : ".").join("");
18806
- if (rowRest) {
18807
- rowRest.seq = seq;
18808
- rowRest._seq = rowNum;
18809
- rowRest.treeIndex = index;
18810
- rowRest._index = rowNum;
18811
- rowRest._tIndex = rowNum;
18812
- } else {
18813
- const rest = { row, rowid, _seq: rowNum, seq, index, $index: -1, _index: rowNum, treeIndex: index, _tIndex: rowNum, items, parent: parentRow, level: 0, height: 0, resizeHeight: 0, oTop: 0, expandHeight: 0 };
18814
- fullAllDataRowIdData[rowid] = rest;
18815
- fullDataRowIdData[rowid] = rest;
18816
- }
18817
- rowNum++;
18818
- fullMaps[rowid] = row;
18819
- },
18820
- { children: transform ? mapChildrenField : childrenField }
18821
- );
18982
+ function handleTreeDFS(row, index, items, parentRow, depth, isFirstRow, isLastRow, isLastChild, stackMask, seq) {
18983
+ const rowid = handleGetRowId(row);
18984
+ let rowRest = fullAllDataRowIdData[rowid];
18985
+ const rowChilds = row[transform ? mapChildrenField : childrenField];
18986
+ if (rowRest) {
18987
+ rowRest.seq = seq;
18988
+ rowRest._seq = rowNum;
18989
+ rowRest.items = items;
18990
+ rowRest.treeIndex = index;
18991
+ rowRest._index = rowNum;
18992
+ rowRest._tIndex = rowNum;
18993
+ } else {
18994
+ rowRest = {
18995
+ row,
18996
+ rowid,
18997
+ _seq: rowNum,
18998
+ seq,
18999
+ index,
19000
+ $index: -1,
19001
+ _index: rowNum,
19002
+ treeIndex: index,
19003
+ _tIndex: rowNum,
19004
+ items,
19005
+ parent: parentRow,
19006
+ level: 0,
19007
+ linesMask: 0,
19008
+ height: 0,
19009
+ resizeHeight: 0,
19010
+ oTop: 0,
19011
+ expandHeight: 0
19012
+ };
19013
+ fullAllDataRowIdData[rowid] = rowRest;
19014
+ fullDataRowIdData[rowid] = rowRest;
19015
+ }
19016
+ let linesMask = stackMask >> 1;
19017
+ if (!isLastChild) {
19018
+ linesMask |= 1 << depth - 1;
19019
+ }
19020
+ rowRest.seq = seq;
19021
+ rowRest._seq = rowNum;
19022
+ rowRest.level = depth - 1;
19023
+ rowRest.linesMask = linesMask;
19024
+ const hasChild = rowChilds && rowChilds.length;
19025
+ let hasLazyChilds = false;
19026
+ let isLazyLoaded = false;
19027
+ if (lazy) {
19028
+ const rest = fullAllDataRowIdData[rowid];
19029
+ hasLazyChilds = row[hasChildField];
19030
+ isLazyLoaded = !!rest.treeLoaded;
19031
+ }
19032
+ const isExpandable = lazy ? isLazyLoaded ? hasChild : hasChild || hasLazyChilds : hasChild;
19033
+ rowRest.treeLines = showTreeLine && treeFullSize > 1 ? getTreeNodeLines(isExpandable, depth, linesMask, isFirstRow, isLastRow, showRootLine) : [];
19034
+ let nextStackMask = stackMask;
19035
+ if (!isLastChild) {
19036
+ nextStackMask |= 1 << depth;
19037
+ }
19038
+ fullMaps[rowid] = row;
19039
+ for (let i = 0; i < rowChilds.length; i++) {
19040
+ handleTreeDFS(rowChilds[i], i, rowChilds, row, depth + 1, false, false, i === rowChilds.length - 1, nextStackMask, `${seq}.${i + 1}`);
19041
+ }
19042
+ }
19043
+ for (let i = 0; i < treeFullSize; i++) {
19044
+ handleTreeDFS(afterTreeFullData[i], i, afterTreeFullData, null, 1, !i, i === treeFullSize - 1, i === treeFullSize - 1, 0, "" + i);
19045
+ }
18822
19046
  if (transform) {
18823
19047
  afterFullData.forEach((row, index) => {
18824
19048
  const rowid = handleGetRowId(row);
@@ -18844,7 +19068,25 @@ var table_default = (
18844
19068
  rowRest._seq = rowNum;
18845
19069
  rowRest._index = index;
18846
19070
  } else {
18847
- const rest = { row, rowid, _seq: rowNum, seq, index: -1, $index: -1, _index: index, treeIndex: -1, _tIndex: -1, items: [], parent: null, level: 0, height: 0, resizeHeight: 0, oTop: 0, expandHeight: 0 };
19071
+ const rest = {
19072
+ row,
19073
+ rowid,
19074
+ _seq: rowNum,
19075
+ seq,
19076
+ index: -1,
19077
+ $index: -1,
19078
+ _index: index,
19079
+ treeIndex: -1,
19080
+ _tIndex: -1,
19081
+ items: [],
19082
+ parent: null,
19083
+ level: 0,
19084
+ linesMask: 0,
19085
+ height: 0,
19086
+ resizeHeight: 0,
19087
+ oTop: 0,
19088
+ expandHeight: 0
19089
+ };
18848
19090
  fullAllDataRowIdData[rowid] = rest;
18849
19091
  fullDataRowIdData[rowid] = rest;
18850
19092
  }
@@ -21526,7 +21768,25 @@ var table_default = (
21526
21768
  (childRow, index, items, path, parentItem, nodes) => {
21527
21769
  const rowid = getRowid($xeTable, childRow);
21528
21770
  const parentRow = parentItem || parentRest.row;
21529
- const rest = { row: childRow, rowid, _seq: -1, seq: -1, index, _index: -1, $index: -1, treeIndex: -1, _tIndex: -1, items, parent: parentRow, level: parentLevel + nodes.length, height: 0, resizeHeight: 0, oTop: 0, expandHeight: 0 };
21771
+ const rest = {
21772
+ row: childRow,
21773
+ rowid,
21774
+ _seq: -1,
21775
+ seq: -1,
21776
+ index,
21777
+ _index: -1,
21778
+ $index: -1,
21779
+ treeIndex: -1,
21780
+ _tIndex: -1,
21781
+ items,
21782
+ parent: parentRow,
21783
+ level: parentLevel + nodes.length,
21784
+ linesMask: 0,
21785
+ height: 0,
21786
+ resizeHeight: 0,
21787
+ oTop: 0,
21788
+ expandHeight: 0
21789
+ };
21530
21790
  fullDataRowIdData[rowid] = rest;
21531
21791
  fullAllDataRowIdData[rowid] = rest;
21532
21792
  },
@@ -22543,8 +22803,8 @@ var table_default = (
22543
22803
  const targetColumn = getRootColumn($xeTable, column);
22544
22804
  if (targetColumn && targetColumn.fixed !== fixed) {
22545
22805
  if (!targetColumn.fixed && isMaxFixedColumn) {
22546
- if (VxeUI26.modal) {
22547
- VxeUI26.modal.message({
22806
+ if (VxeUI27.modal) {
22807
+ VxeUI27.modal.message({
22548
22808
  status: "error",
22549
22809
  content: getI18n12("vxe.table.maxFixedCol", [columnOpts.maxFixedSize])
22550
22810
  });
@@ -23748,8 +24008,8 @@ var table_default = (
23748
24008
  }
23749
24009
  const confList = fieldOrColumns ? XEUtils24.isArray(fieldOrColumns) ? fieldOrColumns : [fieldOrColumns] : [];
23750
24010
  if (maxGroupSize && confList.length > maxGroupSize) {
23751
- if (VxeUI26.modal) {
23752
- VxeUI26.modal.message({
24011
+ if (VxeUI27.modal) {
24012
+ VxeUI27.modal.message({
23753
24013
  status: "error",
23754
24014
  content: getI18n12("vxe.table.maxGroupCol", [maxGroupSize])
23755
24015
  });
@@ -25969,9 +26229,25 @@ var table_default = (
25969
26229
  errLog10("vxe.error.repeatKey", [currKeyField, rowid]);
25970
26230
  }
25971
26231
  if (!rowRest) {
25972
- rowRest = { row, rowid, _seq: -1, seq, index: -1, _index: -1, $index: -1, treeIndex: index, _tIndex: -1, items, parent: parentRow, level, height: 0, resizeHeight: 0, oTop: 0, expandHeight: 0 };
25973
- fullDataRowIdMaps[rowid] = rowRest;
25974
- fullAllDataRowIdMaps[rowid] = rowRest;
26232
+ rowRest = {
26233
+ row,
26234
+ rowid,
26235
+ _seq: -1,
26236
+ seq,
26237
+ index: -1,
26238
+ _index: -1,
26239
+ $index: -1,
26240
+ treeIndex: index,
26241
+ _tIndex: -1,
26242
+ items,
26243
+ parent: parentRow,
26244
+ level,
26245
+ linesMask: 0,
26246
+ height: 0,
26247
+ resizeHeight: 0,
26248
+ oTop: 0,
26249
+ expandHeight: 0
26250
+ };
25975
26251
  }
25976
26252
  if (isReset || isReLoaded) {
25977
26253
  rowRest.treeLoaded = false;
@@ -25990,7 +26266,6 @@ var table_default = (
25990
26266
  if (rowExpandedMaps[rowid]) {
25991
26267
  rowExpandedMaps[rowid] = row;
25992
26268
  }
25993
- rowNum++;
25994
26269
  idMaps[rowid] = true;
25995
26270
  fullDataRowIdMaps[rowid] = rowRest;
25996
26271
  fullAllDataRowIdMaps[rowid] = rowRest;
@@ -27678,8 +27953,8 @@ var table_default = (
27678
27953
  $xeTable.handleHeaderCellDragMousedownEvent(evnt, params);
27679
27954
  }
27680
27955
  }
27681
- if (!triggerDrag && hasEnableConf(mouseConfig, mouseOpts) && mouseOpts.area && $xeTable.handleHeaderCellAreaMouseDnEvent) {
27682
- $xeTable.handleHeaderCellAreaMouseDnEvent(evnt, Object.assign({ cell, triggerSort, triggerFilter }, params));
27956
+ if (!triggerDrag && hasEnableConf(mouseConfig, mouseOpts) && mouseOpts.area && $xeTable.handleHeadCellAreaMouseDnEvent) {
27957
+ $xeTable.handleHeadCellAreaMouseDnEvent(evnt, Object.assign({ cell, triggerSort, triggerFilter }, params));
27683
27958
  }
27684
27959
  $xeTable.focus();
27685
27960
  if ($xeTable.closeMenu) {
@@ -27813,8 +28088,8 @@ var table_default = (
27813
28088
  if (oldAllMaps[newRowid]) {
27814
28089
  isSelfToChildStatus = true;
27815
28090
  if (!(isCrossDrag && isSelfToChildDrag)) {
27816
- if (VxeUI26.modal) {
27817
- VxeUI26.modal.message({
28091
+ if (VxeUI27.modal) {
28092
+ VxeUI27.modal.message({
27818
28093
  status: "error",
27819
28094
  content: getI18n12("vxe.error.treeDragChild")
27820
28095
  });
@@ -27837,8 +28112,8 @@ var table_default = (
27837
28112
  if (oldAllMaps[newRowid]) {
27838
28113
  isSelfToChildStatus = true;
27839
28114
  if (!(isCrossDrag && isSelfToChildDrag)) {
27840
- if (VxeUI26.modal) {
27841
- VxeUI26.modal.message({
28115
+ if (VxeUI27.modal) {
28116
+ VxeUI27.modal.message({
27842
28117
  status: "error",
27843
28118
  content: getI18n12("vxe.error.treeDragChild")
27844
28119
  });
@@ -28494,8 +28769,8 @@ var table_default = (
28494
28769
  if (oldAllMaps[newColumn.id]) {
28495
28770
  isSelfToChildStatus = true;
28496
28771
  if (!(isCrossDrag && isSelfToChildDrag)) {
28497
- if (VxeUI26.modal) {
28498
- VxeUI26.modal.message({
28772
+ if (VxeUI27.modal) {
28773
+ VxeUI27.modal.message({
28499
28774
  status: "error",
28500
28775
  content: getI18n12("vxe.error.treeDragChild")
28501
28776
  });
@@ -28518,8 +28793,8 @@ var table_default = (
28518
28793
  if (oldAllMaps[newColumn.id]) {
28519
28794
  isSelfToChildStatus = true;
28520
28795
  if (!(isCrossDrag && isSelfToChildDrag)) {
28521
- if (VxeUI26.modal) {
28522
- VxeUI26.modal.message({
28796
+ if (VxeUI27.modal) {
28797
+ VxeUI27.modal.message({
28523
28798
  status: "error",
28524
28799
  content: getI18n12("vxe.error.treeDragChild")
28525
28800
  });
@@ -30262,7 +30537,7 @@ var table_default = (
30262
30537
  const validTipConfig = computeValidTipConfig.value;
30263
30538
  const validOpts = computeValidOpts.value;
30264
30539
  const checkboxOpts = computeCheckboxOpts.value;
30265
- const treeOpts = computeTreeOpts.value;
30540
+ const showTreeLine = computeShowTreeLine.value;
30266
30541
  const rowOpts = computeRowOpts.value;
30267
30542
  const columnOpts = computeColumnOpts.value;
30268
30543
  const vSize = computeSize.value;
@@ -30320,7 +30595,7 @@ var table_default = (
30320
30595
  "not--footer": !showFooter,
30321
30596
  "is--group": isGroup,
30322
30597
  "is-row-group": isRowGroupStatus,
30323
- "is--tree-line": treeConfig && (treeOpts.showLine || treeOpts.line),
30598
+ "is--tree-line": treeConfig && showTreeLine,
30324
30599
  "is--fixed-left": leftList.length,
30325
30600
  "is--fixed-right": rightList.length,
30326
30601
  "is--animat": !!props.animat,
@@ -30834,7 +31109,7 @@ var table_default = (
30834
31109
  }
30835
31110
  );
30836
31111
  watch3(
30837
- () => VxeUI26.getLanguage(),
31112
+ () => VxeUI27.getLanguage(),
30838
31113
  () => {
30839
31114
  reLayoutFlag.value++;
30840
31115
  }
@@ -30873,6 +31148,16 @@ var table_default = (
30873
31148
  $xeTable.recalculate(true);
30874
31149
  });
30875
31150
  });
31151
+ const lineFlag = ref11(0);
31152
+ watch3(computeShowTreeLine, () => {
31153
+ lineFlag.value++;
31154
+ });
31155
+ watch3(computeShowTreeRootLine, () => {
31156
+ lineFlag.value++;
31157
+ });
31158
+ watch3(lineFlag, () => {
31159
+ updateAfterDataIndex();
31160
+ });
30876
31161
  watch3(reScrollFlag, () => {
30877
31162
  updateScrollbar().then(() => {
30878
31163
  updateScrollbar();
@@ -31442,23 +31727,23 @@ var VxeTable = Object.assign({}, table_default, {
31442
31727
  var tableHandle = {
31443
31728
  useCellView
31444
31729
  };
31445
- if (VxeUI27.dynamicApp) {
31446
- VxeUI27.dynamicApp.component(table_default.name, table_default);
31730
+ if (VxeUI28.dynamicApp) {
31731
+ VxeUI28.dynamicApp.component(table_default.name, table_default);
31447
31732
  }
31448
- VxeUI27.component(table_default);
31449
- VxeUI27.tableHandle = tableHandle;
31733
+ VxeUI28.component(table_default);
31734
+ VxeUI28.tableHandle = tableHandle;
31450
31735
  var Table = VxeTable;
31451
31736
  var table_default2 = VxeTable;
31452
31737
 
31453
31738
  // packages_temp/toolbar/index.ts
31454
- import { VxeUI as VxeUI29 } from "@vxe-ui/core";
31739
+ import { VxeUI as VxeUI30 } from "@vxe-ui/core";
31455
31740
 
31456
31741
  // packages_temp/toolbar/src/toolbar.ts
31457
31742
  import { h as h14, ref as ref12, computed as computed6, inject as inject12, createCommentVNode as createCommentVNode3, reactive as reactive8, nextTick as nextTick14, onBeforeUnmount as onBeforeUnmount2 } from "vue";
31458
31743
  import XEUtils26 from "xe-utils";
31459
- import { VxeUI as VxeUI28 } from "@vxe-ui/core";
31744
+ import { VxeUI as VxeUI29 } from "@vxe-ui/core";
31460
31745
  var { warnLog: warnLog8, errLog: errLog11 } = createComponentLog("toolbar");
31461
- var { getConfig: getConfig9, getIcon: getIcon8, getI18n: getI18n13, renderer: renderer12, commands, createEvent: createEvent2, useFns: useFns2 } = VxeUI28;
31746
+ var { getConfig: getConfig9, getIcon: getIcon8, getI18n: getI18n13, renderer: renderer12, commands, createEvent: createEvent2, useFns: useFns2 } = VxeUI29;
31462
31747
  function createReactData2() {
31463
31748
  return {
31464
31749
  isRefresh: false,
@@ -31511,7 +31796,7 @@ var toolbar_default = (
31511
31796
  setup(props, context) {
31512
31797
  const { slots, emit } = context;
31513
31798
  const xID = XEUtils26.uniqueId();
31514
- const VxeUIButtonComponent = VxeUI28.getComponent("VxeButton");
31799
+ const VxeUIButtonComponent = VxeUI29.getComponent("VxeButton");
31515
31800
  const $xeGrid = inject12("$xeGrid", null);
31516
31801
  const $xeGantt = inject12("$xeGantt", null);
31517
31802
  const $xeGGWrapper = $xeGrid || $xeGantt;
@@ -32132,16 +32417,16 @@ var VxeToolbar = Object.assign({}, toolbar_default, {
32132
32417
  app.component(toolbar_default.name, toolbar_default);
32133
32418
  }
32134
32419
  });
32135
- if (VxeUI29.dynamicApp) {
32136
- VxeUI29.dynamicApp.component(toolbar_default.name, toolbar_default);
32420
+ if (VxeUI30.dynamicApp) {
32421
+ VxeUI30.dynamicApp.component(toolbar_default.name, toolbar_default);
32137
32422
  }
32138
- VxeUI29.component(toolbar_default);
32423
+ VxeUI30.component(toolbar_default);
32139
32424
  var Toolbar = VxeToolbar;
32140
32425
  var toolbar_default2 = VxeToolbar;
32141
32426
 
32142
32427
  // packages_temp/grid/src/grid.ts
32143
32428
  var { warnLog: warnLog9, errLog: errLog12 } = createComponentLog("grid");
32144
- var { getConfig: getConfig10, getI18n: getI18n14, commands: commands2, hooks: hooks8, useFns: useFns3, createEvent: createEvent3, globalEvents: globalEvents3, GLOBAL_EVENT_KEYS: GLOBAL_EVENT_KEYS3, renderEmptyElement: renderEmptyElement11 } = VxeUI30;
32429
+ var { getConfig: getConfig10, getI18n: getI18n14, commands: commands2, hooks: hooks8, useFns: useFns3, createEvent: createEvent3, globalEvents: globalEvents3, GLOBAL_EVENT_KEYS: GLOBAL_EVENT_KEYS3, renderEmptyElement: renderEmptyElement11 } = VxeUI31;
32145
32430
  var tableComponentPropKeys = Object.keys(tableComponenProps);
32146
32431
  var tableComponentMethodKeys = [
32147
32432
  "clearAll",
@@ -32361,8 +32646,8 @@ var grid_default = (
32361
32646
  setup(props, context) {
32362
32647
  const { slots, emit } = context;
32363
32648
  const xID = XEUtils27.uniqueId();
32364
- const VxeUIFormComponent = VxeUI30.getComponent("VxeForm");
32365
- const VxeUIPagerComponent = VxeUI30.getComponent("VxePager");
32649
+ const VxeUIFormComponent = VxeUI31.getComponent("VxeForm");
32650
+ const VxeUIPagerComponent = VxeUI31.getComponent("VxePager");
32366
32651
  const defaultLayouts = [["Form"], ["Toolbar", "Top", "Table", "Bottom", "Pager"]];
32367
32652
  const { computeSize } = useFns3.useSize(props);
32368
32653
  const { computeIsVScrollbar } = useFns3.useVScrollbar(props);
@@ -32603,8 +32888,8 @@ var grid_default = (
32603
32888
  $xeGrid.clearCheckboxRow();
32604
32889
  } else {
32605
32890
  if (isActiveMsg) {
32606
- if (VxeUI30.modal) {
32607
- VxeUI30.modal.message({ id: code, content: getI18n14("vxe.grid.selectOneRecord"), status: "warning" });
32891
+ if (VxeUI31.modal) {
32892
+ VxeUI31.modal.message({ id: code, content: getI18n14("vxe.grid.selectOneRecord"), status: "warning" });
32608
32893
  }
32609
32894
  }
32610
32895
  }
@@ -32625,16 +32910,16 @@ var grid_default = (
32625
32910
  const selectRecords = $xeGrid.getCheckboxRecords();
32626
32911
  if (isActiveMsg) {
32627
32912
  if (selectRecords.length) {
32628
- if (VxeUI30.modal) {
32629
- return VxeUI30.modal.confirm({ id: `cfm_${code}`, content: getI18n14(alertKey), escClosable: true }).then((type) => {
32913
+ if (VxeUI31.modal) {
32914
+ return VxeUI31.modal.confirm({ id: `cfm_${code}`, content: getI18n14(alertKey), escClosable: true }).then((type) => {
32630
32915
  if (type === "confirm") {
32631
32916
  return callback();
32632
32917
  }
32633
32918
  });
32634
32919
  }
32635
32920
  } else {
32636
- if (VxeUI30.modal) {
32637
- VxeUI30.modal.message({ id: `msg_${code}`, content: getI18n14("vxe.grid.selectOneRecord"), status: "warning" });
32921
+ if (VxeUI31.modal) {
32922
+ VxeUI31.modal.message({ id: `msg_${code}`, content: getI18n14("vxe.grid.selectOneRecord"), status: "warning" });
32638
32923
  }
32639
32924
  }
32640
32925
  } else {
@@ -33576,8 +33861,8 @@ var grid_default = (
33576
33861
  } else {
33577
33862
  $xeTable.setPendingRow(removeRecords, false);
33578
33863
  if (isRespMsg) {
33579
- if (VxeUI30.modal) {
33580
- VxeUI30.modal.message({ content: getRespMsg(rest, "vxe.grid.delSuccess"), status: "success" });
33864
+ if (VxeUI31.modal) {
33865
+ VxeUI31.modal.message({ content: getRespMsg(rest, "vxe.grid.delSuccess"), status: "success" });
33581
33866
  }
33582
33867
  }
33583
33868
  if (oldAfterDelete) {
@@ -33599,8 +33884,8 @@ var grid_default = (
33599
33884
  adMethod({ ...commitParams, response: rest, status: "error" }, ...args);
33600
33885
  } else {
33601
33886
  if (isRespMsg) {
33602
- if (VxeUI30.modal) {
33603
- VxeUI30.modal.message({ id: code, content: getRespMsg(rest, "vxe.grid.operError"), status: "error" });
33887
+ if (VxeUI31.modal) {
33888
+ VxeUI31.modal.message({ id: code, content: getRespMsg(rest, "vxe.grid.operError"), status: "error" });
33604
33889
  }
33605
33890
  }
33606
33891
  }
@@ -33621,8 +33906,8 @@ var grid_default = (
33621
33906
  });
33622
33907
  } else {
33623
33908
  if (isActiveMsg) {
33624
- if (VxeUI30.modal) {
33625
- VxeUI30.modal.message({ id: code, content: getI18n14("vxe.grid.selectOneRecord"), status: "warning" });
33909
+ if (VxeUI31.modal) {
33910
+ VxeUI31.modal.message({ id: code, content: getI18n14("vxe.grid.selectOneRecord"), status: "warning" });
33626
33911
  }
33627
33912
  }
33628
33913
  }
@@ -33674,8 +33959,8 @@ var grid_default = (
33674
33959
  } else {
33675
33960
  $xeTable.clearPendingRow();
33676
33961
  if (isRespMsg) {
33677
- if (VxeUI30.modal) {
33678
- VxeUI30.modal.message({ content: getRespMsg(rest, "vxe.grid.saveSuccess"), status: "success" });
33962
+ if (VxeUI31.modal) {
33963
+ VxeUI31.modal.message({ content: getRespMsg(rest, "vxe.grid.saveSuccess"), status: "success" });
33679
33964
  }
33680
33965
  }
33681
33966
  if (oldAfterSave) {
@@ -33697,8 +33982,8 @@ var grid_default = (
33697
33982
  aSaveMethod({ ...commitParams, response: rest, status: "error" }, ...args);
33698
33983
  } else {
33699
33984
  if (isRespMsg) {
33700
- if (VxeUI30.modal) {
33701
- VxeUI30.modal.message({ id: code, content: getRespMsg(rest, "vxe.grid.operError"), status: "error" });
33985
+ if (VxeUI31.modal) {
33986
+ VxeUI31.modal.message({ id: code, content: getRespMsg(rest, "vxe.grid.operError"), status: "error" });
33702
33987
  }
33703
33988
  }
33704
33989
  }
@@ -33718,8 +34003,8 @@ var grid_default = (
33718
34003
  return handleSave();
33719
34004
  } else {
33720
34005
  if (isActiveMsg) {
33721
- if (VxeUI30.modal) {
33722
- VxeUI30.modal.message({ id: code, content: getI18n14("vxe.grid.dataUnchanged"), status: "info" });
34006
+ if (VxeUI31.modal) {
34007
+ VxeUI31.modal.message({ id: code, content: getI18n14("vxe.grid.dataUnchanged"), status: "info" });
33723
34008
  }
33724
34009
  }
33725
34010
  }
@@ -34158,10 +34443,10 @@ var VxeGrid = Object.assign({}, grid_default, {
34158
34443
  app.component(grid_default.name, grid_default);
34159
34444
  }
34160
34445
  });
34161
- if (VxeUI31.dynamicApp) {
34162
- VxeUI31.dynamicApp.component(grid_default.name, grid_default);
34446
+ if (VxeUI32.dynamicApp) {
34447
+ VxeUI32.dynamicApp.component(grid_default.name, grid_default);
34163
34448
  }
34164
- VxeUI31.component(grid_default);
34449
+ VxeUI32.component(grid_default);
34165
34450
  var Grid = VxeGrid;
34166
34451
 
34167
34452
  // packages_temp/locale/lang/zh-CN.ts
@@ -35085,15 +35370,15 @@ __reExport(components_exports, core_star);
35085
35370
  import * as core_star from "@vxe-ui/core";
35086
35371
  var components = [VxeColumn, VxeColgroup, VxeGrid, VxeTable, VxeToolbar];
35087
35372
  function install(app, options) {
35088
- VxeUI32.setConfig(options);
35373
+ VxeUI33.setConfig(options);
35089
35374
  components.forEach((component) => component.install(app));
35090
35375
  }
35091
- if (!VxeUI32.hasLanguage("zh-CN")) {
35376
+ if (!VxeUI33.hasLanguage("zh-CN")) {
35092
35377
  const defaultLanguage = "zh-CN";
35093
- VxeUI32.setI18n(defaultLanguage, zh_CN_default);
35094
- VxeUI32.setLanguage(defaultLanguage);
35378
+ VxeUI33.setI18n(defaultLanguage, zh_CN_default);
35379
+ VxeUI33.setLanguage(defaultLanguage);
35095
35380
  }
35096
- VxeUI32.setTheme("light");
35381
+ VxeUI33.setTheme("light");
35097
35382
 
35098
35383
  // packages_temp/index.ts
35099
35384
  __reExport(index_exports, components_exports);
@@ -35118,7 +35403,6 @@ export {
35118
35403
  VxeGrid,
35119
35404
  VxeTable,
35120
35405
  VxeToolbar,
35121
- VxeUI32 as VxeUI,
35122
35406
  _t,
35123
35407
  config,
35124
35408
  index_default as default,
@@ -35128,6 +35412,5 @@ export {
35128
35412
  readFile,
35129
35413
  saveFile,
35130
35414
  setup,
35131
- t,
35132
- version
35415
+ t
35133
35416
  };