vxe-table 3.15.47 → 3.15.49
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/index.css +1 -1
- package/es/index.esm.js +1 -2
- package/es/index.min.css +1 -1
- package/es/locale/lang/ar-EG.js +3 -2
- package/es/locale/lang/de-DE.js +3 -2
- package/es/locale/lang/en-US.js +3 -2
- package/es/locale/lang/es-ES.js +3 -2
- package/es/locale/lang/fr-FR.js +3 -2
- package/es/locale/lang/hu-HU.js +3 -2
- package/es/locale/lang/hy-AM.js +3 -2
- package/es/locale/lang/id-ID.js +3 -2
- package/es/locale/lang/it-IT.js +3 -2
- package/es/locale/lang/ja-JP.js +3 -2
- package/es/locale/lang/ko-KR.js +3 -2
- package/es/locale/lang/ms-MY.js +3 -2
- package/es/locale/lang/nb-NO.js +3 -2
- package/es/locale/lang/pt-BR.js +3 -2
- package/es/locale/lang/ru-RU.js +3 -2
- package/es/locale/lang/th-TH.js +3 -2
- package/es/locale/lang/ug-CN.js +3 -2
- package/es/locale/lang/uk-UA.js +3 -2
- package/es/locale/lang/uz-UZ.js +3 -2
- package/es/locale/lang/vi-VN.js +3 -2
- package/es/locale/lang/zh-CHT.js +3 -2
- package/es/locale/lang/zh-CN.js +3 -2
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/table/module/custom/panel.js +9 -2
- package/es/table/src/body.js +8 -5
- package/es/table/src/cell.js +21 -13
- package/es/table/src/methods.js +40 -12
- package/es/table/src/table.js +2 -2
- package/es/table/style.css +5 -1
- package/es/table/style.min.css +1 -1
- package/es/ui/index.js +3 -2
- package/es/ui/src/log.js +1 -1
- package/es/vxe-table/style.css +5 -1
- package/es/vxe-table/style.min.css +1 -1
- package/lib/index.common.js +1 -2
- package/lib/index.css +1 -1
- package/lib/index.min.css +1 -1
- package/lib/index.umd.js +2327 -945
- package/lib/index.umd.min.js +1 -1
- package/lib/locale/lang/ar-EG.js +3 -2
- package/lib/locale/lang/ar-EG.min.js +1 -1
- package/lib/locale/lang/ar-EG.umd.js +3 -2
- package/lib/locale/lang/de-DE.js +3 -2
- package/lib/locale/lang/de-DE.min.js +1 -1
- package/lib/locale/lang/de-DE.umd.js +3 -2
- package/lib/locale/lang/en-US.js +3 -2
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +3 -2
- package/lib/locale/lang/es-ES.js +3 -2
- package/lib/locale/lang/es-ES.min.js +1 -1
- package/lib/locale/lang/es-ES.umd.js +3 -2
- package/lib/locale/lang/fr-FR.js +3 -2
- package/lib/locale/lang/fr-FR.min.js +1 -1
- package/lib/locale/lang/fr-FR.umd.js +3 -2
- package/lib/locale/lang/hu-HU.js +3 -2
- package/lib/locale/lang/hu-HU.min.js +1 -1
- package/lib/locale/lang/hu-HU.umd.js +3 -2
- package/lib/locale/lang/hy-AM.js +3 -2
- package/lib/locale/lang/hy-AM.min.js +1 -1
- package/lib/locale/lang/hy-AM.umd.js +3 -2
- package/lib/locale/lang/id-ID.js +3 -2
- package/lib/locale/lang/id-ID.min.js +1 -1
- package/lib/locale/lang/id-ID.umd.js +3 -2
- package/lib/locale/lang/it-IT.js +3 -2
- package/lib/locale/lang/it-IT.min.js +1 -1
- package/lib/locale/lang/it-IT.umd.js +3 -2
- package/lib/locale/lang/ja-JP.js +3 -2
- package/lib/locale/lang/ja-JP.min.js +1 -1
- package/lib/locale/lang/ja-JP.umd.js +3 -2
- package/lib/locale/lang/ko-KR.js +3 -2
- package/lib/locale/lang/ko-KR.min.js +1 -1
- package/lib/locale/lang/ko-KR.umd.js +3 -2
- package/lib/locale/lang/ms-MY.js +3 -2
- package/lib/locale/lang/ms-MY.min.js +1 -1
- package/lib/locale/lang/ms-MY.umd.js +3 -2
- package/lib/locale/lang/nb-NO.js +3 -2
- package/lib/locale/lang/nb-NO.min.js +1 -1
- package/lib/locale/lang/nb-NO.umd.js +3 -2
- package/lib/locale/lang/pt-BR.js +3 -2
- package/lib/locale/lang/pt-BR.min.js +1 -1
- package/lib/locale/lang/pt-BR.umd.js +3 -2
- package/lib/locale/lang/ru-RU.js +3 -2
- package/lib/locale/lang/ru-RU.min.js +1 -1
- package/lib/locale/lang/ru-RU.umd.js +3 -2
- package/lib/locale/lang/th-TH.js +3 -2
- package/lib/locale/lang/th-TH.min.js +1 -1
- package/lib/locale/lang/th-TH.umd.js +3 -2
- package/lib/locale/lang/ug-CN.js +3 -2
- package/lib/locale/lang/ug-CN.min.js +1 -1
- package/lib/locale/lang/ug-CN.umd.js +3 -2
- package/lib/locale/lang/uk-UA.js +3 -2
- package/lib/locale/lang/uk-UA.min.js +1 -1
- package/lib/locale/lang/uk-UA.umd.js +3 -2
- package/lib/locale/lang/uz-UZ.js +3 -2
- package/lib/locale/lang/uz-UZ.min.js +1 -1
- package/lib/locale/lang/uz-UZ.umd.js +3 -2
- package/lib/locale/lang/vi-VN.js +3 -2
- package/lib/locale/lang/vi-VN.min.js +1 -1
- package/lib/locale/lang/vi-VN.umd.js +3 -2
- package/lib/locale/lang/zh-CHT.js +3 -2
- package/lib/locale/lang/zh-CHT.min.js +1 -1
- package/lib/locale/lang/zh-CHT.umd.js +3 -2
- package/lib/locale/lang/zh-CN.js +3 -2
- package/lib/locale/lang/zh-CN.min.js +1 -1
- package/lib/locale/lang/zh-CN.umd.js +3 -2
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/module/custom/panel.js +8 -1
- package/lib/table/module/custom/panel.min.js +1 -1
- package/lib/table/src/body.js +8 -5
- package/lib/table/src/body.min.js +1 -1
- package/lib/table/src/cell.js +20 -11
- package/lib/table/src/cell.min.js +1 -1
- package/lib/table/src/methods.js +39 -15
- package/lib/table/src/methods.min.js +1 -1
- package/lib/table/src/table.js +2 -1
- package/lib/table/src/table.min.js +1 -1
- package/lib/table/style/style.css +5 -1
- package/lib/table/style/style.min.css +1 -1
- package/lib/ui/index.js +3 -2
- 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/lib/v-x-e-table/index.js +1 -2
- package/lib/v-x-e-table/index.min.js +1 -1
- package/lib/vxe-colgroup/index.js +1 -2
- package/lib/vxe-colgroup/index.min.js +1 -1
- package/lib/vxe-column/index.js +1 -2
- package/lib/vxe-column/index.min.js +1 -1
- package/lib/vxe-grid/index.js +1 -2
- package/lib/vxe-grid/index.min.js +1 -1
- package/lib/vxe-table/index.js +1 -2
- package/lib/vxe-table/index.min.js +1 -1
- package/lib/vxe-table/style/style.css +5 -1
- package/lib/vxe-table/style/style.min.css +1 -1
- package/lib/vxe-toolbar/index.js +1 -2
- package/lib/vxe-toolbar/index.min.js +1 -1
- package/lib/vxe-ui/index.js +1 -2
- package/lib/vxe-ui/index.min.js +1 -1
- package/lib/vxe-v-x-e-table/index.js +1 -2
- package/lib/vxe-v-x-e-table/index.min.js +1 -1
- package/package.json +1 -1
- package/packages/locale/lang/ar-EG.ts +3 -2
- package/packages/locale/lang/de-DE.ts +3 -2
- package/packages/locale/lang/en-US.ts +3 -2
- package/packages/locale/lang/es-ES.ts +3 -2
- package/packages/locale/lang/fr-FR.ts +3 -2
- package/packages/locale/lang/hu-HU.ts +3 -2
- package/packages/locale/lang/hy-AM.ts +3 -2
- package/packages/locale/lang/id-ID.ts +3 -2
- package/packages/locale/lang/it-IT.ts +3 -2
- package/packages/locale/lang/ja-JP.ts +3 -2
- package/packages/locale/lang/ko-KR.ts +3 -2
- package/packages/locale/lang/ms-MY.ts +3 -2
- package/packages/locale/lang/nb-NO.ts +3 -2
- package/packages/locale/lang/pt-BR.ts +3 -2
- package/packages/locale/lang/ru-RU.ts +3 -2
- package/packages/locale/lang/th-TH.ts +3 -2
- package/packages/locale/lang/ug-CN.ts +3 -2
- package/packages/locale/lang/uk-UA.ts +3 -2
- package/packages/locale/lang/uz-UZ.ts +3 -2
- package/packages/locale/lang/vi-VN.ts +3 -2
- package/packages/locale/lang/zh-CHT.ts +3 -2
- package/packages/locale/lang/zh-CN.ts +3 -2
- package/packages/table/module/custom/panel.ts +9 -2
- package/packages/table/src/body.ts +8 -5
- package/packages/table/src/cell.ts +25 -13
- package/packages/table/src/methods.ts +37 -12
- package/packages/table/src/table.ts +2 -2
- package/packages/ui/index.ts +2 -1
- package/styles/components/table-module/custom.scss +5 -1
- /package/es/{iconfont.1750732150166.ttf → iconfont.1750995593907.ttf} +0 -0
- /package/es/{iconfont.1750732150166.woff → iconfont.1750995593907.woff} +0 -0
- /package/es/{iconfont.1750732150166.woff2 → iconfont.1750995593907.woff2} +0 -0
- /package/lib/{iconfont.1750732150166.ttf → iconfont.1750995593907.ttf} +0 -0
- /package/lib/{iconfont.1750732150166.woff → iconfont.1750995593907.woff} +0 -0
- /package/lib/{iconfont.1750732150166.woff2 → iconfont.1750995593907.woff2} +0 -0
|
@@ -431,7 +431,7 @@ const renderPopupPanel = (h, $xeTableCustomPanel) => {
|
|
|
431
431
|
const tableReactData = $xeTable;
|
|
432
432
|
const $xeGrid = $xeTable.$xeGrid;
|
|
433
433
|
const { customStore } = props;
|
|
434
|
-
const { resizable: allResizable } = tableProps;
|
|
434
|
+
const { treeConfig, rowGroupConfig, aggregateConfig, resizable: allResizable } = tableProps;
|
|
435
435
|
const { isCustomStatus, customColumnList } = tableReactData;
|
|
436
436
|
const customOpts = $xeTable.computeCustomOpts;
|
|
437
437
|
const { immediate } = customOpts;
|
|
@@ -725,7 +725,14 @@ const renderPopupPanel = (h, $xeTableCustomPanel) => {
|
|
|
725
725
|
}, $xeTable.callSlot(bottomSlot, params, h))
|
|
726
726
|
: renderEmptyElement($xeTable),
|
|
727
727
|
renderDragTip(h, _vm)
|
|
728
|
-
])
|
|
728
|
+
]),
|
|
729
|
+
!treeConfig && (aggregateConfig || rowGroupConfig) && $xeTable.getPivotTableAggregatePopupPanel
|
|
730
|
+
? h($xeTable.getPivotTableAggregatePopupPanel(), {
|
|
731
|
+
props: {
|
|
732
|
+
customStore
|
|
733
|
+
}
|
|
734
|
+
})
|
|
735
|
+
: renderEmptyElement($xeTable)
|
|
729
736
|
]);
|
|
730
737
|
},
|
|
731
738
|
footer: () => {
|
package/es/table/src/body.js
CHANGED
|
@@ -190,6 +190,7 @@ function renderTdColumn(h, $xeTable, seq, rowid, fixedType, isOptimizeMode, rowL
|
|
|
190
190
|
$xeTable.triggerCellDblclickEvent(evnt, cellParams);
|
|
191
191
|
};
|
|
192
192
|
let isMergeCell = false;
|
|
193
|
+
let mergeColspan = 1;
|
|
193
194
|
let mergeRowspan = 1;
|
|
194
195
|
// 合并行或列
|
|
195
196
|
if (mergeBodyFlag && mergeBodyList.length) {
|
|
@@ -206,6 +207,7 @@ function renderTdColumn(h, $xeTable, seq, rowid, fixedType, isOptimizeMode, rowL
|
|
|
206
207
|
}
|
|
207
208
|
if (colspan > 1) {
|
|
208
209
|
isMergeCell = true;
|
|
210
|
+
mergeColspan = colspan;
|
|
209
211
|
tdAttrs.colspan = colspan;
|
|
210
212
|
}
|
|
211
213
|
}
|
|
@@ -223,6 +225,7 @@ function renderTdColumn(h, $xeTable, seq, rowid, fixedType, isOptimizeMode, rowL
|
|
|
223
225
|
}
|
|
224
226
|
if (colspan > 1) {
|
|
225
227
|
isMergeCell = true;
|
|
228
|
+
mergeColspan = colspan;
|
|
226
229
|
tdAttrs.colspan = colspan;
|
|
227
230
|
}
|
|
228
231
|
}
|
|
@@ -262,16 +265,16 @@ function renderTdColumn(h, $xeTable, seq, rowid, fixedType, isOptimizeMode, rowL
|
|
|
262
265
|
}
|
|
263
266
|
const tcStyle = {};
|
|
264
267
|
if (hasEllipsis && resizeWidthFlag) {
|
|
265
|
-
let
|
|
266
|
-
if (
|
|
267
|
-
for (let index = 1; index <
|
|
268
|
+
let mergeColWidth = 0;
|
|
269
|
+
if (mergeColspan > 1) {
|
|
270
|
+
for (let index = 1; index < mergeColspan; index++) {
|
|
268
271
|
const nextColumn = visibleColumn[columnIndex + index];
|
|
269
272
|
if (nextColumn) {
|
|
270
|
-
|
|
273
|
+
mergeColWidth += nextColumn.renderWidth;
|
|
271
274
|
}
|
|
272
275
|
}
|
|
273
276
|
}
|
|
274
|
-
tcStyle.width = `${column.renderWidth -
|
|
277
|
+
tcStyle.width = `${column.renderWidth + mergeColWidth - cellOffsetWidth}px`;
|
|
275
278
|
}
|
|
276
279
|
if (scrollYLoad || hasEllipsis || isCsHeight || isRsHeight) {
|
|
277
280
|
tcStyle.height = `${cellHeight}px`;
|
package/es/table/src/cell.js
CHANGED
|
@@ -151,12 +151,26 @@ function renderHeaderCellBaseVNs(h, params, content) {
|
|
|
151
151
|
];
|
|
152
152
|
return vns;
|
|
153
153
|
}
|
|
154
|
+
function getRenderDefaultColumnTitle(h, column, content) {
|
|
155
|
+
if (column.type === 'html' && XEUtils.isString(content)) {
|
|
156
|
+
return h('span', {
|
|
157
|
+
key: 'ch',
|
|
158
|
+
domProps: {
|
|
159
|
+
innerHTML: content
|
|
160
|
+
}
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
return h('span', {
|
|
164
|
+
key: 'ct'
|
|
165
|
+
}, getSlotVNs(content));
|
|
166
|
+
}
|
|
154
167
|
function renderTitleContent(h, params, content) {
|
|
155
168
|
const { $table, column } = params;
|
|
156
|
-
const {
|
|
169
|
+
const { showHeaderOverflow } = column;
|
|
157
170
|
const tableProps = $table;
|
|
158
171
|
const tableReactData = $table;
|
|
159
172
|
const { showHeaderOverflow: allColumnHeaderOverflow } = tableProps;
|
|
173
|
+
const { isRowGroupStatus } = tableReactData;
|
|
160
174
|
const tooltipOpts = $table.computeTooltipOpts;
|
|
161
175
|
const showAllTip = tooltipOpts.showAll;
|
|
162
176
|
const headOverflow = XEUtils.isUndefined(showHeaderOverflow) || XEUtils.isNull(showHeaderOverflow) ? allColumnHeaderOverflow : showHeaderOverflow;
|
|
@@ -186,19 +200,13 @@ function renderTitleContent(h, params, content) {
|
|
|
186
200
|
}
|
|
187
201
|
};
|
|
188
202
|
}
|
|
203
|
+
const titleVN = getRenderDefaultColumnTitle(h, column, content);
|
|
189
204
|
return [
|
|
190
|
-
|
|
191
|
-
? h
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
},
|
|
196
|
-
on: ons
|
|
197
|
-
})
|
|
198
|
-
: h('span', {
|
|
199
|
-
class: 'vxe-cell--title',
|
|
200
|
-
on: ons
|
|
201
|
-
}, getSlotVNs(content))
|
|
205
|
+
h('span', Object.assign({ class: 'vxe-cell--title' }, ons), isRowGroupStatus && column.aggFunc && $table.getPivotTableAggregateRenderColTitles
|
|
206
|
+
? $table.getPivotTableAggregateRenderColTitles(h, column, titleVN)
|
|
207
|
+
: [
|
|
208
|
+
titleVN
|
|
209
|
+
])
|
|
202
210
|
];
|
|
203
211
|
}
|
|
204
212
|
function getFooterContent(h, params) {
|
package/es/table/src/methods.js
CHANGED
|
@@ -6844,7 +6844,8 @@ const Methods = {
|
|
|
6844
6844
|
const childList = vals[2];
|
|
6845
6845
|
let sLen = 0; // 已选
|
|
6846
6846
|
let hLen = 0; // 半选
|
|
6847
|
-
let vLen = 0; //
|
|
6847
|
+
let vLen = 0; // 有效子行
|
|
6848
|
+
const cLen = childList.length; // 有效子行
|
|
6848
6849
|
childList.forEach(checkMethod
|
|
6849
6850
|
? (item) => {
|
|
6850
6851
|
const childRowid = handleGetRowId(item);
|
|
@@ -6878,16 +6879,29 @@ const Methods = {
|
|
|
6878
6879
|
}
|
|
6879
6880
|
vLen++;
|
|
6880
6881
|
});
|
|
6881
|
-
let isSelected =
|
|
6882
|
-
if (
|
|
6883
|
-
if (
|
|
6884
|
-
isSelected = sLen >= vLen;
|
|
6882
|
+
let isSelected = false;
|
|
6883
|
+
if (cLen > 0) {
|
|
6884
|
+
if (vLen > 0) {
|
|
6885
|
+
isSelected = (sLen > 0 || hLen > 0) && sLen >= vLen;
|
|
6885
6886
|
}
|
|
6886
6887
|
else {
|
|
6887
|
-
|
|
6888
|
+
// 如果存在子项禁用
|
|
6889
|
+
if ((sLen > 0 && sLen >= vLen)) {
|
|
6890
|
+
isSelected = true;
|
|
6891
|
+
}
|
|
6892
|
+
else if (selectCheckboxMaps[rowid]) {
|
|
6893
|
+
isSelected = true;
|
|
6894
|
+
}
|
|
6895
|
+
else {
|
|
6896
|
+
isSelected = false;
|
|
6897
|
+
}
|
|
6888
6898
|
}
|
|
6889
6899
|
}
|
|
6890
|
-
|
|
6900
|
+
else {
|
|
6901
|
+
// 如果无子项
|
|
6902
|
+
isSelected = selectCheckboxMaps[rowid];
|
|
6903
|
+
}
|
|
6904
|
+
const halfSelect = !isSelected && (sLen > 0 || hLen > 0);
|
|
6891
6905
|
if (checkField) {
|
|
6892
6906
|
XEUtils.set(row, checkField, isSelected);
|
|
6893
6907
|
}
|
|
@@ -6930,7 +6944,9 @@ const Methods = {
|
|
|
6930
6944
|
const { checkField, checkMethod, showReserveStatus } = checkboxOpts;
|
|
6931
6945
|
const { handleGetRowId } = createHandleGetRowId($xeTable);
|
|
6932
6946
|
let sLen = 0; // 已选
|
|
6947
|
+
let dsLen = 0; // 禁用的已选
|
|
6933
6948
|
let hLen = 0; // 半选
|
|
6949
|
+
let dhLen = 0; // 禁用的半选
|
|
6934
6950
|
let vLen = 0; // 有效行
|
|
6935
6951
|
const rootList = (treeConfig ? afterTreeFullData : (isRowGroupStatus ? afterGroupFullData : afterFullData));
|
|
6936
6952
|
rootList.forEach(checkMethod
|
|
@@ -6948,10 +6964,10 @@ const Methods = {
|
|
|
6948
6964
|
}
|
|
6949
6965
|
else {
|
|
6950
6966
|
if (selected) {
|
|
6951
|
-
|
|
6967
|
+
dsLen++;
|
|
6952
6968
|
}
|
|
6953
6969
|
else if (treeIndeterminateRowMaps[childRowid]) {
|
|
6954
|
-
|
|
6970
|
+
dhLen++;
|
|
6955
6971
|
}
|
|
6956
6972
|
}
|
|
6957
6973
|
}
|
|
@@ -6967,7 +6983,7 @@ const Methods = {
|
|
|
6967
6983
|
vLen++;
|
|
6968
6984
|
});
|
|
6969
6985
|
const isSelected = rootList.length > 0 ? (vLen > 0 ? (sLen >= vLen) : (sLen >= rootList.length)) : false;
|
|
6970
|
-
let halfSelect = !isSelected && (sLen
|
|
6986
|
+
let halfSelect = !isSelected && (sLen > 0 || hLen > 0 || dsLen > 0 || dhLen > 0);
|
|
6971
6987
|
// 如果复选框启用保留记录,当保留数据存在时显示半选
|
|
6972
6988
|
if (!isSelected && !halfSelect && showReserveStatus) {
|
|
6973
6989
|
halfSelect = !XEUtils.isEmpty(checkboxReserveRowMap);
|
|
@@ -8888,12 +8904,24 @@ const Methods = {
|
|
|
8888
8904
|
const props = $xeTable;
|
|
8889
8905
|
const internalData = $xeTable;
|
|
8890
8906
|
const { aggregateConfig, rowGroupConfig } = props;
|
|
8907
|
+
const aggregateOpts = $xeTable.computeAggregateOpts;
|
|
8908
|
+
const { maxGroupSize } = aggregateOpts;
|
|
8891
8909
|
if (!(aggregateConfig || rowGroupConfig)) {
|
|
8892
8910
|
errLog('vxe.error.reqProp', ['aggregate-config']);
|
|
8893
8911
|
return $xeTable.$nextTick();
|
|
8894
8912
|
}
|
|
8895
|
-
|
|
8896
|
-
|
|
8913
|
+
const confList = fieldOrColumns ? (XEUtils.isArray(fieldOrColumns) ? fieldOrColumns : [fieldOrColumns]) : [];
|
|
8914
|
+
if (maxGroupSize && confList.length > maxGroupSize) {
|
|
8915
|
+
if (VxeUI.modal) {
|
|
8916
|
+
VxeUI.modal.message({
|
|
8917
|
+
status: 'error',
|
|
8918
|
+
content: getI18n('vxe.table.maxGroupCol', [maxGroupSize])
|
|
8919
|
+
});
|
|
8920
|
+
}
|
|
8921
|
+
return $xeTable.$nextTick();
|
|
8922
|
+
}
|
|
8923
|
+
if (confList.length) {
|
|
8924
|
+
handleUpdateRowGroup($xeTable, confList.map(fieldOrColumn => {
|
|
8897
8925
|
return XEUtils.isString(fieldOrColumn) ? fieldOrColumn : fieldOrColumn.field;
|
|
8898
8926
|
}));
|
|
8899
8927
|
return loadTableData($xeTable, internalData.tableSynchData, true);
|
package/es/table/src/table.js
CHANGED
|
@@ -1111,10 +1111,10 @@ export default {
|
|
|
1111
1111
|
const $xeTable = this;
|
|
1112
1112
|
const reactData = $xeTable;
|
|
1113
1113
|
const internalData = $xeTable;
|
|
1114
|
-
const { rowExpandedFlag, expandColumn, rowGroupExpandedFlag, treeExpandedFlag } = reactData;
|
|
1114
|
+
const { tableData, rowExpandedFlag, expandColumn, rowGroupExpandedFlag, treeExpandedFlag } = reactData;
|
|
1115
1115
|
const { visibleDataRowIdData, rowExpandedMaps } = internalData;
|
|
1116
1116
|
const expandList = [];
|
|
1117
|
-
if (expandColumn && rowExpandedFlag && rowGroupExpandedFlag && treeExpandedFlag) {
|
|
1117
|
+
if (tableData.length && expandColumn && rowExpandedFlag && rowGroupExpandedFlag && treeExpandedFlag) {
|
|
1118
1118
|
XEUtils.each(rowExpandedMaps, (row, rowid) => {
|
|
1119
1119
|
if (visibleDataRowIdData[rowid]) {
|
|
1120
1120
|
expandList.push(row);
|
package/es/table/style.css
CHANGED
|
@@ -999,13 +999,17 @@
|
|
|
999
999
|
|
|
1000
1000
|
.vxe-table-custom-popup--body-wrapper {
|
|
1001
1001
|
position: relative;
|
|
1002
|
-
|
|
1002
|
+
display: flex;
|
|
1003
|
+
flex-direction: column;
|
|
1004
|
+
overflow: hidden;
|
|
1003
1005
|
height: 100%;
|
|
1004
1006
|
outline: 0;
|
|
1005
1007
|
}
|
|
1006
1008
|
|
|
1007
1009
|
.vxe-table-custom-popup--handle-wrapper {
|
|
1010
|
+
flex-grow: 1;
|
|
1008
1011
|
outline: 0;
|
|
1012
|
+
overflow: auto;
|
|
1009
1013
|
}
|
|
1010
1014
|
|
|
1011
1015
|
.vxe-table-custom-popup--table-wrapper {
|