vxe-table 3.12.0-beta.7 → 3.12.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/methods.js +46 -29
- package/es/table/src/util.js +10 -5
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/index.umd.js +58 -45
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/table/src/methods.js +46 -38
- package/lib/table/src/methods.min.js +1 -1
- package/lib/table/src/util.js +10 -5
- 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/methods.ts +54 -35
- package/packages/table/src/util.ts +12 -5
- /package/es/{iconfont.1735277338963.ttf → iconfont.1735299026800.ttf} +0 -0
- /package/es/{iconfont.1735277338963.woff → iconfont.1735299026800.woff} +0 -0
- /package/es/{iconfont.1735277338963.woff2 → iconfont.1735299026800.woff2} +0 -0
- /package/lib/{iconfont.1735277338963.ttf → iconfont.1735299026800.ttf} +0 -0
- /package/lib/{iconfont.1735277338963.woff → iconfont.1735299026800.woff} +0 -0
- /package/lib/{iconfont.1735277338963.woff2 → iconfont.1735299026800.woff2} +0 -0
package/es/table/src/methods.js
CHANGED
|
@@ -66,9 +66,10 @@ function handleReserveRow(_vm, reserveRowMap) {
|
|
|
66
66
|
});
|
|
67
67
|
return reserveList;
|
|
68
68
|
}
|
|
69
|
-
function handleVirtualXVisible(
|
|
70
|
-
const
|
|
71
|
-
const {
|
|
69
|
+
function handleVirtualXVisible($xeTable) {
|
|
70
|
+
const internalData = $xeTable;
|
|
71
|
+
const { visibleColumn } = internalData;
|
|
72
|
+
const tableBody = $xeTable.$refs.tableBody;
|
|
72
73
|
const tableBodyElem = tableBody ? tableBody.$el : null;
|
|
73
74
|
if (tableBodyElem) {
|
|
74
75
|
const { scrollLeft, clientWidth } = tableBodyElem;
|
|
@@ -99,8 +100,8 @@ const computeRowHeight = ($xeTable) => {
|
|
|
99
100
|
const tableBody = $xeTable.$refs.tableBody;
|
|
100
101
|
const tableBodyElem = tableBody ? tableBody.$el : null;
|
|
101
102
|
const vSize = $xeTable.computeSize;
|
|
102
|
-
const rowHeightMaps = $xeTable.
|
|
103
|
-
let rowHeight =
|
|
103
|
+
const rowHeightMaps = $xeTable.computeRowHeightMaps;
|
|
104
|
+
let rowHeight = 24;
|
|
104
105
|
if (showOverflow) {
|
|
105
106
|
if (tableBodyElem) {
|
|
106
107
|
const tableHeaderElem = tableHeader ? tableHeader.$el : null;
|
|
@@ -120,8 +121,9 @@ const computeRowHeight = ($xeTable) => {
|
|
|
120
121
|
return rowHeight;
|
|
121
122
|
};
|
|
122
123
|
function handleVirtualYVisible($xeTable) {
|
|
123
|
-
const
|
|
124
|
-
const
|
|
124
|
+
const internalData = $xeTable;
|
|
125
|
+
const { scrollYStore, afterFullData, fullAllDataRowIdData } = internalData;
|
|
126
|
+
const tableBody = $xeTable.$refs.tableBody;
|
|
125
127
|
const tableBodyElem = tableBody ? tableBody.$el : null;
|
|
126
128
|
const { rowHeight } = scrollYStore;
|
|
127
129
|
if (tableBodyElem) {
|
|
@@ -133,11 +135,11 @@ function handleVirtualYVisible($xeTable) {
|
|
|
133
135
|
for (let rIndex = 0, rLen = afterFullData.length; rIndex < rLen; rIndex++) {
|
|
134
136
|
const row = afterFullData[rIndex];
|
|
135
137
|
const rowid = getRowid($xeTable, row);
|
|
136
|
-
const
|
|
137
|
-
if (!
|
|
138
|
+
const rowRest = fullAllDataRowIdData[rowid];
|
|
139
|
+
if (!rowRest) {
|
|
138
140
|
break;
|
|
139
141
|
}
|
|
140
|
-
offsetTop +=
|
|
142
|
+
offsetTop += rowRest.height || rowHeight;
|
|
141
143
|
if (toVisibleIndex === -1 && scrollTop < offsetTop) {
|
|
142
144
|
toVisibleIndex = rIndex;
|
|
143
145
|
}
|
|
@@ -735,7 +737,6 @@ const Methods = {
|
|
|
735
737
|
editStore.removeList = [];
|
|
736
738
|
editStore.removeMaps = {};
|
|
737
739
|
const sYLoad = this.updateScrollYStatus(fullData);
|
|
738
|
-
this.scrollYLoad = sYLoad;
|
|
739
740
|
this.isDragRowMove = false;
|
|
740
741
|
// 全量数据
|
|
741
742
|
this.tableFullData = fullData;
|
|
@@ -6815,12 +6816,14 @@ const Methods = {
|
|
|
6815
6816
|
scrollXEvent(evnt) {
|
|
6816
6817
|
const $xeTable = this;
|
|
6817
6818
|
const internalData = $xeTable;
|
|
6818
|
-
const { inFooterScroll, inBodyScroll, lastScrollTop } = internalData;
|
|
6819
|
-
if (
|
|
6820
|
-
|
|
6821
|
-
|
|
6822
|
-
|
|
6823
|
-
|
|
6819
|
+
const { intoRunScroll, inFooterScroll, inBodyScroll, lastScrollTop } = internalData;
|
|
6820
|
+
if (!intoRunScroll) {
|
|
6821
|
+
if (inFooterScroll) {
|
|
6822
|
+
return;
|
|
6823
|
+
}
|
|
6824
|
+
if (inBodyScroll) {
|
|
6825
|
+
return;
|
|
6826
|
+
}
|
|
6824
6827
|
}
|
|
6825
6828
|
const tableHeader = $xeTable.$refs.tableHeader;
|
|
6826
6829
|
const tableBody = $xeTable.$refs.tableBody;
|
|
@@ -6851,12 +6854,14 @@ const Methods = {
|
|
|
6851
6854
|
scrollYEvent(evnt) {
|
|
6852
6855
|
const $xeTable = this;
|
|
6853
6856
|
const internalData = $xeTable;
|
|
6854
|
-
const { inFooterScroll, inBodyScroll, lastScrollLeft } = internalData;
|
|
6855
|
-
if (
|
|
6856
|
-
|
|
6857
|
-
|
|
6858
|
-
|
|
6859
|
-
|
|
6857
|
+
const { intoRunScroll, inFooterScroll, inBodyScroll, lastScrollLeft } = internalData;
|
|
6858
|
+
if (!intoRunScroll) {
|
|
6859
|
+
if (inFooterScroll) {
|
|
6860
|
+
return;
|
|
6861
|
+
}
|
|
6862
|
+
if (inBodyScroll) {
|
|
6863
|
+
return;
|
|
6864
|
+
}
|
|
6860
6865
|
}
|
|
6861
6866
|
const tableBody = $xeTable.$refs.tableBody;
|
|
6862
6867
|
const leftBody = $xeTable.$refs.leftBody;
|
|
@@ -6973,7 +6978,6 @@ const Methods = {
|
|
|
6973
6978
|
const $xeTable = this;
|
|
6974
6979
|
const props = $xeTable;
|
|
6975
6980
|
const { showOverflow } = props;
|
|
6976
|
-
// this.tableColumn = []
|
|
6977
6981
|
return $xeTable.$nextTick().then(() => {
|
|
6978
6982
|
$xeTable.handleTableColumn();
|
|
6979
6983
|
calcCellHeight($xeTable);
|
|
@@ -7026,7 +7030,6 @@ const Methods = {
|
|
|
7026
7030
|
},
|
|
7027
7031
|
updateScrollYData() {
|
|
7028
7032
|
const $xeTable = this;
|
|
7029
|
-
// this.tableData = []
|
|
7030
7033
|
return $xeTable.$nextTick().then(() => {
|
|
7031
7034
|
$xeTable.handleTableData();
|
|
7032
7035
|
calcCellHeight($xeTable);
|
|
@@ -7095,6 +7098,7 @@ const Methods = {
|
|
|
7095
7098
|
*/
|
|
7096
7099
|
scrollTo(scrollLeft, scrollTop) {
|
|
7097
7100
|
const $xeTable = this;
|
|
7101
|
+
const internalData = $xeTable;
|
|
7098
7102
|
const { $refs } = this;
|
|
7099
7103
|
const { tableBody, tableHeader, leftBody, rightBody, tableFooter } = $refs;
|
|
7100
7104
|
const tableBodyElem = tableBody ? tableBody.$el : null;
|
|
@@ -7102,6 +7106,7 @@ const Methods = {
|
|
|
7102
7106
|
const rightBodyElem = rightBody ? rightBody.$el : null;
|
|
7103
7107
|
const tableHeaderElem = tableHeader ? tableHeader.$el : null;
|
|
7104
7108
|
const tableFooterElem = tableFooter ? tableFooter.$el : null;
|
|
7109
|
+
internalData.intoRunScroll = true;
|
|
7105
7110
|
if (XEUtils.isNumber(scrollLeft)) {
|
|
7106
7111
|
const xHandleEl = $xeTable.$refs.refScrollXHandleElem;
|
|
7107
7112
|
if (xHandleEl) {
|
|
@@ -7125,7 +7130,14 @@ const Methods = {
|
|
|
7125
7130
|
}
|
|
7126
7131
|
}
|
|
7127
7132
|
if (this.scrollXLoad || this.scrollYLoad) {
|
|
7128
|
-
return new Promise(resolve =>
|
|
7133
|
+
return new Promise(resolve => {
|
|
7134
|
+
setTimeout(() => {
|
|
7135
|
+
$xeTable.$nextTick(() => {
|
|
7136
|
+
internalData.intoRunScroll = false;
|
|
7137
|
+
resolve();
|
|
7138
|
+
});
|
|
7139
|
+
});
|
|
7140
|
+
});
|
|
7129
7141
|
}
|
|
7130
7142
|
return this.$nextTick();
|
|
7131
7143
|
},
|
|
@@ -7185,10 +7197,15 @@ const Methods = {
|
|
|
7185
7197
|
*/
|
|
7186
7198
|
clearScroll() {
|
|
7187
7199
|
const $xeTable = this;
|
|
7188
|
-
const
|
|
7189
|
-
const {
|
|
7190
|
-
const
|
|
7200
|
+
const internalData = $xeTable;
|
|
7201
|
+
const { scrollXStore, scrollYStore } = internalData;
|
|
7202
|
+
const tableBody = $xeTable.$refs.tableBody;
|
|
7203
|
+
const tableHeader = $xeTable.$refs.tableHeader;
|
|
7204
|
+
const tableFooter = $xeTable.$refs.tableFooter;
|
|
7205
|
+
const leftBody = $xeTable.$refs.leftBody;
|
|
7206
|
+
const rightBody = $xeTable.$refs.rightBody;
|
|
7191
7207
|
const leftBodyElem = leftBody ? leftBody.$el : null;
|
|
7208
|
+
const tableBodyElem = tableBody ? tableBody.$el : null;
|
|
7192
7209
|
const rightBodyElem = rightBody ? rightBody.$el : null;
|
|
7193
7210
|
const tableHeaderElem = tableHeader ? tableHeader.$el : null;
|
|
7194
7211
|
const tableFooterElem = tableFooter ? tableFooter.$el : null;
|
package/es/table/src/util.js
CHANGED
|
@@ -66,14 +66,19 @@ const lineOffsetSizes = {
|
|
|
66
66
|
small: 2,
|
|
67
67
|
medium: 1
|
|
68
68
|
};
|
|
69
|
-
export function restoreScrollLocation(
|
|
70
|
-
|
|
69
|
+
export function restoreScrollLocation($xeTable, scrollLeft, scrollTop) {
|
|
70
|
+
const internalData = $xeTable;
|
|
71
|
+
return $xeTable.clearScroll().then(() => {
|
|
71
72
|
if (scrollLeft || scrollTop) {
|
|
72
73
|
// 重置最后滚动状态
|
|
73
|
-
|
|
74
|
-
|
|
74
|
+
internalData.lastScrollLeft = 0;
|
|
75
|
+
internalData.lastScrollTop = 0;
|
|
76
|
+
internalData.inVirtualScroll = false;
|
|
77
|
+
internalData.inBodyScroll = false;
|
|
78
|
+
internalData.inFooterScroll = false;
|
|
79
|
+
internalData.bodyScrollType = '';
|
|
75
80
|
// 还原滚动状态
|
|
76
|
-
return
|
|
81
|
+
return $xeTable.scrollTo(scrollLeft, scrollTop);
|
|
77
82
|
}
|
|
78
83
|
});
|
|
79
84
|
}
|
package/es/ui/index.js
CHANGED
package/es/ui/src/log.js
CHANGED
package/lib/index.umd.js
CHANGED
|
@@ -2220,7 +2220,7 @@ function getClass(property, params) {
|
|
|
2220
2220
|
;// CONCATENATED MODULE: ./packages/ui/index.ts
|
|
2221
2221
|
|
|
2222
2222
|
|
|
2223
|
-
const version = "3.12.0-beta.
|
|
2223
|
+
const version = "3.12.0-beta.8";
|
|
2224
2224
|
core_.VxeUI.version = version;
|
|
2225
2225
|
core_.VxeUI.tableVersion = version;
|
|
2226
2226
|
core_.VxeUI.setConfig({
|
|
@@ -2808,7 +2808,7 @@ function isNodeElement(elem) {
|
|
|
2808
2808
|
const {
|
|
2809
2809
|
log: log_log
|
|
2810
2810
|
} = core_.VxeUI;
|
|
2811
|
-
const log_version = `table v${"3.12.0-beta.
|
|
2811
|
+
const log_version = `table v${"3.12.0-beta.8"}`;
|
|
2812
2812
|
const warnLog = log_log.create('warn', log_version);
|
|
2813
2813
|
const errLog = log_log.create('error', log_version);
|
|
2814
2814
|
;// CONCATENATED MODULE: ./packages/table/src/columnInfo.ts
|
|
@@ -3054,14 +3054,19 @@ const lineOffsetSizes = {
|
|
|
3054
3054
|
small: 2,
|
|
3055
3055
|
medium: 1
|
|
3056
3056
|
};
|
|
3057
|
-
function restoreScrollLocation(
|
|
3058
|
-
|
|
3057
|
+
function restoreScrollLocation($xeTable, scrollLeft, scrollTop) {
|
|
3058
|
+
const internalData = $xeTable;
|
|
3059
|
+
return $xeTable.clearScroll().then(() => {
|
|
3059
3060
|
if (scrollLeft || scrollTop) {
|
|
3060
3061
|
// 重置最后滚动状态
|
|
3061
|
-
|
|
3062
|
-
|
|
3062
|
+
internalData.lastScrollLeft = 0;
|
|
3063
|
+
internalData.lastScrollTop = 0;
|
|
3064
|
+
internalData.inVirtualScroll = false;
|
|
3065
|
+
internalData.inBodyScroll = false;
|
|
3066
|
+
internalData.inFooterScroll = false;
|
|
3067
|
+
internalData.bodyScrollType = '';
|
|
3063
3068
|
// 还原滚动状态
|
|
3064
|
-
return
|
|
3069
|
+
return $xeTable.scrollTo(scrollLeft, scrollTop);
|
|
3065
3070
|
}
|
|
3066
3071
|
});
|
|
3067
3072
|
}
|
|
@@ -4996,14 +5001,12 @@ function handleReserveRow(_vm, reserveRowMap) {
|
|
|
4996
5001
|
});
|
|
4997
5002
|
return reserveList;
|
|
4998
5003
|
}
|
|
4999
|
-
function handleVirtualXVisible(
|
|
5004
|
+
function handleVirtualXVisible($xeTable) {
|
|
5005
|
+
const internalData = $xeTable;
|
|
5000
5006
|
const {
|
|
5001
|
-
$refs,
|
|
5002
5007
|
visibleColumn
|
|
5003
|
-
} =
|
|
5004
|
-
const
|
|
5005
|
-
tableBody
|
|
5006
|
-
} = $refs;
|
|
5008
|
+
} = internalData;
|
|
5009
|
+
const tableBody = $xeTable.$refs.tableBody;
|
|
5007
5010
|
const tableBodyElem = tableBody ? tableBody.$el : null;
|
|
5008
5011
|
if (tableBodyElem) {
|
|
5009
5012
|
const {
|
|
@@ -5045,8 +5048,8 @@ const computeRowHeight = $xeTable => {
|
|
|
5045
5048
|
const tableBody = $xeTable.$refs.tableBody;
|
|
5046
5049
|
const tableBodyElem = tableBody ? tableBody.$el : null;
|
|
5047
5050
|
const vSize = $xeTable.computeSize;
|
|
5048
|
-
const rowHeightMaps = $xeTable.
|
|
5049
|
-
let rowHeight =
|
|
5051
|
+
const rowHeightMaps = $xeTable.computeRowHeightMaps;
|
|
5052
|
+
let rowHeight = 24;
|
|
5050
5053
|
if (showOverflow) {
|
|
5051
5054
|
if (tableBodyElem) {
|
|
5052
5055
|
const tableHeaderElem = tableHeader ? tableHeader.$el : null;
|
|
@@ -5066,13 +5069,13 @@ const computeRowHeight = $xeTable => {
|
|
|
5066
5069
|
return rowHeight;
|
|
5067
5070
|
};
|
|
5068
5071
|
function handleVirtualYVisible($xeTable) {
|
|
5072
|
+
const internalData = $xeTable;
|
|
5069
5073
|
const {
|
|
5070
|
-
$refs,
|
|
5071
5074
|
scrollYStore,
|
|
5072
5075
|
afterFullData,
|
|
5073
5076
|
fullAllDataRowIdData
|
|
5074
|
-
} =
|
|
5075
|
-
const tableBody = $refs.tableBody;
|
|
5077
|
+
} = internalData;
|
|
5078
|
+
const tableBody = $xeTable.$refs.tableBody;
|
|
5076
5079
|
const tableBodyElem = tableBody ? tableBody.$el : null;
|
|
5077
5080
|
const {
|
|
5078
5081
|
rowHeight
|
|
@@ -5089,11 +5092,11 @@ function handleVirtualYVisible($xeTable) {
|
|
|
5089
5092
|
for (let rIndex = 0, rLen = afterFullData.length; rIndex < rLen; rIndex++) {
|
|
5090
5093
|
const row = afterFullData[rIndex];
|
|
5091
5094
|
const rowid = getRowid($xeTable, row);
|
|
5092
|
-
const
|
|
5093
|
-
if (!
|
|
5095
|
+
const rowRest = fullAllDataRowIdData[rowid];
|
|
5096
|
+
if (!rowRest) {
|
|
5094
5097
|
break;
|
|
5095
5098
|
}
|
|
5096
|
-
offsetTop +=
|
|
5099
|
+
offsetTop += rowRest.height || rowHeight;
|
|
5097
5100
|
if (toVisibleIndex === -1 && scrollTop < offsetTop) {
|
|
5098
5101
|
toVisibleIndex = rIndex;
|
|
5099
5102
|
}
|
|
@@ -5780,7 +5783,6 @@ const Methods = {
|
|
|
5780
5783
|
editStore.removeList = [];
|
|
5781
5784
|
editStore.removeMaps = {};
|
|
5782
5785
|
const sYLoad = this.updateScrollYStatus(fullData);
|
|
5783
|
-
this.scrollYLoad = sYLoad;
|
|
5784
5786
|
this.isDragRowMove = false;
|
|
5785
5787
|
// 全量数据
|
|
5786
5788
|
this.tableFullData = fullData;
|
|
@@ -13011,15 +13013,18 @@ const Methods = {
|
|
|
13011
13013
|
const $xeTable = this;
|
|
13012
13014
|
const internalData = $xeTable;
|
|
13013
13015
|
const {
|
|
13016
|
+
intoRunScroll,
|
|
13014
13017
|
inFooterScroll,
|
|
13015
13018
|
inBodyScroll,
|
|
13016
13019
|
lastScrollTop
|
|
13017
13020
|
} = internalData;
|
|
13018
|
-
if (
|
|
13019
|
-
|
|
13020
|
-
|
|
13021
|
-
|
|
13022
|
-
|
|
13021
|
+
if (!intoRunScroll) {
|
|
13022
|
+
if (inFooterScroll) {
|
|
13023
|
+
return;
|
|
13024
|
+
}
|
|
13025
|
+
if (inBodyScroll) {
|
|
13026
|
+
return;
|
|
13027
|
+
}
|
|
13023
13028
|
}
|
|
13024
13029
|
const tableHeader = $xeTable.$refs.tableHeader;
|
|
13025
13030
|
const tableBody = $xeTable.$refs.tableBody;
|
|
@@ -13053,15 +13058,18 @@ const Methods = {
|
|
|
13053
13058
|
const $xeTable = this;
|
|
13054
13059
|
const internalData = $xeTable;
|
|
13055
13060
|
const {
|
|
13061
|
+
intoRunScroll,
|
|
13056
13062
|
inFooterScroll,
|
|
13057
13063
|
inBodyScroll,
|
|
13058
13064
|
lastScrollLeft
|
|
13059
13065
|
} = internalData;
|
|
13060
|
-
if (
|
|
13061
|
-
|
|
13062
|
-
|
|
13063
|
-
|
|
13064
|
-
|
|
13066
|
+
if (!intoRunScroll) {
|
|
13067
|
+
if (inFooterScroll) {
|
|
13068
|
+
return;
|
|
13069
|
+
}
|
|
13070
|
+
if (inBodyScroll) {
|
|
13071
|
+
return;
|
|
13072
|
+
}
|
|
13065
13073
|
}
|
|
13066
13074
|
const tableBody = $xeTable.$refs.tableBody;
|
|
13067
13075
|
const leftBody = $xeTable.$refs.leftBody;
|
|
@@ -13213,7 +13221,6 @@ const Methods = {
|
|
|
13213
13221
|
const {
|
|
13214
13222
|
showOverflow
|
|
13215
13223
|
} = props;
|
|
13216
|
-
// this.tableColumn = []
|
|
13217
13224
|
return $xeTable.$nextTick().then(() => {
|
|
13218
13225
|
$xeTable.handleTableColumn();
|
|
13219
13226
|
calcCellHeight($xeTable);
|
|
@@ -13279,7 +13286,6 @@ const Methods = {
|
|
|
13279
13286
|
},
|
|
13280
13287
|
updateScrollYData() {
|
|
13281
13288
|
const $xeTable = this;
|
|
13282
|
-
// this.tableData = []
|
|
13283
13289
|
return $xeTable.$nextTick().then(() => {
|
|
13284
13290
|
$xeTable.handleTableData();
|
|
13285
13291
|
calcCellHeight($xeTable);
|
|
@@ -13357,6 +13363,7 @@ const Methods = {
|
|
|
13357
13363
|
*/
|
|
13358
13364
|
scrollTo(scrollLeft, scrollTop) {
|
|
13359
13365
|
const $xeTable = this;
|
|
13366
|
+
const internalData = $xeTable;
|
|
13360
13367
|
const {
|
|
13361
13368
|
$refs
|
|
13362
13369
|
} = this;
|
|
@@ -13372,6 +13379,7 @@ const Methods = {
|
|
|
13372
13379
|
const rightBodyElem = rightBody ? rightBody.$el : null;
|
|
13373
13380
|
const tableHeaderElem = tableHeader ? tableHeader.$el : null;
|
|
13374
13381
|
const tableFooterElem = tableFooter ? tableFooter.$el : null;
|
|
13382
|
+
internalData.intoRunScroll = true;
|
|
13375
13383
|
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isNumber(scrollLeft)) {
|
|
13376
13384
|
const xHandleEl = $xeTable.$refs.refScrollXHandleElem;
|
|
13377
13385
|
if (xHandleEl) {
|
|
@@ -13393,7 +13401,14 @@ const Methods = {
|
|
|
13393
13401
|
}
|
|
13394
13402
|
}
|
|
13395
13403
|
if (this.scrollXLoad || this.scrollYLoad) {
|
|
13396
|
-
return new Promise(resolve =>
|
|
13404
|
+
return new Promise(resolve => {
|
|
13405
|
+
setTimeout(() => {
|
|
13406
|
+
$xeTable.$nextTick(() => {
|
|
13407
|
+
internalData.intoRunScroll = false;
|
|
13408
|
+
resolve();
|
|
13409
|
+
});
|
|
13410
|
+
});
|
|
13411
|
+
});
|
|
13397
13412
|
}
|
|
13398
13413
|
return this.$nextTick();
|
|
13399
13414
|
},
|
|
@@ -13458,20 +13473,18 @@ const Methods = {
|
|
|
13458
13473
|
*/
|
|
13459
13474
|
clearScroll() {
|
|
13460
13475
|
const $xeTable = this;
|
|
13476
|
+
const internalData = $xeTable;
|
|
13461
13477
|
const {
|
|
13462
|
-
$refs,
|
|
13463
13478
|
scrollXStore,
|
|
13464
13479
|
scrollYStore
|
|
13465
|
-
} =
|
|
13466
|
-
const
|
|
13467
|
-
|
|
13468
|
-
|
|
13469
|
-
|
|
13470
|
-
|
|
13471
|
-
tableFooter
|
|
13472
|
-
} = $refs;
|
|
13473
|
-
const tableBodyElem = tableBody ? tableBody.$el : null;
|
|
13480
|
+
} = internalData;
|
|
13481
|
+
const tableBody = $xeTable.$refs.tableBody;
|
|
13482
|
+
const tableHeader = $xeTable.$refs.tableHeader;
|
|
13483
|
+
const tableFooter = $xeTable.$refs.tableFooter;
|
|
13484
|
+
const leftBody = $xeTable.$refs.leftBody;
|
|
13485
|
+
const rightBody = $xeTable.$refs.rightBody;
|
|
13474
13486
|
const leftBodyElem = leftBody ? leftBody.$el : null;
|
|
13487
|
+
const tableBodyElem = tableBody ? tableBody.$el : null;
|
|
13475
13488
|
const rightBodyElem = rightBody ? rightBody.$el : null;
|
|
13476
13489
|
const tableHeaderElem = tableHeader ? tableHeader.$el : null;
|
|
13477
13490
|
const tableFooterElem = tableFooter ? tableFooter.$el : null;
|