vxe-table 3.19.24 → 3.19.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 (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 +103 -81
  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 +127 -105
  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 +127 -105
  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/toolbar/src/toolbar.ts +117 -83
  30. package/styles/components/toolbar.scss +11 -4
  31. /package/es/{iconfont.1764729035952.ttf → iconfont.1764811551687.ttf} +0 -0
  32. /package/es/{iconfont.1764729035952.woff → iconfont.1764811551687.woff} +0 -0
  33. /package/es/{iconfont.1764729035952.woff2 → iconfont.1764811551687.woff2} +0 -0
  34. /package/lib/{iconfont.1764729035952.ttf → iconfont.1764811551687.ttf} +0 -0
  35. /package/lib/{iconfont.1764729035952.woff → iconfont.1764811551687.woff} +0 -0
  36. /package/lib/{iconfont.1764729035952.woff2 → iconfont.1764811551687.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.24";
2008
+ const version = "3.19.25";
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.24"}`;
2718
+ const log_version = `table v${"3.19.25"}`;
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
@@ -20245,64 +20245,83 @@ function toolbar_createInternalData() {
20245
20245
  connectTable
20246
20246
  } = internalData;
20247
20247
  const $table = connectTable;
20248
+ const buttonsSlot = slots.buttons;
20248
20249
  const buttonPrefixSlot = slots.buttonPrefix || slots['button-prefix'];
20249
20250
  const buttonSuffixSlot = slots.buttonSuffix || slots['button-suffix'];
20250
- const btnVNs = [];
20251
+ const lbVNs = [];
20251
20252
  if (buttonPrefixSlot) {
20252
- btnVNs.push(...getSlotVNs(buttonPrefixSlot.call($xeToolbar, {
20253
+ lbVNs.push(h('span', {
20254
+ key: 'tbp',
20255
+ class: 'vxe-button--prefix-wrapper'
20256
+ }, getSlotVNs(buttonPrefixSlot.call($xeToolbar, {
20253
20257
  buttons: buttons || [],
20254
20258
  $grid: $xeGrid,
20255
20259
  $gantt: $xeGantt,
20256
20260
  $table: $table
20257
- })));
20261
+ }))));
20258
20262
  }
20259
- if (buttons) {
20260
- buttons.forEach(item => {
20261
- const {
20262
- dropdowns,
20263
- buttonRender
20264
- } = item;
20265
- if (item.visible !== false) {
20266
- const compConf = buttonRender ? toolbar_renderer.get(buttonRender.name) : null;
20267
- if (buttonRender && compConf && compConf.renderToolbarButton) {
20268
- const toolbarButtonClassName = compConf.toolbarButtonClassName;
20269
- const params = {
20270
- $grid: $xeGrid,
20271
- $gantt: $xeGantt,
20272
- $table: $table,
20273
- button: item
20274
- };
20275
- btnVNs.push(h('span', {
20276
- class: ['vxe-button--item', toolbarButtonClassName ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(toolbarButtonClassName) ? toolbarButtonClassName(params) : toolbarButtonClassName : '']
20277
- }, getSlotVNs(compConf.renderToolbarButton(h, buttonRender, params))));
20278
- } else {
20279
- if (VxeUIButtonComponent) {
20280
- btnVNs.push(h(VxeUIButtonComponent, {
20281
- props: Object.assign({}, item, {
20282
- content: item.content || item.name,
20283
- options: undefined
20284
- }),
20285
- on: {
20286
- click: eventParams => $xeToolbar.btnEvent(eventParams, item)
20287
- },
20288
- scopedSlots: dropdowns && dropdowns.length ? {
20289
- dropdowns: () => $xeToolbar.renderDropdowns(h, item, true)
20290
- } : {}
20291
- }));
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
+ }
20292
20299
  }
20293
20300
  }
20294
- }
20295
- });
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));
20296
20312
  }
20297
20313
  if (buttonSuffixSlot) {
20298
- btnVNs.push(...getSlotVNs(buttonSuffixSlot.call($xeToolbar, {
20314
+ lbVNs.push(h('span', {
20315
+ key: 'tbs',
20316
+ class: 'vxe-button--suffix-wrapper'
20317
+ }, getSlotVNs(buttonSuffixSlot.call($xeToolbar, {
20299
20318
  buttons: buttons || [],
20300
20319
  $grid: $xeGrid,
20301
20320
  $gantt: $xeGantt,
20302
20321
  $table: $table
20303
- })));
20322
+ }))));
20304
20323
  }
20305
- return btnVNs;
20324
+ return lbVNs;
20306
20325
  },
20307
20326
  /**
20308
20327
  * 渲染右侧工具
@@ -20323,67 +20342,86 @@ function toolbar_createInternalData() {
20323
20342
  connectTable
20324
20343
  } = internalData;
20325
20344
  const $table = connectTable;
20345
+ const toolsSlot = slots.tools;
20326
20346
  const toolPrefixSlot = slots.toolPrefix || slots['tool-prefix'];
20327
20347
  const toolSuffixSlot = slots.toolSuffix || slots['tool-suffix'];
20328
- const btnVNs = [];
20348
+ const rtVNs = [];
20329
20349
  if (toolPrefixSlot) {
20330
- btnVNs.push(...getSlotVNs(toolPrefixSlot.call($xeToolbar, {
20350
+ rtVNs.push(h('span', {
20351
+ key: 'ttp',
20352
+ class: 'vxe-tool--prefix-wrapper'
20353
+ }, getSlotVNs(toolPrefixSlot.call($xeToolbar, {
20331
20354
  tools: tools || [],
20332
20355
  $grid: $xeGrid,
20333
20356
  $gantt: $xeGantt,
20334
20357
  $table: $table
20335
- })));
20358
+ }))));
20336
20359
  }
20337
- if (tools) {
20338
- tools.forEach((item, tIndex) => {
20339
- const {
20340
- dropdowns,
20341
- toolRender
20342
- } = item;
20343
- if (item.visible !== false) {
20344
- const rdName = toolRender ? toolRender.name : null;
20345
- const compConf = toolRender ? toolbar_renderer.get(rdName) : null;
20346
- if (toolRender && compConf && compConf.renderToolbarTool) {
20347
- const toolbarToolClassName = compConf.toolbarToolClassName;
20348
- const params = {
20349
- $grid: $xeGrid,
20350
- $gantt: $xeGantt,
20351
- $table: $table,
20352
- tool: item
20353
- };
20354
- btnVNs.push(h('span', {
20355
- key: rdName,
20356
- class: ['vxe-tool--item', toolbarToolClassName ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(toolbarToolClassName) ? toolbarToolClassName(params) : toolbarToolClassName : '']
20357
- }, getSlotVNs(compConf.renderToolbarTool(h, toolRender, params))));
20358
- } else {
20359
- if (VxeUIButtonComponent) {
20360
- btnVNs.push(h(VxeUIButtonComponent, {
20361
- key: tIndex,
20362
- props: Object.assign({}, item, {
20363
- content: item.content || item.name,
20364
- options: undefined
20365
- }),
20366
- on: {
20367
- click: eventParams => $xeToolbar.tolEvent(eventParams, item)
20368
- },
20369
- scopedSlots: dropdowns && dropdowns.length ? {
20370
- dropdowns: () => $xeToolbar.renderDropdowns(h, item, false)
20371
- } : {}
20372
- }));
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
+ }
20373
20399
  }
20374
20400
  }
20375
- }
20376
- });
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));
20377
20412
  }
20378
20413
  if (toolSuffixSlot) {
20379
- btnVNs.push(...getSlotVNs(toolSuffixSlot.call($xeToolbar, {
20414
+ rtVNs.push(h('span', {
20415
+ key: 'tts',
20416
+ class: 'vxe-tool--suffix-wrapper'
20417
+ }, getSlotVNs(toolSuffixSlot.call($xeToolbar, {
20380
20418
  tools: tools || [],
20381
20419
  $grid: $xeGrid,
20382
20420
  $gantt: $xeGantt,
20383
20421
  $table: $table
20384
- })));
20422
+ }))));
20385
20423
  }
20386
- return btnVNs;
20424
+ return rtVNs;
20387
20425
  },
20388
20426
  renderToolImport(h) {
20389
20427
  // 使用已安装的组件,如果未安装则不渲染
@@ -20505,8 +20543,6 @@ function toolbar_createInternalData() {
20505
20543
  renderVN(h) {
20506
20544
  const $xeToolbar = this;
20507
20545
  const props = $xeToolbar;
20508
- const slots = $xeToolbar.$scopedSlots;
20509
- const internalData = $xeToolbar.internalData;
20510
20546
  const $xeGrid = $xeToolbar.$xeGrid;
20511
20547
  const $xeGantt = $xeToolbar.$xeGantt;
20512
20548
  const $xeGGWrapper = $xeGrid || $xeGantt;
@@ -20518,12 +20554,6 @@ function toolbar_createInternalData() {
20518
20554
  custom,
20519
20555
  className
20520
20556
  } = props;
20521
- const {
20522
- connectTable
20523
- } = internalData;
20524
- const $table = connectTable;
20525
- const toolsSlot = slots.tools;
20526
- const buttonsSlot = slots.buttons;
20527
20557
  const vSize = $xeToolbar.computeSize;
20528
20558
  return h('div', {
20529
20559
  ref: 'refElem',
@@ -20536,17 +20566,9 @@ function toolbar_createInternalData() {
20536
20566
  }]
20537
20567
  }, [h('div', {
20538
20568
  class: 'vxe-buttons--wrapper'
20539
- }, buttonsSlot ? buttonsSlot({
20540
- $grid: $xeGrid,
20541
- $gantt: $xeGantt,
20542
- $table: $table
20543
- }) : $xeToolbar.renderLeftBtns(h)), h('div', {
20569
+ }, $xeToolbar.renderLeftBtns(h)), h('div', {
20544
20570
  class: 'vxe-tools--wrapper'
20545
- }, toolsSlot ? toolsSlot({
20546
- $grid: $xeGrid,
20547
- $gantt: $xeGantt,
20548
- $table: $table
20549
- }) : $xeToolbar.renderRightTools(h)), h('div', {
20571
+ }, $xeToolbar.renderRightTools(h)), h('div', {
20550
20572
  class: 'vxe-tools--operate'
20551
20573
  }, [props.import ? $xeToolbar.renderToolImport(h) : toolbar_renderEmptyElement($xeToolbar), props.export ? $xeToolbar.renderToolExport(h) : toolbar_renderEmptyElement($xeToolbar), props.print ? $xeToolbar.renderToolPrint(h) : toolbar_renderEmptyElement($xeToolbar), refresh ? $xeToolbar.renderToolRefresh(h) : toolbar_renderEmptyElement($xeToolbar), zoom && $xeGGWrapper ? $xeToolbar.renderToolZoom(h) : toolbar_renderEmptyElement($xeToolbar), custom ? $xeToolbar.renderToolCustom(h) : toolbar_renderEmptyElement($xeToolbar)])]);
20552
20574
  }