vxe-table 4.11.22 → 4.11.23

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.
@@ -548,7 +548,8 @@ export const Cell = {
548
548
  const headerSlot = slots ? slots.header : null;
549
549
  const titleSlot = slots ? slots.title : null;
550
550
  const checkboxOpts = computeCheckboxOpts.value;
551
- const headerTitle = column.getTitle();
551
+ const { checkStrictly, showHeader, headerTitle } = checkboxOpts;
552
+ const colTitle = column.getTitle();
552
553
  const ons = {};
553
554
  if (!isHidden) {
554
555
  ons.onClick = (evnt) => {
@@ -561,11 +562,11 @@ export const Cell = {
561
562
  if (headerSlot) {
562
563
  return renderHeaderCellBaseVNs(params, renderTitleContent(checkboxParams, $table.callSlot(headerSlot, checkboxParams)));
563
564
  }
564
- if (checkboxOpts.checkStrictly ? !checkboxOpts.showHeader : checkboxOpts.showHeader === false) {
565
+ if (checkStrictly ? !showHeader : showHeader === false) {
565
566
  return renderHeaderCellBaseVNs(params, renderTitleContent(checkboxParams, [
566
567
  h('span', {
567
568
  class: 'vxe-checkbox--label'
568
- }, titleSlot ? $table.callSlot(titleSlot, checkboxParams) : headerTitle)
569
+ }, titleSlot ? $table.callSlot(titleSlot, checkboxParams) : colTitle)
569
570
  ]));
570
571
  }
571
572
  return renderHeaderCellBaseVNs(params, renderTitleContent(checkboxParams, [
@@ -573,15 +574,15 @@ export const Cell = {
573
574
  'is--checked': isAllCheckboxSelected,
574
575
  'is--disabled': isAllCheckboxDisabled,
575
576
  'is--indeterminate': isAllCheckboxIndeterminate
576
- }], title: getI18n('vxe.table.allTitle') }, ons), [
577
+ }], title: XEUtils.eqNull(headerTitle) ? getI18n('vxe.table.allTitle') : `${headerTitle || ''}` }, ons), [
577
578
  h('span', {
578
579
  class: ['vxe-checkbox--icon', isAllCheckboxIndeterminate ? getIcon().TABLE_CHECKBOX_INDETERMINATE : (isAllCheckboxSelected ? getIcon().TABLE_CHECKBOX_CHECKED : getIcon().TABLE_CHECKBOX_UNCHECKED)]
579
580
  })
580
- ].concat(titleSlot || headerTitle
581
+ ].concat(titleSlot || colTitle
581
582
  ? [
582
583
  h('span', {
583
584
  class: 'vxe-checkbox--label'
584
- }, titleSlot ? $table.callSlot(titleSlot, checkboxParams) : headerTitle)
585
+ }, titleSlot ? $table.callSlot(titleSlot, checkboxParams) : colTitle)
585
586
  ]
586
587
  : []))
587
588
  ]));
@@ -809,7 +810,7 @@ export const Cell = {
809
810
  const { $table, column } = params;
810
811
  const { computeSortOpts } = $table.getComputeMaps();
811
812
  const sortOpts = computeSortOpts.value;
812
- const { showIcon, allowBtn, iconLayout, iconAsc, iconDesc, iconVisibleMethod } = sortOpts;
813
+ const { showIcon, allowBtn, ascTitle, descTitle, iconLayout, iconAsc, iconDesc, iconVisibleMethod } = sortOpts;
813
814
  const { order } = column;
814
815
  if (showIcon && (!iconVisibleMethod || iconVisibleMethod(params))) {
815
816
  return [
@@ -820,7 +821,7 @@ export const Cell = {
820
821
  class: ['vxe-sort--asc-btn', iconAsc || getIcon().TABLE_SORT_ASC, {
821
822
  'sort--active': order === 'asc'
822
823
  }],
823
- title: getI18n('vxe.table.sortAsc'),
824
+ title: XEUtils.eqNull(ascTitle) ? getI18n('vxe.table.sortAsc') : `${ascTitle || ''}`,
824
825
  onClick: allowBtn
825
826
  ? (evnt) => {
826
827
  evnt.stopPropagation();
@@ -832,7 +833,7 @@ export const Cell = {
832
833
  class: ['vxe-sort--desc-btn', iconDesc || getIcon().TABLE_SORT_DESC, {
833
834
  'sort--active': order === 'desc'
834
835
  }],
835
- title: getI18n('vxe.table.sortDesc'),
836
+ title: XEUtils.eqNull(descTitle) ? getI18n('vxe.table.sortDesc') : `${descTitle || ''}`,
836
837
  onClick: allowBtn
837
838
  ? (evnt) => {
838
839
  evnt.stopPropagation();
package/es/ui/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { VxeUI } from '@vxe-ui/core';
2
2
  import { getFuncText } from './src/utils';
3
- export const version = "4.11.22";
3
+ export const version = "4.11.23";
4
4
  VxeUI.version = version;
5
5
  VxeUI.tableVersion = version;
6
6
  VxeUI.setConfig({
package/es/ui/src/log.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { VxeUI } from '@vxe-ui/core';
2
2
  const { log } = VxeUI;
3
- const version = `table v${"4.11.22"}`;
3
+ const version = `table v${"4.11.23"}`;
4
4
  export const warnLog = log.create('warn', version);
5
5
  export const errLog = log.create('error', version);
package/lib/index.umd.js CHANGED
@@ -3051,7 +3051,7 @@ function eqEmptyValue(cellValue) {
3051
3051
  ;// ./packages/ui/index.ts
3052
3052
 
3053
3053
 
3054
- const version = "4.11.22";
3054
+ const version = "4.11.23";
3055
3055
  core_.VxeUI.version = version;
3056
3056
  core_.VxeUI.tableVersion = version;
3057
3057
  core_.VxeUI.setConfig({
@@ -3499,7 +3499,7 @@ var es_iterator_some = __webpack_require__(3579);
3499
3499
  const {
3500
3500
  log: log_log
3501
3501
  } = core_.VxeUI;
3502
- const log_version = `table v${"4.11.22"}`;
3502
+ const log_version = `table v${"4.11.23"}`;
3503
3503
  const warnLog = log_log.create('warn', log_version);
3504
3504
  const errLog = log_log.create('error', log_version);
3505
3505
  ;// ./packages/table/src/columnInfo.ts
@@ -5267,7 +5267,12 @@ const Cell = {
5267
5267
  const headerSlot = slots ? slots.header : null;
5268
5268
  const titleSlot = slots ? slots.title : null;
5269
5269
  const checkboxOpts = computeCheckboxOpts.value;
5270
- const headerTitle = column.getTitle();
5270
+ const {
5271
+ checkStrictly,
5272
+ showHeader,
5273
+ headerTitle
5274
+ } = checkboxOpts;
5275
+ const colTitle = column.getTitle();
5271
5276
  const ons = {};
5272
5277
  if (!isHidden) {
5273
5278
  ons.onClick = evnt => {
@@ -5285,10 +5290,10 @@ const Cell = {
5285
5290
  if (headerSlot) {
5286
5291
  return renderHeaderCellBaseVNs(params, renderTitleContent(checkboxParams, $table.callSlot(headerSlot, checkboxParams)));
5287
5292
  }
5288
- if (checkboxOpts.checkStrictly ? !checkboxOpts.showHeader : checkboxOpts.showHeader === false) {
5293
+ if (checkStrictly ? !showHeader : showHeader === false) {
5289
5294
  return renderHeaderCellBaseVNs(params, renderTitleContent(checkboxParams, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
5290
5295
  class: 'vxe-checkbox--label'
5291
- }, titleSlot ? $table.callSlot(titleSlot, checkboxParams) : headerTitle)]));
5296
+ }, titleSlot ? $table.callSlot(titleSlot, checkboxParams) : colTitle)]));
5292
5297
  }
5293
5298
  return renderHeaderCellBaseVNs(params, renderTitleContent(checkboxParams, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
5294
5299
  class: ['vxe-cell--checkbox', {
@@ -5296,13 +5301,13 @@ const Cell = {
5296
5301
  'is--disabled': isAllCheckboxDisabled,
5297
5302
  'is--indeterminate': isAllCheckboxIndeterminate
5298
5303
  }],
5299
- title: cell_getI18n('vxe.table.allTitle'),
5304
+ title: external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(headerTitle) ? cell_getI18n('vxe.table.allTitle') : `${headerTitle || ''}`,
5300
5305
  ...ons
5301
5306
  }, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
5302
5307
  class: ['vxe-checkbox--icon', isAllCheckboxIndeterminate ? cell_getIcon().TABLE_CHECKBOX_INDETERMINATE : isAllCheckboxSelected ? cell_getIcon().TABLE_CHECKBOX_CHECKED : cell_getIcon().TABLE_CHECKBOX_UNCHECKED]
5303
- })].concat(titleSlot || headerTitle ? [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
5308
+ })].concat(titleSlot || colTitle ? [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
5304
5309
  class: 'vxe-checkbox--label'
5305
- }, titleSlot ? $table.callSlot(titleSlot, checkboxParams) : headerTitle)] : []))]));
5310
+ }, titleSlot ? $table.callSlot(titleSlot, checkboxParams) : colTitle)] : []))]));
5306
5311
  },
5307
5312
  renderCheckboxCell(params) {
5308
5313
  const {
@@ -5613,6 +5618,8 @@ const Cell = {
5613
5618
  const {
5614
5619
  showIcon,
5615
5620
  allowBtn,
5621
+ ascTitle,
5622
+ descTitle,
5616
5623
  iconLayout,
5617
5624
  iconAsc,
5618
5625
  iconDesc,
@@ -5628,7 +5635,7 @@ const Cell = {
5628
5635
  class: ['vxe-sort--asc-btn', iconAsc || cell_getIcon().TABLE_SORT_ASC, {
5629
5636
  'sort--active': order === 'asc'
5630
5637
  }],
5631
- title: cell_getI18n('vxe.table.sortAsc'),
5638
+ title: external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(ascTitle) ? cell_getI18n('vxe.table.sortAsc') : `${ascTitle || ''}`,
5632
5639
  onClick: allowBtn ? evnt => {
5633
5640
  evnt.stopPropagation();
5634
5641
  $table.triggerSortEvent(evnt, column, 'asc');
@@ -5637,7 +5644,7 @@ const Cell = {
5637
5644
  class: ['vxe-sort--desc-btn', iconDesc || cell_getIcon().TABLE_SORT_DESC, {
5638
5645
  'sort--active': order === 'desc'
5639
5646
  }],
5640
- title: cell_getI18n('vxe.table.sortDesc'),
5647
+ title: external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(descTitle) ? cell_getI18n('vxe.table.sortDesc') : `${descTitle || ''}`,
5641
5648
  onClick: allowBtn ? evnt => {
5642
5649
  evnt.stopPropagation();
5643
5650
  $table.triggerSortEvent(evnt, column, 'desc');