vxe-table 4.7.40 → 4.7.42
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/en-US.js +2 -5
- package/es/locale/lang/es-ES.js +2 -5
- package/es/locale/lang/ja-JP.js +2 -5
- package/es/locale/lang/pt-BR.js +2 -5
- package/es/locale/lang/zh-CN.js +6 -9
- package/es/locale/lang/zh-TC.js +3 -6
- package/es/style.css +1 -1
- package/es/table/module/custom/panel.js +10 -6
- package/es/table/module/export/hook.js +1 -1
- package/es/table/module/filter/hook.js +3 -2
- package/es/table/module/filter/panel.js +4 -4
- package/es/table/src/header.js +1 -0
- package/es/table/src/table.js +22 -21
- package/es/ui/index.js +11 -4
- package/es/ui/src/log.js +1 -1
- package/lib/index.umd.js +62 -51
- package/lib/index.umd.min.js +1 -1
- package/lib/locale/lang/en-US.js +2 -5
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +2 -5
- package/lib/locale/lang/es-ES.js +2 -5
- package/lib/locale/lang/es-ES.min.js +1 -1
- package/lib/locale/lang/es-ES.umd.js +2 -5
- package/lib/locale/lang/ja-JP.js +2 -5
- package/lib/locale/lang/ja-JP.min.js +1 -1
- package/lib/locale/lang/ja-JP.umd.js +2 -5
- package/lib/locale/lang/pt-BR.js +2 -5
- package/lib/locale/lang/pt-BR.min.js +1 -1
- package/lib/locale/lang/pt-BR.umd.js +2 -5
- package/lib/locale/lang/zh-CN.js +6 -9
- package/lib/locale/lang/zh-CN.min.js +1 -1
- package/lib/locale/lang/zh-CN.umd.js +6 -9
- package/lib/locale/lang/zh-HK.min.js +1 -1
- package/lib/locale/lang/zh-HK.umd.js +3 -6
- package/lib/locale/lang/zh-MO.min.js +1 -1
- package/lib/locale/lang/zh-MO.umd.js +3 -6
- package/lib/locale/lang/zh-TC.js +3 -6
- package/lib/locale/lang/zh-TC.min.js +1 -1
- package/lib/locale/lang/zh-TC.umd.js +3 -6
- package/lib/locale/lang/zh-TW.min.js +1 -1
- package/lib/locale/lang/zh-TW.umd.js +3 -6
- package/lib/style.css +1 -1
- package/lib/table/module/custom/panel.js +12 -6
- package/lib/table/module/custom/panel.min.js +1 -1
- package/lib/table/module/export/hook.js +1 -1
- package/lib/table/module/export/hook.min.js +1 -1
- package/lib/table/module/filter/hook.js +3 -2
- package/lib/table/module/filter/hook.min.js +1 -1
- package/lib/table/module/filter/panel.js +5 -3
- package/lib/table/module/filter/panel.min.js +1 -1
- package/lib/table/src/header.js +1 -0
- package/lib/table/src/header.min.js +1 -1
- package/lib/table/src/table.js +22 -25
- package/lib/table/src/table.min.js +1 -1
- package/lib/ui/index.js +11 -4
- 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/en-US.ts +2 -5
- package/packages/locale/lang/es-ES.ts +2 -5
- package/packages/locale/lang/ja-JP.ts +2 -5
- package/packages/locale/lang/pt-BR.ts +2 -5
- package/packages/locale/lang/zh-CN.ts +6 -9
- package/packages/locale/lang/zh-TC.ts +3 -6
- package/packages/table/module/custom/panel.ts +10 -6
- package/packages/table/module/export/hook.ts +1 -1
- package/packages/table/module/filter/hook.ts +3 -2
- package/packages/table/module/filter/panel.ts +4 -4
- package/packages/table/src/header.ts +1 -0
- package/packages/table/src/table.ts +22 -21
- package/packages/ui/index.ts +9 -2
- /package/es/{iconfont.1719657199027.ttf → iconfont.1720011186898.ttf} +0 -0
- /package/es/{iconfont.1719657199027.woff → iconfont.1720011186898.woff} +0 -0
- /package/es/{iconfont.1719657199027.woff2 → iconfont.1720011186898.woff2} +0 -0
- /package/lib/{iconfont.1719657199027.ttf → iconfont.1720011186898.ttf} +0 -0
- /package/lib/{iconfont.1719657199027.woff → iconfont.1720011186898.woff} +0 -0
- /package/lib/{iconfont.1719657199027.woff2 → iconfont.1720011186898.woff2} +0 -0
package/es/table/src/header.js
CHANGED
|
@@ -110,6 +110,7 @@ export default defineComponent({
|
|
|
110
110
|
$xeTable.saveCustomStore('update:visible');
|
|
111
111
|
$xeTable.updateCellAreas();
|
|
112
112
|
$xeTable.dispatchEvent('resizable-change', Object.assign(Object.assign({}, params), { resizeWidth }), evnt);
|
|
113
|
+
setTimeout(() => $xeTable.recalculate(true), 300);
|
|
113
114
|
});
|
|
114
115
|
removeClass(tableEl, 'drag--resize');
|
|
115
116
|
};
|
package/es/table/src/table.js
CHANGED
|
@@ -483,7 +483,7 @@ export default defineComponent({
|
|
|
483
483
|
let fixedSize = 0;
|
|
484
484
|
// 只判断第一层
|
|
485
485
|
collectColumn.forEach((column) => {
|
|
486
|
-
if (column.
|
|
486
|
+
if (column.renderFixed) {
|
|
487
487
|
fixedSize++;
|
|
488
488
|
}
|
|
489
489
|
});
|
|
@@ -822,27 +822,29 @@ export default defineComponent({
|
|
|
822
822
|
return num;
|
|
823
823
|
};
|
|
824
824
|
const handleCustomRestore = (storeData) => {
|
|
825
|
-
const { tableFullColumn } = internalData;
|
|
826
825
|
let { collectColumn } = internalData;
|
|
827
826
|
const { resizableData, sortData, visibleData, fixedData } = storeData;
|
|
828
827
|
let hasCustomSort = false;
|
|
829
828
|
// 处理还原
|
|
830
829
|
if (resizableData || sortData || visibleData || fixedData) {
|
|
831
|
-
|
|
830
|
+
XEUtils.eachTree(collectColumn, (column, index, items, path, parent) => {
|
|
832
831
|
const colKey = column.getKey();
|
|
832
|
+
// 支持一级
|
|
833
|
+
if (!parent) {
|
|
834
|
+
if (fixedData && fixedData[colKey]) {
|
|
835
|
+
column.fixed = fixedData[colKey];
|
|
836
|
+
}
|
|
837
|
+
if (sortData && XEUtils.isNumber(sortData[colKey])) {
|
|
838
|
+
hasCustomSort = true;
|
|
839
|
+
column.renderSortNumber = sortData[colKey];
|
|
840
|
+
}
|
|
841
|
+
}
|
|
833
842
|
if (resizableData && XEUtils.isNumber(resizableData[colKey])) {
|
|
834
843
|
column.resizeWidth = resizableData[colKey];
|
|
835
844
|
}
|
|
836
845
|
if (visibleData && XEUtils.isBoolean(visibleData[colKey])) {
|
|
837
846
|
column.visible = visibleData[colKey];
|
|
838
847
|
}
|
|
839
|
-
if (fixedData && fixedData[colKey]) {
|
|
840
|
-
column.fixed = fixedData[colKey];
|
|
841
|
-
}
|
|
842
|
-
if (sortData && XEUtils.isNumber(sortData[colKey])) {
|
|
843
|
-
hasCustomSort = true;
|
|
844
|
-
column.renderSortNumber = sortData[colKey];
|
|
845
|
-
}
|
|
846
848
|
});
|
|
847
849
|
// 如果自定义了顺序
|
|
848
850
|
if (hasCustomSort) {
|
|
@@ -1278,7 +1280,7 @@ export default defineComponent({
|
|
|
1278
1280
|
const handleFilter = (row) => {
|
|
1279
1281
|
return filterColumns.every(({ column, valueList, itemList }) => {
|
|
1280
1282
|
const { filterMethod, filterRender } = column;
|
|
1281
|
-
const compConf = filterRender ? renderer.get(filterRender.name) : null;
|
|
1283
|
+
const compConf = isEnableConf(filterRender) ? renderer.get(filterRender.name) : null;
|
|
1282
1284
|
const compFilterMethod = compConf ? (compConf.tableFilterMethod || compConf.filterMethod) : null;
|
|
1283
1285
|
const tdFilterMethod = compConf ? (compConf.defaultTableFilterMethod || compConf.defaultFilterMethod) : null;
|
|
1284
1286
|
const cellValue = getCellValue(row, column);
|
|
@@ -3241,14 +3243,13 @@ export default defineComponent({
|
|
|
3241
3243
|
const targetColumn = getRootColumn($xeTable, column);
|
|
3242
3244
|
const isMaxFixedColumn = computeIsMaxFixedColumn.value;
|
|
3243
3245
|
const columnOpts = computeColumnOpts.value;
|
|
3244
|
-
const { maxFixedSize } = columnOpts;
|
|
3245
3246
|
if (targetColumn && targetColumn.fixed !== fixed) {
|
|
3246
3247
|
// 是否超过最大固定列数量
|
|
3247
3248
|
if (!targetColumn.fixed && isMaxFixedColumn) {
|
|
3248
3249
|
if (VxeUI.modal) {
|
|
3249
3250
|
VxeUI.modal.message({
|
|
3250
3251
|
status: 'error',
|
|
3251
|
-
content: getI18n('vxe.table.maxFixedCol', [maxFixedSize])
|
|
3252
|
+
content: getI18n('vxe.table.maxFixedCol', [columnOpts.maxFixedSize])
|
|
3252
3253
|
});
|
|
3253
3254
|
}
|
|
3254
3255
|
return nextTick();
|
|
@@ -4533,7 +4534,7 @@ export default defineComponent({
|
|
|
4533
4534
|
let hasFixedt = 0;
|
|
4534
4535
|
let hasVisible = 0;
|
|
4535
4536
|
XEUtils.eachTree(collectColumn, (column, index, items, path, parent) => {
|
|
4536
|
-
//
|
|
4537
|
+
// 只支持一级
|
|
4537
4538
|
if (!parent) {
|
|
4538
4539
|
collectColumn.forEach((column) => {
|
|
4539
4540
|
const colKey = column.getKey();
|
|
@@ -4542,6 +4543,13 @@ export default defineComponent({
|
|
|
4542
4543
|
sortData[colKey] = column.renderSortNumber;
|
|
4543
4544
|
}
|
|
4544
4545
|
});
|
|
4546
|
+
if (column.fixed && column.fixed !== column.defaultFixed) {
|
|
4547
|
+
const colKey = column.getKey();
|
|
4548
|
+
if (colKey) {
|
|
4549
|
+
hasFixedt = 1;
|
|
4550
|
+
fixedData[colKey] = column.fixed;
|
|
4551
|
+
}
|
|
4552
|
+
}
|
|
4545
4553
|
}
|
|
4546
4554
|
if (column.resizeWidth) {
|
|
4547
4555
|
const colKey = column.getKey();
|
|
@@ -4550,13 +4558,6 @@ export default defineComponent({
|
|
|
4550
4558
|
resizableData[colKey] = column.renderWidth;
|
|
4551
4559
|
}
|
|
4552
4560
|
}
|
|
4553
|
-
if (column.fixed && column.fixed !== column.defaultFixed) {
|
|
4554
|
-
const colKey = column.getKey();
|
|
4555
|
-
if (colKey) {
|
|
4556
|
-
hasFixedt = 1;
|
|
4557
|
-
fixedData[colKey] = column.fixed;
|
|
4558
|
-
}
|
|
4559
|
-
}
|
|
4560
4561
|
if (!checkMethod || checkMethod({ column })) {
|
|
4561
4562
|
if (!column.visible && column.defaultVisible) {
|
|
4562
4563
|
const colKey = column.getKey();
|
package/es/ui/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { VxeUI } from '@vxe-ui/core';
|
|
2
2
|
import { getFuncText } from './src/utils';
|
|
3
|
-
export const version = "4.7.
|
|
3
|
+
export const version = "4.7.42";
|
|
4
4
|
VxeUI.version = version;
|
|
5
|
-
VxeUI.tableVersion = "4.7.
|
|
5
|
+
VxeUI.tableVersion = "4.7.42";
|
|
6
6
|
VxeUI.setConfig({
|
|
7
7
|
emptyCell: ' ',
|
|
8
8
|
table: {
|
|
@@ -62,9 +62,16 @@ VxeUI.setConfig({
|
|
|
62
62
|
allowFixed: true,
|
|
63
63
|
allowSort: true,
|
|
64
64
|
showFooter: true,
|
|
65
|
-
placement: 'top-right'
|
|
65
|
+
placement: 'top-right',
|
|
66
66
|
// storage: false,
|
|
67
|
-
// checkMethod () {}
|
|
67
|
+
// checkMethod () {},
|
|
68
|
+
modalOptions: {
|
|
69
|
+
showMaximize: true,
|
|
70
|
+
mask: true,
|
|
71
|
+
lockView: true,
|
|
72
|
+
resize: true,
|
|
73
|
+
escClosable: true
|
|
74
|
+
}
|
|
68
75
|
},
|
|
69
76
|
sortConfig: {
|
|
70
77
|
// remote: false,
|
package/es/ui/src/log.js
CHANGED
package/lib/index.umd.js
CHANGED
|
@@ -1951,9 +1951,9 @@ function eqEmptyValue(cellValue) {
|
|
|
1951
1951
|
;// CONCATENATED MODULE: ./packages/ui/index.ts
|
|
1952
1952
|
|
|
1953
1953
|
|
|
1954
|
-
const version = "4.7.
|
|
1954
|
+
const version = "4.7.42";
|
|
1955
1955
|
core_.VxeUI.version = version;
|
|
1956
|
-
core_.VxeUI.tableVersion = "4.7.
|
|
1956
|
+
core_.VxeUI.tableVersion = "4.7.42";
|
|
1957
1957
|
core_.VxeUI.setConfig({
|
|
1958
1958
|
emptyCell: ' ',
|
|
1959
1959
|
table: {
|
|
@@ -2013,9 +2013,16 @@ core_.VxeUI.setConfig({
|
|
|
2013
2013
|
allowFixed: true,
|
|
2014
2014
|
allowSort: true,
|
|
2015
2015
|
showFooter: true,
|
|
2016
|
-
placement: 'top-right'
|
|
2016
|
+
placement: 'top-right',
|
|
2017
2017
|
// storage: false,
|
|
2018
|
-
// checkMethod () {}
|
|
2018
|
+
// checkMethod () {},
|
|
2019
|
+
modalOptions: {
|
|
2020
|
+
showMaximize: true,
|
|
2021
|
+
mask: true,
|
|
2022
|
+
lockView: true,
|
|
2023
|
+
resize: true,
|
|
2024
|
+
escClosable: true
|
|
2025
|
+
}
|
|
2019
2026
|
},
|
|
2020
2027
|
sortConfig: {
|
|
2021
2028
|
// remote: false,
|
|
@@ -2324,7 +2331,7 @@ var es_array_push = __webpack_require__(4114);
|
|
|
2324
2331
|
const {
|
|
2325
2332
|
log: log_log
|
|
2326
2333
|
} = core_.VxeUI;
|
|
2327
|
-
const log_version = `table v${"4.7.
|
|
2334
|
+
const log_version = `table v${"4.7.42"}`;
|
|
2328
2335
|
const warnLog = log_log.create('warn', log_version);
|
|
2329
2336
|
const errLog = log_log.create('error', log_version);
|
|
2330
2337
|
;// CONCATENATED MODULE: ./packages/table/src/columnInfo.ts
|
|
@@ -5640,6 +5647,7 @@ const header_renderType = 'header';
|
|
|
5640
5647
|
...params,
|
|
5641
5648
|
resizeWidth
|
|
5642
5649
|
}, evnt);
|
|
5650
|
+
setTimeout(() => $xeTable.recalculate(true), 300);
|
|
5643
5651
|
});
|
|
5644
5652
|
removeClass(tableEl, 'drag--resize');
|
|
5645
5653
|
};
|
|
@@ -6987,6 +6995,9 @@ const {
|
|
|
6987
6995
|
visibleMethod
|
|
6988
6996
|
} = customOpts;
|
|
6989
6997
|
const columnOpts = computeColumnOpts.value;
|
|
6998
|
+
const {
|
|
6999
|
+
maxFixedSize
|
|
7000
|
+
} = columnOpts;
|
|
6990
7001
|
const modalOpts = Object.assign({}, modalOptions);
|
|
6991
7002
|
const isMaxFixedColumn = computeIsMaxFixedColumn.value;
|
|
6992
7003
|
const trVNs = [];
|
|
@@ -7088,12 +7099,15 @@ const {
|
|
|
7088
7099
|
minWidth: modalOpts.minWidth || 700,
|
|
7089
7100
|
height: modalOpts.height || '50vh',
|
|
7090
7101
|
minHeight: modalOpts.minHeight || 400,
|
|
7091
|
-
|
|
7092
|
-
|
|
7093
|
-
|
|
7094
|
-
|
|
7095
|
-
|
|
7102
|
+
showZoom: modalOpts.showZoom,
|
|
7103
|
+
showMaximize: modalOpts.showMaximize,
|
|
7104
|
+
showMinimize: modalOpts.showMinimize,
|
|
7105
|
+
mask: modalOpts.mask,
|
|
7106
|
+
lockView: modalOpts.lockView,
|
|
7107
|
+
resize: modalOpts.resize,
|
|
7108
|
+
escClosable: !!modalOpts.escClosable,
|
|
7096
7109
|
destroyOnClose: true,
|
|
7110
|
+
showFooter: true,
|
|
7097
7111
|
'onUpdate:modelValue'(value) {
|
|
7098
7112
|
customStore.visible = value;
|
|
7099
7113
|
}
|
|
@@ -7146,7 +7160,7 @@ const {
|
|
|
7146
7160
|
class: 'vxe-table-custom-popup--table-sort-help-icon vxe-icon-question-circle-fill'
|
|
7147
7161
|
});
|
|
7148
7162
|
}
|
|
7149
|
-
}) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)()]) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('th', {}, panel_getI18n('vxe.custom.setting.colTitle')), allowResizable ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('th', {}, panel_getI18n('vxe.custom.setting.colResizable')) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)(), allowFixed ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('th', {}, panel_getI18n(
|
|
7163
|
+
}) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)()]) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('th', {}, panel_getI18n('vxe.custom.setting.colTitle')), allowResizable ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('th', {}, panel_getI18n('vxe.custom.setting.colResizable')) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)(), allowFixed ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('th', {}, panel_getI18n(`vxe.custom.setting.${maxFixedSize ? 'colFixedMax' : 'colFixed'}`, [maxFixedSize])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)()])]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(external_commonjs_vue_commonjs2_vue_root_Vue_.TransitionGroup, {
|
|
7150
7164
|
class: 'vxe-table-custom--body',
|
|
7151
7165
|
tag: 'tbody',
|
|
7152
7166
|
name: 'vxe-table-custom--list'
|
|
@@ -7398,8 +7412,10 @@ const {
|
|
|
7398
7412
|
} = filterStore;
|
|
7399
7413
|
const filterOpts = computeFilterOpts.value;
|
|
7400
7414
|
const hasCheckOption = computeHasCheckOption.value;
|
|
7401
|
-
const
|
|
7402
|
-
|
|
7415
|
+
const {
|
|
7416
|
+
filterRender
|
|
7417
|
+
} = column;
|
|
7418
|
+
const compConf = isEnableConf(filterRender) ? panel_renderer.get(filterRender.name) : null;
|
|
7403
7419
|
const isDisabled = !hasCheckOption && !filterStore.isAllSelected && !filterStore.isIndeterminate;
|
|
7404
7420
|
return multiple && (compConf ? !(compConf.showTableFilterFooter === false || compConf.showFilterFooter === false) : true) ? [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
7405
7421
|
class: 'vxe-table--filter-footer'
|
|
@@ -7424,7 +7440,7 @@ const {
|
|
|
7424
7440
|
column
|
|
7425
7441
|
} = filterStore;
|
|
7426
7442
|
const filterRender = column ? column.filterRender : null;
|
|
7427
|
-
const compConf = filterRender ? panel_renderer.get(filterRender.name) : null;
|
|
7443
|
+
const compConf = isEnableConf(filterRender) ? panel_renderer.get(filterRender.name) : null;
|
|
7428
7444
|
const filterClassName = compConf ? compConf.tableFilterClassName || compConf.filterClassName : '';
|
|
7429
7445
|
const params = Object.assign({}, tableInternalData._currFilterParams, {
|
|
7430
7446
|
$panel,
|
|
@@ -8641,7 +8657,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
8641
8657
|
let fixedSize = 0;
|
|
8642
8658
|
// 只判断第一层
|
|
8643
8659
|
collectColumn.forEach(column => {
|
|
8644
|
-
if (column.
|
|
8660
|
+
if (column.renderFixed) {
|
|
8645
8661
|
fixedSize++;
|
|
8646
8662
|
}
|
|
8647
8663
|
});
|
|
@@ -9040,9 +9056,6 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
9040
9056
|
return num;
|
|
9041
9057
|
};
|
|
9042
9058
|
const handleCustomRestore = storeData => {
|
|
9043
|
-
const {
|
|
9044
|
-
tableFullColumn
|
|
9045
|
-
} = internalData;
|
|
9046
9059
|
let {
|
|
9047
9060
|
collectColumn
|
|
9048
9061
|
} = internalData;
|
|
@@ -9055,21 +9068,24 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
9055
9068
|
let hasCustomSort = false;
|
|
9056
9069
|
// 处理还原
|
|
9057
9070
|
if (resizableData || sortData || visibleData || fixedData) {
|
|
9058
|
-
|
|
9071
|
+
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(collectColumn, (column, index, items, path, parent) => {
|
|
9059
9072
|
const colKey = column.getKey();
|
|
9073
|
+
// 支持一级
|
|
9074
|
+
if (!parent) {
|
|
9075
|
+
if (fixedData && fixedData[colKey]) {
|
|
9076
|
+
column.fixed = fixedData[colKey];
|
|
9077
|
+
}
|
|
9078
|
+
if (sortData && external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isNumber(sortData[colKey])) {
|
|
9079
|
+
hasCustomSort = true;
|
|
9080
|
+
column.renderSortNumber = sortData[colKey];
|
|
9081
|
+
}
|
|
9082
|
+
}
|
|
9060
9083
|
if (resizableData && external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isNumber(resizableData[colKey])) {
|
|
9061
9084
|
column.resizeWidth = resizableData[colKey];
|
|
9062
9085
|
}
|
|
9063
9086
|
if (visibleData && external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isBoolean(visibleData[colKey])) {
|
|
9064
9087
|
column.visible = visibleData[colKey];
|
|
9065
9088
|
}
|
|
9066
|
-
if (fixedData && fixedData[colKey]) {
|
|
9067
|
-
column.fixed = fixedData[colKey];
|
|
9068
|
-
}
|
|
9069
|
-
if (sortData && external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isNumber(sortData[colKey])) {
|
|
9070
|
-
hasCustomSort = true;
|
|
9071
|
-
column.renderSortNumber = sortData[colKey];
|
|
9072
|
-
}
|
|
9073
9089
|
});
|
|
9074
9090
|
// 如果自定义了顺序
|
|
9075
9091
|
if (hasCustomSort) {
|
|
@@ -9609,7 +9625,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
9609
9625
|
filterMethod,
|
|
9610
9626
|
filterRender
|
|
9611
9627
|
} = column;
|
|
9612
|
-
const compConf = filterRender ? table_renderer.get(filterRender.name) : null;
|
|
9628
|
+
const compConf = isEnableConf(filterRender) ? table_renderer.get(filterRender.name) : null;
|
|
9613
9629
|
const compFilterMethod = compConf ? compConf.tableFilterMethod || compConf.filterMethod : null;
|
|
9614
9630
|
const tdFilterMethod = compConf ? compConf.defaultTableFilterMethod || compConf.defaultFilterMethod : null;
|
|
9615
9631
|
const cellValue = getCellValue(row, column);
|
|
@@ -11950,16 +11966,13 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
11950
11966
|
const targetColumn = getRootColumn($xeTable, column);
|
|
11951
11967
|
const isMaxFixedColumn = computeIsMaxFixedColumn.value;
|
|
11952
11968
|
const columnOpts = computeColumnOpts.value;
|
|
11953
|
-
const {
|
|
11954
|
-
maxFixedSize
|
|
11955
|
-
} = columnOpts;
|
|
11956
11969
|
if (targetColumn && targetColumn.fixed !== fixed) {
|
|
11957
11970
|
// 是否超过最大固定列数量
|
|
11958
11971
|
if (!targetColumn.fixed && isMaxFixedColumn) {
|
|
11959
11972
|
if (core_.VxeUI.modal) {
|
|
11960
11973
|
core_.VxeUI.modal.message({
|
|
11961
11974
|
status: 'error',
|
|
11962
|
-
content: table_getI18n('vxe.table.maxFixedCol', [maxFixedSize])
|
|
11975
|
+
content: table_getI18n('vxe.table.maxFixedCol', [columnOpts.maxFixedSize])
|
|
11963
11976
|
});
|
|
11964
11977
|
}
|
|
11965
11978
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();
|
|
@@ -13445,7 +13458,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
13445
13458
|
let hasFixedt = 0;
|
|
13446
13459
|
let hasVisible = 0;
|
|
13447
13460
|
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(collectColumn, (column, index, items, path, parent) => {
|
|
13448
|
-
//
|
|
13461
|
+
// 只支持一级
|
|
13449
13462
|
if (!parent) {
|
|
13450
13463
|
collectColumn.forEach(column => {
|
|
13451
13464
|
const colKey = column.getKey();
|
|
@@ -13454,6 +13467,13 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
13454
13467
|
sortData[colKey] = column.renderSortNumber;
|
|
13455
13468
|
}
|
|
13456
13469
|
});
|
|
13470
|
+
if (column.fixed && column.fixed !== column.defaultFixed) {
|
|
13471
|
+
const colKey = column.getKey();
|
|
13472
|
+
if (colKey) {
|
|
13473
|
+
hasFixedt = 1;
|
|
13474
|
+
fixedData[colKey] = column.fixed;
|
|
13475
|
+
}
|
|
13476
|
+
}
|
|
13457
13477
|
}
|
|
13458
13478
|
if (column.resizeWidth) {
|
|
13459
13479
|
const colKey = column.getKey();
|
|
@@ -13462,13 +13482,6 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
13462
13482
|
resizableData[colKey] = column.renderWidth;
|
|
13463
13483
|
}
|
|
13464
13484
|
}
|
|
13465
|
-
if (column.fixed && column.fixed !== column.defaultFixed) {
|
|
13466
|
-
const colKey = column.getKey();
|
|
13467
|
-
if (colKey) {
|
|
13468
|
-
hasFixedt = 1;
|
|
13469
|
-
fixedData[colKey] = column.fixed;
|
|
13470
|
-
}
|
|
13471
|
-
}
|
|
13472
13485
|
if (!checkMethod || checkMethod({
|
|
13473
13486
|
column
|
|
13474
13487
|
})) {
|
|
@@ -16283,6 +16296,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
16283
16296
|
|
|
16284
16297
|
|
|
16285
16298
|
|
|
16299
|
+
|
|
16286
16300
|
const {
|
|
16287
16301
|
renderer: hook_renderer,
|
|
16288
16302
|
hooks: hook_hooks
|
|
@@ -16340,7 +16354,7 @@ hook_hooks.add('tableFilterModule', {
|
|
|
16340
16354
|
filterMultiple,
|
|
16341
16355
|
filterRender
|
|
16342
16356
|
} = column;
|
|
16343
|
-
const compConf = filterRender ? hook_renderer.get(filterRender.name) : null;
|
|
16357
|
+
const compConf = isEnableConf(filterRender) ? hook_renderer.get(filterRender.name) : null;
|
|
16344
16358
|
const frMethod = column.filterRecoverMethod || (compConf ? compConf.tableFilterRecoverMethod || compConf.filterRecoverMethod : null);
|
|
16345
16359
|
internalData._currFilterParams = params;
|
|
16346
16360
|
Object.assign(filterStore, {
|
|
@@ -16435,7 +16449,7 @@ hook_hooks.add('tableFilterModule', {
|
|
|
16435
16449
|
filterRender
|
|
16436
16450
|
} = column;
|
|
16437
16451
|
if (filters) {
|
|
16438
|
-
const compConf = filterRender ? hook_renderer.get(filterRender.name) : null;
|
|
16452
|
+
const compConf = isEnableConf(filterRender) ? hook_renderer.get(filterRender.name) : null;
|
|
16439
16453
|
const frMethod = column.filterResetMethod || (compConf ? compConf.tableFilterResetMethod || compConf.filterResetMethod : null);
|
|
16440
16454
|
filters.forEach(item => {
|
|
16441
16455
|
item._checked = false;
|
|
@@ -18381,7 +18395,7 @@ function checkImportData(columns, fields) {
|
|
|
18381
18395
|
});
|
|
18382
18396
|
return fields.some(field => tableFields.indexOf(field) > -1);
|
|
18383
18397
|
}
|
|
18384
|
-
const tableExportMethodKeys = ['exportData', 'importByFile', 'importData', 'saveFile', 'readFile', 'print', 'openImport', 'openExport', 'openPrint'];
|
|
18398
|
+
const tableExportMethodKeys = ['exportData', 'importByFile', 'importData', 'saveFile', 'readFile', 'print', 'getPrintHtml', 'openImport', 'openExport', 'openPrint'];
|
|
18385
18399
|
export_hook_hooks.add('tableExportModule', {
|
|
18386
18400
|
setupTable($xeTable) {
|
|
18387
18401
|
const {
|
|
@@ -23810,10 +23824,6 @@ core_.VxeUI.component(grid);
|
|
|
23810
23824
|
const Grid = VxeGrid;
|
|
23811
23825
|
/* harmony default export */ var packages_grid = ((/* unused pure expression or super */ null && (VxeGrid)));
|
|
23812
23826
|
;// CONCATENATED MODULE: ./packages/locale/lang/zh-CN.ts
|
|
23813
|
-
/**
|
|
23814
|
-
* v4保留兼容,已废弃,即将删除文件
|
|
23815
|
-
* @deprecated
|
|
23816
|
-
*/
|
|
23817
23827
|
/* harmony default export */ var zh_CN = ({
|
|
23818
23828
|
vxe: {
|
|
23819
23829
|
base: {
|
|
@@ -23938,7 +23948,8 @@ const Grid = VxeGrid;
|
|
|
23938
23948
|
colTitle: '标题',
|
|
23939
23949
|
colResizable: '列宽(像素)',
|
|
23940
23950
|
colVisible: '是否显示',
|
|
23941
|
-
colFixed: '
|
|
23951
|
+
colFixed: '冻结列',
|
|
23952
|
+
colFixedMax: '冻结列(最多 {0} 列)',
|
|
23942
23953
|
fixedLeft: '左侧',
|
|
23943
23954
|
fixedUnset: '不设置',
|
|
23944
23955
|
fixedRight: '右侧'
|
|
@@ -23946,10 +23957,10 @@ const Grid = VxeGrid;
|
|
|
23946
23957
|
},
|
|
23947
23958
|
import: {
|
|
23948
23959
|
modes: {
|
|
23949
|
-
covering: '
|
|
23950
|
-
insert: '
|
|
23951
|
-
insertTop: '
|
|
23952
|
-
insertBottom: '
|
|
23960
|
+
covering: '覆盖方式(直接覆盖表格数据)',
|
|
23961
|
+
insert: '底部追加(在表格的底部追加新数据)',
|
|
23962
|
+
insertTop: '顶部追加(在表格的顶部追加新数据)',
|
|
23963
|
+
insertBottom: '底部追加(在表格的底部追加新数据)'
|
|
23953
23964
|
},
|
|
23954
23965
|
impTitle: '导入数据',
|
|
23955
23966
|
impFile: '文件名',
|