vxe-table 3.19.24 → 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 +26 -22
  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 -54
  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 -52
  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/toolbar/src/toolbar.ts +26 -22
  30. package/styles/components/toolbar.scss +20 -4
  31. /package/es/{iconfont.1764729035952.ttf → iconfont.1764834392345.ttf} +0 -0
  32. /package/es/{iconfont.1764729035952.woff → iconfont.1764834392345.woff} +0 -0
  33. /package/es/{iconfont.1764729035952.woff2 → iconfont.1764834392345.woff2} +0 -0
  34. /package/lib/{iconfont.1764729035952.ttf → iconfont.1764834392345.ttf} +0 -0
  35. /package/lib/{iconfont.1764729035952.woff → iconfont.1764834392345.woff} +0 -0
  36. /package/lib/{iconfont.1764729035952.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.24";
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.24"}`;
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
@@ -20245,17 +20245,10 @@ 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
20251
  const btnVNs = [];
20251
- if (buttonPrefixSlot) {
20252
- btnVNs.push(...getSlotVNs(buttonPrefixSlot.call($xeToolbar, {
20253
- buttons: buttons || [],
20254
- $grid: $xeGrid,
20255
- $gantt: $xeGantt,
20256
- $table: $table
20257
- })));
20258
- }
20259
20252
  if (buttons) {
20260
20253
  buttons.forEach(item => {
20261
20254
  const {
@@ -20294,15 +20287,28 @@ function toolbar_createInternalData() {
20294
20287
  }
20295
20288
  });
20296
20289
  }
20297
- if (buttonSuffixSlot) {
20298
- btnVNs.push(...getSlotVNs(buttonSuffixSlot.call($xeToolbar, {
20299
- buttons: buttons || [],
20300
- $grid: $xeGrid,
20301
- $gantt: $xeGantt,
20302
- $table: $table
20303
- })));
20304
- }
20305
- return btnVNs;
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
+ })) : [])];
20306
20312
  },
20307
20313
  /**
20308
20314
  * 渲染右侧工具
@@ -20323,17 +20329,10 @@ function toolbar_createInternalData() {
20323
20329
  connectTable
20324
20330
  } = internalData;
20325
20331
  const $table = connectTable;
20332
+ const toolsSlot = slots.tools;
20326
20333
  const toolPrefixSlot = slots.toolPrefix || slots['tool-prefix'];
20327
20334
  const toolSuffixSlot = slots.toolSuffix || slots['tool-suffix'];
20328
20335
  const btnVNs = [];
20329
- if (toolPrefixSlot) {
20330
- btnVNs.push(...getSlotVNs(toolPrefixSlot.call($xeToolbar, {
20331
- tools: tools || [],
20332
- $grid: $xeGrid,
20333
- $gantt: $xeGantt,
20334
- $table: $table
20335
- })));
20336
- }
20337
20336
  if (tools) {
20338
20337
  tools.forEach((item, tIndex) => {
20339
20338
  const {
@@ -20375,15 +20374,28 @@ function toolbar_createInternalData() {
20375
20374
  }
20376
20375
  });
20377
20376
  }
20378
- if (toolSuffixSlot) {
20379
- btnVNs.push(...getSlotVNs(toolSuffixSlot.call($xeToolbar, {
20380
- tools: tools || [],
20381
- $grid: $xeGrid,
20382
- $gantt: $xeGantt,
20383
- $table: $table
20384
- })));
20385
- }
20386
- return btnVNs;
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
+ })) : [])];
20387
20399
  },
20388
20400
  renderToolImport(h) {
20389
20401
  // 使用已安装的组件,如果未安装则不渲染
@@ -20505,8 +20517,6 @@ function toolbar_createInternalData() {
20505
20517
  renderVN(h) {
20506
20518
  const $xeToolbar = this;
20507
20519
  const props = $xeToolbar;
20508
- const slots = $xeToolbar.$scopedSlots;
20509
- const internalData = $xeToolbar.internalData;
20510
20520
  const $xeGrid = $xeToolbar.$xeGrid;
20511
20521
  const $xeGantt = $xeToolbar.$xeGantt;
20512
20522
  const $xeGGWrapper = $xeGrid || $xeGantt;
@@ -20518,12 +20528,6 @@ function toolbar_createInternalData() {
20518
20528
  custom,
20519
20529
  className
20520
20530
  } = props;
20521
- const {
20522
- connectTable
20523
- } = internalData;
20524
- const $table = connectTable;
20525
- const toolsSlot = slots.tools;
20526
- const buttonsSlot = slots.buttons;
20527
20531
  const vSize = $xeToolbar.computeSize;
20528
20532
  return h('div', {
20529
20533
  ref: 'refElem',
@@ -20536,17 +20540,9 @@ function toolbar_createInternalData() {
20536
20540
  }]
20537
20541
  }, [h('div', {
20538
20542
  class: 'vxe-buttons--wrapper'
20539
- }, buttonsSlot ? buttonsSlot({
20540
- $grid: $xeGrid,
20541
- $gantt: $xeGantt,
20542
- $table: $table
20543
- }) : $xeToolbar.renderLeftBtns(h)), h('div', {
20543
+ }, $xeToolbar.renderLeftBtns(h)), h('div', {
20544
20544
  class: 'vxe-tools--wrapper'
20545
- }, toolsSlot ? toolsSlot({
20546
- $grid: $xeGrid,
20547
- $gantt: $xeGantt,
20548
- $table: $table
20549
- }) : $xeToolbar.renderRightTools(h)), h('div', {
20545
+ }, $xeToolbar.renderRightTools(h)), h('div', {
20550
20546
  class: 'vxe-tools--operate'
20551
20547
  }, [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
20548
  }