vxe-table 4.13.8 → 4.13.9
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/footer.js +11 -15
- package/es/table/src/header.js +20 -11
- package/es/table/src/table.js +6 -4
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/index.umd.js +21 -31
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/table/src/footer.js +10 -15
- package/lib/table/src/footer.min.js +1 -1
- package/lib/table/src/header.js +5 -10
- package/lib/table/src/header.min.js +1 -1
- package/lib/table/src/table.js +4 -4
- 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 +1 -1
- package/packages/table/src/footer.ts +11 -15
- package/packages/table/src/header.ts +21 -11
- package/packages/table/src/table.ts +7 -4
- /package/es/{iconfont.1745374145326.ttf → iconfont.1745458144424.ttf} +0 -0
- /package/es/{iconfont.1745374145326.woff → iconfont.1745458144424.woff} +0 -0
- /package/es/{iconfont.1745374145326.woff2 → iconfont.1745458144424.woff2} +0 -0
- /package/lib/{iconfont.1745374145326.ttf → iconfont.1745458144424.ttf} +0 -0
- /package/lib/{iconfont.1745374145326.woff → iconfont.1745458144424.woff} +0 -0
- /package/lib/{iconfont.1745374145326.woff2 → iconfont.1745458144424.woff2} +0 -0
package/es/table/src/footer.js
CHANGED
|
@@ -35,7 +35,7 @@ export default defineComponent({
|
|
|
35
35
|
const refFooterColgroup = ref();
|
|
36
36
|
const refFooterTFoot = ref();
|
|
37
37
|
const refFooterXSpace = ref();
|
|
38
|
-
const renderRows = (tableColumn, footerTableData, row, $rowIndex, _rowIndex) => {
|
|
38
|
+
const renderRows = (isOptimizeMode, tableColumn, footerTableData, row, $rowIndex, _rowIndex) => {
|
|
39
39
|
const $xeGrid = $xeTable.xeGrid;
|
|
40
40
|
const { fixedType } = props;
|
|
41
41
|
const { resizable: allResizable, border, footerCellClassName, footerCellStyle, footerAlign: allFooterAlign, footerSpanMethod, align: allAlign, columnKey, showFooterOverflow: allColumnFooterOverflow } = tableProps;
|
|
@@ -62,10 +62,10 @@ export default defineComponent({
|
|
|
62
62
|
const isPadding = XEUtils.isBoolean(footerCellOpts.padding) ? footerCellOpts.padding : cellOpts.padding;
|
|
63
63
|
const footOverflow = XEUtils.eqNull(showFooterOverflow) ? allColumnFooterOverflow : showFooterOverflow;
|
|
64
64
|
const footAlign = footerAlign || (compConf ? compConf.tableFooterCellAlign : '') || allFooterAlign || align || (compConf ? compConf.tableCellAlign : '') || allAlign;
|
|
65
|
-
|
|
65
|
+
const showEllipsis = footOverflow === 'ellipsis';
|
|
66
66
|
const showTitle = footOverflow === 'title';
|
|
67
67
|
const showTooltip = footOverflow === true || footOverflow === 'tooltip';
|
|
68
|
-
|
|
68
|
+
const hasEllipsis = showTitle || showTooltip || showEllipsis;
|
|
69
69
|
const showResizable = (XEUtils.isBoolean(column.resizable) ? column.resizable : (columnOpts.resizable || allResizable));
|
|
70
70
|
const attrs = { colid };
|
|
71
71
|
const tfOns = {};
|
|
@@ -89,10 +89,6 @@ export default defineComponent({
|
|
|
89
89
|
type: renderType,
|
|
90
90
|
data: footerTableData
|
|
91
91
|
};
|
|
92
|
-
// 纵向虚拟滚动不支持动态行高
|
|
93
|
-
if (scrollXLoad && !hasEllipsis) {
|
|
94
|
-
showEllipsis = hasEllipsis = true;
|
|
95
|
-
}
|
|
96
92
|
if (showTitle || showTooltip || showAllTip) {
|
|
97
93
|
tfOns.onMouseenter = (evnt) => {
|
|
98
94
|
if (showTitle) {
|
|
@@ -151,7 +147,7 @@ export default defineComponent({
|
|
|
151
147
|
const isLastColumn = $columnIndex === tableColumn.length - 1;
|
|
152
148
|
const isAutoCellWidth = !column.resizeWidth && (column.minWidth === 'auto' || column.width === 'auto');
|
|
153
149
|
let isVNPreEmptyStatus = false;
|
|
154
|
-
if (!isMergeCell) {
|
|
150
|
+
if (isOptimizeMode && !isMergeCell) {
|
|
155
151
|
if (scrollXLoad && !column.fixed && !virtualXOpts.immediate && (_columnIndex < scrollXStore.visibleStartIndex - scrollXStore.preloadSize || _columnIndex > scrollXStore.visibleEndIndex + scrollXStore.preloadSize)) {
|
|
156
152
|
isVNPreEmptyStatus = true;
|
|
157
153
|
}
|
|
@@ -203,7 +199,7 @@ export default defineComponent({
|
|
|
203
199
|
]);
|
|
204
200
|
});
|
|
205
201
|
};
|
|
206
|
-
const renderHeads = (renderColumnList) => {
|
|
202
|
+
const renderHeads = (isOptimizeMode, renderColumnList) => {
|
|
207
203
|
const { fixedType, footerTableData } = props;
|
|
208
204
|
const { footerRowClassName, footerRowStyle } = tableProps;
|
|
209
205
|
const { isColLoading, isDragColMove } = tableReactData;
|
|
@@ -223,7 +219,7 @@ export default defineComponent({
|
|
|
223
219
|
],
|
|
224
220
|
style: footerRowStyle ? (XEUtils.isFunction(footerRowStyle) ? footerRowStyle(rowParams) : footerRowStyle) : null
|
|
225
221
|
}, {
|
|
226
|
-
default: () => renderRows(renderColumnList, footerTableData, row, $rowIndex, _rowIndex)
|
|
222
|
+
default: () => renderRows(isOptimizeMode, renderColumnList, footerTableData, row, $rowIndex, _rowIndex)
|
|
227
223
|
});
|
|
228
224
|
}
|
|
229
225
|
return h('tr', {
|
|
@@ -233,18 +229,18 @@ export default defineComponent({
|
|
|
233
229
|
footerRowClassName ? XEUtils.isFunction(footerRowClassName) ? footerRowClassName(rowParams) : footerRowClassName : ''
|
|
234
230
|
],
|
|
235
231
|
style: footerRowStyle ? (XEUtils.isFunction(footerRowStyle) ? footerRowStyle(rowParams) : footerRowStyle) : null
|
|
236
|
-
}, renderRows(renderColumnList, footerTableData, row, $rowIndex, _rowIndex));
|
|
232
|
+
}, renderRows(isOptimizeMode, renderColumnList, footerTableData, row, $rowIndex, _rowIndex));
|
|
237
233
|
});
|
|
238
234
|
};
|
|
239
235
|
const renderVN = () => {
|
|
240
236
|
const { fixedType, fixedColumn, tableColumn } = props;
|
|
241
237
|
const { spanMethod, footerSpanMethod, showFooterOverflow: allColumnFooterOverflow } = tableProps;
|
|
242
238
|
const { visibleColumn, fullColumnIdData } = tableInternalData;
|
|
243
|
-
const { isGroup, isColLoading, overflowX, scrollXLoad,
|
|
239
|
+
const { isGroup, isColLoading, overflowX, scrollXLoad, dragCol } = tableReactData;
|
|
244
240
|
let renderColumnList = tableColumn;
|
|
245
241
|
let isOptimizeMode = false;
|
|
246
242
|
// 如果是使用优化模式
|
|
247
|
-
if (scrollXLoad
|
|
243
|
+
if (scrollXLoad && allColumnFooterOverflow) {
|
|
248
244
|
if (spanMethod || footerSpanMethod) {
|
|
249
245
|
// 如果不支持优化模式
|
|
250
246
|
}
|
|
@@ -252,7 +248,7 @@ export default defineComponent({
|
|
|
252
248
|
isOptimizeMode = true;
|
|
253
249
|
}
|
|
254
250
|
}
|
|
255
|
-
if (!isColLoading && (fixedType || !overflowX)) {
|
|
251
|
+
if (!isOptimizeMode || (!isColLoading && (fixedType || !overflowX))) {
|
|
256
252
|
renderColumnList = visibleColumn;
|
|
257
253
|
}
|
|
258
254
|
if (fixedType) {
|
|
@@ -330,7 +326,7 @@ export default defineComponent({
|
|
|
330
326
|
*/
|
|
331
327
|
h('tfoot', {
|
|
332
328
|
ref: refFooterTFoot
|
|
333
|
-
}, renderHeads(renderColumnList))
|
|
329
|
+
}, renderHeads(isOptimizeMode, renderColumnList))
|
|
334
330
|
])
|
|
335
331
|
])
|
|
336
332
|
]);
|
package/es/table/src/header.js
CHANGED
|
@@ -57,10 +57,10 @@ export default defineComponent({
|
|
|
57
57
|
const isPadding = XEUtils.isBoolean(headerCellOpts.padding) ? headerCellOpts.padding : cellOpts.padding;
|
|
58
58
|
const headOverflow = XEUtils.eqNull(showHeaderOverflow) ? allColumnHeaderOverflow : showHeaderOverflow;
|
|
59
59
|
const headAlign = headerAlign || (compConf ? compConf.tableHeaderCellAlign : '') || allHeaderAlign || align || (compConf ? compConf.tableCellAlign : '') || allAlign;
|
|
60
|
-
|
|
60
|
+
const showEllipsis = headOverflow === 'ellipsis';
|
|
61
61
|
const showTitle = headOverflow === 'title';
|
|
62
62
|
const showTooltip = headOverflow === true || headOverflow === 'tooltip';
|
|
63
|
-
|
|
63
|
+
const hasEllipsis = showTitle || showTooltip || showEllipsis;
|
|
64
64
|
let hasFilter = false;
|
|
65
65
|
let firstFilterOption = null;
|
|
66
66
|
if (filters) {
|
|
@@ -69,7 +69,20 @@ export default defineComponent({
|
|
|
69
69
|
}
|
|
70
70
|
const columnIndex = colRest.index;
|
|
71
71
|
const _columnIndex = colRest._index;
|
|
72
|
-
const cellParams = {
|
|
72
|
+
const cellParams = {
|
|
73
|
+
$table: $xeTable,
|
|
74
|
+
$grid: $xeGrid,
|
|
75
|
+
$rowIndex,
|
|
76
|
+
column,
|
|
77
|
+
columnIndex,
|
|
78
|
+
$columnIndex,
|
|
79
|
+
_columnIndex,
|
|
80
|
+
firstFilterOption,
|
|
81
|
+
fixed: fixedType,
|
|
82
|
+
type: renderType,
|
|
83
|
+
isHidden: fixedHiddenColumn,
|
|
84
|
+
hasFilter
|
|
85
|
+
};
|
|
73
86
|
const thAttrs = {
|
|
74
87
|
colid,
|
|
75
88
|
colspan: column.colSpan > 1 ? column.colSpan : null,
|
|
@@ -79,10 +92,6 @@ export default defineComponent({
|
|
|
79
92
|
onClick: (evnt) => $xeTable.triggerHeaderCellClickEvent(evnt, cellParams),
|
|
80
93
|
onDblclick: (evnt) => $xeTable.triggerHeaderCellDblclickEvent(evnt, cellParams)
|
|
81
94
|
};
|
|
82
|
-
// 横向虚拟滚动不支持动态行高
|
|
83
|
-
if (scrollXLoad && !hasEllipsis) {
|
|
84
|
-
showEllipsis = hasEllipsis = true;
|
|
85
|
-
}
|
|
86
95
|
const isColDragCell = columnOpts.drag && columnDragOpts.trigger === 'cell';
|
|
87
96
|
let isDisabledDrag = false;
|
|
88
97
|
if (isColDragCell) {
|
|
@@ -105,7 +114,7 @@ export default defineComponent({
|
|
|
105
114
|
const showResizable = (XEUtils.isBoolean(column.resizable) ? column.resizable : (columnOpts.resizable || allResizable));
|
|
106
115
|
const isAutoCellWidth = !column.resizeWidth && (column.minWidth === 'auto' || column.width === 'auto');
|
|
107
116
|
let isVNPreEmptyStatus = false;
|
|
108
|
-
if (!isGroup) {
|
|
117
|
+
if (isOptimizeMode && !isGroup) {
|
|
109
118
|
if (!dragCol || dragCol.id !== colid) {
|
|
110
119
|
if (scrollXLoad && !column.fixed && !virtualXOpts.immediate && (_columnIndex < scrollXStore.visibleStartIndex - scrollXStore.preloadSize || _columnIndex > scrollXStore.visibleEndIndex + scrollXStore.preloadSize)) {
|
|
111
120
|
isVNPreEmptyStatus = true;
|
|
@@ -202,7 +211,7 @@ export default defineComponent({
|
|
|
202
211
|
const renderVN = () => {
|
|
203
212
|
const { fixedType, fixedColumn, tableColumn } = props;
|
|
204
213
|
const { mouseConfig, showHeaderOverflow: allColumnHeaderOverflow, spanMethod, footerSpanMethod } = tableProps;
|
|
205
|
-
const { isGroup, isColLoading, overflowX, scrollXLoad,
|
|
214
|
+
const { isGroup, isColLoading, overflowX, scrollXLoad, dragCol } = tableReactData;
|
|
206
215
|
const { visibleColumn, fullColumnIdData } = tableInternalData;
|
|
207
216
|
const mouseOpts = computeMouseOpts.value;
|
|
208
217
|
let renderHeaderList = headerColumn.value;
|
|
@@ -213,7 +222,7 @@ export default defineComponent({
|
|
|
213
222
|
}
|
|
214
223
|
else {
|
|
215
224
|
// 如果是使用优化模式
|
|
216
|
-
if (scrollXLoad
|
|
225
|
+
if (scrollXLoad && allColumnHeaderOverflow) {
|
|
217
226
|
if (spanMethod || footerSpanMethod) {
|
|
218
227
|
// 如果不支持优化模式
|
|
219
228
|
}
|
|
@@ -221,7 +230,7 @@ export default defineComponent({
|
|
|
221
230
|
isOptimizeMode = true;
|
|
222
231
|
}
|
|
223
232
|
}
|
|
224
|
-
if (!isColLoading && (fixedType || !overflowX)) {
|
|
233
|
+
if (!isOptimizeMode || (!isColLoading && (fixedType || !overflowX))) {
|
|
225
234
|
renderColumnList = visibleColumn;
|
|
226
235
|
}
|
|
227
236
|
if (fixedType) {
|
package/es/table/src/table.js
CHANGED
|
@@ -1963,7 +1963,7 @@ export default defineComponent({
|
|
|
1963
1963
|
};
|
|
1964
1964
|
const updateStyle = () => {
|
|
1965
1965
|
const { showHeaderOverflow: allColumnHeaderOverflow, showFooterOverflow: allColumnFooterOverflow, mouseConfig, spanMethod, footerSpanMethod } = props;
|
|
1966
|
-
const { isGroup, currentRow, tableColumn, scrollXLoad, scrollYLoad, overflowX, scrollbarWidth, overflowY, scrollbarHeight, scrollXWidth, columnStore, editStore, isAllOverflow, expandColumn } = reactData;
|
|
1966
|
+
const { isGroup, currentRow, tableColumn, scrollXLoad, scrollYLoad, overflowX, scrollbarWidth, overflowY, scrollbarHeight, scrollXWidth, columnStore, editStore, isAllOverflow, expandColumn, isColLoading } = reactData;
|
|
1967
1967
|
const { visibleColumn, tableHeight, headerHeight, footerHeight, elemStore, customHeight, customMinHeight, customMaxHeight } = internalData;
|
|
1968
1968
|
const el = refElem.value;
|
|
1969
1969
|
if (!el) {
|
|
@@ -2073,7 +2073,7 @@ export default defineComponent({
|
|
|
2073
2073
|
}
|
|
2074
2074
|
else {
|
|
2075
2075
|
// 如果是使用优化模式
|
|
2076
|
-
if (scrollXLoad
|
|
2076
|
+
if (scrollXLoad && allColumnHeaderOverflow) {
|
|
2077
2077
|
if (spanMethod || footerSpanMethod) {
|
|
2078
2078
|
// 如果不支持优化模式
|
|
2079
2079
|
}
|
|
@@ -2081,8 +2081,10 @@ export default defineComponent({
|
|
|
2081
2081
|
isOptimizeMode = true;
|
|
2082
2082
|
}
|
|
2083
2083
|
}
|
|
2084
|
-
if (fixedType) {
|
|
2084
|
+
if (!isOptimizeMode || (!isColLoading && (fixedType || !overflowX))) {
|
|
2085
2085
|
renderColumnList = visibleColumn;
|
|
2086
|
+
}
|
|
2087
|
+
if (fixedType) {
|
|
2086
2088
|
// 如果是使用优化模式
|
|
2087
2089
|
if (isOptimizeMode) {
|
|
2088
2090
|
renderColumnList = fixedColumn || [];
|
|
@@ -2174,7 +2176,7 @@ export default defineComponent({
|
|
|
2174
2176
|
let renderColumnList = tableColumn;
|
|
2175
2177
|
let isOptimizeMode = false;
|
|
2176
2178
|
// 如果是使用优化模式
|
|
2177
|
-
if (scrollXLoad
|
|
2179
|
+
if (scrollXLoad && allColumnFooterOverflow) {
|
|
2178
2180
|
if (spanMethod || footerSpanMethod) {
|
|
2179
2181
|
// 如果不支持优化模式
|
|
2180
2182
|
}
|
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.13.
|
|
3141
|
+
const version = "4.13.9";
|
|
3142
3142
|
core_.VxeUI.version = version;
|
|
3143
3143
|
core_.VxeUI.tableVersion = version;
|
|
3144
3144
|
core_.VxeUI.setConfig({
|
|
@@ -3599,7 +3599,7 @@ var esnext_iterator_some = __webpack_require__(7550);
|
|
|
3599
3599
|
const {
|
|
3600
3600
|
log: log_log
|
|
3601
3601
|
} = core_.VxeUI;
|
|
3602
|
-
const log_version = `table v${"4.13.
|
|
3602
|
+
const log_version = `table v${"4.13.9"}`;
|
|
3603
3603
|
const warnLog = log_log.create('warn', log_version);
|
|
3604
3604
|
const errLog = log_log.create('error', log_version);
|
|
3605
3605
|
;// ./packages/table/src/columnInfo.ts
|
|
@@ -7443,10 +7443,10 @@ const header_renderType = 'header';
|
|
|
7443
7443
|
const isPadding = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isBoolean(headerCellOpts.padding) ? headerCellOpts.padding : cellOpts.padding;
|
|
7444
7444
|
const headOverflow = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(showHeaderOverflow) ? allColumnHeaderOverflow : showHeaderOverflow;
|
|
7445
7445
|
const headAlign = headerAlign || (compConf ? compConf.tableHeaderCellAlign : '') || allHeaderAlign || align || (compConf ? compConf.tableCellAlign : '') || allAlign;
|
|
7446
|
-
|
|
7446
|
+
const showEllipsis = headOverflow === 'ellipsis';
|
|
7447
7447
|
const showTitle = headOverflow === 'title';
|
|
7448
7448
|
const showTooltip = headOverflow === true || headOverflow === 'tooltip';
|
|
7449
|
-
|
|
7449
|
+
const hasEllipsis = showTitle || showTooltip || showEllipsis;
|
|
7450
7450
|
let hasFilter = false;
|
|
7451
7451
|
let firstFilterOption = null;
|
|
7452
7452
|
if (filters) {
|
|
@@ -7478,10 +7478,6 @@ const header_renderType = 'header';
|
|
|
7478
7478
|
onClick: evnt => $xeTable.triggerHeaderCellClickEvent(evnt, cellParams),
|
|
7479
7479
|
onDblclick: evnt => $xeTable.triggerHeaderCellDblclickEvent(evnt, cellParams)
|
|
7480
7480
|
};
|
|
7481
|
-
// 横向虚拟滚动不支持动态行高
|
|
7482
|
-
if (scrollXLoad && !hasEllipsis) {
|
|
7483
|
-
showEllipsis = hasEllipsis = true;
|
|
7484
|
-
}
|
|
7485
7481
|
const isColDragCell = columnOpts.drag && columnDragOpts.trigger === 'cell';
|
|
7486
7482
|
let isDisabledDrag = false;
|
|
7487
7483
|
if (isColDragCell) {
|
|
@@ -7504,7 +7500,7 @@ const header_renderType = 'header';
|
|
|
7504
7500
|
const showResizable = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isBoolean(column.resizable) ? column.resizable : columnOpts.resizable || allResizable;
|
|
7505
7501
|
const isAutoCellWidth = !column.resizeWidth && (column.minWidth === 'auto' || column.width === 'auto');
|
|
7506
7502
|
let isVNPreEmptyStatus = false;
|
|
7507
|
-
if (!isGroup) {
|
|
7503
|
+
if (isOptimizeMode && !isGroup) {
|
|
7508
7504
|
if (!dragCol || dragCol.id !== colid) {
|
|
7509
7505
|
if (scrollXLoad && !column.fixed && !virtualXOpts.immediate && (_columnIndex < scrollXStore.visibleStartIndex - scrollXStore.preloadSize || _columnIndex > scrollXStore.visibleEndIndex + scrollXStore.preloadSize)) {
|
|
7510
7506
|
isVNPreEmptyStatus = true;
|
|
@@ -7616,7 +7612,6 @@ const header_renderType = 'header';
|
|
|
7616
7612
|
isColLoading,
|
|
7617
7613
|
overflowX,
|
|
7618
7614
|
scrollXLoad,
|
|
7619
|
-
scrollYLoad,
|
|
7620
7615
|
dragCol
|
|
7621
7616
|
} = tableReactData;
|
|
7622
7617
|
const {
|
|
@@ -7631,14 +7626,14 @@ const header_renderType = 'header';
|
|
|
7631
7626
|
renderColumnList = visibleColumn;
|
|
7632
7627
|
} else {
|
|
7633
7628
|
// 如果是使用优化模式
|
|
7634
|
-
if (scrollXLoad
|
|
7629
|
+
if (scrollXLoad && allColumnHeaderOverflow) {
|
|
7635
7630
|
if (spanMethod || footerSpanMethod) {
|
|
7636
7631
|
// 如果不支持优化模式
|
|
7637
7632
|
} else {
|
|
7638
7633
|
isOptimizeMode = true;
|
|
7639
7634
|
}
|
|
7640
7635
|
}
|
|
7641
|
-
if (!isColLoading && (fixedType || !overflowX)) {
|
|
7636
|
+
if (!isOptimizeMode || !isColLoading && (fixedType || !overflowX)) {
|
|
7642
7637
|
renderColumnList = visibleColumn;
|
|
7643
7638
|
}
|
|
7644
7639
|
if (fixedType) {
|
|
@@ -7832,7 +7827,7 @@ const footer_renderType = 'footer';
|
|
|
7832
7827
|
const refFooterColgroup = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
|
|
7833
7828
|
const refFooterTFoot = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
|
|
7834
7829
|
const refFooterXSpace = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
|
|
7835
|
-
const renderRows = (tableColumn, footerTableData, row, $rowIndex, _rowIndex) => {
|
|
7830
|
+
const renderRows = (isOptimizeMode, tableColumn, footerTableData, row, $rowIndex, _rowIndex) => {
|
|
7836
7831
|
const $xeGrid = $xeTable.xeGrid;
|
|
7837
7832
|
const {
|
|
7838
7833
|
fixedType
|
|
@@ -7891,10 +7886,10 @@ const footer_renderType = 'footer';
|
|
|
7891
7886
|
const isPadding = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isBoolean(footerCellOpts.padding) ? footerCellOpts.padding : cellOpts.padding;
|
|
7892
7887
|
const footOverflow = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(showFooterOverflow) ? allColumnFooterOverflow : showFooterOverflow;
|
|
7893
7888
|
const footAlign = footerAlign || (compConf ? compConf.tableFooterCellAlign : '') || allFooterAlign || align || (compConf ? compConf.tableCellAlign : '') || allAlign;
|
|
7894
|
-
|
|
7889
|
+
const showEllipsis = footOverflow === 'ellipsis';
|
|
7895
7890
|
const showTitle = footOverflow === 'title';
|
|
7896
7891
|
const showTooltip = footOverflow === true || footOverflow === 'tooltip';
|
|
7897
|
-
|
|
7892
|
+
const hasEllipsis = showTitle || showTooltip || showEllipsis;
|
|
7898
7893
|
const showResizable = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isBoolean(column.resizable) ? column.resizable : columnOpts.resizable || allResizable;
|
|
7899
7894
|
const attrs = {
|
|
7900
7895
|
colid
|
|
@@ -7920,10 +7915,6 @@ const footer_renderType = 'footer';
|
|
|
7920
7915
|
type: footer_renderType,
|
|
7921
7916
|
data: footerTableData
|
|
7922
7917
|
};
|
|
7923
|
-
// 纵向虚拟滚动不支持动态行高
|
|
7924
|
-
if (scrollXLoad && !hasEllipsis) {
|
|
7925
|
-
showEllipsis = hasEllipsis = true;
|
|
7926
|
-
}
|
|
7927
7918
|
if (showTitle || showTooltip || showAllTip) {
|
|
7928
7919
|
tfOns.onMouseenter = evnt => {
|
|
7929
7920
|
if (showTitle) {
|
|
@@ -7990,7 +7981,7 @@ const footer_renderType = 'footer';
|
|
|
7990
7981
|
const isLastColumn = $columnIndex === tableColumn.length - 1;
|
|
7991
7982
|
const isAutoCellWidth = !column.resizeWidth && (column.minWidth === 'auto' || column.width === 'auto');
|
|
7992
7983
|
let isVNPreEmptyStatus = false;
|
|
7993
|
-
if (!isMergeCell) {
|
|
7984
|
+
if (isOptimizeMode && !isMergeCell) {
|
|
7994
7985
|
if (scrollXLoad && !column.fixed && !virtualXOpts.immediate && (_columnIndex < scrollXStore.visibleStartIndex - scrollXStore.preloadSize || _columnIndex > scrollXStore.visibleEndIndex + scrollXStore.preloadSize)) {
|
|
7995
7986
|
isVNPreEmptyStatus = true;
|
|
7996
7987
|
}
|
|
@@ -8039,7 +8030,7 @@ const footer_renderType = 'footer';
|
|
|
8039
8030
|
}) : footer_renderEmptyElement($xeTable)]);
|
|
8040
8031
|
});
|
|
8041
8032
|
};
|
|
8042
|
-
const renderHeads = renderColumnList => {
|
|
8033
|
+
const renderHeads = (isOptimizeMode, renderColumnList) => {
|
|
8043
8034
|
const {
|
|
8044
8035
|
fixedType,
|
|
8045
8036
|
footerTableData
|
|
@@ -8072,14 +8063,14 @@ const footer_renderType = 'footer';
|
|
|
8072
8063
|
class: ['vxe-footer--row', footerRowClassName ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(footerRowClassName) ? footerRowClassName(rowParams) : footerRowClassName : ''],
|
|
8073
8064
|
style: footerRowStyle ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(footerRowStyle) ? footerRowStyle(rowParams) : footerRowStyle : null
|
|
8074
8065
|
}, {
|
|
8075
|
-
default: () => renderRows(renderColumnList, footerTableData, row, $rowIndex, _rowIndex)
|
|
8066
|
+
default: () => renderRows(isOptimizeMode, renderColumnList, footerTableData, row, $rowIndex, _rowIndex)
|
|
8076
8067
|
});
|
|
8077
8068
|
}
|
|
8078
8069
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('tr', {
|
|
8079
8070
|
key: $rowIndex,
|
|
8080
8071
|
class: ['vxe-footer--row', footerRowClassName ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(footerRowClassName) ? footerRowClassName(rowParams) : footerRowClassName : ''],
|
|
8081
8072
|
style: footerRowStyle ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(footerRowStyle) ? footerRowStyle(rowParams) : footerRowStyle : null
|
|
8082
|
-
}, renderRows(renderColumnList, footerTableData, row, $rowIndex, _rowIndex));
|
|
8073
|
+
}, renderRows(isOptimizeMode, renderColumnList, footerTableData, row, $rowIndex, _rowIndex));
|
|
8083
8074
|
});
|
|
8084
8075
|
};
|
|
8085
8076
|
const renderVN = () => {
|
|
@@ -8102,20 +8093,19 @@ const footer_renderType = 'footer';
|
|
|
8102
8093
|
isColLoading,
|
|
8103
8094
|
overflowX,
|
|
8104
8095
|
scrollXLoad,
|
|
8105
|
-
scrollYLoad,
|
|
8106
8096
|
dragCol
|
|
8107
8097
|
} = tableReactData;
|
|
8108
8098
|
let renderColumnList = tableColumn;
|
|
8109
8099
|
let isOptimizeMode = false;
|
|
8110
8100
|
// 如果是使用优化模式
|
|
8111
|
-
if (scrollXLoad
|
|
8101
|
+
if (scrollXLoad && allColumnFooterOverflow) {
|
|
8112
8102
|
if (spanMethod || footerSpanMethod) {
|
|
8113
8103
|
// 如果不支持优化模式
|
|
8114
8104
|
} else {
|
|
8115
8105
|
isOptimizeMode = true;
|
|
8116
8106
|
}
|
|
8117
8107
|
}
|
|
8118
|
-
if (!isColLoading && (fixedType || !overflowX)) {
|
|
8108
|
+
if (!isOptimizeMode || !isColLoading && (fixedType || !overflowX)) {
|
|
8119
8109
|
renderColumnList = visibleColumn;
|
|
8120
8110
|
}
|
|
8121
8111
|
if (fixedType) {
|
|
@@ -8187,7 +8177,7 @@ const footer_renderType = 'footer';
|
|
|
8187
8177
|
*/
|
|
8188
8178
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('tfoot', {
|
|
8189
8179
|
ref: refFooterTFoot
|
|
8190
|
-
}, renderHeads(renderColumnList))])])]);
|
|
8180
|
+
}, renderHeads(isOptimizeMode, renderColumnList))])])]);
|
|
8191
8181
|
};
|
|
8192
8182
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onMounted)(() => {
|
|
8193
8183
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
|
|
@@ -10747,17 +10737,17 @@ if(allSortMethod){const sortRests=allSortMethod({data:tableTree,sortList:orderCo
|
|
|
10747
10737
|
if(allSortMethod){const sortRests=allSortMethod({data:tableTree,sortList:orderColumns,$table:$xeTable});tableTree=external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(sortRests)?sortRests:tableTree;}else{const treeList=external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toTreeArray(tableTree,{children:mapChildrenField});tableTree=external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toArrayTree(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().orderBy(treeList,orderColumns.map(({column,order})=>[getOrderField(column),order])),{key:rowField,parentKey:parentField,children:childrenField,mapChildren:mapChildrenField});}tableData=tableTree;}else{if(allSortMethod){const sortRests=allSortMethod({data:tableData,sortList:orderColumns,$table:$xeTable});tableData=external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(sortRests)?sortRests:tableData;}else{tableData=external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().orderBy(tableData,orderColumns.map(({column,order})=>[getOrderField(column),order]));}tableTree=tableData;}}}else{if(isRowGroupStatus){// 还原行分组
|
|
10748
10738
|
// 还原虚拟树
|
|
10749
10739
|
tableTree=external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().searchTree(tableFullGroupData,()=>true,{original:true,isEvery:true,children:rowGroupOpts.mapChildrenField,mapChildren:rowGroupOpts.childrenField});tableData=tableTree;}else if(treeConfig&&transform){// 还原虚拟树
|
|
10750
|
-
tableTree=external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().searchTree(tableFullTreeData,()=>true,{original:true,isEvery,children:mapChildrenField,mapChildren:childrenField});tableData=tableTree;}else{tableData=treeConfig?tableFullTreeData.slice(0):tableFullData.slice(0);tableTree=tableData;}}internalData.afterFullData=tableData;internalData.afterTreeFullData=tableTree;internalData.afterGroupFullData=tableTree;updateAfterDataIndex();};const updateStyle=()=>{const{showHeaderOverflow:allColumnHeaderOverflow,showFooterOverflow:allColumnFooterOverflow,mouseConfig,spanMethod,footerSpanMethod}=props;const{isGroup,currentRow,tableColumn,scrollXLoad,scrollYLoad,overflowX,scrollbarWidth,overflowY,scrollbarHeight,scrollXWidth,columnStore,editStore,isAllOverflow,expandColumn}=reactData;const{visibleColumn,tableHeight,headerHeight,footerHeight,elemStore,customHeight,customMinHeight,customMaxHeight}=internalData;const el=refElem.value;if(!el){return;}const containerList=['main','left','right'];const osbWidth=overflowY?scrollbarWidth:0;const osbHeight=overflowX?scrollbarHeight:0;const emptyPlaceholderElem=refEmptyPlaceholder.value;const mouseOpts=computeMouseOpts.value;const expandOpts=computeExpandOpts.value;const bodyWrapperElem=getRefElem(elemStore['main-body-wrapper']);const bodyTableElem=getRefElem(elemStore['main-body-table']);if(emptyPlaceholderElem){emptyPlaceholderElem.style.top=`${headerHeight}px`;emptyPlaceholderElem.style.height=bodyWrapperElem?`${bodyWrapperElem.offsetHeight-osbHeight}px`:'';}let bodyHeight=0;let bodyMaxHeight=0;const bodyMinHeight=customMinHeight-headerHeight-footerHeight-osbHeight;if(customMaxHeight){bodyMaxHeight=Math.max(bodyMinHeight,customMaxHeight-headerHeight-footerHeight-osbHeight);}if(customHeight){bodyHeight=customHeight-headerHeight-footerHeight-osbHeight;}if(!bodyHeight){if(bodyTableElem){bodyHeight=bodyTableElem.clientHeight;}}if(bodyHeight){if(bodyMaxHeight){bodyHeight=Math.min(bodyMaxHeight,bodyHeight);}bodyHeight=Math.max(bodyMinHeight,bodyHeight);}const scrollbarXToTop=computeScrollbarXToTop.value;const xLeftCornerEl=refScrollXLeftCornerElem.value;const xRightCornerEl=refScrollXRightCornerElem.value;const scrollXVirtualEl=refScrollXVirtualElem.value;if(scrollXVirtualEl){scrollXVirtualEl.style.height=`${osbHeight}px`;scrollXVirtualEl.style.visibility=overflowX?'visible':'hidden';}const xWrapperEl=refScrollXWrapperElem.value;if(xWrapperEl){xWrapperEl.style.left=scrollbarXToTop?`${osbWidth}px`:'';xWrapperEl.style.width=`${el.clientWidth-osbWidth}px`;}if(xLeftCornerEl){xLeftCornerEl.style.width=scrollbarXToTop?`${osbWidth}px`:'';xLeftCornerEl.style.display=scrollbarXToTop?overflowX&&osbHeight?'block':'':'';}if(xRightCornerEl){xRightCornerEl.style.width=scrollbarXToTop?'':`${osbWidth}px`;xRightCornerEl.style.display=scrollbarXToTop?'':overflowX&&osbHeight?'block':'';}const scrollYVirtualEl=refScrollYVirtualElem.value;if(scrollYVirtualEl){scrollYVirtualEl.style.width=`${osbWidth}px`;scrollYVirtualEl.style.height=`${bodyHeight+headerHeight+footerHeight}px`;scrollYVirtualEl.style.visibility=overflowY?'visible':'hidden';}const yTopCornerEl=refScrollYTopCornerElem.value;if(yTopCornerEl){yTopCornerEl.style.height=`${headerHeight}px`;yTopCornerEl.style.display=overflowY&&headerHeight?'block':'';}const yWrapperEl=refScrollYWrapperElem.value;if(yWrapperEl){yWrapperEl.style.height=`${bodyHeight}px`;yWrapperEl.style.top=`${headerHeight}px`;}const yBottomCornerEl=refScrollYBottomCornerElem.value;if(yBottomCornerEl){yBottomCornerEl.style.height=`${footerHeight}px`;yBottomCornerEl.style.top=`${headerHeight+bodyHeight}px`;yBottomCornerEl.style.display=overflowY&&footerHeight?'block':'';}const rowExpandEl=refRowExpandElem.value;if(rowExpandEl){rowExpandEl.style.height=`${bodyHeight}px`;rowExpandEl.style.top=`${headerHeight}px`;}containerList.forEach((name,index)=>{const fixedType=index>0?name:'';const layoutList=['header','body','footer'];const isFixedLeft=fixedType==='left';let fixedColumn=[];let fixedWrapperElem;if(fixedType){fixedColumn=isFixedLeft?columnStore.leftList:columnStore.rightList;fixedWrapperElem=isFixedLeft?refLeftContainer.value:refRightContainer.value;}layoutList.forEach(layout=>{const wrapperElem=getRefElem(elemStore[`${name}-${layout}-wrapper`]);const currScrollElem=getRefElem(elemStore[`${name}-${layout}-scroll`]);const tableElem=getRefElem(elemStore[`${name}-${layout}-table`]);if(layout==='header'){// 表头体样式处理
|
|
10740
|
+
tableTree=external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().searchTree(tableFullTreeData,()=>true,{original:true,isEvery,children:mapChildrenField,mapChildren:childrenField});tableData=tableTree;}else{tableData=treeConfig?tableFullTreeData.slice(0):tableFullData.slice(0);tableTree=tableData;}}internalData.afterFullData=tableData;internalData.afterTreeFullData=tableTree;internalData.afterGroupFullData=tableTree;updateAfterDataIndex();};const updateStyle=()=>{const{showHeaderOverflow:allColumnHeaderOverflow,showFooterOverflow:allColumnFooterOverflow,mouseConfig,spanMethod,footerSpanMethod}=props;const{isGroup,currentRow,tableColumn,scrollXLoad,scrollYLoad,overflowX,scrollbarWidth,overflowY,scrollbarHeight,scrollXWidth,columnStore,editStore,isAllOverflow,expandColumn,isColLoading}=reactData;const{visibleColumn,tableHeight,headerHeight,footerHeight,elemStore,customHeight,customMinHeight,customMaxHeight}=internalData;const el=refElem.value;if(!el){return;}const containerList=['main','left','right'];const osbWidth=overflowY?scrollbarWidth:0;const osbHeight=overflowX?scrollbarHeight:0;const emptyPlaceholderElem=refEmptyPlaceholder.value;const mouseOpts=computeMouseOpts.value;const expandOpts=computeExpandOpts.value;const bodyWrapperElem=getRefElem(elemStore['main-body-wrapper']);const bodyTableElem=getRefElem(elemStore['main-body-table']);if(emptyPlaceholderElem){emptyPlaceholderElem.style.top=`${headerHeight}px`;emptyPlaceholderElem.style.height=bodyWrapperElem?`${bodyWrapperElem.offsetHeight-osbHeight}px`:'';}let bodyHeight=0;let bodyMaxHeight=0;const bodyMinHeight=customMinHeight-headerHeight-footerHeight-osbHeight;if(customMaxHeight){bodyMaxHeight=Math.max(bodyMinHeight,customMaxHeight-headerHeight-footerHeight-osbHeight);}if(customHeight){bodyHeight=customHeight-headerHeight-footerHeight-osbHeight;}if(!bodyHeight){if(bodyTableElem){bodyHeight=bodyTableElem.clientHeight;}}if(bodyHeight){if(bodyMaxHeight){bodyHeight=Math.min(bodyMaxHeight,bodyHeight);}bodyHeight=Math.max(bodyMinHeight,bodyHeight);}const scrollbarXToTop=computeScrollbarXToTop.value;const xLeftCornerEl=refScrollXLeftCornerElem.value;const xRightCornerEl=refScrollXRightCornerElem.value;const scrollXVirtualEl=refScrollXVirtualElem.value;if(scrollXVirtualEl){scrollXVirtualEl.style.height=`${osbHeight}px`;scrollXVirtualEl.style.visibility=overflowX?'visible':'hidden';}const xWrapperEl=refScrollXWrapperElem.value;if(xWrapperEl){xWrapperEl.style.left=scrollbarXToTop?`${osbWidth}px`:'';xWrapperEl.style.width=`${el.clientWidth-osbWidth}px`;}if(xLeftCornerEl){xLeftCornerEl.style.width=scrollbarXToTop?`${osbWidth}px`:'';xLeftCornerEl.style.display=scrollbarXToTop?overflowX&&osbHeight?'block':'':'';}if(xRightCornerEl){xRightCornerEl.style.width=scrollbarXToTop?'':`${osbWidth}px`;xRightCornerEl.style.display=scrollbarXToTop?'':overflowX&&osbHeight?'block':'';}const scrollYVirtualEl=refScrollYVirtualElem.value;if(scrollYVirtualEl){scrollYVirtualEl.style.width=`${osbWidth}px`;scrollYVirtualEl.style.height=`${bodyHeight+headerHeight+footerHeight}px`;scrollYVirtualEl.style.visibility=overflowY?'visible':'hidden';}const yTopCornerEl=refScrollYTopCornerElem.value;if(yTopCornerEl){yTopCornerEl.style.height=`${headerHeight}px`;yTopCornerEl.style.display=overflowY&&headerHeight?'block':'';}const yWrapperEl=refScrollYWrapperElem.value;if(yWrapperEl){yWrapperEl.style.height=`${bodyHeight}px`;yWrapperEl.style.top=`${headerHeight}px`;}const yBottomCornerEl=refScrollYBottomCornerElem.value;if(yBottomCornerEl){yBottomCornerEl.style.height=`${footerHeight}px`;yBottomCornerEl.style.top=`${headerHeight+bodyHeight}px`;yBottomCornerEl.style.display=overflowY&&footerHeight?'block':'';}const rowExpandEl=refRowExpandElem.value;if(rowExpandEl){rowExpandEl.style.height=`${bodyHeight}px`;rowExpandEl.style.top=`${headerHeight}px`;}containerList.forEach((name,index)=>{const fixedType=index>0?name:'';const layoutList=['header','body','footer'];const isFixedLeft=fixedType==='left';let fixedColumn=[];let fixedWrapperElem;if(fixedType){fixedColumn=isFixedLeft?columnStore.leftList:columnStore.rightList;fixedWrapperElem=isFixedLeft?refLeftContainer.value:refRightContainer.value;}layoutList.forEach(layout=>{const wrapperElem=getRefElem(elemStore[`${name}-${layout}-wrapper`]);const currScrollElem=getRefElem(elemStore[`${name}-${layout}-scroll`]);const tableElem=getRefElem(elemStore[`${name}-${layout}-table`]);if(layout==='header'){// 表头体样式处理
|
|
10751
10741
|
// 横向滚动渲染
|
|
10752
10742
|
let renderColumnList=tableColumn;let isOptimizeMode=false;if(isGroup){renderColumnList=visibleColumn;}else{// 如果是使用优化模式
|
|
10753
|
-
if(scrollXLoad
|
|
10754
|
-
}else{isOptimizeMode=true;}}if(fixedType){renderColumnList=visibleColumn
|
|
10743
|
+
if(scrollXLoad&&allColumnHeaderOverflow){if(spanMethod||footerSpanMethod){// 如果不支持优化模式
|
|
10744
|
+
}else{isOptimizeMode=true;}}if(!isOptimizeMode||!isColLoading&&(fixedType||!overflowX)){renderColumnList=visibleColumn;}if(fixedType){// 如果是使用优化模式
|
|
10755
10745
|
if(isOptimizeMode){renderColumnList=fixedColumn||[];}}}const tWidth=renderColumnList.reduce((previous,column)=>previous+column.renderWidth,0);if(fixedType){if(isGroup){if(wrapperElem){wrapperElem.style.width=scrollXWidth?`${scrollXWidth}px`:'';}}else{if(isOptimizeMode){if(wrapperElem){wrapperElem.style.width=tWidth?`${tWidth}px`:'';}}else{if(wrapperElem){wrapperElem.style.width=scrollXWidth?`${scrollXWidth}px`:'';}}}}if(currScrollElem){currScrollElem.style.height=`${headerHeight}px`;}if(tableElem){tableElem.style.width=tWidth?`${tWidth}px`:'';}}else if(layout==='body'){if(currScrollElem){currScrollElem.style.maxHeight=customMaxHeight?`${bodyMaxHeight}px`:'';currScrollElem.style.height=customHeight?`${bodyHeight}px`:'';currScrollElem.style.minHeight=`${bodyMinHeight}px`;}// 如果是固定列
|
|
10756
10746
|
if(fixedWrapperElem){if(wrapperElem){wrapperElem.style.top=`${headerHeight}px`;}fixedWrapperElem.style.height=`${customHeight>0?customHeight:tableHeight+headerHeight+footerHeight+osbHeight}px`;fixedWrapperElem.style.width=`${fixedColumn.reduce((previous,column)=>previous+column.renderWidth,0)}px`;}let renderColumnList=tableColumn;let isOptimizeMode=false;// 如果是使用优化模式
|
|
10757
10747
|
if(scrollXLoad||scrollYLoad||isAllOverflow){if(expandColumn&&expandOpts.mode!=='fixed'||spanMethod||footerSpanMethod){// 如果不支持优化模式
|
|
10758
10748
|
}else{isOptimizeMode=true;}}if(fixedType){renderColumnList=visibleColumn;if(isOptimizeMode){renderColumnList=fixedColumn||[];}}const tWidth=renderColumnList.reduce((previous,column)=>previous+column.renderWidth,0);if(fixedType){if(isOptimizeMode){if(wrapperElem){wrapperElem.style.width=tWidth?`${tWidth}px`:'';}}else{if(wrapperElem){wrapperElem.style.width=scrollXWidth?`${scrollXWidth}px`:'';}}}if(tableElem){tableElem.style.width=tWidth?`${tWidth}px`:'';// 兼容性处理
|
|
10759
10749
|
tableElem.style.paddingRight=osbWidth&&fixedType&&(browseObj['-moz']||browseObj.safari)?`${osbWidth}px`:'';}const emptyBlockElem=getRefElem(elemStore[`${name}-${layout}-emptyBlock`]);if(emptyBlockElem){emptyBlockElem.style.width=tWidth?`${tWidth}px`:'';}}else if(layout==='footer'){let renderColumnList=tableColumn;let isOptimizeMode=false;// 如果是使用优化模式
|
|
10760
|
-
if(scrollXLoad
|
|
10750
|
+
if(scrollXLoad&&allColumnFooterOverflow){if(spanMethod||footerSpanMethod){// 如果不支持优化模式
|
|
10761
10751
|
}else{isOptimizeMode=true;}}if(fixedType){renderColumnList=visibleColumn;if(isOptimizeMode){renderColumnList=fixedColumn||[];}}const tWidth=renderColumnList.reduce((previous,column)=>previous+column.renderWidth,0);if(fixedType){if(isOptimizeMode){if(wrapperElem){wrapperElem.style.width=tWidth?`${tWidth}px`:'';}}else{if(wrapperElem){wrapperElem.style.width=scrollXWidth?`${scrollXWidth}px`:'';}}}if(currScrollElem){currScrollElem.style.height=`${footerHeight}px`;// 如果是固定列
|
|
10762
10752
|
if(fixedWrapperElem){if(wrapperElem){wrapperElem.style.top=`${customHeight>0?customHeight-footerHeight-osbHeight:tableHeight+headerHeight}px`;}}}if(tableElem){tableElem.style.width=tWidth?`${tWidth}px`:'';}}});});if(currentRow){$xeTable.setCurrentRow(currentRow);}if(mouseConfig&&mouseOpts.selected&&editStore.selected.row&&editStore.selected.column){$xeTable.addCellSelectedClass();}return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();};const checkValidate=type=>{if($xeTable.triggerValidate){return $xeTable.triggerValidate(type);}return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();};/**
|
|
10763
10753
|
* 当单元格发生改变时
|