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
@@ -904,17 +904,20 @@ function createColumn($xeTable, options, renderOptions) {
904
904
  }
905
905
  function watchColumn($xeTable, props, column) {
906
906
  Object.keys(props).forEach((name) => {
907
- (0, import_vue.watch)(() => props[name], (value) => {
908
- column.update(name, value);
909
- if ($xeTable) {
910
- if (name === "filters") {
911
- $xeTable.setFilter(column, value);
912
- $xeTable.handleUpdateDataQueue();
913
- } else if (["visible", "fixed", "width", "minWidth", "maxWidth"].includes(name)) {
914
- $xeTable.handleRefreshColumnQueue();
907
+ (0, import_vue.watch)(
908
+ () => props[name],
909
+ (value) => {
910
+ column.update(name, value);
911
+ if ($xeTable) {
912
+ if (name === "filters") {
913
+ $xeTable.setFilter(column, value);
914
+ $xeTable.handleUpdateDataQueue();
915
+ } else if (["visible", "fixed", "width", "minWidth", "maxWidth"].includes(name)) {
916
+ $xeTable.handleRefreshColumnQueue();
917
+ }
915
918
  }
916
919
  }
917
- });
920
+ );
918
921
  });
919
922
  }
920
923
  function assembleColumn($xeTable, elem, column, colgroup) {
@@ -989,20 +992,13 @@ function clearTableDefaultStatus($xeTable) {
989
992
  $xeTable.clearPendingRow()
990
993
  ];
991
994
  if ($xeTable.clearFilter) {
992
- actionList.push(
993
- $xeTable.clearFilter()
994
- );
995
+ actionList.push($xeTable.clearFilter());
995
996
  }
996
997
  if ($xeTable.clearSelected && ((0, import_utils.hasEnableConf)(keyboardConfig, keyboardOpts) || (0, import_utils.hasEnableConf)(mouseConfig, mouseOpts))) {
997
- actionList.push(
998
- $xeTable.clearSelected()
999
- );
998
+ actionList.push($xeTable.clearSelected());
1000
999
  }
1001
1000
  if ($xeTable.clearCellAreas && (0, import_utils.hasEnableConf)(mouseConfig, mouseOpts)) {
1002
- actionList.push(
1003
- $xeTable.clearCellAreas(),
1004
- $xeTable.clearCopyCellArea()
1005
- );
1001
+ actionList.push($xeTable.clearCellAreas(), $xeTable.clearCopyCellArea());
1006
1002
  }
1007
1003
  return Promise.all(actionList).then(() => {
1008
1004
  return $xeTable.clearScroll();
@@ -33,16 +33,16 @@ __export(toolbar_exports, {
33
33
  default: () => toolbar_default
34
34
  });
35
35
  module.exports = __toCommonJS(toolbar_exports);
36
- var import_ui = require("../ui");
36
+ var import_core = require("@vxe-ui/core");
37
37
  var import_toolbar = __toESM(require("./src/toolbar"));
38
38
  const VxeToolbar = Object.assign({}, import_toolbar.default, {
39
39
  install(app) {
40
40
  app.component(import_toolbar.default.name, import_toolbar.default);
41
41
  }
42
42
  });
43
- if (import_ui.VxeUI.dynamicApp) {
44
- import_ui.VxeUI.dynamicApp.component(import_toolbar.default.name, import_toolbar.default);
43
+ if (import_core.VxeUI.dynamicApp) {
44
+ import_core.VxeUI.dynamicApp.component(import_toolbar.default.name, import_toolbar.default);
45
45
  }
46
- import_ui.VxeUI.component(import_toolbar.default);
46
+ import_core.VxeUI.component(import_toolbar.default);
47
47
  const Toolbar = VxeToolbar;
48
48
  var toolbar_default = VxeToolbar;
@@ -34,11 +34,11 @@ module.exports = __toCommonJS(toolbar_exports);
34
34
  var import_vue = require("vue");
35
35
  var import_comp = require("../../ui/src/comp");
36
36
  var import_xe_utils = __toESM(require("xe-utils"));
37
- var import_ui = require("../../ui");
37
+ var import_core = require("@vxe-ui/core");
38
38
  var import_vn = require("../../ui/src/vn");
39
39
  var import_log = require("../../ui/src/log");
40
40
  const { warnLog, errLog } = (0, import_log.createComponentLog)("toolbar");
41
- const { getConfig, getIcon, getI18n, renderer, commands, createEvent, useFns } = import_ui.VxeUI;
41
+ const { getConfig, getIcon, getI18n, renderer, commands, createEvent, useFns } = import_core.VxeUI;
42
42
  function createReactData() {
43
43
  return {
44
44
  isRefresh: false,
@@ -85,14 +85,11 @@ var toolbar_default = (0, import_comp.defineVxeComponent)({
85
85
  },
86
86
  className: [String, Function]
87
87
  },
88
- emits: [
89
- "button-click",
90
- "tool-click"
91
- ],
88
+ emits: ["button-click", "tool-click"],
92
89
  setup(props, context) {
93
90
  const { slots, emit } = context;
94
91
  const xID = import_xe_utils.default.uniqueId();
95
- const VxeUIButtonComponent = import_ui.VxeUI.getComponent("VxeButton");
92
+ const VxeUIButtonComponent = import_core.VxeUI.getComponent("VxeButton");
96
93
  const $xeGrid = (0, import_vue.inject)("$xeGrid", null);
97
94
  const $xeGantt = (0, import_vue.inject)("$xeGantt", null);
98
95
  const $xeGGWrapper = $xeGrid || $xeGantt;
@@ -401,24 +398,32 @@ var toolbar_default = (0, import_comp.defineVxeComponent)({
401
398
  const toolbarButtonClassName = compConf.toolbarButtonClassName;
402
399
  const params = { $grid: $xeGrid, $gantt: $xeGantt, $table, button: item };
403
400
  btnVNs.push(
404
- (0, import_vue.h)("span", {
405
- key: `br${item.code || index}`,
406
- class: ["vxe-button--item", toolbarButtonClassName ? import_xe_utils.default.isFunction(toolbarButtonClassName) ? toolbarButtonClassName(params) : toolbarButtonClassName : ""]
407
- }, (0, import_vn.getSlotVNs)(compConf.renderToolbarButton(buttonRender, params)))
401
+ (0, import_vue.h)(
402
+ "span",
403
+ {
404
+ key: `br${item.code || index}`,
405
+ class: ["vxe-button--item", toolbarButtonClassName ? import_xe_utils.default.isFunction(toolbarButtonClassName) ? toolbarButtonClassName(params) : toolbarButtonClassName : ""]
406
+ },
407
+ (0, import_vn.getSlotVNs)(compConf.renderToolbarButton(buttonRender, params))
408
+ )
408
409
  );
409
410
  } else {
410
411
  if (VxeUIButtonComponent) {
411
412
  btnVNs.push(
412
- (0, import_vue.h)(VxeUIButtonComponent, {
413
- key: `bd${item.code || index}`,
414
- ...Object.assign({}, item, {
415
- content: item.content || item.name,
416
- options: void 0
417
- }),
418
- onClick: (eventParams) => btnEvent(eventParams, item)
419
- }, dropdowns && dropdowns.length ? {
420
- dropdowns: () => renderDropdowns(item, true)
421
- } : {})
413
+ (0, import_vue.h)(
414
+ VxeUIButtonComponent,
415
+ {
416
+ key: `bd${item.code || index}`,
417
+ ...Object.assign({}, item, {
418
+ content: item.content || item.name,
419
+ options: void 0
420
+ }),
421
+ onClick: (eventParams) => btnEvent(eventParams, item)
422
+ },
423
+ dropdowns && dropdowns.length ? {
424
+ dropdowns: () => renderDropdowns(item, true)
425
+ } : {}
426
+ )
422
427
  );
423
428
  }
424
429
  }
@@ -426,15 +431,27 @@ var toolbar_default = (0, import_comp.defineVxeComponent)({
426
431
  });
427
432
  }
428
433
  return [
429
- (0, import_vue.h)("div", {
430
- class: "vxe-button--prefix-wrapper"
431
- }, buttonPrefixSlot ? (0, import_vn.getSlotVNs)(buttonPrefixSlot({ buttons: buttons || [], $grid: $xeGrid, $gantt: $xeGantt, $table })) : []),
432
- (0, import_vue.h)("div", {
433
- class: "vxe-button--item-wrapper"
434
- }, buttonsSlot ? (0, import_vn.getSlotVNs)(buttonsSlot({ buttons: buttons || [], $grid: $xeGrid, $gantt: $xeGantt, $table })) : btnVNs),
435
- (0, import_vue.h)("div", {
436
- class: "vxe-button--suffix-wrapper"
437
- }, buttonSuffixSlot ? (0, import_vn.getSlotVNs)(buttonSuffixSlot({ buttons: buttons || [], $grid: $xeGrid, $gantt: $xeGantt, $table })) : [])
434
+ (0, import_vue.h)(
435
+ "div",
436
+ {
437
+ class: "vxe-button--prefix-wrapper"
438
+ },
439
+ buttonPrefixSlot ? (0, import_vn.getSlotVNs)(buttonPrefixSlot({ buttons: buttons || [], $grid: $xeGrid, $gantt: $xeGantt, $table })) : []
440
+ ),
441
+ (0, import_vue.h)(
442
+ "div",
443
+ {
444
+ class: "vxe-button--item-wrapper"
445
+ },
446
+ buttonsSlot ? (0, import_vn.getSlotVNs)(buttonsSlot({ buttons: buttons || [], $grid: $xeGrid, $gantt: $xeGantt, $table })) : btnVNs
447
+ ),
448
+ (0, import_vue.h)(
449
+ "div",
450
+ {
451
+ class: "vxe-button--suffix-wrapper"
452
+ },
453
+ buttonSuffixSlot ? (0, import_vn.getSlotVNs)(buttonSuffixSlot({ buttons: buttons || [], $grid: $xeGrid, $gantt: $xeGantt, $table })) : []
454
+ )
438
455
  ];
439
456
  };
440
457
  const renderRightTools = () => {
@@ -456,24 +473,32 @@ var toolbar_default = (0, import_comp.defineVxeComponent)({
456
473
  const toolbarToolClassName = compConf.toolbarToolClassName;
457
474
  const params = { $grid: $xeGrid, $gantt: $xeGantt, $table, tool: item };
458
475
  btnVNs.push(
459
- (0, import_vue.h)("span", {
460
- key: tIndex,
461
- class: ["vxe-tool--item", toolbarToolClassName ? import_xe_utils.default.isFunction(toolbarToolClassName) ? toolbarToolClassName(params) : toolbarToolClassName : ""]
462
- }, (0, import_vn.getSlotVNs)(compConf.renderToolbarTool(toolRender, params)))
476
+ (0, import_vue.h)(
477
+ "span",
478
+ {
479
+ key: tIndex,
480
+ class: ["vxe-tool--item", toolbarToolClassName ? import_xe_utils.default.isFunction(toolbarToolClassName) ? toolbarToolClassName(params) : toolbarToolClassName : ""]
481
+ },
482
+ (0, import_vn.getSlotVNs)(compConf.renderToolbarTool(toolRender, params))
483
+ )
463
484
  );
464
485
  } else {
465
486
  if (VxeUIButtonComponent) {
466
487
  btnVNs.push(
467
- (0, import_vue.h)(VxeUIButtonComponent, {
468
- key: tIndex,
469
- ...Object.assign({}, item, {
470
- content: item.content || item.name,
471
- options: void 0
472
- }),
473
- onClick: (eventParams) => tolEvent(eventParams, item)
474
- }, dropdowns && dropdowns.length ? {
475
- dropdowns: () => renderDropdowns(item, false)
476
- } : {})
488
+ (0, import_vue.h)(
489
+ VxeUIButtonComponent,
490
+ {
491
+ key: tIndex,
492
+ ...Object.assign({}, item, {
493
+ content: item.content || item.name,
494
+ options: void 0
495
+ }),
496
+ onClick: (eventParams) => tolEvent(eventParams, item)
497
+ },
498
+ dropdowns && dropdowns.length ? {
499
+ dropdowns: () => renderDropdowns(item, false)
500
+ } : {}
501
+ )
477
502
  );
478
503
  }
479
504
  }
@@ -481,15 +506,27 @@ var toolbar_default = (0, import_comp.defineVxeComponent)({
481
506
  });
482
507
  }
483
508
  return [
484
- (0, import_vue.h)("div", {
485
- class: "vxe-tool--prefix-wrapper"
486
- }, toolPrefixSlot ? (0, import_vn.getSlotVNs)(toolPrefixSlot({ tools: tools || [], $grid: $xeGrid, $gantt: $xeGantt, $table })) : []),
487
- (0, import_vue.h)("div", {
488
- class: "vxe-tool--item-wrapper"
489
- }, toolsSlot ? (0, import_vn.getSlotVNs)(toolsSlot({ tools: tools || [], $grid: $xeGrid, $gantt: $xeGantt, $table })) : btnVNs),
490
- (0, import_vue.h)("div", {
491
- class: "vxe-tool--suffix-wrapper"
492
- }, toolSuffixSlot ? (0, import_vn.getSlotVNs)(toolSuffixSlot({ tools: tools || [], $grid: $xeGrid, $gantt: $xeGantt, $table })) : [])
509
+ (0, import_vue.h)(
510
+ "div",
511
+ {
512
+ class: "vxe-tool--prefix-wrapper"
513
+ },
514
+ toolPrefixSlot ? (0, import_vn.getSlotVNs)(toolPrefixSlot({ tools: tools || [], $grid: $xeGrid, $gantt: $xeGantt, $table })) : []
515
+ ),
516
+ (0, import_vue.h)(
517
+ "div",
518
+ {
519
+ class: "vxe-tool--item-wrapper"
520
+ },
521
+ toolsSlot ? (0, import_vn.getSlotVNs)(toolsSlot({ tools: tools || [], $grid: $xeGrid, $gantt: $xeGantt, $table })) : btnVNs
522
+ ),
523
+ (0, import_vue.h)(
524
+ "div",
525
+ {
526
+ class: "vxe-tool--suffix-wrapper"
527
+ },
528
+ toolSuffixSlot ? (0, import_vn.getSlotVNs)(toolSuffixSlot({ tools: tools || [], $grid: $xeGrid, $gantt: $xeGantt, $table })) : []
529
+ )
493
530
  ];
494
531
  };
495
532
  const renderToolImport = () => {
@@ -565,31 +602,51 @@ var toolbar_default = (0, import_comp.defineVxeComponent)({
565
602
  const renderVN = () => {
566
603
  const { perfect, loading, refresh, zoom, custom, className } = props;
567
604
  const vSize = computeSize.value;
568
- return (0, import_vue.h)("div", {
569
- ref: refElem,
570
- class: ["vxe-toolbar", className ? import_xe_utils.default.isFunction(className) ? className({ $toolbar: $xeToolbar }) : className : "", {
571
- [`size--${vSize}`]: vSize,
572
- "is--perfect": perfect,
573
- "is--loading": loading
574
- }]
575
- }, [
576
- (0, import_vue.h)("div", {
577
- class: "vxe-buttons--wrapper"
578
- }, renderLeftBtns()),
579
- (0, import_vue.h)("div", {
580
- class: "vxe-tools--wrapper"
581
- }, renderRightTools()),
582
- (0, import_vue.h)("div", {
583
- class: "vxe-tools--operate"
584
- }, [
585
- props.import ? renderToolImport() : (0, import_vue.createCommentVNode)(),
586
- props.export ? renderToolExport() : (0, import_vue.createCommentVNode)(),
587
- props.print ? renderToolPrint() : (0, import_vue.createCommentVNode)(),
588
- refresh ? renderToolRefresh() : (0, import_vue.createCommentVNode)(),
589
- zoom && $xeGGWrapper ? renderToolZoom() : (0, import_vue.createCommentVNode)(),
590
- custom ? renderToolCustom() : (0, import_vue.createCommentVNode)()
591
- ])
592
- ]);
605
+ return (0, import_vue.h)(
606
+ "div",
607
+ {
608
+ ref: refElem,
609
+ class: [
610
+ "vxe-toolbar",
611
+ className ? import_xe_utils.default.isFunction(className) ? className({ $toolbar: $xeToolbar }) : className : "",
612
+ {
613
+ [`size--${vSize}`]: vSize,
614
+ "is--perfect": perfect,
615
+ "is--loading": loading
616
+ }
617
+ ]
618
+ },
619
+ [
620
+ (0, import_vue.h)(
621
+ "div",
622
+ {
623
+ class: "vxe-buttons--wrapper"
624
+ },
625
+ renderLeftBtns()
626
+ ),
627
+ (0, import_vue.h)(
628
+ "div",
629
+ {
630
+ class: "vxe-tools--wrapper"
631
+ },
632
+ renderRightTools()
633
+ ),
634
+ (0, import_vue.h)(
635
+ "div",
636
+ {
637
+ class: "vxe-tools--operate"
638
+ },
639
+ [
640
+ props.import ? renderToolImport() : (0, import_vue.createCommentVNode)(),
641
+ props.export ? renderToolExport() : (0, import_vue.createCommentVNode)(),
642
+ props.print ? renderToolPrint() : (0, import_vue.createCommentVNode)(),
643
+ refresh ? renderToolRefresh() : (0, import_vue.createCommentVNode)(),
644
+ zoom && $xeGGWrapper ? renderToolZoom() : (0, import_vue.createCommentVNode)(),
645
+ custom ? renderToolCustom() : (0, import_vue.createCommentVNode)()
646
+ ]
647
+ )
648
+ ]
649
+ );
593
650
  };
594
651
  $xeToolbar.renderVN = renderVN;
595
652
  (0, import_vue.nextTick)(() => {
package/lib/ui/index.js CHANGED
@@ -15,7 +15,6 @@ var __copyProps = (to, from, except, desc) => {
15
15
  }
16
16
  return to;
17
17
  };
18
- var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
19
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
19
  var ui_exports = {};
21
20
  __export(ui_exports, {
@@ -34,8 +33,7 @@ __export(ui_exports, {
34
33
  module.exports = __toCommonJS(ui_exports);
35
34
  var import_core = require("@vxe-ui/core");
36
35
  var import_utils = require("./src/utils");
37
- __reExport(ui_exports, require("@vxe-ui/core"), module.exports);
38
- const version = "4.23.7";
36
+ const version = "4.23.9";
39
37
  import_core.VxeUI.version = version;
40
38
  import_core.VxeUI.tableVersion = version;
41
39
  import_core.VxeUI.setConfig({
package/lib/ui/src/dom.js CHANGED
@@ -297,12 +297,15 @@ function wheelScrollTopTo(diffNum, cb) {
297
297
  });
298
298
  }
299
299
  function updatePanelPlacement(targetElem, panelElem, options) {
300
- const { defaultTop, defaultLeft, placement, defaultPlacement, appendTo, teleportTo, marginSize, isMinWidth } = Object.assign({
301
- appendTo: "",
302
- teleportTo: false,
303
- marginSize: 18,
304
- isMinWidth: true
305
- }, options);
300
+ const { defaultTop, defaultLeft, placement, defaultPlacement, appendTo, teleportTo, marginSize, isMinWidth } = Object.assign(
301
+ {
302
+ appendTo: "",
303
+ teleportTo: false,
304
+ marginSize: 18,
305
+ isMinWidth: true
306
+ },
307
+ options
308
+ );
306
309
  let panelPlacement = "bottom";
307
310
  let top = "";
308
311
  let bottom = "";
package/lib/ui/src/log.js CHANGED
@@ -25,7 +25,7 @@ __export(log_exports, {
25
25
  module.exports = __toCommonJS(log_exports);
26
26
  var import_core = require("@vxe-ui/core");
27
27
  const { log } = import_core.VxeUI;
28
- const tableVersion = `table v${"4.23.7"}`;
28
+ const tableVersion = `table v${"4.23.9"}`;
29
29
  function createComponentLog(name) {
30
30
  const uiVersion = import_core.VxeUI.uiVersion ? `ui v${import_core.VxeUI.uiVersion}` : "";
31
31
  const ganttVersion = import_core.VxeUI.ganttVersion ? `gantt v${import_core.VxeUI.ganttVersion}` : "";
@@ -17,7 +17,6 @@ var __copyProps = (to, from, except, desc) => {
17
17
  }
18
18
  return to;
19
19
  };
20
- var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
21
20
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
22
21
  // If the importer is in node compatibility mode or this is not an ESM
23
22
  // file that has been converted to a CommonJS file using a Babel-
@@ -33,5 +32,4 @@ __export(v_x_e_table_exports, {
33
32
  });
34
33
  module.exports = __toCommonJS(v_x_e_table_exports);
35
34
  var import_ui = __toESM(require("../ui"));
36
- __reExport(v_x_e_table_exports, require("../ui"), module.exports);
37
35
  var v_x_e_table_default = import_ui.default;
package/package.json CHANGED
@@ -1,12 +1,16 @@
1
1
  {
2
2
  "name": "vxe-table",
3
- "version": "4.23.7",
3
+ "version": "4.23.9",
4
4
  "description": "A PC-end table component based on Vxe UI, supporting copy-paste, data pivot table, and high-performance virtual list table solution.",
5
5
  "scripts": {
6
6
  "update": "npm install --legacy-peer-deps",
7
7
  "serve": "vue-cli-service serve",
8
- "lint": "vue-cli-service lint",
9
8
  "build": "vue-cli-service build",
9
+ "lint": "vue-cli-service lint",
10
+ "lint:es": "eslint packages/** types/**",
11
+ "lint:ox": "oxfmt --check packages/** types/**",
12
+ "esfix": "eslint --fix packages/** types/**",
13
+ "oxfix": "oxfmt packages/** types/** --write",
10
14
  "lib:pack": "vue-cli-service build --target lib --name index --dest lib_temp index.ts",
11
15
  "lib:modules": "gulp build",
12
16
  "lib:old": "npm run lib:pack && npm run lib:modules",
@@ -62,6 +66,7 @@
62
66
  "gulp-sourcemaps": "^3.0.0",
63
67
  "gulp-typescript": "^5.0.1",
64
68
  "gulp-uglify": "^3.0.2",
69
+ "oxfmt": "~0.51.0",
65
70
  "postcss": "^8.4.38",
66
71
  "rollup": "^4.53.3",
67
72
  "sass": "~1.101.7",
@@ -70,7 +75,7 @@
70
75
  "typescript": "~5.9.3",
71
76
  "vue": "3.4.27",
72
77
  "vue-router": "~4.5.1",
73
- "vxe-pc-ui": "4.20.24"
78
+ "vxe-pc-ui": "4.20.27"
74
79
  },
75
80
  "vetur": {
76
81
  "tags": "helper/vetur/tags.json",
@@ -1,22 +1,22 @@
1
- import { App } from 'vue'
2
- import { VxeUI } from '../ui'
3
- import VxeColgroupComponent from '../table/src/group'
4
-
5
- export const VxeColgroup = Object.assign({}, VxeColgroupComponent, {
6
- install (app: App) {
7
- app.component(VxeColgroupComponent.name as string, VxeColgroupComponent)
8
- // 兼容旧用法
9
- app.component('VxeTableColgroup', VxeColgroupComponent)
10
- }
11
- })
12
-
13
- if (VxeUI.dynamicApp) {
14
- VxeUI.dynamicApp.component(VxeColgroupComponent.name as string, VxeColgroupComponent)
15
- // 兼容旧用法
16
- VxeUI.dynamicApp.component('VxeTableColgroup', VxeColgroupComponent)
17
- }
18
-
19
- VxeUI.component(VxeColgroupComponent)
20
-
21
- export const Colgroup = VxeColgroup
22
- export default VxeColgroup
1
+ import { App } from 'vue'
2
+ import { VxeUI } from '@vxe-ui/core'
3
+ import VxeColgroupComponent from '../table/src/group'
4
+
5
+ export const VxeColgroup = Object.assign({}, VxeColgroupComponent, {
6
+ install(app: App) {
7
+ app.component(VxeColgroupComponent.name as string, VxeColgroupComponent)
8
+ // 兼容旧用法
9
+ app.component('VxeTableColgroup', VxeColgroupComponent)
10
+ }
11
+ })
12
+
13
+ if (VxeUI.dynamicApp) {
14
+ VxeUI.dynamicApp.component(VxeColgroupComponent.name as string, VxeColgroupComponent)
15
+ // 兼容旧用法
16
+ VxeUI.dynamicApp.component('VxeTableColgroup', VxeColgroupComponent)
17
+ }
18
+
19
+ VxeUI.component(VxeColgroupComponent)
20
+
21
+ export const Colgroup = VxeColgroup
22
+ export default VxeColgroup
@@ -1,22 +1,22 @@
1
- import { App } from 'vue'
2
- import { VxeUI } from '../ui'
3
- import VxeColumnComponent from '../table/src/column'
4
-
5
- export const VxeColumn = Object.assign({}, VxeColumnComponent, {
6
- install (app: App) {
7
- app.component(VxeColumnComponent.name as string, VxeColumnComponent)
8
- // 兼容旧用法
9
- app.component('VxeTableColumn', VxeColumnComponent)
10
- }
11
- })
12
-
13
- if (VxeUI.dynamicApp) {
14
- VxeUI.dynamicApp.component(VxeColumnComponent.name as string, VxeColumnComponent)
15
- // 兼容旧用法
16
- VxeUI.dynamicApp.component('VxeTableColumn', VxeColumnComponent)
17
- }
18
-
19
- VxeUI.component(VxeColumnComponent)
20
-
21
- export const Column = VxeColumn
22
- export default VxeColumn
1
+ import { App } from 'vue'
2
+ import { VxeUI } from '@vxe-ui/core'
3
+ import VxeColumnComponent from '../table/src/column'
4
+
5
+ export const VxeColumn = Object.assign({}, VxeColumnComponent, {
6
+ install(app: App) {
7
+ app.component(VxeColumnComponent.name as string, VxeColumnComponent)
8
+ // 兼容旧用法
9
+ app.component('VxeTableColumn', VxeColumnComponent)
10
+ }
11
+ })
12
+
13
+ if (VxeUI.dynamicApp) {
14
+ VxeUI.dynamicApp.component(VxeColumnComponent.name as string, VxeColumnComponent)
15
+ // 兼容旧用法
16
+ VxeUI.dynamicApp.component('VxeTableColumn', VxeColumnComponent)
17
+ }
18
+
19
+ VxeUI.component(VxeColumnComponent)
20
+
21
+ export const Column = VxeColumn
22
+ export default VxeColumn
@@ -1,43 +1,41 @@
1
- import { App } from 'vue'
2
- import { VxeUI } from './ui'
3
-
4
- import { VxeColumn } from './column'
5
- import { VxeColgroup } from './colgroup'
6
- import { VxeGrid } from './grid'
7
- import { VxeTable } from './table'
8
- import { VxeToolbar } from './toolbar'
9
-
10
- import zhCN from './locale/lang/zh-CN'
11
-
12
- import type { VxeGlobalConfig } from '../types'
13
-
14
- const components = [
15
- VxeColumn,
16
- VxeColgroup,
17
- VxeGrid,
18
- VxeTable,
19
- VxeToolbar
20
- ]
21
-
22
- // 默认安装
23
- export function install (app: App, options?: VxeGlobalConfig) {
24
- VxeUI.setConfig(options)
25
- components.forEach(component => component.install(app))
26
- }
27
-
28
- // 保留兼容老版本
29
- if (!VxeUI.hasLanguage('zh-CN')) {
30
- const defaultLanguage = 'zh-CN'
31
- VxeUI.setI18n(defaultLanguage, zhCN)
32
- VxeUI.setLanguage(defaultLanguage)
33
- }
34
- VxeUI.setTheme('light')
35
-
36
- export * from './ui'
37
-
38
- // Components
39
- export * from './table'
40
- export * from './column'
41
- export * from './colgroup'
42
- export * from './grid'
43
- export * from './toolbar'
1
+ import { App } from 'vue'
2
+ import { VxeUI } from '@vxe-ui/core'
3
+ import './ui'
4
+
5
+ import { VxeColumn } from './column'
6
+ import { VxeColgroup } from './colgroup'
7
+ import { VxeGrid } from './grid'
8
+ import { VxeTable } from './table'
9
+ import { VxeToolbar } from './toolbar'
10
+
11
+ import zhCN from './locale/lang/zh-CN'
12
+
13
+ import type { VxeGlobalConfig } from '../types'
14
+
15
+ const components = [VxeColumn, VxeColgroup, VxeGrid, VxeTable, VxeToolbar]
16
+
17
+ // 默认安装
18
+ export function install(app: App, options?: VxeGlobalConfig) {
19
+ VxeUI.setConfig(options)
20
+ components.forEach((component) => component.install(app))
21
+ }
22
+
23
+ // 保留兼容老版本
24
+ if (!VxeUI.hasLanguage('zh-CN')) {
25
+ const defaultLanguage = 'zh-CN'
26
+ VxeUI.setI18n(defaultLanguage, zhCN)
27
+ VxeUI.setLanguage(defaultLanguage)
28
+ }
29
+ VxeUI.setTheme('light')
30
+
31
+ export { VxeUI }
32
+
33
+ // 兼容老版本
34
+ export * from './ui'
35
+
36
+ // Components
37
+ export * from './table'
38
+ export * from './column'
39
+ export * from './colgroup'
40
+ export * from './grid'
41
+ export * from './toolbar'