vxe-table 4.10.0-beta.7 → 4.10.0-beta.8
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 +19 -16
- package/es/table/src/util.js +5 -1
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/index.umd.js +26 -19
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/table/src/table.js +19 -14
- package/lib/table/src/table.min.js +1 -1
- package/lib/table/src/util.js +5 -3
- package/lib/table/src/util.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 +20 -18
- package/packages/table/src/util.ts +7 -1
- /package/es/{iconfont.1735277353288.ttf → iconfont.1735299037175.ttf} +0 -0
- /package/es/{iconfont.1735277353288.woff → iconfont.1735299037175.woff} +0 -0
- /package/es/{iconfont.1735277353288.woff2 → iconfont.1735299037175.woff2} +0 -0
- /package/lib/{iconfont.1735277353288.ttf → iconfont.1735299037175.ttf} +0 -0
- /package/lib/{iconfont.1735277353288.woff → iconfont.1735299037175.woff} +0 -0
- /package/lib/{iconfont.1735277353288.woff2 → iconfont.1735299037175.woff2} +0 -0
package/lib/index.umd.js
CHANGED
|
@@ -1998,7 +1998,7 @@ function eqEmptyValue(cellValue) {
|
|
|
1998
1998
|
;// CONCATENATED MODULE: ./packages/ui/index.ts
|
|
1999
1999
|
|
|
2000
2000
|
|
|
2001
|
-
const version = "4.10.0-beta.
|
|
2001
|
+
const version = "4.10.0-beta.8";
|
|
2002
2002
|
core_.VxeUI.version = version;
|
|
2003
2003
|
core_.VxeUI.tableVersion = version;
|
|
2004
2004
|
core_.VxeUI.setConfig({
|
|
@@ -2414,7 +2414,7 @@ var es_array_push = __webpack_require__(4114);
|
|
|
2414
2414
|
const {
|
|
2415
2415
|
log: log_log
|
|
2416
2416
|
} = core_.VxeUI;
|
|
2417
|
-
const log_version = `table v${"4.10.0-beta.
|
|
2417
|
+
const log_version = `table v${"4.10.0-beta.8"}`;
|
|
2418
2418
|
const warnLog = log_log.create('warn', log_version);
|
|
2419
2419
|
const errLog = log_log.create('error', log_version);
|
|
2420
2420
|
;// CONCATENATED MODULE: ./packages/table/src/columnInfo.ts
|
|
@@ -2837,14 +2837,16 @@ const convertHeaderColumnToRows = originColumns => {
|
|
|
2837
2837
|
return rows;
|
|
2838
2838
|
};
|
|
2839
2839
|
function restoreScrollLocation($xeTable, scrollLeft, scrollTop) {
|
|
2840
|
-
const
|
|
2841
|
-
internalData
|
|
2842
|
-
} = $xeTable;
|
|
2840
|
+
const internalData = $xeTable.internalData;
|
|
2843
2841
|
return $xeTable.clearScroll().then(() => {
|
|
2844
2842
|
if (scrollLeft || scrollTop) {
|
|
2845
2843
|
// 重置最后滚动状态
|
|
2846
2844
|
internalData.lastScrollLeft = 0;
|
|
2847
2845
|
internalData.lastScrollTop = 0;
|
|
2846
|
+
internalData.inVirtualScroll = false;
|
|
2847
|
+
internalData.inBodyScroll = false;
|
|
2848
|
+
internalData.inFooterScroll = false;
|
|
2849
|
+
internalData.bodyScrollType = '';
|
|
2848
2850
|
// 还原滚动状态
|
|
2849
2851
|
return $xeTable.scrollTo(scrollLeft, scrollTop);
|
|
2850
2852
|
}
|
|
@@ -12120,7 +12122,6 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
12120
12122
|
editStore.insertMaps = {};
|
|
12121
12123
|
editStore.removeMaps = {};
|
|
12122
12124
|
const sYLoad = updateScrollYStatus(fullData);
|
|
12123
|
-
reactData.scrollYLoad = sYLoad;
|
|
12124
12125
|
reactData.isDragRowMove = false;
|
|
12125
12126
|
// 全量数据
|
|
12126
12127
|
internalData.tableFullData = fullData;
|
|
@@ -12722,15 +12723,18 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
12722
12723
|
};
|
|
12723
12724
|
const scrollXEvent = evnt => {
|
|
12724
12725
|
const {
|
|
12726
|
+
intoRunScroll,
|
|
12725
12727
|
inFooterScroll,
|
|
12726
12728
|
inBodyScroll,
|
|
12727
12729
|
lastScrollTop
|
|
12728
12730
|
} = internalData;
|
|
12729
|
-
if (
|
|
12730
|
-
|
|
12731
|
-
|
|
12732
|
-
|
|
12733
|
-
|
|
12731
|
+
if (!intoRunScroll) {
|
|
12732
|
+
if (inFooterScroll) {
|
|
12733
|
+
return;
|
|
12734
|
+
}
|
|
12735
|
+
if (inBodyScroll) {
|
|
12736
|
+
return;
|
|
12737
|
+
}
|
|
12734
12738
|
}
|
|
12735
12739
|
const tableHeader = refTableHeader.value;
|
|
12736
12740
|
const tableBody = refTableBody.value;
|
|
@@ -12762,15 +12766,18 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
12762
12766
|
};
|
|
12763
12767
|
const scrollYEvent = evnt => {
|
|
12764
12768
|
const {
|
|
12769
|
+
intoRunScroll,
|
|
12765
12770
|
inFooterScroll,
|
|
12766
12771
|
inBodyScroll,
|
|
12767
12772
|
lastScrollLeft
|
|
12768
12773
|
} = internalData;
|
|
12769
|
-
if (
|
|
12770
|
-
|
|
12771
|
-
|
|
12772
|
-
|
|
12773
|
-
|
|
12774
|
+
if (!intoRunScroll) {
|
|
12775
|
+
if (inFooterScroll) {
|
|
12776
|
+
return;
|
|
12777
|
+
}
|
|
12778
|
+
if (inBodyScroll) {
|
|
12779
|
+
return;
|
|
12780
|
+
}
|
|
12774
12781
|
}
|
|
12775
12782
|
const tableBody = refTableBody.value;
|
|
12776
12783
|
const leftBody = refTableLeftBody.value;
|
|
@@ -12815,8 +12822,8 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
12815
12822
|
internalData.lcsTimeout = undefined;
|
|
12816
12823
|
internalData.inVirtualScroll = false;
|
|
12817
12824
|
internalData.inBodyScroll = false;
|
|
12818
|
-
internalData.bodyScrollType = '';
|
|
12819
12825
|
internalData.inFooterScroll = false;
|
|
12826
|
+
internalData.bodyScrollType = '';
|
|
12820
12827
|
if (isRollX && scrollXLoad) {
|
|
12821
12828
|
tablePrivateMethods.updateScrollXData();
|
|
12822
12829
|
}
|
|
@@ -15037,6 +15044,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
15037
15044
|
const rightBodyElem = rightBody ? rightBody.$el : null;
|
|
15038
15045
|
const tableHeaderElem = tableHeader ? tableHeader.$el : null;
|
|
15039
15046
|
const tableFooterElem = tableFooter ? tableFooter.$el : null;
|
|
15047
|
+
internalData.intoRunScroll = true;
|
|
15040
15048
|
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isNumber(scrollLeft)) {
|
|
15041
15049
|
const xHandleEl = refScrollXHandleElem.value;
|
|
15042
15050
|
if (xHandleEl) {
|
|
@@ -15061,6 +15069,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
15061
15069
|
return new Promise(resolve => {
|
|
15062
15070
|
setTimeout(() => {
|
|
15063
15071
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
|
|
15072
|
+
internalData.intoRunScroll = false;
|
|
15064
15073
|
resolve();
|
|
15065
15074
|
});
|
|
15066
15075
|
}, 30);
|
|
@@ -18472,7 +18481,6 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
18472
18481
|
const {
|
|
18473
18482
|
showOverflow
|
|
18474
18483
|
} = props;
|
|
18475
|
-
// reactData.tableColumn = []
|
|
18476
18484
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)().then(() => {
|
|
18477
18485
|
handleTableColumn();
|
|
18478
18486
|
calcCellHeight();
|
|
@@ -18483,7 +18491,6 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
18483
18491
|
});
|
|
18484
18492
|
},
|
|
18485
18493
|
updateScrollYData() {
|
|
18486
|
-
// reactData.tableData = []
|
|
18487
18494
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)().then(() => {
|
|
18488
18495
|
tablePrivateMethods.handleTableData();
|
|
18489
18496
|
calcCellHeight();
|