vxe-table 4.13.47 → 4.13.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 +8 -3
- package/es/table/src/body.js +8 -5
- package/es/table/src/cell.js +19 -4
- package/es/table/src/table.js +1 -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 +40 -20
- 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 +7 -2
- 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 +17 -6
- package/lib/table/src/cell.min.js +1 -1
- package/lib/table/src/table.js +1 -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/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 +8 -3
- package/packages/table/src/body.ts +8 -5
- package/packages/table/src/cell.ts +23 -11
- package/packages/table/src/table.ts +1 -2
- package/packages/ui/index.ts +2 -1
- package/styles/components/table-module/custom.scss +5 -1
- /package/es/{iconfont.1750732182259.ttf → iconfont.1750813693750.ttf} +0 -0
- /package/es/{iconfont.1750732182259.woff → iconfont.1750813693750.woff} +0 -0
- /package/es/{iconfont.1750732182259.woff2 → iconfont.1750813693750.woff2} +0 -0
- /package/lib/{iconfont.1750732182259.ttf → iconfont.1750813693750.ttf} +0 -0
- /package/lib/{iconfont.1750732182259.woff → iconfont.1750813693750.woff} +0 -0
- /package/lib/{iconfont.1750732182259.woff2 → iconfont.1750813693750.woff2} +0 -0
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.48";
|
|
3142
3142
|
core_.VxeUI.version = version;
|
|
3143
3143
|
core_.VxeUI.tableVersion = version;
|
|
3144
3144
|
core_.VxeUI.setConfig({
|
|
@@ -3281,7 +3281,8 @@ core_.VxeUI.setConfig({
|
|
|
3281
3281
|
mapChildrenField: '_X_ROW_CHILD_LIST',
|
|
3282
3282
|
indent: 20,
|
|
3283
3283
|
showIcon: true,
|
|
3284
|
-
maxGroupSize: 4
|
|
3284
|
+
maxGroupSize: 4,
|
|
3285
|
+
showAggFuncTitle: true
|
|
3285
3286
|
},
|
|
3286
3287
|
treeConfig: {
|
|
3287
3288
|
padding: true,
|
|
@@ -3621,7 +3622,7 @@ var esnext_iterator_some = __webpack_require__(7550);
|
|
|
3621
3622
|
const {
|
|
3622
3623
|
log: log_log
|
|
3623
3624
|
} = core_.VxeUI;
|
|
3624
|
-
const log_version = `table v${"4.13.
|
|
3625
|
+
const log_version = `table v${"4.13.48"}`;
|
|
3625
3626
|
const warnLog = log_log.create('warn', log_version);
|
|
3626
3627
|
const errLog = log_log.create('error', log_version);
|
|
3627
3628
|
;// ./packages/table/src/columnInfo.ts
|
|
@@ -4896,6 +4897,17 @@ function renderHeaderCellBaseVNs(params, content) {
|
|
|
4896
4897
|
const vns = [renderTitlePrefixIcon(params), renderHeaderCellDragIcon(params), ...(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(content) ? content : [content]), renderTitleSuffixIcon(params)];
|
|
4897
4898
|
return vns;
|
|
4898
4899
|
}
|
|
4900
|
+
function getRenderDefaultColumnTitle(column, content) {
|
|
4901
|
+
if (column.type === 'html' && external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isString(content)) {
|
|
4902
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
4903
|
+
key: 'ch',
|
|
4904
|
+
innerHTML: content
|
|
4905
|
+
});
|
|
4906
|
+
}
|
|
4907
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
4908
|
+
key: 'ct'
|
|
4909
|
+
}, getSlotVNs(content));
|
|
4910
|
+
}
|
|
4899
4911
|
function renderTitleContent(params, content) {
|
|
4900
4912
|
const {
|
|
4901
4913
|
$table,
|
|
@@ -4910,7 +4922,9 @@ function renderTitleContent(params, content) {
|
|
|
4910
4922
|
showHeaderOverflow: allColumnHeaderOverflow
|
|
4911
4923
|
} = tableProps;
|
|
4912
4924
|
const {
|
|
4913
|
-
|
|
4925
|
+
isRowGroupStatus
|
|
4926
|
+
} = tableReactData;
|
|
4927
|
+
const {
|
|
4914
4928
|
showHeaderOverflow
|
|
4915
4929
|
} = column;
|
|
4916
4930
|
const tooltipOpts = computeTooltipOpts.value;
|
|
@@ -4941,14 +4955,11 @@ function renderTitleContent(params, content) {
|
|
|
4941
4955
|
}
|
|
4942
4956
|
};
|
|
4943
4957
|
}
|
|
4944
|
-
|
|
4945
|
-
|
|
4946
|
-
innerHTML: content,
|
|
4947
|
-
...ons
|
|
4948
|
-
}) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
4958
|
+
const titleVN = getRenderDefaultColumnTitle(column, content);
|
|
4959
|
+
return [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
4949
4960
|
class: 'vxe-cell--title',
|
|
4950
4961
|
...ons
|
|
4951
|
-
},
|
|
4962
|
+
}, isRowGroupStatus && column.aggFunc && $table.getPivotTableAggregateRenderColTitles ? $table.getPivotTableAggregateRenderColTitles(column, titleVN) : [titleVN])];
|
|
4952
4963
|
}
|
|
4953
4964
|
function getFooterContent(params) {
|
|
4954
4965
|
const {
|
|
@@ -6759,6 +6770,7 @@ const renderType = 'body';
|
|
|
6759
6770
|
$xeTable.triggerCellDblclickEvent(evnt, cellParams);
|
|
6760
6771
|
};
|
|
6761
6772
|
let isMergeCell = false;
|
|
6773
|
+
let mergeColspan = 1;
|
|
6762
6774
|
let mergeRowspan = 1;
|
|
6763
6775
|
// 合并行或列
|
|
6764
6776
|
if (mergeBodyFlag && mergeBodyList.length) {
|
|
@@ -6778,6 +6790,7 @@ const renderType = 'body';
|
|
|
6778
6790
|
}
|
|
6779
6791
|
if (colspan > 1) {
|
|
6780
6792
|
isMergeCell = true;
|
|
6793
|
+
mergeColspan = colspan;
|
|
6781
6794
|
tdAttrs.colspan = colspan;
|
|
6782
6795
|
}
|
|
6783
6796
|
}
|
|
@@ -6797,6 +6810,7 @@ const renderType = 'body';
|
|
|
6797
6810
|
}
|
|
6798
6811
|
if (colspan > 1) {
|
|
6799
6812
|
isMergeCell = true;
|
|
6813
|
+
mergeColspan = colspan;
|
|
6800
6814
|
tdAttrs.colspan = colspan;
|
|
6801
6815
|
}
|
|
6802
6816
|
}
|
|
@@ -6835,16 +6849,16 @@ const renderType = 'body';
|
|
|
6835
6849
|
}
|
|
6836
6850
|
const tcStyle = {};
|
|
6837
6851
|
if (hasEllipsis && resizeWidthFlag) {
|
|
6838
|
-
let
|
|
6839
|
-
if (
|
|
6840
|
-
for (let index = 1; index <
|
|
6852
|
+
let mergeColWidth = 0;
|
|
6853
|
+
if (mergeColspan > 1) {
|
|
6854
|
+
for (let index = 1; index < mergeColspan; index++) {
|
|
6841
6855
|
const nextColumn = visibleColumn[columnIndex + index];
|
|
6842
6856
|
if (nextColumn) {
|
|
6843
|
-
|
|
6857
|
+
mergeColWidth += nextColumn.renderWidth;
|
|
6844
6858
|
}
|
|
6845
6859
|
}
|
|
6846
6860
|
}
|
|
6847
|
-
tcStyle.width = `${column.renderWidth - cellOffsetWidth
|
|
6861
|
+
tcStyle.width = `${column.renderWidth + mergeColWidth - cellOffsetWidth}px`;
|
|
6848
6862
|
}
|
|
6849
6863
|
if (scrollYLoad || hasEllipsis || isCsHeight || isRsHeight) {
|
|
6850
6864
|
tcStyle.height = `${cellHeight}px`;
|
|
@@ -9398,7 +9412,7 @@ const {
|
|
|
9398
9412
|
class: ['vxe-table-custom-wrapper', `placement--${placement}`, {
|
|
9399
9413
|
'is--active': customStore.visible
|
|
9400
9414
|
}],
|
|
9401
|
-
style: maxHeight && !['left', 'right'].includes(placement) ? {
|
|
9415
|
+
style: maxHeight && !['left', 'right'].includes(placement || '') ? {
|
|
9402
9416
|
maxHeight: `${maxHeight}px`
|
|
9403
9417
|
} : {}
|
|
9404
9418
|
}, customStore.visible ? [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
@@ -9473,6 +9487,9 @@ const {
|
|
|
9473
9487
|
customStore
|
|
9474
9488
|
} = props;
|
|
9475
9489
|
const {
|
|
9490
|
+
treeConfig,
|
|
9491
|
+
rowGroupConfig,
|
|
9492
|
+
aggregateConfig,
|
|
9476
9493
|
resizable: allResizable
|
|
9477
9494
|
} = tableProps;
|
|
9478
9495
|
const {
|
|
@@ -9694,7 +9711,9 @@ const {
|
|
|
9694
9711
|
default: () => trVNs
|
|
9695
9712
|
})])]), bottomSlot ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
9696
9713
|
class: 'vxe-table-custom-popup--table-bottom'
|
|
9697
|
-
}, $xeTable.callSlot(bottomSlot, params)) : panel_renderEmptyElement($xeTable), renderDragTip()])
|
|
9714
|
+
}, $xeTable.callSlot(bottomSlot, params)) : panel_renderEmptyElement($xeTable), renderDragTip()]), !treeConfig && (aggregateConfig || rowGroupConfig) && $xeTable.getPivotTableAggregatePopupPanel ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)($xeTable.getPivotTableAggregatePopupPanel(), {
|
|
9715
|
+
customStore
|
|
9716
|
+
}) : panel_renderEmptyElement($xeTable)]);
|
|
9698
9717
|
},
|
|
9699
9718
|
footer: () => {
|
|
9700
9719
|
if (footerSlot) {
|
|
@@ -11432,7 +11451,7 @@ rowExpandedMaps={};internalData.rowExpandedMaps=rowExpandedMaps;rows=rows.slice(
|
|
|
11432
11451
|
*/isRowExpandByRow(row){const{rowExpandedFlag}=reactData;const{rowExpandedMaps}=internalData;const rowid=getRowid($xeTable,row);return!!rowExpandedFlag&&!!rowExpandedMaps[rowid];},isExpandByRow(row){// 已废弃
|
|
11433
11452
|
warnLog('vxe.error.delFunc',['isExpandByRow','isRowExpandByRow']);return tableMethods.isRowExpandByRow(row);},/**
|
|
11434
11453
|
* 手动清空展开行状态,数据会恢复成未展开的状态
|
|
11435
|
-
*/clearRowExpand(){const{tableFullData}=internalData;const expandOpts=computeExpandOpts.value;const{reserve}=expandOpts;const expList=$xeTable.getRowExpandRecords();internalData.rowExpandedMaps={};reactData.rowExpandedFlag++;if(reserve){tableFullData.forEach(row=>handleRowExpandReserve(row,false));}return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)().then(()=>{if(expList.length){return $xeTable.recalculate(true);}}).then(()=>{updateRowOffsetTop();updateRowExpandStyle();handleRowExpandScroll();return $xeTable.updateCellAreas();});},clearRowExpandReserve(){internalData.rowExpandedReserveRowMap={};return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();},getRowExpandRecords(){const rest=[];external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().each(internalData.rowExpandedMaps,item=>{if(item){rest.push(item);}});return rest;},setRowGroups(fieldOrColumns){const{aggregateConfig,rowGroupConfig}=props;const
|
|
11454
|
+
*/clearRowExpand(){const{tableFullData}=internalData;const expandOpts=computeExpandOpts.value;const{reserve}=expandOpts;const expList=$xeTable.getRowExpandRecords();internalData.rowExpandedMaps={};reactData.rowExpandedFlag++;if(reserve){tableFullData.forEach(row=>handleRowExpandReserve(row,false));}return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)().then(()=>{if(expList.length){return $xeTable.recalculate(true);}}).then(()=>{updateRowOffsetTop();updateRowExpandStyle();handleRowExpandScroll();return $xeTable.updateCellAreas();});},clearRowExpandReserve(){internalData.rowExpandedReserveRowMap={};return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();},getRowExpandRecords(){const rest=[];external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().each(internalData.rowExpandedMaps,item=>{if(item){rest.push(item);}});return rest;},setRowGroups(fieldOrColumns){const{aggregateConfig,rowGroupConfig}=props;const aggregateOpts=computeAggregateOpts.value;const{maxGroupSize}=aggregateOpts;if(!(aggregateConfig||rowGroupConfig)){errLog('vxe.error.reqProp',['aggregate-config']);return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();}const confList=fieldOrColumns?external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(fieldOrColumns)?fieldOrColumns:[fieldOrColumns]:[];if(maxGroupSize&&confList.length>maxGroupSize){if(core_.VxeUI.modal){core_.VxeUI.modal.message({status:'error',content:table_getI18n('vxe.table.maxGroupCol',[maxGroupSize])});}return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();}if(confList.length){handleUpdateRowGroup(confList.map(fieldOrColumn=>{return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isString(fieldOrColumn)?fieldOrColumn:fieldOrColumn.field;}));return loadTableData(internalData.tableSynchData,true);}return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();},clearRowGroups(){const{aggregateConfig,rowGroupConfig}=props;if(!(aggregateConfig||rowGroupConfig)){errLog('vxe.error.reqProp',['aggregate-config']);return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();}handleUpdateRowGroup([]);return loadTableData(internalData.tableSynchData,true);},isRowGroupRecord(row){warnLog('vxe.error.delFunc',['isRowGroupRecord','isAggregateRecord']);return $xeTable.isAggregateRecord(row);},isRowGroupExpandByRow(row){warnLog('vxe.error.delFunc',['isRowGroupExpandByRow','isAggregateExpandByRow']);return $xeTable.isAggregateExpandByRow(row);},isAggregateRecord(row){const{isRowGroupStatus}=reactData;return isRowGroupStatus&&row.isAggregate;},getAggregateContentByRow(row){const{isRowGroupStatus}=reactData;return isRowGroupStatus&&row&&row.isAggregate?row.groupContent:'';},getAggregateRowChildren(row){const aggregateOpts=computeAggregateOpts.value;const{childrenField,mapChildrenField}=aggregateOpts;const{isRowGroupStatus}=reactData;return isRowGroupStatus&&row&&row.isAggregate&&childrenField&&mapChildrenField?row[mapChildrenField]||[]:[];},isAggregateExpandByRow(row){const{rowGroupExpandedFlag}=reactData;const{rowGroupExpandedMaps}=internalData;return!!rowGroupExpandedFlag&&!!rowGroupExpandedMaps[getRowid($xeTable,row)];},setRowGroupExpand(rows,expanded){if(rows){if(!external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(rows)){rows=[rows];}return handleRowGroupVirtualExpand(rows,expanded);}return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();},setAllRowGroupExpand(expanded){const{tableFullGroupData}=internalData;const aggregateOpts=computeAggregateOpts.value;const{mapChildrenField}=aggregateOpts;const rgExpandedMaps={};if(expanded&&mapChildrenField){external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(tableFullGroupData,row=>{if(row[mapChildrenField]&&row[mapChildrenField].length){rgExpandedMaps[getRowid($xeTable,row)]=row;}},{children:mapChildrenField});}internalData.rowGroupExpandedMaps=rgExpandedMaps;handleVirtualTreeToList();$xeTable.handleTableData();updateAfterDataIndex();reactData.rowGroupExpandedFlag++;return $xeTable.recalculate(true);},clearRowGroupExpand(){internalData.rowGroupExpandedMaps={};handleVirtualTreeToList();$xeTable.handleTableData();updateAfterDataIndex();reactData.rowGroupExpandedFlag++;return $xeTable.recalculate(true);},getTreeExpandRecords(){const rest=[];external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().each(internalData.treeExpandedMaps,item=>{if(item){rest.push(item);}});return rest;},/**
|
|
11436
11455
|
* 判断树节点是否懒加载完成
|
|
11437
11456
|
* @param {Row} row 行对象
|
|
11438
11457
|
*/isTreeExpandLoaded(row){const{fullAllDataRowIdData}=internalData;const rowRest=fullAllDataRowIdData[getRowid($xeTable,row)];return rowRest&&!!rowRest.treeLoaded;},clearTreeExpandLoaded(rows){const{fullAllDataRowIdData,treeExpandedMaps}=internalData;const treeOpts=computeTreeOpts.value;const{transform}=treeOpts;if(rows){if(!external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(rows)){rows=[rows];}rows.forEach(row=>{const rowid=getRowid($xeTable,row);const rowRest=fullAllDataRowIdData[rowid];if(rowRest){rowRest.treeLoaded=false;if(treeExpandedMaps[rowid]){delete treeExpandedMaps[rowid];}}});}else{external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().each(fullAllDataRowIdData,rowRest=>{rowRest.treeLoaded=false;});}internalData.treeExpandedMaps={};if(transform){handleVirtualTreeToList();$xeTable.handleTableData();}reactData.treeExpandedFlag++;return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();},/**
|
|
@@ -21382,7 +21401,7 @@ const Toolbar = VxeToolbar;
|
|
|
21382
21401
|
cstmDragTarget: '移动:{0}',
|
|
21383
21402
|
setting: {
|
|
21384
21403
|
colSort: '排序',
|
|
21385
|
-
sortHelpTip: '
|
|
21404
|
+
sortHelpTip: '点击并拖动图标可以调整顺序',
|
|
21386
21405
|
colTitle: '列标题',
|
|
21387
21406
|
colResizable: '列宽(像素)',
|
|
21388
21407
|
colVisible: '是否显示',
|
|
@@ -21809,7 +21828,8 @@ const Toolbar = VxeToolbar;
|
|
|
21809
21828
|
values: '值',
|
|
21810
21829
|
groupPlaceholder: '拖至此处进行分组',
|
|
21811
21830
|
valuesPlaceholder: '拖至此处进行聚合',
|
|
21812
|
-
dragExistCol: '该列已存在'
|
|
21831
|
+
dragExistCol: '该列已存在',
|
|
21832
|
+
sortHelpTip: '点击并拖动图标可以调整顺序'
|
|
21813
21833
|
},
|
|
21814
21834
|
aggFuncs: {
|
|
21815
21835
|
sum: '求和',
|