vxe-table 3.13.24 → 3.13.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.
- package/es/style.css +1 -1
- package/es/table/src/cell.js +10 -9
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/index.umd.js +17 -10
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/table/src/cell.js +15 -8
- package/lib/table/src/cell.min.js +1 -1
- package/lib/ui/index.js +1 -1
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/package.json +2 -2
- package/packages/table/src/cell.ts +10 -9
- /package/es/{iconfont.1741854422584.ttf → iconfont.1741921103940.ttf} +0 -0
- /package/es/{iconfont.1741854422584.woff → iconfont.1741921103940.woff} +0 -0
- /package/es/{iconfont.1741854422584.woff2 → iconfont.1741921103940.woff2} +0 -0
- /package/lib/{iconfont.1741854422584.ttf → iconfont.1741921103940.ttf} +0 -0
- /package/lib/{iconfont.1741854422584.woff → iconfont.1741921103940.woff} +0 -0
- /package/lib/{iconfont.1741854422584.woff2 → iconfont.1741921103940.woff2} +0 -0
package/es/table/src/cell.js
CHANGED
|
@@ -551,7 +551,8 @@ export const Cell = {
|
|
|
551
551
|
const headerSlot = slots ? slots.header : null;
|
|
552
552
|
const titleSlot = slots ? slots.title : null;
|
|
553
553
|
const checkboxOpts = $table.computeCheckboxOpts;
|
|
554
|
-
const headerTitle =
|
|
554
|
+
const { checkStrictly, showHeader, headerTitle } = checkboxOpts;
|
|
555
|
+
const colTitle = column.getTitle();
|
|
555
556
|
const ons = {};
|
|
556
557
|
if (!isHidden) {
|
|
557
558
|
ons.click = (evnt) => {
|
|
@@ -564,11 +565,11 @@ export const Cell = {
|
|
|
564
565
|
if (headerSlot) {
|
|
565
566
|
return renderHeaderCellBaseVNs(h, params, renderTitleContent(h, checkboxParams, $table.callSlot(headerSlot, checkboxParams, h)));
|
|
566
567
|
}
|
|
567
|
-
if (
|
|
568
|
+
if (checkStrictly ? !showHeader : showHeader === false) {
|
|
568
569
|
return renderHeaderCellBaseVNs(h, params, renderTitleContent(h, checkboxParams, [
|
|
569
570
|
h('span', {
|
|
570
571
|
class: 'vxe-checkbox--label'
|
|
571
|
-
}, titleSlot ? $table.callSlot(titleSlot, checkboxParams, h) :
|
|
572
|
+
}, titleSlot ? $table.callSlot(titleSlot, checkboxParams, h) : colTitle)
|
|
572
573
|
]));
|
|
573
574
|
}
|
|
574
575
|
return renderHeaderCellBaseVNs(h, params, renderTitleContent(h, checkboxParams, [
|
|
@@ -579,18 +580,18 @@ export const Cell = {
|
|
|
579
580
|
'is--indeterminate': isAllCheckboxIndeterminate
|
|
580
581
|
}],
|
|
581
582
|
attrs: {
|
|
582
|
-
title: getI18n('vxe.table.allTitle')
|
|
583
|
+
title: XEUtils.eqNull(headerTitle) ? getI18n('vxe.table.allTitle') : `${headerTitle || ''}`
|
|
583
584
|
},
|
|
584
585
|
on: ons
|
|
585
586
|
}, [
|
|
586
587
|
h('span', {
|
|
587
588
|
class: ['vxe-checkbox--icon', isAllCheckboxIndeterminate ? getIcon().TABLE_CHECKBOX_INDETERMINATE : (isAllCheckboxSelected ? getIcon().TABLE_CHECKBOX_CHECKED : getIcon().TABLE_CHECKBOX_UNCHECKED)]
|
|
588
589
|
})
|
|
589
|
-
].concat(titleSlot ||
|
|
590
|
+
].concat(titleSlot || colTitle
|
|
590
591
|
? [
|
|
591
592
|
h('span', {
|
|
592
593
|
class: 'vxe-checkbox--label'
|
|
593
|
-
}, titleSlot ? $table.callSlot(titleSlot, checkboxParams, h) :
|
|
594
|
+
}, titleSlot ? $table.callSlot(titleSlot, checkboxParams, h) : colTitle)
|
|
594
595
|
]
|
|
595
596
|
: []))
|
|
596
597
|
]));
|
|
@@ -820,7 +821,7 @@ export const Cell = {
|
|
|
820
821
|
renderSortIcon(h, params) {
|
|
821
822
|
const { $table, column } = params;
|
|
822
823
|
const sortOpts = $table.computeSortOpts;
|
|
823
|
-
const { showIcon, allowBtn, iconLayout, iconAsc, iconDesc, iconVisibleMethod } = sortOpts;
|
|
824
|
+
const { showIcon, allowBtn, ascTitle, descTitle, iconLayout, iconAsc, iconDesc, iconVisibleMethod } = sortOpts;
|
|
824
825
|
if (showIcon && (!iconVisibleMethod || iconVisibleMethod(params))) {
|
|
825
826
|
return [
|
|
826
827
|
h('span', {
|
|
@@ -831,7 +832,7 @@ export const Cell = {
|
|
|
831
832
|
'sort--active': column.order === 'asc'
|
|
832
833
|
}],
|
|
833
834
|
attrs: {
|
|
834
|
-
title: getI18n('vxe.table.sortAsc')
|
|
835
|
+
title: XEUtils.eqNull(ascTitle) ? getI18n('vxe.table.sortAsc') : `${ascTitle || ''}`
|
|
835
836
|
},
|
|
836
837
|
on: allowBtn
|
|
837
838
|
? {
|
|
@@ -847,7 +848,7 @@ export const Cell = {
|
|
|
847
848
|
'sort--active': column.order === 'desc'
|
|
848
849
|
}],
|
|
849
850
|
attrs: {
|
|
850
|
-
title: getI18n('vxe.table.sortDesc')
|
|
851
|
+
title: XEUtils.eqNull(descTitle) ? getI18n('vxe.table.sortDesc') : `${descTitle || ''}`
|
|
851
852
|
},
|
|
852
853
|
on: allowBtn
|
|
853
854
|
? {
|
package/es/ui/index.js
CHANGED
package/es/ui/src/log.js
CHANGED
package/lib/index.umd.js
CHANGED
|
@@ -3201,7 +3201,7 @@ function getClass(property, params) {
|
|
|
3201
3201
|
;// ./packages/ui/index.ts
|
|
3202
3202
|
|
|
3203
3203
|
|
|
3204
|
-
const version = "3.13.
|
|
3204
|
+
const version = "3.13.25";
|
|
3205
3205
|
core_.VxeUI.version = version;
|
|
3206
3206
|
core_.VxeUI.tableVersion = version;
|
|
3207
3207
|
core_.VxeUI.setConfig({
|
|
@@ -3828,7 +3828,7 @@ var es_iterator_map = __webpack_require__(1701);
|
|
|
3828
3828
|
const {
|
|
3829
3829
|
log: log_log
|
|
3830
3830
|
} = core_.VxeUI;
|
|
3831
|
-
const log_version = `table v${"3.13.
|
|
3831
|
+
const log_version = `table v${"3.13.25"}`;
|
|
3832
3832
|
const warnLog = log_log.create('warn', log_version);
|
|
3833
3833
|
const errLog = log_log.create('error', log_version);
|
|
3834
3834
|
;// ./packages/table/src/columnInfo.ts
|
|
@@ -5276,7 +5276,12 @@ const Cell = {
|
|
|
5276
5276
|
const headerSlot = slots ? slots.header : null;
|
|
5277
5277
|
const titleSlot = slots ? slots.title : null;
|
|
5278
5278
|
const checkboxOpts = $table.computeCheckboxOpts;
|
|
5279
|
-
const
|
|
5279
|
+
const {
|
|
5280
|
+
checkStrictly,
|
|
5281
|
+
showHeader,
|
|
5282
|
+
headerTitle
|
|
5283
|
+
} = checkboxOpts;
|
|
5284
|
+
const colTitle = column.getTitle();
|
|
5280
5285
|
const ons = {};
|
|
5281
5286
|
if (!isHidden) {
|
|
5282
5287
|
ons.click = evnt => {
|
|
@@ -5294,10 +5299,10 @@ const Cell = {
|
|
|
5294
5299
|
if (headerSlot) {
|
|
5295
5300
|
return renderHeaderCellBaseVNs(h, params, renderTitleContent(h, checkboxParams, $table.callSlot(headerSlot, checkboxParams, h)));
|
|
5296
5301
|
}
|
|
5297
|
-
if (
|
|
5302
|
+
if (checkStrictly ? !showHeader : showHeader === false) {
|
|
5298
5303
|
return renderHeaderCellBaseVNs(h, params, renderTitleContent(h, checkboxParams, [h('span', {
|
|
5299
5304
|
class: 'vxe-checkbox--label'
|
|
5300
|
-
}, titleSlot ? $table.callSlot(titleSlot, checkboxParams, h) :
|
|
5305
|
+
}, titleSlot ? $table.callSlot(titleSlot, checkboxParams, h) : colTitle)]));
|
|
5301
5306
|
}
|
|
5302
5307
|
return renderHeaderCellBaseVNs(h, params, renderTitleContent(h, checkboxParams, [h('span', {
|
|
5303
5308
|
class: ['vxe-cell--checkbox', {
|
|
@@ -5306,14 +5311,14 @@ const Cell = {
|
|
|
5306
5311
|
'is--indeterminate': isAllCheckboxIndeterminate
|
|
5307
5312
|
}],
|
|
5308
5313
|
attrs: {
|
|
5309
|
-
title: cell_getI18n('vxe.table.allTitle')
|
|
5314
|
+
title: external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(headerTitle) ? cell_getI18n('vxe.table.allTitle') : `${headerTitle || ''}`
|
|
5310
5315
|
},
|
|
5311
5316
|
on: ons
|
|
5312
5317
|
}, [h('span', {
|
|
5313
5318
|
class: ['vxe-checkbox--icon', isAllCheckboxIndeterminate ? cell_getIcon().TABLE_CHECKBOX_INDETERMINATE : isAllCheckboxSelected ? cell_getIcon().TABLE_CHECKBOX_CHECKED : cell_getIcon().TABLE_CHECKBOX_UNCHECKED]
|
|
5314
|
-
})].concat(titleSlot ||
|
|
5319
|
+
})].concat(titleSlot || colTitle ? [h('span', {
|
|
5315
5320
|
class: 'vxe-checkbox--label'
|
|
5316
|
-
}, titleSlot ? $table.callSlot(titleSlot, checkboxParams, h) :
|
|
5321
|
+
}, titleSlot ? $table.callSlot(titleSlot, checkboxParams, h) : colTitle)] : []))]));
|
|
5317
5322
|
},
|
|
5318
5323
|
renderCheckboxCell(h, params) {
|
|
5319
5324
|
const {
|
|
@@ -5612,6 +5617,8 @@ const Cell = {
|
|
|
5612
5617
|
const {
|
|
5613
5618
|
showIcon,
|
|
5614
5619
|
allowBtn,
|
|
5620
|
+
ascTitle,
|
|
5621
|
+
descTitle,
|
|
5615
5622
|
iconLayout,
|
|
5616
5623
|
iconAsc,
|
|
5617
5624
|
iconDesc,
|
|
@@ -5625,7 +5632,7 @@ const Cell = {
|
|
|
5625
5632
|
'sort--active': column.order === 'asc'
|
|
5626
5633
|
}],
|
|
5627
5634
|
attrs: {
|
|
5628
|
-
title: cell_getI18n('vxe.table.sortAsc')
|
|
5635
|
+
title: external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(ascTitle) ? cell_getI18n('vxe.table.sortAsc') : `${ascTitle || ''}`
|
|
5629
5636
|
},
|
|
5630
5637
|
on: allowBtn ? {
|
|
5631
5638
|
click(evnt) {
|
|
@@ -5638,7 +5645,7 @@ const Cell = {
|
|
|
5638
5645
|
'sort--active': column.order === 'desc'
|
|
5639
5646
|
}],
|
|
5640
5647
|
attrs: {
|
|
5641
|
-
title: cell_getI18n('vxe.table.sortDesc')
|
|
5648
|
+
title: external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(descTitle) ? cell_getI18n('vxe.table.sortDesc') : `${descTitle || ''}`
|
|
5642
5649
|
},
|
|
5643
5650
|
on: allowBtn ? {
|
|
5644
5651
|
click(evnt) {
|