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
package/lib/index.umd.js
CHANGED
|
@@ -2002,7 +2002,7 @@ function getClass(property, params) {
|
|
|
2002
2002
|
;// CONCATENATED MODULE: ./packages/ui/index.ts
|
|
2003
2003
|
|
|
2004
2004
|
|
|
2005
|
-
const version = "3.15.
|
|
2005
|
+
const version = "3.15.48";
|
|
2006
2006
|
core_.VxeUI.version = version;
|
|
2007
2007
|
core_.VxeUI.tableVersion = version;
|
|
2008
2008
|
core_.VxeUI.setConfig({
|
|
@@ -2146,7 +2146,8 @@ core_.VxeUI.setConfig({
|
|
|
2146
2146
|
mapChildrenField: '_X_ROW_CHILD_LIST',
|
|
2147
2147
|
indent: 20,
|
|
2148
2148
|
showIcon: true,
|
|
2149
|
-
maxGroupSize: 4
|
|
2149
|
+
maxGroupSize: 4,
|
|
2150
|
+
showAggFuncTitle: true
|
|
2150
2151
|
},
|
|
2151
2152
|
treeConfig: {
|
|
2152
2153
|
padding: true,
|
|
@@ -2665,7 +2666,7 @@ function isNodeElement(elem) {
|
|
|
2665
2666
|
const {
|
|
2666
2667
|
log: log_log
|
|
2667
2668
|
} = core_.VxeUI;
|
|
2668
|
-
const log_version = `table v${"3.15.
|
|
2669
|
+
const log_version = `table v${"3.15.48"}`;
|
|
2669
2670
|
const warnLog = log_log.create('warn', log_version);
|
|
2670
2671
|
const errLog = log_log.create('error', log_version);
|
|
2671
2672
|
;// CONCATENATED MODULE: ./packages/table/src/columnInfo.ts
|
|
@@ -3654,13 +3655,25 @@ function renderHeaderCellBaseVNs(h, params, content) {
|
|
|
3654
3655
|
const vns = [renderTitlePrefixIcon(h, params), renderHeaderCellDragIcon(h, params), ...(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(content) ? content : [content]), renderTitleSuffixIcon(h, params)];
|
|
3655
3656
|
return vns;
|
|
3656
3657
|
}
|
|
3658
|
+
function getRenderDefaultColumnTitle(h, column, content) {
|
|
3659
|
+
if (column.type === 'html' && external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isString(content)) {
|
|
3660
|
+
return h('span', {
|
|
3661
|
+
key: 'ch',
|
|
3662
|
+
domProps: {
|
|
3663
|
+
innerHTML: content
|
|
3664
|
+
}
|
|
3665
|
+
});
|
|
3666
|
+
}
|
|
3667
|
+
return h('span', {
|
|
3668
|
+
key: 'ct'
|
|
3669
|
+
}, getSlotVNs(content));
|
|
3670
|
+
}
|
|
3657
3671
|
function renderTitleContent(h, params, content) {
|
|
3658
3672
|
const {
|
|
3659
3673
|
$table,
|
|
3660
3674
|
column
|
|
3661
3675
|
} = params;
|
|
3662
3676
|
const {
|
|
3663
|
-
type,
|
|
3664
3677
|
showHeaderOverflow
|
|
3665
3678
|
} = column;
|
|
3666
3679
|
const tableProps = $table;
|
|
@@ -3668,6 +3681,9 @@ function renderTitleContent(h, params, content) {
|
|
|
3668
3681
|
const {
|
|
3669
3682
|
showHeaderOverflow: allColumnHeaderOverflow
|
|
3670
3683
|
} = tableProps;
|
|
3684
|
+
const {
|
|
3685
|
+
isRowGroupStatus
|
|
3686
|
+
} = tableReactData;
|
|
3671
3687
|
const tooltipOpts = $table.computeTooltipOpts;
|
|
3672
3688
|
const showAllTip = tooltipOpts.showAll;
|
|
3673
3689
|
const headOverflow = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isUndefined(showHeaderOverflow) || external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isNull(showHeaderOverflow) ? allColumnHeaderOverflow : showHeaderOverflow;
|
|
@@ -3696,16 +3712,11 @@ function renderTitleContent(h, params, content) {
|
|
|
3696
3712
|
}
|
|
3697
3713
|
};
|
|
3698
3714
|
}
|
|
3699
|
-
|
|
3700
|
-
|
|
3701
|
-
domProps: {
|
|
3702
|
-
innerHTML: content
|
|
3703
|
-
},
|
|
3704
|
-
on: ons
|
|
3705
|
-
}) : h('span', {
|
|
3715
|
+
const titleVN = getRenderDefaultColumnTitle(h, column, content);
|
|
3716
|
+
return [h('span', {
|
|
3706
3717
|
class: 'vxe-cell--title',
|
|
3707
|
-
|
|
3708
|
-
},
|
|
3718
|
+
...ons
|
|
3719
|
+
}, isRowGroupStatus && column.aggFunc && $table.getPivotTableAggregateRenderColTitles ? $table.getPivotTableAggregateRenderColTitles(h, column, titleVN) : [titleVN])];
|
|
3709
3720
|
}
|
|
3710
3721
|
function getFooterContent(h, params) {
|
|
3711
3722
|
const {
|
|
@@ -15562,12 +15573,26 @@ const Methods = {
|
|
|
15562
15573
|
aggregateConfig,
|
|
15563
15574
|
rowGroupConfig
|
|
15564
15575
|
} = props;
|
|
15576
|
+
const aggregateOpts = $xeTable.computeAggregateOpts;
|
|
15577
|
+
const {
|
|
15578
|
+
maxGroupSize
|
|
15579
|
+
} = aggregateOpts;
|
|
15565
15580
|
if (!(aggregateConfig || rowGroupConfig)) {
|
|
15566
15581
|
errLog('vxe.error.reqProp', ['aggregate-config']);
|
|
15567
15582
|
return $xeTable.$nextTick();
|
|
15568
15583
|
}
|
|
15569
|
-
|
|
15570
|
-
|
|
15584
|
+
const confList = fieldOrColumns ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(fieldOrColumns) ? fieldOrColumns : [fieldOrColumns] : [];
|
|
15585
|
+
if (maxGroupSize && confList.length > maxGroupSize) {
|
|
15586
|
+
if (core_.VxeUI.modal) {
|
|
15587
|
+
core_.VxeUI.modal.message({
|
|
15588
|
+
status: 'error',
|
|
15589
|
+
content: methods_getI18n('vxe.table.maxGroupCol', [maxGroupSize])
|
|
15590
|
+
});
|
|
15591
|
+
}
|
|
15592
|
+
return $xeTable.$nextTick();
|
|
15593
|
+
}
|
|
15594
|
+
if (confList.length) {
|
|
15595
|
+
handleUpdateRowGroup($xeTable, confList.map(fieldOrColumn => {
|
|
15571
15596
|
return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isString(fieldOrColumn) ? fieldOrColumn : fieldOrColumn.field;
|
|
15572
15597
|
}));
|
|
15573
15598
|
return loadTableData($xeTable, internalData.tableSynchData, true);
|
|
@@ -17546,6 +17571,7 @@ function renderTdColumn(h, $xeTable, seq, rowid, fixedType, isOptimizeMode, rowL
|
|
|
17546
17571
|
$xeTable.triggerCellDblclickEvent(evnt, cellParams);
|
|
17547
17572
|
};
|
|
17548
17573
|
let isMergeCell = false;
|
|
17574
|
+
let mergeColspan = 1;
|
|
17549
17575
|
let mergeRowspan = 1;
|
|
17550
17576
|
// 合并行或列
|
|
17551
17577
|
if (mergeBodyFlag && mergeBodyList.length) {
|
|
@@ -17565,6 +17591,7 @@ function renderTdColumn(h, $xeTable, seq, rowid, fixedType, isOptimizeMode, rowL
|
|
|
17565
17591
|
}
|
|
17566
17592
|
if (colspan > 1) {
|
|
17567
17593
|
isMergeCell = true;
|
|
17594
|
+
mergeColspan = colspan;
|
|
17568
17595
|
tdAttrs.colspan = colspan;
|
|
17569
17596
|
}
|
|
17570
17597
|
}
|
|
@@ -17584,6 +17611,7 @@ function renderTdColumn(h, $xeTable, seq, rowid, fixedType, isOptimizeMode, rowL
|
|
|
17584
17611
|
}
|
|
17585
17612
|
if (colspan > 1) {
|
|
17586
17613
|
isMergeCell = true;
|
|
17614
|
+
mergeColspan = colspan;
|
|
17587
17615
|
tdAttrs.colspan = colspan;
|
|
17588
17616
|
}
|
|
17589
17617
|
}
|
|
@@ -17622,16 +17650,16 @@ function renderTdColumn(h, $xeTable, seq, rowid, fixedType, isOptimizeMode, rowL
|
|
|
17622
17650
|
}
|
|
17623
17651
|
const tcStyle = {};
|
|
17624
17652
|
if (hasEllipsis && resizeWidthFlag) {
|
|
17625
|
-
let
|
|
17626
|
-
if (
|
|
17627
|
-
for (let index = 1; index <
|
|
17653
|
+
let mergeColWidth = 0;
|
|
17654
|
+
if (mergeColspan > 1) {
|
|
17655
|
+
for (let index = 1; index < mergeColspan; index++) {
|
|
17628
17656
|
const nextColumn = visibleColumn[columnIndex + index];
|
|
17629
17657
|
if (nextColumn) {
|
|
17630
|
-
|
|
17658
|
+
mergeColWidth += nextColumn.renderWidth;
|
|
17631
17659
|
}
|
|
17632
17660
|
}
|
|
17633
17661
|
}
|
|
17634
|
-
tcStyle.width = `${column.renderWidth - cellOffsetWidth
|
|
17662
|
+
tcStyle.width = `${column.renderWidth + mergeColWidth - cellOffsetWidth}px`;
|
|
17635
17663
|
}
|
|
17636
17664
|
if (scrollYLoad || hasEllipsis || isCsHeight || isRsHeight) {
|
|
17637
17665
|
tcStyle.height = `${cellHeight}px`;
|
|
@@ -19878,6 +19906,9 @@ const renderPopupPanel = (h, $xeTableCustomPanel) => {
|
|
|
19878
19906
|
customStore
|
|
19879
19907
|
} = props;
|
|
19880
19908
|
const {
|
|
19909
|
+
treeConfig,
|
|
19910
|
+
rowGroupConfig,
|
|
19911
|
+
aggregateConfig,
|
|
19881
19912
|
resizable: allResizable
|
|
19882
19913
|
} = tableProps;
|
|
19883
19914
|
const {
|
|
@@ -20124,7 +20155,11 @@ const renderPopupPanel = (h, $xeTableCustomPanel) => {
|
|
|
20124
20155
|
}
|
|
20125
20156
|
}, trVNs)])]), bottomSlot ? h('div', {
|
|
20126
20157
|
class: 'vxe-table-custom-popup--table-bottom'
|
|
20127
|
-
}, $xeTable.callSlot(bottomSlot, params, h)) : panel_renderEmptyElement($xeTable), renderDragTip(h, _vm)])
|
|
20158
|
+
}, $xeTable.callSlot(bottomSlot, params, h)) : panel_renderEmptyElement($xeTable), renderDragTip(h, _vm)]), !treeConfig && (aggregateConfig || rowGroupConfig) && $xeTable.getPivotTableAggregatePopupPanel ? h($xeTable.getPivotTableAggregatePopupPanel(), {
|
|
20159
|
+
props: {
|
|
20160
|
+
customStore
|
|
20161
|
+
}
|
|
20162
|
+
}) : panel_renderEmptyElement($xeTable)]);
|
|
20128
20163
|
},
|
|
20129
20164
|
footer: () => {
|
|
20130
20165
|
if (footerSlot) {
|
|
@@ -33785,7 +33820,7 @@ const Toolbar = VxeToolbar;
|
|
|
33785
33820
|
cstmDragTarget: '移动:{0}',
|
|
33786
33821
|
setting: {
|
|
33787
33822
|
colSort: '排序',
|
|
33788
|
-
sortHelpTip: '
|
|
33823
|
+
sortHelpTip: '点击并拖动图标可以调整顺序',
|
|
33789
33824
|
colTitle: '列标题',
|
|
33790
33825
|
colResizable: '列宽(像素)',
|
|
33791
33826
|
colVisible: '是否显示',
|
|
@@ -34212,7 +34247,8 @@ const Toolbar = VxeToolbar;
|
|
|
34212
34247
|
values: '值',
|
|
34213
34248
|
groupPlaceholder: '拖至此处进行分组',
|
|
34214
34249
|
valuesPlaceholder: '拖至此处进行聚合',
|
|
34215
|
-
dragExistCol: '该列已存在'
|
|
34250
|
+
dragExistCol: '该列已存在',
|
|
34251
|
+
sortHelpTip: '点击并拖动图标可以调整顺序'
|
|
34216
34252
|
},
|
|
34217
34253
|
aggFuncs: {
|
|
34218
34254
|
sum: '求和',
|