vxe-table 4.17.24 → 4.17.26

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 (37) hide show
  1. package/es/index.css +1 -1
  2. package/es/index.min.css +1 -1
  3. package/es/style.css +1 -1
  4. package/es/style.min.css +1 -1
  5. package/es/toolbar/src/toolbar.js +26 -20
  6. package/es/toolbar/style.css +20 -4
  7. package/es/toolbar/style.min.css +1 -1
  8. package/es/ui/index.js +1 -1
  9. package/es/ui/src/log.js +1 -1
  10. package/es/vxe-toolbar/style.css +20 -4
  11. package/es/vxe-toolbar/style.min.css +1 -1
  12. package/lib/index.css +1 -1
  13. package/lib/index.min.css +1 -1
  14. package/lib/index.umd.js +50 -52
  15. package/lib/index.umd.min.js +1 -1
  16. package/lib/style.css +1 -1
  17. package/lib/style.min.css +1 -1
  18. package/lib/toolbar/src/toolbar.js +48 -50
  19. package/lib/toolbar/src/toolbar.min.js +1 -1
  20. package/lib/toolbar/style/style.css +20 -4
  21. package/lib/toolbar/style/style.min.css +1 -1
  22. package/lib/ui/index.js +1 -1
  23. package/lib/ui/index.min.js +1 -1
  24. package/lib/ui/src/log.js +1 -1
  25. package/lib/ui/src/log.min.js +1 -1
  26. package/lib/vxe-toolbar/style/style.css +20 -4
  27. package/lib/vxe-toolbar/style/style.min.css +1 -1
  28. package/package.json +2 -3
  29. package/packages/table/src/table.ts +1 -1
  30. package/packages/toolbar/src/toolbar.ts +26 -20
  31. package/styles/components/toolbar.scss +20 -4
  32. /package/es/{iconfont.1764729060815.ttf → iconfont.1764834414498.ttf} +0 -0
  33. /package/es/{iconfont.1764729060815.woff → iconfont.1764834414498.woff} +0 -0
  34. /package/es/{iconfont.1764729060815.woff2 → iconfont.1764834414498.woff2} +0 -0
  35. /package/lib/{iconfont.1764729060815.ttf → iconfont.1764834414498.ttf} +0 -0
  36. /package/lib/{iconfont.1764729060815.woff → iconfont.1764834414498.woff} +0 -0
  37. /package/lib/{iconfont.1764729060815.woff2 → iconfont.1764834414498.woff2} +0 -0
package/lib/index.umd.js CHANGED
@@ -3141,7 +3141,7 @@ function eqEmptyValue(cellValue) {
3141
3141
  ;// ./packages/ui/index.ts
3142
3142
 
3143
3143
 
3144
- const version = "4.17.24";
3144
+ const version = "4.17.26";
3145
3145
  core_.VxeUI.version = version;
3146
3146
  core_.VxeUI.tableVersion = version;
3147
3147
  core_.VxeUI.setConfig({
@@ -3656,7 +3656,7 @@ var esnext_iterator_some = __webpack_require__(7550);
3656
3656
  const {
3657
3657
  log: log_log
3658
3658
  } = core_.VxeUI;
3659
- const log_version = `table v${"4.17.24"}`;
3659
+ const log_version = `table v${"4.17.26"}`;
3660
3660
  const warnLog = log_log.create('warn', log_version);
3661
3661
  const errLog = log_log.create('error', log_version);
3662
3662
  ;// ./packages/table/src/columnInfo.ts
@@ -20417,17 +20417,10 @@ function toolbar_createInternalData() {
20417
20417
  connectTable
20418
20418
  } = internalData;
20419
20419
  const $table = connectTable;
20420
+ const buttonsSlot = slots.buttons;
20420
20421
  const buttonPrefixSlot = slots.buttonPrefix || slots['button-prefix'];
20421
20422
  const buttonSuffixSlot = slots.buttonSuffix || slots['button-suffix'];
20422
20423
  const btnVNs = [];
20423
- if (buttonPrefixSlot) {
20424
- btnVNs.push(...getSlotVNs(buttonPrefixSlot({
20425
- buttons: buttons || [],
20426
- $grid: $xeGrid,
20427
- $gantt: $xeGantt,
20428
- $table: $table
20429
- })));
20430
- }
20431
20424
  if (buttons) {
20432
20425
  buttons.forEach((item, index) => {
20433
20426
  const {
@@ -20465,15 +20458,28 @@ function toolbar_createInternalData() {
20465
20458
  }
20466
20459
  });
20467
20460
  }
20468
- if (buttonSuffixSlot) {
20469
- btnVNs.push(...getSlotVNs(buttonSuffixSlot({
20470
- buttons: buttons || [],
20471
- $grid: $xeGrid,
20472
- $gantt: $xeGantt,
20473
- $table: $table
20474
- })));
20475
- }
20476
- return btnVNs;
20461
+ return [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
20462
+ class: 'vxe-button--prefix-wrapper'
20463
+ }, buttonPrefixSlot ? getSlotVNs(buttonPrefixSlot({
20464
+ buttons: buttons || [],
20465
+ $grid: $xeGrid,
20466
+ $gantt: $xeGantt,
20467
+ $table: $table
20468
+ })) : []), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
20469
+ class: 'vxe-button--item-wrapper'
20470
+ }, buttonsSlot ? getSlotVNs(buttonsSlot({
20471
+ buttons: buttons || [],
20472
+ $grid: $xeGrid,
20473
+ $gantt: $xeGantt,
20474
+ $table: $table
20475
+ })) : btnVNs), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
20476
+ class: 'vxe-button--suffix-wrapper'
20477
+ }, buttonSuffixSlot ? getSlotVNs(buttonSuffixSlot({
20478
+ buttons: buttons || [],
20479
+ $grid: $xeGrid,
20480
+ $gantt: $xeGantt,
20481
+ $table: $table
20482
+ })) : [])];
20477
20483
  };
20478
20484
  /**
20479
20485
  * 渲染右侧工具
@@ -20486,17 +20492,10 @@ function toolbar_createInternalData() {
20486
20492
  connectTable
20487
20493
  } = internalData;
20488
20494
  const $table = connectTable;
20495
+ const toolsSlot = slots.tools;
20489
20496
  const toolPrefixSlot = slots.toolPrefix || slots['tool-prefix'];
20490
20497
  const toolSuffixSlot = slots.toolSuffix || slots['tool-suffix'];
20491
20498
  const btnVNs = [];
20492
- if (toolPrefixSlot) {
20493
- btnVNs.push(...getSlotVNs(toolPrefixSlot({
20494
- tools: tools || [],
20495
- $grid: $xeGrid,
20496
- $gantt: $xeGantt,
20497
- $table: $table
20498
- })));
20499
- }
20500
20499
  if (tools) {
20501
20500
  tools.forEach((item, tIndex) => {
20502
20501
  const {
@@ -20535,15 +20534,28 @@ function toolbar_createInternalData() {
20535
20534
  }
20536
20535
  });
20537
20536
  }
20538
- if (toolSuffixSlot) {
20539
- btnVNs.push(...getSlotVNs(toolSuffixSlot({
20540
- tools: tools || [],
20541
- $grid: $xeGrid,
20542
- $gantt: $xeGantt,
20543
- $table: $table
20544
- })));
20545
- }
20546
- return btnVNs;
20537
+ return [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
20538
+ class: 'vxe-tool--prefix-wrapper'
20539
+ }, toolPrefixSlot ? getSlotVNs(toolPrefixSlot({
20540
+ tools: tools || [],
20541
+ $grid: $xeGrid,
20542
+ $gantt: $xeGantt,
20543
+ $table: $table
20544
+ })) : []), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
20545
+ class: 'vxe-tool--item-wrapper'
20546
+ }, toolsSlot ? getSlotVNs(toolsSlot({
20547
+ tools: tools || [],
20548
+ $grid: $xeGrid,
20549
+ $gantt: $xeGantt,
20550
+ $table: $table
20551
+ })) : btnVNs), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
20552
+ class: 'vxe-tool--suffix-wrapper'
20553
+ }, toolSuffixSlot ? getSlotVNs(toolSuffixSlot({
20554
+ tools: tools || [],
20555
+ $grid: $xeGrid,
20556
+ $gantt: $xeGantt,
20557
+ $table: $table
20558
+ })) : [])];
20547
20559
  };
20548
20560
  const renderToolImport = () => {
20549
20561
  const importOpts = computeImportOpts.value;
@@ -20627,13 +20639,7 @@ function toolbar_createInternalData() {
20627
20639
  custom,
20628
20640
  className
20629
20641
  } = props;
20630
- const {
20631
- connectTable
20632
- } = internalData;
20633
20642
  const vSize = computeSize.value;
20634
- const toolsSlot = slots.tools;
20635
- const buttonsSlot = slots.buttons;
20636
- const $table = connectTable;
20637
20643
  return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
20638
20644
  ref: refElem,
20639
20645
  class: ['vxe-toolbar', className ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(className) ? className({
@@ -20645,17 +20651,9 @@ function toolbar_createInternalData() {
20645
20651
  }]
20646
20652
  }, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
20647
20653
  class: 'vxe-buttons--wrapper'
20648
- }, buttonsSlot ? buttonsSlot({
20649
- $grid: $xeGrid,
20650
- $gantt: $xeGantt,
20651
- $table: $table
20652
- }) : renderLeftBtns()), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
20654
+ }, renderLeftBtns()), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
20653
20655
  class: 'vxe-tools--wrapper'
20654
- }, toolsSlot ? toolsSlot({
20655
- $grid: $xeGrid,
20656
- $gantt: $xeGantt,
20657
- $table: $table
20658
- }) : renderRightTools()), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
20656
+ }, renderRightTools()), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
20659
20657
  class: 'vxe-tools--operate'
20660
20658
  }, [props.import ? renderToolImport() : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)(), props.export ? renderToolExport() : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)(), props.print ? renderToolPrint() : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)(), refresh ? renderToolRefresh() : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)(), zoom && $xeGGWrapper ? renderToolZoom() : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)(), custom ? renderToolCustom() : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)()])]);
20661
20659
  };