vxe-table 4.17.25 → 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 (36) 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 +73 -91
  6. package/es/toolbar/style.css +10 -1
  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 +10 -1
  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 +117 -143
  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 +117 -143
  19. package/lib/toolbar/src/toolbar.min.js +1 -1
  20. package/lib/toolbar/style/style.css +10 -1
  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 +10 -1
  27. package/lib/vxe-toolbar/style/style.min.css +1 -1
  28. package/package.json +1 -1
  29. package/packages/toolbar/src/toolbar.ts +87 -117
  30. package/styles/components/toolbar.scss +10 -1
  31. /package/es/{iconfont.1764811572357.ttf → iconfont.1764834414498.ttf} +0 -0
  32. /package/es/{iconfont.1764811572357.woff → iconfont.1764834414498.woff} +0 -0
  33. /package/es/{iconfont.1764811572357.woff2 → iconfont.1764834414498.woff2} +0 -0
  34. /package/lib/{iconfont.1764811572357.ttf → iconfont.1764834414498.ttf} +0 -0
  35. /package/lib/{iconfont.1764811572357.woff → iconfont.1764834414498.woff} +0 -0
  36. /package/lib/{iconfont.1764811572357.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.25";
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.25"}`;
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
@@ -20420,79 +20420,66 @@ function toolbar_createInternalData() {
20420
20420
  const buttonsSlot = slots.buttons;
20421
20421
  const buttonPrefixSlot = slots.buttonPrefix || slots['button-prefix'];
20422
20422
  const buttonSuffixSlot = slots.buttonSuffix || slots['button-suffix'];
20423
- const lbVNs = [];
20424
- if (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({
20429
- buttons: buttons || [],
20430
- $grid: $xeGrid,
20431
- $gantt: $xeGantt,
20432
- $table: $table
20433
- }))));
20434
- }
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
- }
20423
+ const btnVNs = [];
20424
+ if (buttons) {
20425
+ buttons.forEach((item, index) => {
20426
+ const {
20427
+ dropdowns,
20428
+ buttonRender
20429
+ } = item;
20430
+ if (item.visible !== false) {
20431
+ const compConf = buttonRender ? toolbar_renderer.get(buttonRender.name) : null;
20432
+ if (buttonRender && compConf && compConf.renderToolbarButton) {
20433
+ const toolbarButtonClassName = compConf.toolbarButtonClassName;
20434
+ const params = {
20435
+ $grid: $xeGrid,
20436
+ $gantt: $xeGantt,
20437
+ $table: $table,
20438
+ button: item
20439
+ };
20440
+ btnVNs.push((0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
20441
+ key: `br${item.code || index}`,
20442
+ class: ['vxe-button--item', toolbarButtonClassName ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(toolbarButtonClassName) ? toolbarButtonClassName(params) : toolbarButtonClassName : '']
20443
+ }, getSlotVNs(compConf.renderToolbarButton(buttonRender, params))));
20444
+ } else {
20445
+ if (VxeUIButtonComponent) {
20446
+ btnVNs.push((0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(VxeUIButtonComponent, {
20447
+ key: `bd${item.code || index}`,
20448
+ ...Object.assign({}, item, {
20449
+ content: item.content || item.name,
20450
+ options: undefined
20451
+ }),
20452
+ onClick: eventParams => btnEvent(eventParams, item)
20453
+ }, dropdowns && dropdowns.length ? {
20454
+ dropdowns: () => renderDropdowns(item, true)
20455
+ } : {}));
20470
20456
  }
20471
20457
  }
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));
20483
- }
20484
- if (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({
20489
- buttons: buttons || [],
20490
- $grid: $xeGrid,
20491
- $gantt: $xeGantt,
20492
- $table: $table
20493
- }))));
20458
+ }
20459
+ });
20494
20460
  }
20495
- return lbVNs;
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
+ })) : [])];
20496
20483
  };
20497
20484
  /**
20498
20485
  * 渲染右侧工具
@@ -20508,80 +20495,67 @@ function toolbar_createInternalData() {
20508
20495
  const toolsSlot = slots.tools;
20509
20496
  const toolPrefixSlot = slots.toolPrefix || slots['tool-prefix'];
20510
20497
  const toolSuffixSlot = slots.toolSuffix || slots['tool-suffix'];
20511
- const rtVNs = [];
20512
- if (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({
20517
- tools: tools || [],
20518
- $grid: $xeGrid,
20519
- $gantt: $xeGantt,
20520
- $table: $table
20521
- }))));
20522
- }
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
- }
20498
+ const btnVNs = [];
20499
+ if (tools) {
20500
+ tools.forEach((item, tIndex) => {
20501
+ const {
20502
+ dropdowns,
20503
+ toolRender
20504
+ } = item;
20505
+ if (item.visible !== false) {
20506
+ const rdName = toolRender ? toolRender.name : null;
20507
+ const compConf = toolRender ? toolbar_renderer.get(rdName) : null;
20508
+ if (toolRender && compConf && compConf.renderToolbarTool) {
20509
+ const toolbarToolClassName = compConf.toolbarToolClassName;
20510
+ const params = {
20511
+ $grid: $xeGrid,
20512
+ $gantt: $xeGantt,
20513
+ $table: $table,
20514
+ tool: item
20515
+ };
20516
+ btnVNs.push((0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
20517
+ key: rdName,
20518
+ class: ['vxe-tool--item', toolbarToolClassName ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(toolbarToolClassName) ? toolbarToolClassName(params) : toolbarToolClassName : '']
20519
+ }, getSlotVNs(compConf.renderToolbarTool(toolRender, params))));
20520
+ } else {
20521
+ if (VxeUIButtonComponent) {
20522
+ btnVNs.push((0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(VxeUIButtonComponent, {
20523
+ key: tIndex,
20524
+ ...Object.assign({}, item, {
20525
+ content: item.content || item.name,
20526
+ options: undefined
20527
+ }),
20528
+ onClick: eventParams => tolEvent(eventParams, item)
20529
+ }, dropdowns && dropdowns.length ? {
20530
+ dropdowns: () => renderDropdowns(item, false)
20531
+ } : {}));
20559
20532
  }
20560
20533
  }
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));
20572
- }
20573
- if (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({
20578
- tools: tools || [],
20579
- $grid: $xeGrid,
20580
- $gantt: $xeGantt,
20581
- $table: $table
20582
- }))));
20534
+ }
20535
+ });
20583
20536
  }
20584
- return rtVNs;
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
+ })) : [])];
20585
20559
  };
20586
20560
  const renderToolImport = () => {
20587
20561
  const importOpts = computeImportOpts.value;