vxe-table 3.15.47 → 3.15.48
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.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 +14 -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.css +1 -1
- package/lib/index.min.css +1 -1
- package/lib/index.umd.js +59 -23
- 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 +16 -2
- package/lib/table/src/methods.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/vxe-table/style/style.css +5 -1
- package/lib/vxe-table/style/style.min.css +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 +14 -2
- package/packages/ui/index.ts +2 -1
- package/styles/components/table-module/custom.scss +5 -1
- /package/es/{iconfont.1750732150166.ttf → iconfont.1750813664386.ttf} +0 -0
- /package/es/{iconfont.1750732150166.woff → iconfont.1750813664386.woff} +0 -0
- /package/es/{iconfont.1750732150166.woff2 → iconfont.1750813664386.woff2} +0 -0
- /package/lib/{iconfont.1750732150166.ttf → iconfont.1750813664386.ttf} +0 -0
- /package/lib/{iconfont.1750732150166.woff → iconfont.1750813664386.woff} +0 -0
- /package/lib/{iconfont.1750732150166.woff2 → iconfont.1750813664386.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
|
@@ -8888,12 +8888,24 @@ const Methods = {
|
|
|
8888
8888
|
const props = $xeTable;
|
|
8889
8889
|
const internalData = $xeTable;
|
|
8890
8890
|
const { aggregateConfig, rowGroupConfig } = props;
|
|
8891
|
+
const aggregateOpts = $xeTable.computeAggregateOpts;
|
|
8892
|
+
const { maxGroupSize } = aggregateOpts;
|
|
8891
8893
|
if (!(aggregateConfig || rowGroupConfig)) {
|
|
8892
8894
|
errLog('vxe.error.reqProp', ['aggregate-config']);
|
|
8893
8895
|
return $xeTable.$nextTick();
|
|
8894
8896
|
}
|
|
8895
|
-
|
|
8896
|
-
|
|
8897
|
+
const confList = fieldOrColumns ? (XEUtils.isArray(fieldOrColumns) ? fieldOrColumns : [fieldOrColumns]) : [];
|
|
8898
|
+
if (maxGroupSize && confList.length > maxGroupSize) {
|
|
8899
|
+
if (VxeUI.modal) {
|
|
8900
|
+
VxeUI.modal.message({
|
|
8901
|
+
status: 'error',
|
|
8902
|
+
content: getI18n('vxe.table.maxGroupCol', [maxGroupSize])
|
|
8903
|
+
});
|
|
8904
|
+
}
|
|
8905
|
+
return $xeTable.$nextTick();
|
|
8906
|
+
}
|
|
8907
|
+
if (confList.length) {
|
|
8908
|
+
handleUpdateRowGroup($xeTable, confList.map(fieldOrColumn => {
|
|
8897
8909
|
return XEUtils.isString(fieldOrColumn) ? fieldOrColumn : fieldOrColumn.field;
|
|
8898
8910
|
}));
|
|
8899
8911
|
return loadTableData($xeTable, internalData.tableSynchData, true);
|
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 {
|