vxe-table 4.23.8 → 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 (126) hide show
  1. package/dist/all.esm.js +5715 -3783
  2. package/es/components.d.ts +1 -0
  3. package/es/components.js +2 -7
  4. package/es/grid/src/emits.js +1 -15
  5. package/es/grid/src/grid.js +397 -120
  6. package/es/index.esm.js +1 -0
  7. package/es/index.js +1 -0
  8. package/es/table/module/custom/hook.js +49 -42
  9. package/es/table/module/custom/panel.js +777 -527
  10. package/es/table/module/edit/hook.js +140 -62
  11. package/es/table/module/export/export-panel.js +399 -316
  12. package/es/table/module/export/hook.js +395 -337
  13. package/es/table/module/export/import-panel.js +152 -123
  14. package/es/table/module/filter/hook.js +16 -2
  15. package/es/table/module/filter/panel.js +146 -84
  16. package/es/table/module/keyboard/hook.js +8 -4
  17. package/es/table/module/menu/panel.js +197 -126
  18. package/es/table/render/index.js +151 -98
  19. package/es/table/src/body.js +355 -233
  20. package/es/table/src/cell.js +426 -269
  21. package/es/table/src/columnInfo.js +1 -0
  22. package/es/table/src/footer.js +144 -99
  23. package/es/table/src/group.js +7 -3
  24. package/es/table/src/header.js +229 -172
  25. package/es/table/src/table.js +1503 -1030
  26. package/es/table/src/util.js +15 -19
  27. package/es/toolbar/src/toolbar.js +132 -75
  28. package/es/ui/index.js +1 -1
  29. package/es/ui/src/dom.js +9 -6
  30. package/es/ui/src/log.js +1 -1
  31. package/es/ui/src/utils.d.ts +1 -1
  32. package/lib/components.js +2 -7
  33. package/lib/grid/src/emits.js +1 -15
  34. package/lib/grid/src/grid.js +397 -120
  35. package/lib/index.common.js +1 -0
  36. package/lib/index.js +1 -0
  37. package/lib/index.umd.js +5732 -3800
  38. package/lib/index.umd.min.js +3 -3
  39. package/lib/table/module/custom/hook.js +49 -42
  40. package/lib/table/module/custom/panel.js +777 -527
  41. package/lib/table/module/edit/hook.js +140 -62
  42. package/lib/table/module/export/export-panel.js +399 -316
  43. package/lib/table/module/export/hook.js +395 -337
  44. package/lib/table/module/export/import-panel.js +152 -123
  45. package/lib/table/module/filter/hook.js +16 -2
  46. package/lib/table/module/filter/panel.js +146 -84
  47. package/lib/table/module/keyboard/hook.js +8 -4
  48. package/lib/table/module/menu/panel.js +197 -126
  49. package/lib/table/render/index.js +151 -98
  50. package/lib/table/src/body.js +355 -233
  51. package/lib/table/src/cell.js +426 -269
  52. package/lib/table/src/columnInfo.js +1 -0
  53. package/lib/table/src/footer.js +144 -99
  54. package/lib/table/src/group.js +7 -3
  55. package/lib/table/src/header.js +229 -172
  56. package/lib/table/src/table.js +1471 -1029
  57. package/lib/table/src/util.js +15 -19
  58. package/lib/toolbar/src/toolbar.js +132 -75
  59. package/lib/ui/index.js +1 -1
  60. package/lib/ui/src/dom.js +9 -6
  61. package/lib/ui/src/log.js +1 -1
  62. package/package.json +2 -2
  63. package/packages/colgroup/index.ts +22 -22
  64. package/packages/column/index.ts +22 -22
  65. package/packages/components.ts +41 -44
  66. package/packages/grid/index.ts +18 -18
  67. package/packages/grid/src/emits.ts +5 -19
  68. package/packages/grid/src/grid.ts +2229 -1925
  69. package/packages/grid/src/props.ts +22 -23
  70. package/packages/index.ts +11 -11
  71. package/packages/locale/lang/fr-FR.ts +15 -15
  72. package/packages/locale/lang/it-IT.ts +4 -4
  73. package/packages/locale/lang/uk-UA.ts +1 -1
  74. package/packages/locale/lang/uz-UZ.ts +13 -13
  75. package/packages/locale/lang/zh-CN.ts +907 -907
  76. package/packages/table/index.ts +26 -26
  77. package/packages/table/module/custom/hook.ts +510 -503
  78. package/packages/table/module/custom/panel.ts +2002 -1743
  79. package/packages/table/module/edit/hook.ts +1224 -1131
  80. package/packages/table/module/export/export-panel.ts +697 -611
  81. package/packages/table/module/export/hook.ts +2160 -2059
  82. package/packages/table/module/export/import-panel.ts +319 -279
  83. package/packages/table/module/export/util.ts +25 -24
  84. package/packages/table/module/filter/hook.ts +519 -501
  85. package/packages/table/module/filter/panel.ts +368 -304
  86. package/packages/table/module/keyboard/hook.ts +498 -494
  87. package/packages/table/module/menu/hook.ts +330 -330
  88. package/packages/table/module/menu/panel.ts +272 -201
  89. package/packages/table/module/validator/hook.ts +653 -635
  90. package/packages/table/render/index.ts +1819 -1744
  91. package/packages/table/src/body.ts +1078 -955
  92. package/packages/table/src/cell.ts +1524 -1359
  93. package/packages/table/src/column.ts +192 -192
  94. package/packages/table/src/columnInfo.ts +232 -232
  95. package/packages/table/src/emits.ts +134 -134
  96. package/packages/table/src/footer.ts +425 -380
  97. package/packages/table/src/group.ts +67 -63
  98. package/packages/table/src/header.ts +642 -581
  99. package/packages/table/src/props.ts +336 -336
  100. package/packages/table/src/store.ts +14 -14
  101. package/packages/table/src/table.ts +16011 -15454
  102. package/packages/table/src/use/cell-view.ts +41 -44
  103. package/packages/table/src/use/index.ts +1 -1
  104. package/packages/table/src/util.ts +1206 -1216
  105. package/packages/toolbar/index.ts +18 -18
  106. package/packages/toolbar/src/toolbar.ts +768 -706
  107. package/packages/ui/index.ts +519 -520
  108. package/packages/ui/src/anime.ts +51 -52
  109. package/packages/ui/src/comp.ts +3 -3
  110. package/packages/ui/src/dom.ts +466 -463
  111. package/packages/ui/src/log.ts +19 -19
  112. package/packages/ui/src/utils.ts +66 -66
  113. package/packages/ui/src/vn.ts +55 -55
  114. package/packages/v-x-e-table/index.d.ts +3 -3
  115. package/packages/v-x-e-table/index.ts +3 -3
  116. package/types/all.d.ts +76 -76
  117. package/types/index.d.ts +4 -4
  118. /package/dist/{iconfont.1793007753347.ttf → iconfont.1793009263429.ttf} +0 -0
  119. /package/dist/{iconfont.1793007753347.woff → iconfont.1793009263429.woff} +0 -0
  120. /package/dist/{iconfont.1793007753347.woff2 → iconfont.1793009263429.woff2} +0 -0
  121. /package/es/{iconfont.1793007753347.ttf → iconfont.1793009263429.ttf} +0 -0
  122. /package/es/{iconfont.1793007753347.woff → iconfont.1793009263429.woff} +0 -0
  123. /package/es/{iconfont.1793007753347.woff2 → iconfont.1793009263429.woff2} +0 -0
  124. /package/lib/{iconfont.1793007753347.ttf → iconfont.1793009263429.ttf} +0 -0
  125. /package/lib/{iconfont.1793007753347.woff → iconfont.1793009263429.woff} +0 -0
  126. /package/lib/{iconfont.1793007753347.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();
@@ -85,10 +85,7 @@ 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();
@@ -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
@@ -33,7 +33,7 @@ __export(ui_exports, {
33
33
  module.exports = __toCommonJS(ui_exports);
34
34
  var import_core = require("@vxe-ui/core");
35
35
  var import_utils = require("./src/utils");
36
- const version = "4.23.8";
36
+ const version = "4.23.9";
37
37
  import_core.VxeUI.version = version;
38
38
  import_core.VxeUI.tableVersion = version;
39
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.8"}`;
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}` : "";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vxe-table",
3
- "version": "4.23.8",
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",
@@ -75,7 +75,7 @@
75
75
  "typescript": "~5.9.3",
76
76
  "vue": "3.4.27",
77
77
  "vue-router": "~4.5.1",
78
- "vxe-pc-ui": "4.20.26"
78
+ "vxe-pc-ui": "4.20.27"
79
79
  },
80
80
  "vetur": {
81
81
  "tags": "helper/vetur/tags.json",
@@ -1,22 +1,22 @@
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
+ 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 '@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
+ 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,44 +1,41 @@
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 = [
16
- VxeColumn,
17
- VxeColgroup,
18
- VxeGrid,
19
- VxeTable,
20
- VxeToolbar
21
- ]
22
-
23
- // 默认安装
24
- export function install (app: App, options?: VxeGlobalConfig) {
25
- VxeUI.setConfig(options)
26
- components.forEach(component => component.install(app))
27
- }
28
-
29
- // 保留兼容老版本
30
- if (!VxeUI.hasLanguage('zh-CN')) {
31
- const defaultLanguage = 'zh-CN'
32
- VxeUI.setI18n(defaultLanguage, zhCN)
33
- VxeUI.setLanguage(defaultLanguage)
34
- }
35
- VxeUI.setTheme('light')
36
-
37
- export { VxeUI }
38
-
39
- // Components
40
- export * from './table'
41
- export * from './column'
42
- export * from './colgroup'
43
- export * from './grid'
44
- 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'
@@ -1,18 +1,18 @@
1
- import { App } from 'vue'
2
- import { VxeUI } from '@vxe-ui/core'
3
- import VxeGridComponent from './src/grid'
4
-
5
- export const VxeGrid = Object.assign({}, VxeGridComponent, {
6
- install (app: App) {
7
- app.component(VxeGridComponent.name as string, VxeGridComponent)
8
- }
9
- })
10
-
11
- if (VxeUI.dynamicApp) {
12
- VxeUI.dynamicApp.component(VxeGridComponent.name as string, VxeGridComponent)
13
- }
14
-
15
- VxeUI.component(VxeGridComponent)
16
-
17
- export const Grid = VxeGrid
18
- export default VxeGrid
1
+ import { App } from 'vue'
2
+ import { VxeUI } from '@vxe-ui/core'
3
+ import VxeGridComponent from './src/grid'
4
+
5
+ export const VxeGrid = Object.assign({}, VxeGridComponent, {
6
+ install(app: App) {
7
+ app.component(VxeGridComponent.name as string, VxeGridComponent)
8
+ }
9
+ })
10
+
11
+ if (VxeUI.dynamicApp) {
12
+ VxeUI.dynamicApp.component(VxeGridComponent.name as string, VxeGridComponent)
13
+ }
14
+
15
+ VxeUI.component(VxeGridComponent)
16
+
17
+ export const Grid = VxeGrid
18
+ export default VxeGrid
@@ -1,19 +1,5 @@
1
- import { tableEmits } from '../../table/src/emits'
2
-
3
- import type { VxeGridEmits } from '../../../types'
4
-
5
- export const gridEmits: VxeGridEmits = [
6
- ...tableEmits,
7
- 'page-change',
8
- 'form-submit',
9
- 'form-submit-invalid',
10
- 'form-reset',
11
- 'form-collapse',
12
- 'form-toggle-collapse',
13
- 'proxy-query',
14
- 'proxy-delete',
15
- 'proxy-save',
16
- 'toolbar-button-click',
17
- 'toolbar-tool-click',
18
- 'zoom'
19
- ]
1
+ import { tableEmits } from '../../table/src/emits'
2
+
3
+ import type { VxeGridEmits } from '../../../types'
4
+
5
+ export const gridEmits: VxeGridEmits = [...tableEmits, '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']