vxe-table 4.12.0-beta.11 → 4.12.0-beta.13
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/table.js +34 -38
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/index.umd.js +6 -12
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/table/src/table.js +35 -38
- package/lib/table/src/table.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/table.ts +34 -38
- /package/es/{iconfont.1741687565851.ttf → iconfont.1741830530906.ttf} +0 -0
- /package/es/{iconfont.1741687565851.woff → iconfont.1741830530906.woff} +0 -0
- /package/es/{iconfont.1741687565851.woff2 → iconfont.1741830530906.woff2} +0 -0
- /package/lib/{iconfont.1741687565851.ttf → iconfont.1741830530906.ttf} +0 -0
- /package/lib/{iconfont.1741687565851.woff → iconfont.1741830530906.woff} +0 -0
- /package/lib/{iconfont.1741687565851.woff2 → iconfont.1741830530906.woff2} +0 -0
package/lib/table/src/table.js
CHANGED
|
@@ -1383,7 +1383,7 @@ var _default = exports.default = (0, _vue.defineComponent)({
|
|
|
1383
1383
|
fullColumnFieldData[field] = rest;
|
|
1384
1384
|
} else {
|
|
1385
1385
|
if (storage && !type || columnOpts.drag && (isCrossDrag || isSelfToChildDrag)) {
|
|
1386
|
-
(0, _log.errLog)('vxe.error.reqProp', [`${column.getTitle() || type || ''} -> column.field
|
|
1386
|
+
(0, _log.errLog)('vxe.error.reqProp', [`${column.getTitle() || type || ''} -> column.field=?`]);
|
|
1387
1387
|
}
|
|
1388
1388
|
}
|
|
1389
1389
|
if (!hasFixed && fixed) {
|
|
@@ -6034,12 +6034,12 @@ var _default = exports.default = (0, _vue.defineComponent)({
|
|
|
6034
6034
|
column,
|
|
6035
6035
|
visible
|
|
6036
6036
|
} = filterStore;
|
|
6037
|
-
|
|
6038
|
-
|
|
6039
|
-
|
|
6040
|
-
|
|
6041
|
-
|
|
6042
|
-
|
|
6037
|
+
Object.assign(filterStore, {
|
|
6038
|
+
isAllSelected: false,
|
|
6039
|
+
isIndeterminate: false,
|
|
6040
|
+
options: [],
|
|
6041
|
+
visible: false
|
|
6042
|
+
});
|
|
6043
6043
|
if (visible) {
|
|
6044
6044
|
dispatchEvent('filter-visible', {
|
|
6045
6045
|
column,
|
|
@@ -6768,8 +6768,15 @@ var _default = exports.default = (0, _vue.defineComponent)({
|
|
|
6768
6768
|
collectColumn
|
|
6769
6769
|
} = internalData;
|
|
6770
6770
|
const {
|
|
6771
|
+
storage,
|
|
6771
6772
|
checkMethod
|
|
6772
6773
|
} = customOpts;
|
|
6774
|
+
const isAllCustom = storage === true;
|
|
6775
|
+
const storageOpts = isAllCustom ? {} : Object.assign({}, storage || {});
|
|
6776
|
+
const isCustomResizable = isAllCustom || storageOpts.resizable;
|
|
6777
|
+
const isCustomVisible = isAllCustom || storageOpts.visible;
|
|
6778
|
+
const isCustomFixed = isAllCustom || storageOpts.fixed;
|
|
6779
|
+
const isCustomSort = isAllCustom || storageOpts.sort;
|
|
6773
6780
|
const resizableData = {};
|
|
6774
6781
|
const sortData = {};
|
|
6775
6782
|
const visibleData = {};
|
|
@@ -6789,45 +6796,35 @@ var _default = exports.default = (0, _vue.defineComponent)({
|
|
|
6789
6796
|
let hasFixed = 0;
|
|
6790
6797
|
let hasVisible = 0;
|
|
6791
6798
|
_xeUtils.default.eachTree(collectColumn, (column, index, items, path, parentColumn) => {
|
|
6799
|
+
const colKey = column.getKey();
|
|
6800
|
+
if (!colKey) {
|
|
6801
|
+
(0, _log.errLog)('vxe.error.reqProp', [`${column.getTitle() || column.type || ''} -> column.field=?`]);
|
|
6802
|
+
return;
|
|
6803
|
+
}
|
|
6792
6804
|
// 只支持一级
|
|
6793
6805
|
if (!parentColumn) {
|
|
6794
|
-
|
|
6795
|
-
|
|
6796
|
-
|
|
6797
|
-
hasSort = 1;
|
|
6798
|
-
sortData[colKey] = column.renderSortNumber;
|
|
6799
|
-
}
|
|
6800
|
-
});
|
|
6801
|
-
if (column.fixed !== column.defaultFixed) {
|
|
6802
|
-
const colKey = column.getKey();
|
|
6803
|
-
if (colKey) {
|
|
6804
|
-
hasFixed = 1;
|
|
6805
|
-
fixedData[colKey] = column.fixed;
|
|
6806
|
-
}
|
|
6806
|
+
if (isCustomSort) {
|
|
6807
|
+
hasSort = 1;
|
|
6808
|
+
sortData[colKey] = column.renderSortNumber;
|
|
6807
6809
|
}
|
|
6808
|
-
|
|
6809
|
-
|
|
6810
|
-
|
|
6811
|
-
if (colKey) {
|
|
6812
|
-
hasResizable = 1;
|
|
6813
|
-
resizableData[colKey] = column.renderWidth;
|
|
6810
|
+
if (isCustomFixed && column.fixed !== column.defaultFixed) {
|
|
6811
|
+
hasFixed = 1;
|
|
6812
|
+
fixedData[colKey] = column.fixed;
|
|
6814
6813
|
}
|
|
6815
6814
|
}
|
|
6816
|
-
if (
|
|
6815
|
+
if (isCustomResizable && column.resizeWidth) {
|
|
6816
|
+
hasResizable = 1;
|
|
6817
|
+
resizableData[colKey] = column.renderWidth;
|
|
6818
|
+
}
|
|
6819
|
+
if (isCustomVisible && (!checkMethod || checkMethod({
|
|
6817
6820
|
column
|
|
6818
|
-
})) {
|
|
6821
|
+
}))) {
|
|
6819
6822
|
if (!column.visible && column.defaultVisible) {
|
|
6820
|
-
|
|
6821
|
-
|
|
6822
|
-
hasVisible = 1;
|
|
6823
|
-
visibleData[colKey] = false;
|
|
6824
|
-
}
|
|
6823
|
+
hasVisible = 1;
|
|
6824
|
+
visibleData[colKey] = false;
|
|
6825
6825
|
} else if (column.visible && !column.defaultVisible) {
|
|
6826
|
-
|
|
6827
|
-
|
|
6828
|
-
hasVisible = 1;
|
|
6829
|
-
visibleData[colKey] = true;
|
|
6830
|
-
}
|
|
6826
|
+
hasVisible = 1;
|
|
6827
|
+
visibleData[colKey] = true;
|
|
6831
6828
|
}
|
|
6832
6829
|
}
|
|
6833
6830
|
});
|