vxe-table 4.11.0-beta.4 → 4.11.0-beta.6
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/header.js +2 -2
- package/es/table/src/table.js +15 -15
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/index.umd.js +27 -19
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/table/src/header.js +2 -2
- package/lib/table/src/header.min.js +1 -1
- package/lib/table/src/table.js +23 -15
- 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/header.ts +2 -2
- package/packages/table/src/table.ts +17 -15
- /package/es/{iconfont.1739527666244.ttf → iconfont.1739677682610.ttf} +0 -0
- /package/es/{iconfont.1739527666244.woff → iconfont.1739677682610.woff} +0 -0
- /package/es/{iconfont.1739527666244.woff2 → iconfont.1739677682610.woff2} +0 -0
- /package/lib/{iconfont.1739527666244.ttf → iconfont.1739677682610.ttf} +0 -0
- /package/lib/{iconfont.1739527666244.woff → iconfont.1739677682610.woff} +0 -0
- /package/lib/{iconfont.1739527666244.woff2 → iconfont.1739677682610.woff2} +0 -0
package/es/table/src/table.js
CHANGED
|
@@ -1141,7 +1141,8 @@ export default defineComponent({
|
|
|
1141
1141
|
const { tableFullColumn, collectColumn } = internalData;
|
|
1142
1142
|
const fullColumnIdData = internalData.fullColumnIdData = {};
|
|
1143
1143
|
const fullColumnFieldData = internalData.fullColumnFieldData = {};
|
|
1144
|
-
|
|
1144
|
+
const mouseOpts = computeMouseOpts.value;
|
|
1145
|
+
const expandOpts = computeExpandOpts.value;
|
|
1145
1146
|
const columnOpts = computeColumnOpts.value;
|
|
1146
1147
|
const columnDragOpts = computeColumnDragOpts.value;
|
|
1147
1148
|
const { isCrossDrag, isSelfToChildDrag } = columnDragOpts;
|
|
@@ -1231,11 +1232,9 @@ export default defineComponent({
|
|
|
1231
1232
|
else {
|
|
1232
1233
|
tableFullColumn.forEach(handleFunc);
|
|
1233
1234
|
}
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
// }
|
|
1238
|
-
// }
|
|
1235
|
+
if ((expandColumn && expandOpts.mode !== 'fixed') && mouseOpts.area) {
|
|
1236
|
+
errLog('vxe.error.errConflicts', ['mouse-config.area', 'column.type=expand']);
|
|
1237
|
+
}
|
|
1239
1238
|
if (process.env.NODE_ENV === 'development') {
|
|
1240
1239
|
if (htmlColumn) {
|
|
1241
1240
|
if (!columnOpts.useKey) {
|
|
@@ -2953,6 +2952,7 @@ export default defineComponent({
|
|
|
2953
2952
|
});
|
|
2954
2953
|
};
|
|
2955
2954
|
const handleColumn = (collectColumn) => {
|
|
2955
|
+
const expandOpts = computeExpandOpts.value;
|
|
2956
2956
|
internalData.collectColumn = collectColumn;
|
|
2957
2957
|
const tableFullColumn = getColumnList(collectColumn);
|
|
2958
2958
|
internalData.tableFullColumn = tableFullColumn;
|
|
@@ -2960,6 +2960,7 @@ export default defineComponent({
|
|
|
2960
2960
|
reactData.isDragColMove = false;
|
|
2961
2961
|
initColumnSort();
|
|
2962
2962
|
return Promise.resolve(restoreCustomStorage()).then(() => {
|
|
2963
|
+
const { scrollXLoad, scrollYLoad, expandColumn } = reactData;
|
|
2963
2964
|
cacheColumnMap();
|
|
2964
2965
|
parseColumns(true).then(() => {
|
|
2965
2966
|
if (reactData.scrollXLoad) {
|
|
@@ -2969,11 +2970,9 @@ export default defineComponent({
|
|
|
2969
2970
|
$xeTable.clearMergeCells();
|
|
2970
2971
|
$xeTable.clearMergeFooterItems();
|
|
2971
2972
|
$xeTable.handleTableData(true);
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
|
|
2975
|
-
// }
|
|
2976
|
-
// }
|
|
2973
|
+
if ((scrollXLoad || scrollYLoad) && (expandColumn && expandOpts.mode !== 'fixed')) {
|
|
2974
|
+
warnLog('vxe.error.scrollErrProp', ['column.type=expand']);
|
|
2975
|
+
}
|
|
2977
2976
|
return nextTick().then(() => {
|
|
2978
2977
|
if ($xeToolbar) {
|
|
2979
2978
|
$xeToolbar.syncUpdate({
|
|
@@ -9754,7 +9753,8 @@ export default defineComponent({
|
|
|
9754
9753
|
warnLog('vxe.error.errLargeData', ['loadData(data), reloadData(data)']);
|
|
9755
9754
|
}
|
|
9756
9755
|
loadTableData(value, true).then(() => {
|
|
9757
|
-
|
|
9756
|
+
const { scrollXLoad, scrollYLoad, expandColumn } = reactData;
|
|
9757
|
+
const expandOpts = computeExpandOpts.value;
|
|
9758
9758
|
internalData.inited = true;
|
|
9759
9759
|
internalData.initStatus = true;
|
|
9760
9760
|
if (!initStatus) {
|
|
@@ -9765,9 +9765,9 @@ export default defineComponent({
|
|
|
9765
9765
|
// if (checkboxColumn && internalData.tableFullData.length > 300 && !checkboxOpts.checkField) {
|
|
9766
9766
|
// warnLog('vxe.error.checkProp', ['checkbox-config.checkField'])
|
|
9767
9767
|
// }
|
|
9768
|
-
|
|
9769
|
-
|
|
9770
|
-
|
|
9768
|
+
if ((scrollXLoad || scrollYLoad) && (expandColumn && expandOpts.mode !== 'fixed')) {
|
|
9769
|
+
warnLog('vxe.error.scrollErrProp', ['column.type=expand']);
|
|
9770
|
+
}
|
|
9771
9771
|
return tableMethods.recalculate();
|
|
9772
9772
|
});
|
|
9773
9773
|
});
|
package/es/ui/index.js
CHANGED
package/es/ui/src/log.js
CHANGED
package/lib/index.umd.js
CHANGED
|
@@ -3138,7 +3138,7 @@ function eqEmptyValue(cellValue) {
|
|
|
3138
3138
|
;// ./packages/ui/index.ts
|
|
3139
3139
|
|
|
3140
3140
|
|
|
3141
|
-
const version = "4.11.0-beta.
|
|
3141
|
+
const version = "4.11.0-beta.6";
|
|
3142
3142
|
core_.VxeUI.version = version;
|
|
3143
3143
|
core_.VxeUI.tableVersion = version;
|
|
3144
3144
|
core_.VxeUI.setConfig({
|
|
@@ -3586,7 +3586,7 @@ var esnext_iterator_some = __webpack_require__(7550);
|
|
|
3586
3586
|
const {
|
|
3587
3587
|
log: log_log
|
|
3588
3588
|
} = core_.VxeUI;
|
|
3589
|
-
const log_version = `table v${"4.11.0-beta.
|
|
3589
|
+
const log_version = `table v${"4.11.0-beta.6"}`;
|
|
3590
3590
|
const warnLog = log_log.create('warn', log_version);
|
|
3591
3591
|
const errLog = log_log.create('error', log_version);
|
|
3592
3592
|
;// ./packages/table/src/columnInfo.ts
|
|
@@ -7268,8 +7268,8 @@ const header_renderType = 'header';
|
|
|
7268
7268
|
'is--sortable': column.sortable,
|
|
7269
7269
|
'col--filter': !!filters,
|
|
7270
7270
|
'is--filter-active': hasFilter,
|
|
7271
|
-
'is--drag-active': !column.fixed && !isDisabledDrag && (isCrossDrag || isPeerDrag || !column.parentId),
|
|
7272
|
-
'is--drag-disabled': isDisabledDrag,
|
|
7271
|
+
'is--drag-active': columnOpts.drag && !column.fixed && !isDisabledDrag && (isCrossDrag || isPeerDrag || !column.parentId),
|
|
7272
|
+
'is--drag-disabled': columnOpts.drag && isDisabledDrag,
|
|
7273
7273
|
'col--current': currentColumn === column
|
|
7274
7274
|
}, headerClassName ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(headerClassName) ? headerClassName(cellParams) : headerClassName : '', headerCellClassName ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(headerCellClassName) ? headerCellClassName(cellParams) : headerCellClassName : ''],
|
|
7275
7275
|
style: headerCellStyle ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(headerCellStyle) ? headerCellStyle(cellParams) : headerCellStyle : null,
|
|
@@ -11600,7 +11600,8 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
11600
11600
|
} = internalData;
|
|
11601
11601
|
const fullColumnIdData = internalData.fullColumnIdData = {};
|
|
11602
11602
|
const fullColumnFieldData = internalData.fullColumnFieldData = {};
|
|
11603
|
-
|
|
11603
|
+
const mouseOpts = computeMouseOpts.value;
|
|
11604
|
+
const expandOpts = computeExpandOpts.value;
|
|
11604
11605
|
const columnOpts = computeColumnOpts.value;
|
|
11605
11606
|
const columnDragOpts = computeColumnDragOpts.value;
|
|
11606
11607
|
const {
|
|
@@ -11706,11 +11707,9 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
11706
11707
|
} else {
|
|
11707
11708
|
tableFullColumn.forEach(handleFunc);
|
|
11708
11709
|
}
|
|
11709
|
-
|
|
11710
|
-
|
|
11711
|
-
|
|
11712
|
-
// }
|
|
11713
|
-
// }
|
|
11710
|
+
if (expandColumn && expandOpts.mode !== 'fixed' && mouseOpts.area) {
|
|
11711
|
+
errLog('vxe.error.errConflicts', ['mouse-config.area', 'column.type=expand']);
|
|
11712
|
+
}
|
|
11714
11713
|
if (true) {
|
|
11715
11714
|
if (htmlColumn) {
|
|
11716
11715
|
if (!columnOpts.useKey) {
|
|
@@ -13757,6 +13756,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
13757
13756
|
});
|
|
13758
13757
|
};
|
|
13759
13758
|
const handleColumn = collectColumn => {
|
|
13759
|
+
const expandOpts = computeExpandOpts.value;
|
|
13760
13760
|
internalData.collectColumn = collectColumn;
|
|
13761
13761
|
const tableFullColumn = getColumnList(collectColumn);
|
|
13762
13762
|
internalData.tableFullColumn = tableFullColumn;
|
|
@@ -13764,6 +13764,11 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
13764
13764
|
reactData.isDragColMove = false;
|
|
13765
13765
|
initColumnSort();
|
|
13766
13766
|
return Promise.resolve(restoreCustomStorage()).then(() => {
|
|
13767
|
+
const {
|
|
13768
|
+
scrollXLoad,
|
|
13769
|
+
scrollYLoad,
|
|
13770
|
+
expandColumn
|
|
13771
|
+
} = reactData;
|
|
13767
13772
|
cacheColumnMap();
|
|
13768
13773
|
parseColumns(true).then(() => {
|
|
13769
13774
|
if (reactData.scrollXLoad) {
|
|
@@ -13773,11 +13778,9 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
13773
13778
|
$xeTable.clearMergeCells();
|
|
13774
13779
|
$xeTable.clearMergeFooterItems();
|
|
13775
13780
|
$xeTable.handleTableData(true);
|
|
13776
|
-
|
|
13777
|
-
|
|
13778
|
-
|
|
13779
|
-
// }
|
|
13780
|
-
// }
|
|
13781
|
+
if ((scrollXLoad || scrollYLoad) && expandColumn && expandOpts.mode !== 'fixed') {
|
|
13782
|
+
warnLog('vxe.error.scrollErrProp', ['column.type=expand']);
|
|
13783
|
+
}
|
|
13781
13784
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)().then(() => {
|
|
13782
13785
|
if ($xeToolbar) {
|
|
13783
13786
|
$xeToolbar.syncUpdate({
|
|
@@ -21538,7 +21541,12 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
21538
21541
|
warnLog('vxe.error.errLargeData', ['loadData(data), reloadData(data)']);
|
|
21539
21542
|
}
|
|
21540
21543
|
loadTableData(value, true).then(() => {
|
|
21541
|
-
|
|
21544
|
+
const {
|
|
21545
|
+
scrollXLoad,
|
|
21546
|
+
scrollYLoad,
|
|
21547
|
+
expandColumn
|
|
21548
|
+
} = reactData;
|
|
21549
|
+
const expandOpts = computeExpandOpts.value;
|
|
21542
21550
|
internalData.inited = true;
|
|
21543
21551
|
internalData.initStatus = true;
|
|
21544
21552
|
if (!initStatus) {
|
|
@@ -21549,9 +21557,9 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
21549
21557
|
// if (checkboxColumn && internalData.tableFullData.length > 300 && !checkboxOpts.checkField) {
|
|
21550
21558
|
// warnLog('vxe.error.checkProp', ['checkbox-config.checkField'])
|
|
21551
21559
|
// }
|
|
21552
|
-
|
|
21553
|
-
|
|
21554
|
-
|
|
21560
|
+
if ((scrollXLoad || scrollYLoad) && expandColumn && expandOpts.mode !== 'fixed') {
|
|
21561
|
+
warnLog('vxe.error.scrollErrProp', ['column.type=expand']);
|
|
21562
|
+
}
|
|
21555
21563
|
return tableMethods.recalculate();
|
|
21556
21564
|
});
|
|
21557
21565
|
});
|