vxe-table 3.19.25 → 3.19.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 +85 -103
  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 +121 -147
  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 +121 -147
  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 +91 -121
  30. package/styles/components/toolbar.scss +10 -1
  31. /package/es/{iconfont.1764811551687.ttf → iconfont.1764834392345.ttf} +0 -0
  32. /package/es/{iconfont.1764811551687.woff → iconfont.1764834392345.woff} +0 -0
  33. /package/es/{iconfont.1764811551687.woff2 → iconfont.1764834392345.woff2} +0 -0
  34. /package/lib/{iconfont.1764811551687.ttf → iconfont.1764834392345.ttf} +0 -0
  35. /package/lib/{iconfont.1764811551687.woff → iconfont.1764834392345.woff} +0 -0
  36. /package/lib/{iconfont.1764811551687.woff2 → iconfont.1764834392345.woff2} +0 -0
package/lib/index.umd.js CHANGED
@@ -2005,7 +2005,7 @@ function getClass(property, params) {
2005
2005
  ;// CONCATENATED MODULE: ./packages/ui/index.ts
2006
2006
 
2007
2007
 
2008
- const version = "3.19.25";
2008
+ const version = "3.19.26";
2009
2009
  core_.VxeUI.version = version;
2010
2010
  core_.VxeUI.tableVersion = version;
2011
2011
  core_.VxeUI.setConfig({
@@ -2715,7 +2715,7 @@ function isNodeElement(elem) {
2715
2715
  const {
2716
2716
  log: log_log
2717
2717
  } = core_.VxeUI;
2718
- const log_version = `table v${"3.19.25"}`;
2718
+ const log_version = `table v${"3.19.26"}`;
2719
2719
  const warnLog = log_log.create('warn', log_version);
2720
2720
  const errLog = log_log.create('error', log_version);
2721
2721
  ;// CONCATENATED MODULE: ./packages/table/src/columnInfo.ts
@@ -20248,80 +20248,67 @@ function toolbar_createInternalData() {
20248
20248
  const buttonsSlot = slots.buttons;
20249
20249
  const buttonPrefixSlot = slots.buttonPrefix || slots['button-prefix'];
20250
20250
  const buttonSuffixSlot = slots.buttonSuffix || slots['button-suffix'];
20251
- const lbVNs = [];
20252
- if (buttonPrefixSlot) {
20253
- lbVNs.push(h('span', {
20254
- key: 'tbp',
20255
- class: 'vxe-button--prefix-wrapper'
20256
- }, getSlotVNs(buttonPrefixSlot.call($xeToolbar, {
20257
- buttons: buttons || [],
20258
- $grid: $xeGrid,
20259
- $gantt: $xeGantt,
20260
- $table: $table
20261
- }))));
20262
- }
20263
- if (buttons || buttonsSlot) {
20264
- const btnVNs = [];
20265
- if (buttons) {
20266
- buttons.forEach(item => {
20267
- const {
20268
- dropdowns,
20269
- buttonRender
20270
- } = item;
20271
- if (item.visible !== false) {
20272
- const compConf = buttonRender ? toolbar_renderer.get(buttonRender.name) : null;
20273
- if (buttonRender && compConf && compConf.renderToolbarButton) {
20274
- const toolbarButtonClassName = compConf.toolbarButtonClassName;
20275
- const params = {
20276
- $grid: $xeGrid,
20277
- $gantt: $xeGantt,
20278
- $table: $table,
20279
- button: item
20280
- };
20281
- btnVNs.push(h('span', {
20282
- class: ['vxe-button--item', toolbarButtonClassName ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(toolbarButtonClassName) ? toolbarButtonClassName(params) : toolbarButtonClassName : '']
20283
- }, getSlotVNs(compConf.renderToolbarButton(h, buttonRender, params))));
20284
- } else {
20285
- if (VxeUIButtonComponent) {
20286
- btnVNs.push(h(VxeUIButtonComponent, {
20287
- props: Object.assign({}, item, {
20288
- content: item.content || item.name,
20289
- options: undefined
20290
- }),
20291
- on: {
20292
- click: eventParams => $xeToolbar.btnEvent(eventParams, item)
20293
- },
20294
- scopedSlots: dropdowns && dropdowns.length ? {
20295
- dropdowns: () => $xeToolbar.renderDropdowns(h, item, true)
20296
- } : {}
20297
- }));
20298
- }
20251
+ const btnVNs = [];
20252
+ if (buttons) {
20253
+ buttons.forEach(item => {
20254
+ const {
20255
+ dropdowns,
20256
+ buttonRender
20257
+ } = item;
20258
+ if (item.visible !== false) {
20259
+ const compConf = buttonRender ? toolbar_renderer.get(buttonRender.name) : null;
20260
+ if (buttonRender && compConf && compConf.renderToolbarButton) {
20261
+ const toolbarButtonClassName = compConf.toolbarButtonClassName;
20262
+ const params = {
20263
+ $grid: $xeGrid,
20264
+ $gantt: $xeGantt,
20265
+ $table: $table,
20266
+ button: item
20267
+ };
20268
+ btnVNs.push(h('span', {
20269
+ class: ['vxe-button--item', toolbarButtonClassName ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(toolbarButtonClassName) ? toolbarButtonClassName(params) : toolbarButtonClassName : '']
20270
+ }, getSlotVNs(compConf.renderToolbarButton(h, buttonRender, params))));
20271
+ } else {
20272
+ if (VxeUIButtonComponent) {
20273
+ btnVNs.push(h(VxeUIButtonComponent, {
20274
+ props: Object.assign({}, item, {
20275
+ content: item.content || item.name,
20276
+ options: undefined
20277
+ }),
20278
+ on: {
20279
+ click: eventParams => $xeToolbar.btnEvent(eventParams, item)
20280
+ },
20281
+ scopedSlots: dropdowns && dropdowns.length ? {
20282
+ dropdowns: () => $xeToolbar.renderDropdowns(h, item, true)
20283
+ } : {}
20284
+ }));
20299
20285
  }
20300
20286
  }
20301
- });
20302
- }
20303
- lbVNs.push(h('span', {
20304
- key: 'tti',
20305
- class: 'vxe-button--item-wrapper'
20306
- }, buttonsSlot ? getSlotVNs(buttonsSlot.call($xeToolbar, {
20307
- buttons: buttons || [],
20308
- $grid: $xeGrid,
20309
- $gantt: $xeGantt,
20310
- $table: $table
20311
- })) : btnVNs));
20312
- }
20313
- if (buttonSuffixSlot) {
20314
- lbVNs.push(h('span', {
20315
- key: 'tbs',
20316
- class: 'vxe-button--suffix-wrapper'
20317
- }, getSlotVNs(buttonSuffixSlot.call($xeToolbar, {
20318
- buttons: buttons || [],
20319
- $grid: $xeGrid,
20320
- $gantt: $xeGantt,
20321
- $table: $table
20322
- }))));
20287
+ }
20288
+ });
20323
20289
  }
20324
- return lbVNs;
20290
+ return [h('div', {
20291
+ class: 'vxe-button--prefix-wrapper'
20292
+ }, buttonPrefixSlot ? getSlotVNs(buttonPrefixSlot.call($xeToolbar, {
20293
+ buttons: buttons || [],
20294
+ $grid: $xeGrid,
20295
+ $gantt: $xeGantt,
20296
+ $table: $table
20297
+ })) : []), h('div', {
20298
+ class: 'vxe-button--item-wrapper'
20299
+ }, buttonsSlot ? getSlotVNs(buttonsSlot.call($xeToolbar, {
20300
+ buttons: buttons || [],
20301
+ $grid: $xeGrid,
20302
+ $gantt: $xeGantt,
20303
+ $table: $table
20304
+ })) : btnVNs), h('div', {
20305
+ class: 'vxe-button--suffix-wrapper'
20306
+ }, buttonSuffixSlot ? getSlotVNs(buttonSuffixSlot.call($xeToolbar, {
20307
+ buttons: buttons || [],
20308
+ $grid: $xeGrid,
20309
+ $gantt: $xeGantt,
20310
+ $table: $table
20311
+ })) : [])];
20325
20312
  },
20326
20313
  /**
20327
20314
  * 渲染右侧工具
@@ -20345,83 +20332,70 @@ function toolbar_createInternalData() {
20345
20332
  const toolsSlot = slots.tools;
20346
20333
  const toolPrefixSlot = slots.toolPrefix || slots['tool-prefix'];
20347
20334
  const toolSuffixSlot = slots.toolSuffix || slots['tool-suffix'];
20348
- const rtVNs = [];
20349
- if (toolPrefixSlot) {
20350
- rtVNs.push(h('span', {
20351
- key: 'ttp',
20352
- class: 'vxe-tool--prefix-wrapper'
20353
- }, getSlotVNs(toolPrefixSlot.call($xeToolbar, {
20354
- tools: tools || [],
20355
- $grid: $xeGrid,
20356
- $gantt: $xeGantt,
20357
- $table: $table
20358
- }))));
20359
- }
20360
- if (tools || toolsSlot) {
20361
- const btnVNs = [];
20362
- if (tools) {
20363
- tools.forEach((item, tIndex) => {
20364
- const {
20365
- dropdowns,
20366
- toolRender
20367
- } = item;
20368
- if (item.visible !== false) {
20369
- const rdName = toolRender ? toolRender.name : null;
20370
- const compConf = toolRender ? toolbar_renderer.get(rdName) : null;
20371
- if (toolRender && compConf && compConf.renderToolbarTool) {
20372
- const toolbarToolClassName = compConf.toolbarToolClassName;
20373
- const params = {
20374
- $grid: $xeGrid,
20375
- $gantt: $xeGantt,
20376
- $table: $table,
20377
- tool: item
20378
- };
20379
- btnVNs.push(h('span', {
20380
- key: rdName,
20381
- class: ['vxe-tool--item', toolbarToolClassName ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(toolbarToolClassName) ? toolbarToolClassName(params) : toolbarToolClassName : '']
20382
- }, getSlotVNs(compConf.renderToolbarTool(h, toolRender, params))));
20383
- } else {
20384
- if (VxeUIButtonComponent) {
20385
- btnVNs.push(h(VxeUIButtonComponent, {
20386
- key: tIndex,
20387
- props: Object.assign({}, item, {
20388
- content: item.content || item.name,
20389
- options: undefined
20390
- }),
20391
- on: {
20392
- click: eventParams => $xeToolbar.tolEvent(eventParams, item)
20393
- },
20394
- scopedSlots: dropdowns && dropdowns.length ? {
20395
- dropdowns: () => $xeToolbar.renderDropdowns(h, item, false)
20396
- } : {}
20397
- }));
20398
- }
20335
+ const btnVNs = [];
20336
+ if (tools) {
20337
+ tools.forEach((item, tIndex) => {
20338
+ const {
20339
+ dropdowns,
20340
+ toolRender
20341
+ } = item;
20342
+ if (item.visible !== false) {
20343
+ const rdName = toolRender ? toolRender.name : null;
20344
+ const compConf = toolRender ? toolbar_renderer.get(rdName) : null;
20345
+ if (toolRender && compConf && compConf.renderToolbarTool) {
20346
+ const toolbarToolClassName = compConf.toolbarToolClassName;
20347
+ const params = {
20348
+ $grid: $xeGrid,
20349
+ $gantt: $xeGantt,
20350
+ $table: $table,
20351
+ tool: item
20352
+ };
20353
+ btnVNs.push(h('span', {
20354
+ key: rdName,
20355
+ class: ['vxe-tool--item', toolbarToolClassName ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(toolbarToolClassName) ? toolbarToolClassName(params) : toolbarToolClassName : '']
20356
+ }, getSlotVNs(compConf.renderToolbarTool(h, toolRender, params))));
20357
+ } else {
20358
+ if (VxeUIButtonComponent) {
20359
+ btnVNs.push(h(VxeUIButtonComponent, {
20360
+ key: tIndex,
20361
+ props: Object.assign({}, item, {
20362
+ content: item.content || item.name,
20363
+ options: undefined
20364
+ }),
20365
+ on: {
20366
+ click: eventParams => $xeToolbar.tolEvent(eventParams, item)
20367
+ },
20368
+ scopedSlots: dropdowns && dropdowns.length ? {
20369
+ dropdowns: () => $xeToolbar.renderDropdowns(h, item, false)
20370
+ } : {}
20371
+ }));
20399
20372
  }
20400
20373
  }
20401
- });
20402
- }
20403
- rtVNs.push(h('span', {
20404
- key: 'tti',
20405
- class: 'vxe-tool--item-wrapper'
20406
- }, toolsSlot ? getSlotVNs(toolsSlot.call($xeToolbar, {
20407
- tools: tools || [],
20408
- $grid: $xeGrid,
20409
- $gantt: $xeGantt,
20410
- $table: $table
20411
- })) : btnVNs));
20412
- }
20413
- if (toolSuffixSlot) {
20414
- rtVNs.push(h('span', {
20415
- key: 'tts',
20416
- class: 'vxe-tool--suffix-wrapper'
20417
- }, getSlotVNs(toolSuffixSlot.call($xeToolbar, {
20418
- tools: tools || [],
20419
- $grid: $xeGrid,
20420
- $gantt: $xeGantt,
20421
- $table: $table
20422
- }))));
20374
+ }
20375
+ });
20423
20376
  }
20424
- return rtVNs;
20377
+ return [h('div', {
20378
+ class: 'vxe-tool--prefix-wrapper'
20379
+ }, toolPrefixSlot ? getSlotVNs(toolPrefixSlot.call($xeToolbar, {
20380
+ tools: tools || [],
20381
+ $grid: $xeGrid,
20382
+ $gantt: $xeGantt,
20383
+ $table: $table
20384
+ })) : []), h('div', {
20385
+ class: 'vxe-tool--item-wrapper'
20386
+ }, toolsSlot ? getSlotVNs(toolsSlot.call($xeToolbar, {
20387
+ tools: tools || [],
20388
+ $grid: $xeGrid,
20389
+ $gantt: $xeGantt,
20390
+ $table: $table
20391
+ })) : btnVNs), h('div', {
20392
+ class: 'vxe-tool--suffix-wrapper'
20393
+ }, toolSuffixSlot ? getSlotVNs(toolSuffixSlot.call($xeToolbar, {
20394
+ tools: tools || [],
20395
+ $grid: $xeGrid,
20396
+ $gantt: $xeGantt,
20397
+ $table: $table
20398
+ })) : [])];
20425
20399
  },
20426
20400
  renderToolImport(h) {
20427
20401
  // 使用已安装的组件,如果未安装则不渲染