vxe-table 4.17.24 → 4.17.25

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 +91 -67
  6. package/es/toolbar/style.css +11 -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 +11 -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 +123 -99
  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 +123 -99
  19. package/lib/toolbar/src/toolbar.min.js +1 -1
  20. package/lib/toolbar/style/style.css +11 -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 +11 -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 +115 -79
  31. package/styles/components/toolbar.scss +11 -4
  32. /package/es/{iconfont.1764729060815.ttf → iconfont.1764811572357.ttf} +0 -0
  33. /package/es/{iconfont.1764729060815.woff → iconfont.1764811572357.woff} +0 -0
  34. /package/es/{iconfont.1764729060815.woff2 → iconfont.1764811572357.woff2} +0 -0
  35. /package/lib/{iconfont.1764729060815.ttf → iconfont.1764811572357.ttf} +0 -0
  36. /package/lib/{iconfont.1764729060815.woff → iconfont.1764811572357.woff} +0 -0
  37. /package/lib/{iconfont.1764729060815.woff2 → iconfont.1764811572357.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.25";
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.25"}`;
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,63 +20417,82 @@ 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
- const btnVNs = [];
20423
+ const lbVNs = [];
20423
20424
  if (buttonPrefixSlot) {
20424
- btnVNs.push(...getSlotVNs(buttonPrefixSlot({
20425
+ lbVNs.push((0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
20426
+ key: 'tbp',
20427
+ class: 'vxe-button--prefix-wrapper'
20428
+ }, getSlotVNs(buttonPrefixSlot({
20425
20429
  buttons: buttons || [],
20426
20430
  $grid: $xeGrid,
20427
20431
  $gantt: $xeGantt,
20428
20432
  $table: $table
20429
- })));
20433
+ }))));
20430
20434
  }
20431
- if (buttons) {
20432
- buttons.forEach((item, index) => {
20433
- const {
20434
- dropdowns,
20435
- buttonRender
20436
- } = item;
20437
- if (item.visible !== false) {
20438
- const compConf = buttonRender ? toolbar_renderer.get(buttonRender.name) : null;
20439
- if (buttonRender && compConf && compConf.renderToolbarButton) {
20440
- const toolbarButtonClassName = compConf.toolbarButtonClassName;
20441
- const params = {
20442
- $grid: $xeGrid,
20443
- $gantt: $xeGantt,
20444
- $table: $table,
20445
- button: item
20446
- };
20447
- btnVNs.push((0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
20448
- key: `br${item.code || index}`,
20449
- class: ['vxe-button--item', toolbarButtonClassName ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(toolbarButtonClassName) ? toolbarButtonClassName(params) : toolbarButtonClassName : '']
20450
- }, getSlotVNs(compConf.renderToolbarButton(buttonRender, params))));
20451
- } else {
20452
- if (VxeUIButtonComponent) {
20453
- btnVNs.push((0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(VxeUIButtonComponent, {
20454
- key: `bd${item.code || index}`,
20455
- ...Object.assign({}, item, {
20456
- content: item.content || item.name,
20457
- options: undefined
20458
- }),
20459
- onClick: eventParams => btnEvent(eventParams, item)
20460
- }, dropdowns && dropdowns.length ? {
20461
- dropdowns: () => renderDropdowns(item, true)
20462
- } : {}));
20435
+ if (buttons || buttonsSlot) {
20436
+ const btnVNs = [];
20437
+ if (buttons) {
20438
+ buttons.forEach((item, index) => {
20439
+ const {
20440
+ dropdowns,
20441
+ buttonRender
20442
+ } = item;
20443
+ if (item.visible !== false) {
20444
+ const compConf = buttonRender ? toolbar_renderer.get(buttonRender.name) : null;
20445
+ if (buttonRender && compConf && compConf.renderToolbarButton) {
20446
+ const toolbarButtonClassName = compConf.toolbarButtonClassName;
20447
+ const params = {
20448
+ $grid: $xeGrid,
20449
+ $gantt: $xeGantt,
20450
+ $table: $table,
20451
+ button: item
20452
+ };
20453
+ btnVNs.push((0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
20454
+ key: `br${item.code || index}`,
20455
+ class: ['vxe-button--item', toolbarButtonClassName ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(toolbarButtonClassName) ? toolbarButtonClassName(params) : toolbarButtonClassName : '']
20456
+ }, getSlotVNs(compConf.renderToolbarButton(buttonRender, params))));
20457
+ } else {
20458
+ if (VxeUIButtonComponent) {
20459
+ btnVNs.push((0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(VxeUIButtonComponent, {
20460
+ key: `bd${item.code || index}`,
20461
+ ...Object.assign({}, item, {
20462
+ content: item.content || item.name,
20463
+ options: undefined
20464
+ }),
20465
+ onClick: eventParams => btnEvent(eventParams, item)
20466
+ }, dropdowns && dropdowns.length ? {
20467
+ dropdowns: () => renderDropdowns(item, true)
20468
+ } : {}));
20469
+ }
20463
20470
  }
20464
20471
  }
20465
- }
20466
- });
20472
+ });
20473
+ }
20474
+ lbVNs.push((0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
20475
+ key: 'tti',
20476
+ class: 'vxe-button--item-wrapper'
20477
+ }, buttonsSlot ? getSlotVNs(buttonsSlot({
20478
+ buttons: buttons || [],
20479
+ $grid: $xeGrid,
20480
+ $gantt: $xeGantt,
20481
+ $table: $table
20482
+ })) : btnVNs));
20467
20483
  }
20468
20484
  if (buttonSuffixSlot) {
20469
- btnVNs.push(...getSlotVNs(buttonSuffixSlot({
20485
+ lbVNs.push((0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
20486
+ key: 'tbs',
20487
+ class: 'vxe-button--suffix-wrapper'
20488
+ }, getSlotVNs(buttonSuffixSlot({
20470
20489
  buttons: buttons || [],
20471
20490
  $grid: $xeGrid,
20472
20491
  $gantt: $xeGantt,
20473
20492
  $table: $table
20474
- })));
20493
+ }))));
20475
20494
  }
20476
- return btnVNs;
20495
+ return lbVNs;
20477
20496
  };
20478
20497
  /**
20479
20498
  * 渲染右侧工具
@@ -20486,64 +20505,83 @@ function toolbar_createInternalData() {
20486
20505
  connectTable
20487
20506
  } = internalData;
20488
20507
  const $table = connectTable;
20508
+ const toolsSlot = slots.tools;
20489
20509
  const toolPrefixSlot = slots.toolPrefix || slots['tool-prefix'];
20490
20510
  const toolSuffixSlot = slots.toolSuffix || slots['tool-suffix'];
20491
- const btnVNs = [];
20511
+ const rtVNs = [];
20492
20512
  if (toolPrefixSlot) {
20493
- btnVNs.push(...getSlotVNs(toolPrefixSlot({
20513
+ rtVNs.push((0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
20514
+ key: 'ttp',
20515
+ class: 'vxe-tool--prefix-wrapper'
20516
+ }, getSlotVNs(toolPrefixSlot({
20494
20517
  tools: tools || [],
20495
20518
  $grid: $xeGrid,
20496
20519
  $gantt: $xeGantt,
20497
20520
  $table: $table
20498
- })));
20521
+ }))));
20499
20522
  }
20500
- if (tools) {
20501
- tools.forEach((item, tIndex) => {
20502
- const {
20503
- dropdowns,
20504
- toolRender
20505
- } = item;
20506
- if (item.visible !== false) {
20507
- const rdName = toolRender ? toolRender.name : null;
20508
- const compConf = toolRender ? toolbar_renderer.get(rdName) : null;
20509
- if (toolRender && compConf && compConf.renderToolbarTool) {
20510
- const toolbarToolClassName = compConf.toolbarToolClassName;
20511
- const params = {
20512
- $grid: $xeGrid,
20513
- $gantt: $xeGantt,
20514
- $table: $table,
20515
- tool: item
20516
- };
20517
- btnVNs.push((0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
20518
- key: rdName,
20519
- class: ['vxe-tool--item', toolbarToolClassName ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(toolbarToolClassName) ? toolbarToolClassName(params) : toolbarToolClassName : '']
20520
- }, getSlotVNs(compConf.renderToolbarTool(toolRender, params))));
20521
- } else {
20522
- if (VxeUIButtonComponent) {
20523
- btnVNs.push((0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(VxeUIButtonComponent, {
20524
- key: tIndex,
20525
- ...Object.assign({}, item, {
20526
- content: item.content || item.name,
20527
- options: undefined
20528
- }),
20529
- onClick: eventParams => tolEvent(eventParams, item)
20530
- }, dropdowns && dropdowns.length ? {
20531
- dropdowns: () => renderDropdowns(item, false)
20532
- } : {}));
20523
+ if (tools || toolsSlot) {
20524
+ const btnVNs = [];
20525
+ if (tools) {
20526
+ tools.forEach((item, tIndex) => {
20527
+ const {
20528
+ dropdowns,
20529
+ toolRender
20530
+ } = item;
20531
+ if (item.visible !== false) {
20532
+ const rdName = toolRender ? toolRender.name : null;
20533
+ const compConf = toolRender ? toolbar_renderer.get(rdName) : null;
20534
+ if (toolRender && compConf && compConf.renderToolbarTool) {
20535
+ const toolbarToolClassName = compConf.toolbarToolClassName;
20536
+ const params = {
20537
+ $grid: $xeGrid,
20538
+ $gantt: $xeGantt,
20539
+ $table: $table,
20540
+ tool: item
20541
+ };
20542
+ btnVNs.push((0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
20543
+ key: rdName,
20544
+ class: ['vxe-tool--item', toolbarToolClassName ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(toolbarToolClassName) ? toolbarToolClassName(params) : toolbarToolClassName : '']
20545
+ }, getSlotVNs(compConf.renderToolbarTool(toolRender, params))));
20546
+ } else {
20547
+ if (VxeUIButtonComponent) {
20548
+ btnVNs.push((0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(VxeUIButtonComponent, {
20549
+ key: tIndex,
20550
+ ...Object.assign({}, item, {
20551
+ content: item.content || item.name,
20552
+ options: undefined
20553
+ }),
20554
+ onClick: eventParams => tolEvent(eventParams, item)
20555
+ }, dropdowns && dropdowns.length ? {
20556
+ dropdowns: () => renderDropdowns(item, false)
20557
+ } : {}));
20558
+ }
20533
20559
  }
20534
20560
  }
20535
- }
20536
- });
20561
+ });
20562
+ }
20563
+ rtVNs.push((0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
20564
+ key: 'tti',
20565
+ class: 'vxe-tool--item-wrapper'
20566
+ }, toolsSlot ? getSlotVNs(toolsSlot({
20567
+ tools: tools || [],
20568
+ $grid: $xeGrid,
20569
+ $gantt: $xeGantt,
20570
+ $table: $table
20571
+ })) : btnVNs));
20537
20572
  }
20538
20573
  if (toolSuffixSlot) {
20539
- btnVNs.push(...getSlotVNs(toolSuffixSlot({
20574
+ rtVNs.push((0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
20575
+ key: 'tts',
20576
+ class: 'vxe-tool--suffix-wrapper'
20577
+ }, getSlotVNs(toolSuffixSlot({
20540
20578
  tools: tools || [],
20541
20579
  $grid: $xeGrid,
20542
20580
  $gantt: $xeGantt,
20543
20581
  $table: $table
20544
- })));
20582
+ }))));
20545
20583
  }
20546
- return btnVNs;
20584
+ return rtVNs;
20547
20585
  };
20548
20586
  const renderToolImport = () => {
20549
20587
  const importOpts = computeImportOpts.value;
@@ -20627,13 +20665,7 @@ function toolbar_createInternalData() {
20627
20665
  custom,
20628
20666
  className
20629
20667
  } = props;
20630
- const {
20631
- connectTable
20632
- } = internalData;
20633
20668
  const vSize = computeSize.value;
20634
- const toolsSlot = slots.tools;
20635
- const buttonsSlot = slots.buttons;
20636
- const $table = connectTable;
20637
20669
  return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
20638
20670
  ref: refElem,
20639
20671
  class: ['vxe-toolbar', className ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(className) ? className({
@@ -20645,17 +20677,9 @@ function toolbar_createInternalData() {
20645
20677
  }]
20646
20678
  }, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
20647
20679
  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', {
20680
+ }, renderLeftBtns()), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
20653
20681
  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', {
20682
+ }, renderRightTools()), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
20659
20683
  class: 'vxe-tools--operate'
20660
20684
  }, [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
20685
  };