vxe-table 3.23.8 → 3.23.10

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/table/src/cell.js +39 -5
  6. package/es/table/style.css +1 -2
  7. package/es/table/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-table/style.css +1 -2
  11. package/es/vxe-table/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 +39 -5
  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/table/src/cell.js +37 -3
  19. package/lib/table/src/cell.min.js +1 -1
  20. package/lib/table/style/style.css +1 -2
  21. package/lib/table/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-table/style/style.css +1 -2
  27. package/lib/vxe-table/style/style.min.css +1 -1
  28. package/package.json +2 -2
  29. package/packages/table/src/cell.ts +51 -5
  30. package/styles/components/table.scss +10 -1
  31. /package/es/{iconfont.1788921173919.ttf → iconfont.1789034993794.ttf} +0 -0
  32. /package/es/{iconfont.1788921173919.woff → iconfont.1789034993794.woff} +0 -0
  33. /package/es/{iconfont.1788921173919.woff2 → iconfont.1789034993794.woff2} +0 -0
  34. /package/lib/{iconfont.1788921173919.ttf → iconfont.1789034993794.ttf} +0 -0
  35. /package/lib/{iconfont.1788921173919.woff → iconfont.1789034993794.woff} +0 -0
  36. /package/lib/{iconfont.1788921173919.woff2 → iconfont.1789034993794.woff2} +0 -0
package/lib/index.umd.js CHANGED
@@ -3314,7 +3314,7 @@ function getDefaultConfig(val1, def1) {
3314
3314
  /* unused harmony import specifier */ var VxeUI;
3315
3315
 
3316
3316
 
3317
- const version = "3.23.8";
3317
+ const version = "3.23.9";
3318
3318
  core_.VxeUI.version = version;
3319
3319
  core_.VxeUI.tableVersion = version;
3320
3320
  core_.VxeUI.setConfig({
@@ -4276,7 +4276,7 @@ function getPopupAppendElement(appendTo) {
4276
4276
  const {
4277
4277
  log: log_log
4278
4278
  } = core_.VxeUI;
4279
- const tableVersion = `table v${"3.23.8"}`;
4279
+ const tableVersion = `table v${"3.23.9"}`;
4280
4280
  function createComponentLog(name) {
4281
4281
  const uiVersion = core_.VxeUI.uiVersion ? `ui v${core_.VxeUI.uiVersion}` : '';
4282
4282
  const ganttVersion = core_.VxeUI.ganttVersion ? `gantt v${core_.VxeUI.ganttVersion}` : '';
@@ -5755,6 +5755,7 @@ function getSlotVNs(vns) {
5755
5755
 
5756
5756
 
5757
5757
  const {
5758
+ getConfig: cell_getConfig,
5758
5759
  getI18n: cell_getI18n,
5759
5760
  getIcon: cell_getIcon,
5760
5761
  renderer: cell_renderer,
@@ -6101,9 +6102,12 @@ function renderHeaderHandle(h, params) {
6101
6102
  editRender,
6102
6103
  slots
6103
6104
  } = column;
6104
- const headerSlot = slots ? slots.header : null;
6105
- if (headerSlot) {
6106
- return renderTitleContent(h, params, $table.callSlot(headerSlot, params, h));
6105
+ // 兼容已废弃方式
6106
+ if (cell_getConfig().tableHeadeSlotToTitleSlot !== 'obsolete') {
6107
+ const headerSlot = slots ? slots.header : null;
6108
+ if (headerSlot) {
6109
+ return renderTitleContent(h, params, $table.callSlot(headerSlot, params, h));
6110
+ }
6107
6111
  }
6108
6112
  switch (type) {
6109
6113
  case 'seq':
@@ -6166,6 +6170,7 @@ const Cell = {
6166
6170
  editConfig
6167
6171
  } = tableProps;
6168
6172
  const {
6173
+ slots,
6169
6174
  editRender,
6170
6175
  cellRender
6171
6176
  } = column;
@@ -6173,6 +6178,13 @@ const Cell = {
6173
6178
  const editRenderOpts = isEnableEdit && isEnableConf(editRender) ? editRender : null;
6174
6179
  const cellRenderOpts = isEnableConf(cellRender) ? cellRender : null;
6175
6180
  const renderOpts = editRenderOpts || cellRenderOpts;
6181
+ // 兼容已废弃方式
6182
+ if (cell_getConfig().tableHeadeSlotToTitleSlot === 'obsolete') {
6183
+ const headerSlot = slots ? slots.header : null;
6184
+ if (headerSlot) {
6185
+ return renderTitleContent(h, params, $table.callSlot(headerSlot, params, h));
6186
+ }
6187
+ }
6176
6188
  if (renderOpts) {
6177
6189
  const compConf = cell_renderer.get(renderOpts.name);
6178
6190
  const rtHeader = compConf ? compConf.renderTableHeader || compConf.renderHeader : null;
@@ -6507,6 +6519,14 @@ const Cell = {
6507
6519
  $table,
6508
6520
  column
6509
6521
  } = params;
6522
+ // 兼容已废弃方式
6523
+ if (cell_getConfig().tableHeadeSlotToTitleSlot === 'obsolete') {
6524
+ const {
6525
+ slots
6526
+ } = column;
6527
+ const headerSlot = slots ? slots.header : null;
6528
+ return renderHeaderCellBaseVNs(h, params, renderTitleContent(h, params, headerSlot ? $table.callSlot(headerSlot, params, h) : $table.getHeaderCellLabel(column)));
6529
+ }
6510
6530
  return renderHeaderCellBaseVNs(h, params, renderTitleContent(h, params, $table.getHeaderCellLabel(column)));
6511
6531
  },
6512
6532
  renderSeqCell(h, params) {
@@ -6546,6 +6566,13 @@ const Cell = {
6546
6566
  slots
6547
6567
  } = column;
6548
6568
  const titleSlot = slots ? slots.title : null;
6569
+ // 兼容已废弃方式
6570
+ if (cell_getConfig().tableHeadeSlotToTitleSlot === 'obsolete') {
6571
+ const headerSlot = slots ? slots.header : null;
6572
+ return renderHeaderCellBaseVNs(h, params, renderTitleContent(h, params, headerSlot ? $table.callSlot(headerSlot, params, h) : [h('span', {
6573
+ class: 'vxe-radio--label'
6574
+ }, titleSlot ? $table.callSlot(titleSlot, params, h) : $table.getHeaderCellLabel(column))]));
6575
+ }
6549
6576
  return renderHeaderCellBaseVNs(h, params, renderTitleContent(h, params, [h('span', {
6550
6577
  class: 'vxe-radio--label'
6551
6578
  }, titleSlot ? $table.callSlot(titleSlot, params, h) : $table.getHeaderCellLabel(column))]));
@@ -6667,6 +6694,13 @@ const Cell = {
6667
6694
  disabled: isAllCheckboxDisabled,
6668
6695
  indeterminate: isAllCheckboxIndeterminate
6669
6696
  };
6697
+ // 兼容已废弃方式
6698
+ if (cell_getConfig().tableHeadeSlotToTitleSlot === 'obsolete') {
6699
+ const headerSlot = slots ? slots.header : null;
6700
+ if (headerSlot) {
6701
+ return renderHeaderCellBaseVNs(h, params, renderTitleContent(h, checkboxParams, $table.callSlot(headerSlot, checkboxParams, h)));
6702
+ }
6703
+ }
6670
6704
  if (checkStrictly ? !showHeader : showHeader === false) {
6671
6705
  return renderHeaderCellBaseVNs(h, params, renderTitleContent(h, checkboxParams, [h('span', {
6672
6706
  class: 'vxe-checkbox--label'