vxe-table 3.14.0-beta.13 → 3.14.0-beta.15
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/locale/lang/ar-EG.js +1 -0
- package/es/locale/lang/de-DE.js +1 -0
- package/es/locale/lang/en-US.js +1 -0
- package/es/locale/lang/es-ES.js +1 -0
- package/es/locale/lang/fr-FR.js +1 -0
- package/es/locale/lang/hu-HU.js +1 -0
- package/es/locale/lang/hy-AM.js +1 -0
- package/es/locale/lang/id-ID.js +1 -0
- package/es/locale/lang/it-IT.js +1 -0
- package/es/locale/lang/ja-JP.js +1 -0
- package/es/locale/lang/ko-KR.js +1 -0
- package/es/locale/lang/nb-NO.js +1 -0
- package/es/locale/lang/pt-BR.js +1 -0
- package/es/locale/lang/ru-RU.js +1 -0
- package/es/locale/lang/th-TH.js +1 -0
- package/es/locale/lang/ug-CN.js +1 -0
- package/es/locale/lang/uk-UA.js +1 -0
- package/es/locale/lang/vi-VN.js +1 -0
- package/es/locale/lang/zh-CHT.js +1 -0
- package/es/locale/lang/zh-CN.js +1 -0
- 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 +22 -14
- package/lib/index.umd.min.js +1 -1
- package/lib/locale/lang/ar-EG.js +1 -0
- package/lib/locale/lang/ar-EG.min.js +1 -1
- package/lib/locale/lang/de-DE.js +1 -0
- package/lib/locale/lang/de-DE.min.js +1 -1
- package/lib/locale/lang/en-US.js +1 -0
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +1 -0
- package/lib/locale/lang/es-ES.js +1 -0
- package/lib/locale/lang/es-ES.min.js +1 -1
- package/lib/locale/lang/es-ES.umd.js +1 -0
- package/lib/locale/lang/fr-FR.js +1 -0
- package/lib/locale/lang/fr-FR.min.js +1 -1
- package/lib/locale/lang/hu-HU.js +1 -0
- package/lib/locale/lang/hu-HU.min.js +1 -1
- package/lib/locale/lang/hu-HU.umd.js +1 -0
- package/lib/locale/lang/hy-AM.js +1 -0
- package/lib/locale/lang/hy-AM.min.js +1 -1
- package/lib/locale/lang/id-ID.js +1 -0
- package/lib/locale/lang/id-ID.min.js +1 -1
- package/lib/locale/lang/it-IT.js +1 -0
- package/lib/locale/lang/it-IT.min.js +1 -1
- package/lib/locale/lang/ja-JP.js +1 -0
- package/lib/locale/lang/ja-JP.min.js +1 -1
- package/lib/locale/lang/ja-JP.umd.js +1 -0
- package/lib/locale/lang/ko-KR.js +1 -0
- package/lib/locale/lang/ko-KR.min.js +1 -1
- package/lib/locale/lang/ko-KR.umd.js +1 -0
- package/lib/locale/lang/nb-NO.js +1 -0
- package/lib/locale/lang/nb-NO.min.js +1 -1
- package/lib/locale/lang/pt-BR.js +1 -0
- package/lib/locale/lang/pt-BR.min.js +1 -1
- package/lib/locale/lang/pt-BR.umd.js +1 -0
- package/lib/locale/lang/ru-RU.js +1 -0
- package/lib/locale/lang/ru-RU.min.js +1 -1
- package/lib/locale/lang/ru-RU.umd.js +1 -0
- package/lib/locale/lang/th-TH.js +1 -0
- package/lib/locale/lang/th-TH.min.js +1 -1
- package/lib/locale/lang/ug-CN.js +1 -0
- package/lib/locale/lang/ug-CN.min.js +1 -1
- package/lib/locale/lang/uk-UA.js +1 -0
- package/lib/locale/lang/uk-UA.min.js +1 -1
- package/lib/locale/lang/uk-UA.umd.js +1 -0
- package/lib/locale/lang/vi-VN.js +1 -0
- package/lib/locale/lang/vi-VN.min.js +1 -1
- package/lib/locale/lang/zh-CHT.js +1 -0
- package/lib/locale/lang/zh-CHT.min.js +1 -1
- package/lib/locale/lang/zh-CHT.umd.js +1 -0
- package/lib/locale/lang/zh-CN.js +1 -0
- package/lib/locale/lang/zh-CN.min.js +1 -1
- package/lib/locale/lang/zh-CN.umd.js +1 -0
- 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/locale/lang/ar-EG.ts +1 -0
- package/packages/locale/lang/de-DE.ts +1 -0
- package/packages/locale/lang/en-US.ts +1 -0
- package/packages/locale/lang/es-ES.ts +1 -0
- package/packages/locale/lang/fr-FR.ts +1 -0
- package/packages/locale/lang/hu-HU.ts +1 -0
- package/packages/locale/lang/hy-AM.ts +1 -0
- package/packages/locale/lang/id-ID.ts +1 -0
- package/packages/locale/lang/it-IT.ts +1 -0
- package/packages/locale/lang/ja-JP.ts +1 -0
- package/packages/locale/lang/ko-KR.ts +1 -0
- package/packages/locale/lang/nb-NO.ts +1 -0
- package/packages/locale/lang/pt-BR.ts +1 -0
- package/packages/locale/lang/ru-RU.ts +1 -0
- package/packages/locale/lang/th-TH.ts +1 -0
- package/packages/locale/lang/ug-CN.ts +1 -0
- package/packages/locale/lang/uk-UA.ts +1 -0
- package/packages/locale/lang/vi-VN.ts +1 -0
- package/packages/locale/lang/zh-CHT.ts +1 -0
- package/packages/locale/lang/zh-CN.ts +1 -0
- package/packages/table/src/cell.ts +10 -9
- /package/es/{iconfont.1741830507096.ttf → iconfont.1741940395535.ttf} +0 -0
- /package/es/{iconfont.1741830507096.woff → iconfont.1741940395535.woff} +0 -0
- /package/es/{iconfont.1741830507096.woff2 → iconfont.1741940395535.woff2} +0 -0
- /package/lib/{iconfont.1741830507096.ttf → iconfont.1741940395535.ttf} +0 -0
- /package/lib/{iconfont.1741830507096.woff → iconfont.1741940395535.woff} +0 -0
- /package/lib/{iconfont.1741830507096.woff2 → iconfont.1741940395535.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
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
else if(typeof define === 'function' && define.amd)
|
|
5
5
|
define([, "@vxe-ui/core", "xe-utils"], factory);
|
|
6
6
|
else if(typeof exports === 'object')
|
|
7
|
-
exports["
|
|
7
|
+
exports["VxeUITable"] = factory(require("vue"), require("@vxe-ui/core"), require("xe-utils"));
|
|
8
8
|
else
|
|
9
|
-
root["
|
|
9
|
+
root["VxeUITable"] = factory(root["Vue"], root["VxeUI"], root["XEUtils"]);
|
|
10
10
|
})((typeof self !== 'undefined' ? self : this), function(__WEBPACK_EXTERNAL_MODULE__9274__, __WEBPACK_EXTERNAL_MODULE__4345__, __WEBPACK_EXTERNAL_MODULE__8871__) {
|
|
11
11
|
return /******/ (function() { // webpackBootstrap
|
|
12
12
|
/******/ "use strict";
|
|
@@ -2220,7 +2220,7 @@ function getClass(property, params) {
|
|
|
2220
2220
|
;// CONCATENATED MODULE: ./packages/ui/index.ts
|
|
2221
2221
|
|
|
2222
2222
|
|
|
2223
|
-
const version = "3.14.0-beta.
|
|
2223
|
+
const version = "3.14.0-beta.15";
|
|
2224
2224
|
core_.VxeUI.version = version;
|
|
2225
2225
|
core_.VxeUI.tableVersion = version;
|
|
2226
2226
|
core_.VxeUI.setConfig({
|
|
@@ -2843,7 +2843,7 @@ function isNodeElement(elem) {
|
|
|
2843
2843
|
const {
|
|
2844
2844
|
log: log_log
|
|
2845
2845
|
} = core_.VxeUI;
|
|
2846
|
-
const log_version = `table v${"3.14.0-beta.
|
|
2846
|
+
const log_version = `table v${"3.14.0-beta.15"}`;
|
|
2847
2847
|
const warnLog = log_log.create('warn', log_version);
|
|
2848
2848
|
const errLog = log_log.create('error', log_version);
|
|
2849
2849
|
;// CONCATENATED MODULE: ./packages/table/src/columnInfo.ts
|
|
@@ -4302,7 +4302,12 @@ const Cell = {
|
|
|
4302
4302
|
const headerSlot = slots ? slots.header : null;
|
|
4303
4303
|
const titleSlot = slots ? slots.title : null;
|
|
4304
4304
|
const checkboxOpts = $table.computeCheckboxOpts;
|
|
4305
|
-
const
|
|
4305
|
+
const {
|
|
4306
|
+
checkStrictly,
|
|
4307
|
+
showHeader,
|
|
4308
|
+
headerTitle
|
|
4309
|
+
} = checkboxOpts;
|
|
4310
|
+
const colTitle = column.getTitle();
|
|
4306
4311
|
const ons = {};
|
|
4307
4312
|
if (!isHidden) {
|
|
4308
4313
|
ons.click = evnt => {
|
|
@@ -4320,10 +4325,10 @@ const Cell = {
|
|
|
4320
4325
|
if (headerSlot) {
|
|
4321
4326
|
return renderHeaderCellBaseVNs(h, params, renderTitleContent(h, checkboxParams, $table.callSlot(headerSlot, checkboxParams, h)));
|
|
4322
4327
|
}
|
|
4323
|
-
if (
|
|
4328
|
+
if (checkStrictly ? !showHeader : showHeader === false) {
|
|
4324
4329
|
return renderHeaderCellBaseVNs(h, params, renderTitleContent(h, checkboxParams, [h('span', {
|
|
4325
4330
|
class: 'vxe-checkbox--label'
|
|
4326
|
-
}, titleSlot ? $table.callSlot(titleSlot, checkboxParams, h) :
|
|
4331
|
+
}, titleSlot ? $table.callSlot(titleSlot, checkboxParams, h) : colTitle)]));
|
|
4327
4332
|
}
|
|
4328
4333
|
return renderHeaderCellBaseVNs(h, params, renderTitleContent(h, checkboxParams, [h('span', {
|
|
4329
4334
|
class: ['vxe-cell--checkbox', {
|
|
@@ -4332,14 +4337,14 @@ const Cell = {
|
|
|
4332
4337
|
'is--indeterminate': isAllCheckboxIndeterminate
|
|
4333
4338
|
}],
|
|
4334
4339
|
attrs: {
|
|
4335
|
-
title: cell_getI18n('vxe.table.allTitle')
|
|
4340
|
+
title: external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(headerTitle) ? cell_getI18n('vxe.table.allTitle') : `${headerTitle || ''}`
|
|
4336
4341
|
},
|
|
4337
4342
|
on: ons
|
|
4338
4343
|
}, [h('span', {
|
|
4339
4344
|
class: ['vxe-checkbox--icon', isAllCheckboxIndeterminate ? cell_getIcon().TABLE_CHECKBOX_INDETERMINATE : isAllCheckboxSelected ? cell_getIcon().TABLE_CHECKBOX_CHECKED : cell_getIcon().TABLE_CHECKBOX_UNCHECKED]
|
|
4340
|
-
})].concat(titleSlot ||
|
|
4345
|
+
})].concat(titleSlot || colTitle ? [h('span', {
|
|
4341
4346
|
class: 'vxe-checkbox--label'
|
|
4342
|
-
}, titleSlot ? $table.callSlot(titleSlot, checkboxParams, h) :
|
|
4347
|
+
}, titleSlot ? $table.callSlot(titleSlot, checkboxParams, h) : colTitle)] : []))]));
|
|
4343
4348
|
},
|
|
4344
4349
|
renderCheckboxCell(h, params) {
|
|
4345
4350
|
const {
|
|
@@ -4638,6 +4643,8 @@ const Cell = {
|
|
|
4638
4643
|
const {
|
|
4639
4644
|
showIcon,
|
|
4640
4645
|
allowBtn,
|
|
4646
|
+
ascTitle,
|
|
4647
|
+
descTitle,
|
|
4641
4648
|
iconLayout,
|
|
4642
4649
|
iconAsc,
|
|
4643
4650
|
iconDesc,
|
|
@@ -4651,7 +4658,7 @@ const Cell = {
|
|
|
4651
4658
|
'sort--active': column.order === 'asc'
|
|
4652
4659
|
}],
|
|
4653
4660
|
attrs: {
|
|
4654
|
-
title: cell_getI18n('vxe.table.sortAsc')
|
|
4661
|
+
title: external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(ascTitle) ? cell_getI18n('vxe.table.sortAsc') : `${ascTitle || ''}`
|
|
4655
4662
|
},
|
|
4656
4663
|
on: allowBtn ? {
|
|
4657
4664
|
click(evnt) {
|
|
@@ -4664,7 +4671,7 @@ const Cell = {
|
|
|
4664
4671
|
'sort--active': column.order === 'desc'
|
|
4665
4672
|
}],
|
|
4666
4673
|
attrs: {
|
|
4667
|
-
title: cell_getI18n('vxe.table.sortDesc')
|
|
4674
|
+
title: external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(descTitle) ? cell_getI18n('vxe.table.sortDesc') : `${descTitle || ''}`
|
|
4668
4675
|
},
|
|
4669
4676
|
on: allowBtn ? {
|
|
4670
4677
|
click(evnt) {
|
|
@@ -31841,6 +31848,7 @@ const Toolbar = VxeToolbar;
|
|
|
31841
31848
|
},
|
|
31842
31849
|
filterCombination: {
|
|
31843
31850
|
menus: {
|
|
31851
|
+
sort: '排序',
|
|
31844
31852
|
clearSort: '清除排序',
|
|
31845
31853
|
sortAsc: '升序',
|
|
31846
31854
|
sortDesc: '降序',
|
|
@@ -32003,8 +32011,8 @@ core_.VxeUI.setTheme('light');
|
|
|
32003
32011
|
|
|
32004
32012
|
if (typeof window !== 'undefined' && window.Vue) {
|
|
32005
32013
|
if (window.VXETable) {
|
|
32006
|
-
if (!window.
|
|
32007
|
-
window.
|
|
32014
|
+
if (!window.VXETable) {
|
|
32015
|
+
window.VXETable = components_namespaceObject;
|
|
32008
32016
|
}
|
|
32009
32017
|
}
|
|
32010
32018
|
window.Vue.use(components_namespaceObject);
|