vxe-table 3.21.2 → 3.21.3
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 +4 -0
- package/es/locale/lang/de-DE.js +4 -0
- package/es/locale/lang/en-US.js +4 -0
- package/es/locale/lang/es-ES.js +4 -0
- package/es/locale/lang/fr-FR.js +4 -0
- package/es/locale/lang/hu-HU.js +4 -0
- package/es/locale/lang/hy-AM.js +4 -0
- package/es/locale/lang/id-ID.js +4 -0
- package/es/locale/lang/it-IT.js +4 -0
- package/es/locale/lang/ja-JP.js +4 -0
- package/es/locale/lang/ko-KR.js +4 -0
- package/es/locale/lang/ms-MY.js +4 -0
- package/es/locale/lang/nb-NO.js +4 -0
- package/es/locale/lang/pt-BR.js +4 -0
- package/es/locale/lang/ru-RU.js +4 -0
- package/es/locale/lang/th-TH.js +4 -0
- package/es/locale/lang/ug-CN.js +4 -0
- package/es/locale/lang/uk-UA.js +4 -0
- package/es/locale/lang/uz-UZ.js +4 -0
- package/es/locale/lang/vi-VN.js +4 -0
- package/es/locale/lang/zh-CHT.js +4 -0
- package/es/locale/lang/zh-CN.js +4 -0
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/table/module/custom/panel.js +28 -20
- package/es/table/module/export/export-panel.js +29 -16
- package/es/table/module/export/mixin.js +121 -26
- package/es/table/src/methods.js +82 -31
- package/es/table/src/table.js +16 -0
- package/es/table/src/util.js +3 -1
- package/es/table/style.css +1 -1
- package/es/table/style.min.css +1 -1
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/es/vxe-table/style.css +1 -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 +221 -63
- package/lib/index.umd.min.js +1 -1
- package/lib/locale/lang/ar-EG.js +4 -0
- package/lib/locale/lang/ar-EG.min.js +1 -1
- package/lib/locale/lang/ar-EG.umd.js +4 -0
- package/lib/locale/lang/de-DE.js +4 -0
- package/lib/locale/lang/de-DE.min.js +1 -1
- package/lib/locale/lang/de-DE.umd.js +4 -0
- package/lib/locale/lang/en-US.js +4 -0
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +4 -0
- package/lib/locale/lang/es-ES.js +4 -0
- package/lib/locale/lang/es-ES.min.js +1 -1
- package/lib/locale/lang/es-ES.umd.js +4 -0
- package/lib/locale/lang/fr-FR.js +4 -0
- package/lib/locale/lang/fr-FR.min.js +1 -1
- package/lib/locale/lang/fr-FR.umd.js +4 -0
- package/lib/locale/lang/hu-HU.js +4 -0
- package/lib/locale/lang/hu-HU.min.js +1 -1
- package/lib/locale/lang/hu-HU.umd.js +4 -0
- package/lib/locale/lang/hy-AM.js +4 -0
- package/lib/locale/lang/hy-AM.min.js +1 -1
- package/lib/locale/lang/hy-AM.umd.js +4 -0
- package/lib/locale/lang/id-ID.js +4 -0
- package/lib/locale/lang/id-ID.min.js +1 -1
- package/lib/locale/lang/id-ID.umd.js +4 -0
- package/lib/locale/lang/it-IT.js +4 -0
- package/lib/locale/lang/it-IT.min.js +1 -1
- package/lib/locale/lang/it-IT.umd.js +4 -0
- package/lib/locale/lang/ja-JP.js +4 -0
- package/lib/locale/lang/ja-JP.min.js +1 -1
- package/lib/locale/lang/ja-JP.umd.js +4 -0
- package/lib/locale/lang/ko-KR.js +4 -0
- package/lib/locale/lang/ko-KR.min.js +1 -1
- package/lib/locale/lang/ko-KR.umd.js +4 -0
- package/lib/locale/lang/ms-MY.js +4 -0
- package/lib/locale/lang/ms-MY.min.js +1 -1
- package/lib/locale/lang/ms-MY.umd.js +4 -0
- package/lib/locale/lang/nb-NO.js +4 -0
- package/lib/locale/lang/nb-NO.min.js +1 -1
- package/lib/locale/lang/nb-NO.umd.js +4 -0
- package/lib/locale/lang/pt-BR.js +4 -0
- package/lib/locale/lang/pt-BR.min.js +1 -1
- package/lib/locale/lang/pt-BR.umd.js +4 -0
- package/lib/locale/lang/ru-RU.js +4 -0
- package/lib/locale/lang/ru-RU.min.js +1 -1
- package/lib/locale/lang/ru-RU.umd.js +4 -0
- package/lib/locale/lang/th-TH.js +4 -0
- package/lib/locale/lang/th-TH.min.js +1 -1
- package/lib/locale/lang/th-TH.umd.js +4 -0
- package/lib/locale/lang/ug-CN.js +4 -0
- package/lib/locale/lang/ug-CN.min.js +1 -1
- package/lib/locale/lang/ug-CN.umd.js +4 -0
- package/lib/locale/lang/uk-UA.js +4 -0
- package/lib/locale/lang/uk-UA.min.js +1 -1
- package/lib/locale/lang/uk-UA.umd.js +4 -0
- package/lib/locale/lang/uz-UZ.js +4 -0
- package/lib/locale/lang/uz-UZ.min.js +1 -1
- package/lib/locale/lang/uz-UZ.umd.js +4 -0
- package/lib/locale/lang/vi-VN.js +4 -0
- package/lib/locale/lang/vi-VN.min.js +1 -1
- package/lib/locale/lang/vi-VN.umd.js +4 -0
- package/lib/locale/lang/zh-CHT.js +4 -0
- package/lib/locale/lang/zh-CHT.min.js +1 -1
- package/lib/locale/lang/zh-CHT.umd.js +4 -0
- package/lib/locale/lang/zh-CN.js +4 -0
- package/lib/locale/lang/zh-CN.min.js +1 -1
- package/lib/locale/lang/zh-CN.umd.js +4 -0
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/module/custom/panel.js +29 -18
- package/lib/table/module/custom/panel.min.js +1 -1
- package/lib/table/module/export/export-panel.js +26 -13
- package/lib/table/module/export/export-panel.min.js +1 -1
- package/lib/table/module/export/mixin.js +139 -27
- package/lib/table/module/export/mixin.min.js +1 -1
- package/lib/table/src/methods.js +2 -2
- package/lib/table/src/methods.min.js +1 -1
- package/lib/table/src/table.js +16 -0
- package/lib/table/src/table.min.js +1 -1
- package/lib/table/src/util.js +3 -1
- package/lib/table/src/util.min.js +1 -1
- package/lib/table/style/style.css +1 -1
- package/lib/table/style/style.min.css +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/lib/vxe-table/style/style.css +1 -1
- package/lib/vxe-table/style/style.min.css +1 -1
- package/package.json +2 -2
- package/packages/locale/lang/ar-EG.ts +4 -0
- package/packages/locale/lang/de-DE.ts +4 -0
- package/packages/locale/lang/en-US.ts +4 -0
- package/packages/locale/lang/es-ES.ts +4 -0
- package/packages/locale/lang/fr-FR.ts +4 -0
- package/packages/locale/lang/hu-HU.ts +4 -0
- package/packages/locale/lang/hy-AM.ts +4 -0
- package/packages/locale/lang/id-ID.ts +4 -0
- package/packages/locale/lang/it-IT.ts +4 -0
- package/packages/locale/lang/ja-JP.ts +4 -0
- package/packages/locale/lang/ko-KR.ts +4 -0
- package/packages/locale/lang/ms-MY.ts +4 -0
- package/packages/locale/lang/nb-NO.ts +4 -0
- package/packages/locale/lang/pt-BR.ts +4 -0
- package/packages/locale/lang/ru-RU.ts +4 -0
- package/packages/locale/lang/th-TH.ts +4 -0
- package/packages/locale/lang/ug-CN.ts +4 -0
- package/packages/locale/lang/uk-UA.ts +4 -0
- package/packages/locale/lang/uz-UZ.ts +4 -0
- package/packages/locale/lang/vi-VN.ts +4 -0
- package/packages/locale/lang/zh-CHT.ts +4 -0
- package/packages/locale/lang/zh-CN.ts +4 -0
- package/packages/table/module/custom/panel.ts +29 -21
- package/packages/table/module/export/export-panel.ts +29 -17
- package/packages/table/module/export/mixin.ts +122 -27
- package/packages/table/src/methods.ts +82 -31
- package/packages/table/src/table.ts +18 -0
- package/packages/table/src/util.ts +3 -1
- package/styles/components/table-module/export.scss +1 -1
- /package/es/{iconfont.1779778409753.ttf → iconfont.1779843521280.ttf} +0 -0
- /package/es/{iconfont.1779778409753.woff → iconfont.1779843521280.woff} +0 -0
- /package/es/{iconfont.1779778409753.woff2 → iconfont.1779843521280.woff2} +0 -0
- /package/lib/{iconfont.1779778409753.ttf → iconfont.1779843521280.ttf} +0 -0
- /package/lib/{iconfont.1779778409753.woff → iconfont.1779843521280.woff} +0 -0
- /package/lib/{iconfont.1779778409753.woff2 → iconfont.1779843521280.woff2} +0 -0
package/lib/index.umd.js
CHANGED
|
@@ -3311,7 +3311,7 @@ function getClass(property, params) {
|
|
|
3311
3311
|
/* unused harmony import specifier */ var VxeUI;
|
|
3312
3312
|
|
|
3313
3313
|
|
|
3314
|
-
const version = "3.21.
|
|
3314
|
+
const version = "3.21.3";
|
|
3315
3315
|
core_.VxeUI.version = version;
|
|
3316
3316
|
core_.VxeUI.tableVersion = version;
|
|
3317
3317
|
core_.VxeUI.setConfig({
|
|
@@ -3842,7 +3842,7 @@ var es_iterator_some = __webpack_require__(3579);
|
|
|
3842
3842
|
const {
|
|
3843
3843
|
log: log_log
|
|
3844
3844
|
} = core_.VxeUI;
|
|
3845
|
-
const log_version = `table v${"3.21.
|
|
3845
|
+
const log_version = `table v${"3.21.3"}`;
|
|
3846
3846
|
const warnLog = log_log.create('warn', log_version);
|
|
3847
3847
|
const errLog = log_log.create('error', log_version);
|
|
3848
3848
|
;// ./packages/table/src/columnInfo.ts
|
|
@@ -4638,6 +4638,7 @@ function createReactData() {
|
|
|
4638
4638
|
hasFooter: false,
|
|
4639
4639
|
hasMerge: false,
|
|
4640
4640
|
hasTree: false,
|
|
4641
|
+
hasRowGroup: false,
|
|
4641
4642
|
hasColgroup: false,
|
|
4642
4643
|
visible: false
|
|
4643
4644
|
},
|
|
@@ -4648,7 +4649,8 @@ function createReactData() {
|
|
|
4648
4649
|
type: '',
|
|
4649
4650
|
isColgroup: false,
|
|
4650
4651
|
isMerge: false,
|
|
4651
|
-
|
|
4652
|
+
isTreeAllExpanded: false,
|
|
4653
|
+
isRowGroupAllExpanded: false,
|
|
4652
4654
|
useStyle: false,
|
|
4653
4655
|
original: false,
|
|
4654
4656
|
message: true,
|
|
@@ -7777,7 +7779,7 @@ if(reWidth){calcCellWidth($xeTable);}if(reFull){autoCellWidth($xeTable);}if(reHe
|
|
|
7777
7779
|
* 已废弃
|
|
7778
7780
|
* @deprecated
|
|
7779
7781
|
*/totalValue:childCount};let aggVal=0;// 如果下层同时也是分组
|
|
7780
|
-
if(childList.length&&childList[0].isAggregate){external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().each(childList,row=>{if(row.isAggregate){const currAggData=row.aggData[field];if(currAggData){aggVal+=currAggData.value;}}});}else{aggVal=aggCalcMethod?aggCalcMethod(ctParams):aggRow.childCount;}aggDtObj[field]={type:'count',value:aggVal,label:aggVal};});aggRow.aggData=aggDtObj;});}}}function updateGroupData($xeTable){const props=$xeTable;const reactData=$xeTable;const internalData=$xeTable;const{aggregateConfig,rowGroupConfig}=props;const{isRowGroupStatus}=reactData;const{tableFullGroupData}=internalData;const aggregateOpts=$xeTable.computeAggregateOpts;const{mapChildrenField}=aggregateOpts;if((aggregateConfig||rowGroupConfig)&&isRowGroupStatus){const aggList=[];external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(tableFullGroupData,row=>{if(row.isAggregate){aggList.push(row);}},{children:mapChildrenField});handleeGroupSummary($xeTable,aggList);}}function handleGroupData($xeTable,list,rowGroups){let fullData=list;let treeData=list;if(rowGroups){const aggregateOpts=$xeTable.computeAggregateOpts;const{rowField,parentField,childrenField,mapChildrenField}=aggregateOpts;const rowOpts=$xeTable.computeRowOpts;const checkboxOpts=$xeTable.computeCheckboxOpts;const{checkField}=checkboxOpts;const indeterminateField=checkboxOpts.indeterminateField||checkboxOpts.halfField;const rgItem=rowGroups[0];if(rgItem&&rowField&&parentField&&childrenField&&mapChildrenField){fullData=[];treeData=[];const groupField=rgItem.field;const groupColumn=$xeTable.getColumnByField(groupField);const groupMaps={};const aggList=[];const rowkey=getRowkey($xeTable);list.forEach(row=>{const cellValue=groupColumn?$xeTable.getCellLabel(row,groupColumn):external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row,groupField);
|
|
7782
|
+
if(childList.length&&childList[0].isAggregate){external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().each(childList,row=>{if(row.isAggregate){const currAggData=row.aggData[field];if(currAggData){aggVal+=currAggData.value;}}});}else{aggVal=aggCalcMethod?aggCalcMethod(ctParams):aggRow.childCount;}aggDtObj[field]={type:'count',value:aggVal,label:aggVal};});aggRow.aggData=aggDtObj;});}}}function updateGroupData($xeTable){const props=$xeTable;const reactData=$xeTable;const internalData=$xeTable;const{aggregateConfig,rowGroupConfig}=props;const{isRowGroupStatus}=reactData;const{tableFullGroupData}=internalData;const aggregateOpts=$xeTable.computeAggregateOpts;const{mapChildrenField}=aggregateOpts;if((aggregateConfig||rowGroupConfig)&&isRowGroupStatus){const aggList=[];external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(tableFullGroupData,row=>{if(row.isAggregate){aggList.push(row);}},{children:mapChildrenField});handleeGroupSummary($xeTable,aggList);}}function handleGroupData($xeTable,list,rowGroups,isCombinedField){let fullData=list;let treeData=list;if(rowGroups){const aggregateOpts=$xeTable.computeAggregateOpts;const{rowField,parentField,separator,childrenField,mapChildrenField}=aggregateOpts;const rowOpts=$xeTable.computeRowOpts;const checkboxOpts=$xeTable.computeCheckboxOpts;const{checkField}=checkboxOpts;const indeterminateField=checkboxOpts.indeterminateField||checkboxOpts.halfField;const rgItem=rowGroups[0];if(rgItem&&rowField&&parentField&&childrenField&&mapChildrenField){fullData=[];treeData=[];const groupField=rgItem.field;const groupColumn=$xeTable.getColumnByField(groupField);const groupMaps={};const groupCombinedMaps={};const aggList=[];const rowkey=getRowkey($xeTable);list.forEach(row=>{const cellValue=groupColumn?$xeTable.getCellLabel(row,groupColumn):external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row,groupField);let groupValue=external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(cellValue)?'':cellValue;if(isCombinedField){const groupVals=[groupValue];rowGroups.slice(1).forEach(ogItem=>{const ogField=ogItem.field;const ogColumn=$xeTable.getColumnByField(ogField);const ocValue=ogColumn?$xeTable.getCellLabel(row,ogColumn):external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row,ogField);const ogValue=external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(ocValue)?'':ocValue;groupValue+=(separator||' / ')+ogValue;groupVals.push(ogValue);});if(!groupCombinedMaps[groupValue]){groupCombinedMaps[groupValue]=groupVals;}}let childList=groupMaps[groupValue];if(!childList){childList=[];groupMaps[groupValue]=childList;}if(row.isAggregate){row.isAggregate=undefined;}childList.push(row);});if(isCombinedField){external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().objectEach(groupMaps,(childList,groupValue)=>{const aggRow={isAggregate:true,aggData:{},groupContent:groupValue,groupCombineds:groupCombinedMaps[groupValue],groupField,childCount:0,[rowField]:getRowUniqueId(),[parentField]:null,[childrenField]:childList,[mapChildrenField]:childList};aggRow[rowkey]=createRowId(rowOpts,aggRow,rowkey);if(checkField){aggRow[checkField]=false;}if(indeterminateField){aggRow[indeterminateField]=false;}aggList.push(aggRow);treeData.push(aggRow);fullData.push(aggRow);});}else{external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().objectEach(groupMaps,(childList,groupValue)=>{const{fullData:childFullData,treeData:childTreeData}=handleGroupData($xeTable,childList,rowGroups.slice(1));const aggRow={isAggregate:true,aggData:{},groupContent:groupValue,groupCombineds:[],groupField,childCount:0,[rowField]:getRowUniqueId(),[parentField]:null,[childrenField]:childTreeData,[mapChildrenField]:childTreeData};aggRow[rowkey]=createRowId(rowOpts,aggRow,rowkey);if(checkField){aggRow[checkField]=false;}if(indeterminateField){aggRow[indeterminateField]=false;}aggList.push(aggRow);treeData.push(aggRow);fullData.push(aggRow);if(childFullData.length){fullData.push(...childFullData);}});}handleeGroupSummary($xeTable,aggList);}}return{treeData,fullData};}function initGroupData($xeTable,list,rowGroups){const aggregateOpts=$xeTable.computeAggregateOpts;const{mode}=aggregateOpts;const isCombinedField=mode==='combined';const groupRest=handleGroupData($xeTable,list,rowGroups,isCombinedField);return groupRest;}/**
|
|
7781
7783
|
* 加载表格数据
|
|
7782
7784
|
* @param {Array} datas 数据
|
|
7783
7785
|
*/function loadTableData($xeTable,datas,isReload,isReset){const props=$xeTable;const reactData=$xeTable;const internalData=$xeTable;const{keepSource,treeConfig,aggregateConfig,rowGroupConfig}=props;const{rowGroupList,scrollYLoad:oldScrollYLoad}=reactData;const{initStatus,scrollYStore,scrollXStore,lastScrollLeft,lastScrollTop}=internalData;const rowOpts=$xeTable.computeRowOpts;const treeOpts=$xeTable.computeTreeOpts;const expandOpts=$xeTable.computeExpandOpts;const{transform}=treeOpts;const childrenField=treeOpts.children||treeOpts.childrenField;let treeData=[];let fullData=datas?datas.slice(0):[];// 转为响应式数据
|
|
@@ -7787,7 +7789,7 @@ if(!treeOpts.rowField){errLog('vxe.error.reqProp',['tree-config.rowField']);}if(
|
|
|
7787
7789
|
// warnLog('vxe.error.errConflicts', ['tree-config.transform', `row.${treeOpts.children}`])
|
|
7788
7790
|
// }
|
|
7789
7791
|
// })
|
|
7790
|
-
treeData=external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toArrayTree(fullData,{key:treeOpts.rowField,parentKey:treeOpts.parentField,children:childrenField,mapChildren:treeOpts.mapChildrenField});fullData=treeData.slice(0);}else{treeData=fullData.slice(0);}}else if((aggregateConfig||rowGroupConfig)&&rowGroupList.length){const groupRest=
|
|
7792
|
+
treeData=external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toArrayTree(fullData,{key:treeOpts.rowField,parentKey:treeOpts.parentField,children:childrenField,mapChildren:treeOpts.mapChildrenField});fullData=treeData.slice(0);}else{treeData=fullData.slice(0);}}else if((aggregateConfig||rowGroupConfig)&&rowGroupList.length){const groupRest=initGroupData($xeTable,fullData,rowGroupList);treeData=groupRest.treeData;fullData=groupRest.fullData;isRGroup=true;}reactData.isRowGroupStatus=isRGroup;scrollYStore.startIndex=0;scrollYStore.endIndex=1;scrollXStore.startIndex=0;scrollXStore.endIndex=1;internalData.cvCacheMaps={};reactData.isRowLoading=true;reactData.scrollVMLoading=false;reactData.treeExpandedFlag++;reactData.rowExpandedFlag++;internalData.insertRowMaps={};reactData.insertRowFlag++;internalData.removeRowMaps={};reactData.removeRowFlag++;const sYLoad=updateScrollYStatus($xeTable,fullData);// 全量数据
|
|
7791
7793
|
internalData.tableFullData=fullData;internalData.tableFullTreeData=isRGroup?[]:treeData;internalData.tableFullGroupData=isRGroup?treeData:[];// 缓存数据
|
|
7792
7794
|
$xeTable.cacheRowMap(isReset);// 原始数据
|
|
7793
7795
|
internalData.tableSynchData=datas;if(isReset){internalData.isResizeCellHeight=false;}// 克隆原数据,用于显示编辑状态,与编辑值做对比
|
|
@@ -11015,6 +11017,7 @@ function panel_hideDropTip($xeTableCustomPanel) {
|
|
|
11015
11017
|
const columnDragOpts = $xeTable.computeColumnDragOpts;
|
|
11016
11018
|
const {
|
|
11017
11019
|
isCrossDrag,
|
|
11020
|
+
isPeerDrag,
|
|
11018
11021
|
isSelfToChildDrag,
|
|
11019
11022
|
isToChildDrag,
|
|
11020
11023
|
dragEndMethod
|
|
@@ -11061,20 +11064,27 @@ function panel_hideDropTip($xeTableCustomPanel) {
|
|
|
11061
11064
|
if (immediate) {
|
|
11062
11065
|
if (dragColumn.parentId && newColumn.parentId) {
|
|
11063
11066
|
// 子到子
|
|
11064
|
-
if (!isCrossDrag) {
|
|
11065
|
-
|
|
11066
|
-
|
|
11067
|
-
if (oldAllMaps[newColumn.id]) {
|
|
11068
|
-
isSelfToChildStatus = true;
|
|
11069
|
-
if (!(isCrossDrag && isSelfToChildDrag)) {
|
|
11070
|
-
if (core_.VxeUI.modal) {
|
|
11071
|
-
core_.VxeUI.modal.message({
|
|
11072
|
-
status: 'error',
|
|
11073
|
-
content: panel_getI18n('vxe.error.treeDragChild')
|
|
11074
|
-
});
|
|
11075
|
-
}
|
|
11067
|
+
if (isPeerDrag && !isCrossDrag) {
|
|
11068
|
+
if (dragColumn.parentId !== newColumn.parentId) {
|
|
11069
|
+
// 非同级
|
|
11076
11070
|
return;
|
|
11077
11071
|
}
|
|
11072
|
+
} else {
|
|
11073
|
+
if (!isCrossDrag) {
|
|
11074
|
+
return;
|
|
11075
|
+
}
|
|
11076
|
+
if (oldAllMaps[newColumn.id]) {
|
|
11077
|
+
isSelfToChildStatus = true;
|
|
11078
|
+
if (!(isCrossDrag && isSelfToChildDrag)) {
|
|
11079
|
+
if (core_.VxeUI.modal) {
|
|
11080
|
+
core_.VxeUI.modal.message({
|
|
11081
|
+
status: 'error',
|
|
11082
|
+
content: panel_getI18n('vxe.error.treeDragChild')
|
|
11083
|
+
});
|
|
11084
|
+
}
|
|
11085
|
+
return;
|
|
11086
|
+
}
|
|
11087
|
+
}
|
|
11078
11088
|
}
|
|
11079
11089
|
} else if (dragColumn.parentId) {
|
|
11080
11090
|
// 子到根
|
|
@@ -11218,6 +11228,7 @@ function panel_hideDropTip($xeTableCustomPanel) {
|
|
|
11218
11228
|
const columnDragOpts = $xeTable.computeColumnDragOpts;
|
|
11219
11229
|
const {
|
|
11220
11230
|
isCrossDrag,
|
|
11231
|
+
isPeerDrag,
|
|
11221
11232
|
isToChildDrag
|
|
11222
11233
|
} = columnDragOpts;
|
|
11223
11234
|
const optEl = evnt.currentTarget;
|
|
@@ -11227,11 +11238,11 @@ function panel_hideDropTip($xeTableCustomPanel) {
|
|
|
11227
11238
|
customPanelInternalData.prevDragGroupField = null;
|
|
11228
11239
|
customPanelInternalData.prevDragAggFnColid = null;
|
|
11229
11240
|
// 是否移入有效列
|
|
11230
|
-
if (column && (isCrossDrag || column.level === 1)) {
|
|
11241
|
+
if (column && (isCrossDrag || isPeerDrag || column.level === 1)) {
|
|
11231
11242
|
evnt.preventDefault();
|
|
11232
11243
|
const offsetY = evnt.clientY - optEl.getBoundingClientRect().y;
|
|
11233
11244
|
const dragPos = offsetY < optEl.clientHeight / 2 ? 'top' : 'bottom';
|
|
11234
|
-
if (!dragCol || !(showSortDragButton && allowSort) || dragCol && dragCol.id === column.id || !isCrossDrag && column.level > 1 || !immediate && column.level > 1 || !isCrossDrag && dragCol.level > 1 || !immediate && dragCol.level > 1) {
|
|
11245
|
+
if (!dragCol || !(showSortDragButton && allowSort) || dragCol && dragCol.id === column.id || !isCrossDrag && (isPeerDrag ? dragCol.parentId !== column.parentId : column.level > 1) || !immediate && column.level > 1 || !isCrossDrag && (isPeerDrag ? dragCol.parentId !== column.parentId : dragCol.level > 1) || !immediate && dragCol.level > 1) {
|
|
11235
11246
|
panel_showDropTip($xeTableCustomPanel, evnt, optEl, false, dragPos);
|
|
11236
11247
|
return;
|
|
11237
11248
|
}
|
|
@@ -11430,7 +11441,8 @@ function panel_hideDropTip($xeTableCustomPanel) {
|
|
|
11430
11441
|
const isMaxFixedColumn = $xeTable.computeIsMaxFixedColumn;
|
|
11431
11442
|
const vSize = $xeTable.computeSize;
|
|
11432
11443
|
const {
|
|
11433
|
-
isCrossDrag
|
|
11444
|
+
isCrossDrag,
|
|
11445
|
+
isPeerDrag
|
|
11434
11446
|
} = columnDragOpts;
|
|
11435
11447
|
const slots = customOpts.slots || {};
|
|
11436
11448
|
const headerSlot = slots.header;
|
|
@@ -11471,7 +11483,7 @@ function panel_hideDropTip($xeTableCustomPanel) {
|
|
|
11471
11483
|
column
|
|
11472
11484
|
}) : false;
|
|
11473
11485
|
const isHidden = !isChecked;
|
|
11474
|
-
const showSortBtn = (isCrossDrag ? immediate : false) || column.level === 1;
|
|
11486
|
+
const showSortBtn = (isCrossDrag || isPeerDrag ? immediate : false) || column.level === 1;
|
|
11475
11487
|
colVNs.push(h('li', {
|
|
11476
11488
|
key: column.id,
|
|
11477
11489
|
attrs: {
|
|
@@ -11775,7 +11787,8 @@ function panel_hideDropTip($xeTableCustomPanel) {
|
|
|
11775
11787
|
const drawerOpts = Object.assign({}, drawerOptions);
|
|
11776
11788
|
const isMaxFixedColumn = $xeTable.computeIsMaxFixedColumn;
|
|
11777
11789
|
const {
|
|
11778
|
-
isCrossDrag
|
|
11790
|
+
isCrossDrag,
|
|
11791
|
+
isPeerDrag
|
|
11779
11792
|
} = columnDragOpts;
|
|
11780
11793
|
const slots = customOpts.slots || {};
|
|
11781
11794
|
const headerSlot = slots.header;
|
|
@@ -11829,7 +11842,7 @@ function panel_hideDropTip($xeTableCustomPanel) {
|
|
|
11829
11842
|
column
|
|
11830
11843
|
}) : false;
|
|
11831
11844
|
const isHidden = !isChecked;
|
|
11832
|
-
const showSortBtn = (isCrossDrag ? immediate : false) || column.level === 1;
|
|
11845
|
+
const showSortBtn = (isCrossDrag || isPeerDrag ? immediate : false) || column.level === 1;
|
|
11833
11846
|
trVNs.push(h('tr', {
|
|
11834
11847
|
key: column.id,
|
|
11835
11848
|
attrs: {
|
|
@@ -13030,6 +13043,7 @@ const {
|
|
|
13030
13043
|
} = reactData;
|
|
13031
13044
|
const {
|
|
13032
13045
|
hasTree,
|
|
13046
|
+
hasRowGroup,
|
|
13033
13047
|
hasMerge,
|
|
13034
13048
|
isPrint,
|
|
13035
13049
|
hasColgroup,
|
|
@@ -13217,6 +13231,18 @@ const {
|
|
|
13217
13231
|
defaultOptions.isHeader = value;
|
|
13218
13232
|
}
|
|
13219
13233
|
}
|
|
13234
|
+
}), h('vxe-checkbox', {
|
|
13235
|
+
props: {
|
|
13236
|
+
value: defaultOptions.isFooter,
|
|
13237
|
+
disabled: !storeData.hasFooter,
|
|
13238
|
+
title: export_panel_getI18n('vxe.export.expFooterTitle'),
|
|
13239
|
+
content: export_panel_getI18n('vxe.export.expOptFooter')
|
|
13240
|
+
},
|
|
13241
|
+
on: {
|
|
13242
|
+
input(value) {
|
|
13243
|
+
defaultOptions.isFooter = value;
|
|
13244
|
+
}
|
|
13245
|
+
}
|
|
13220
13246
|
}), h('vxe-checkbox', {
|
|
13221
13247
|
props: {
|
|
13222
13248
|
value: isHeader ? defaultOptions.isTitle : false,
|
|
@@ -13279,30 +13305,30 @@ const {
|
|
|
13279
13305
|
defaultOptions.useStyle = value;
|
|
13280
13306
|
}
|
|
13281
13307
|
}
|
|
13282
|
-
}), h('
|
|
13308
|
+
})]), h('div', {
|
|
13309
|
+
class: 'vxe-table-export--panel-option-row'
|
|
13310
|
+
}, [h('vxe-checkbox', {
|
|
13283
13311
|
props: {
|
|
13284
|
-
value: hasTree ? defaultOptions.
|
|
13312
|
+
value: hasTree ? defaultOptions.isTreeAllExpanded : false,
|
|
13285
13313
|
disabled: hasEmptyData || !hasTree,
|
|
13286
|
-
title: export_panel_getI18n('vxe.export.
|
|
13287
|
-
content: export_panel_getI18n('vxe.export.
|
|
13314
|
+
title: export_panel_getI18n('vxe.export.expTreeAllExpandTitle'),
|
|
13315
|
+
content: export_panel_getI18n('vxe.export.expOptTreeAllExpand')
|
|
13288
13316
|
},
|
|
13289
13317
|
on: {
|
|
13290
13318
|
input(value) {
|
|
13291
|
-
defaultOptions.
|
|
13319
|
+
defaultOptions.isTreeAllExpanded = value;
|
|
13292
13320
|
}
|
|
13293
13321
|
}
|
|
13294
|
-
})
|
|
13295
|
-
class: 'vxe-table-export--panel-option-row'
|
|
13296
|
-
}, [h('vxe-checkbox', {
|
|
13322
|
+
}), h('vxe-checkbox', {
|
|
13297
13323
|
props: {
|
|
13298
|
-
value: defaultOptions.
|
|
13299
|
-
disabled: !
|
|
13300
|
-
title: export_panel_getI18n('vxe.export.
|
|
13301
|
-
content: export_panel_getI18n('vxe.export.
|
|
13324
|
+
value: hasRowGroup ? defaultOptions.isRowGroupAllExpanded : false,
|
|
13325
|
+
disabled: hasEmptyData || !hasRowGroup,
|
|
13326
|
+
title: export_panel_getI18n('vxe.export.expRowGroupAllExpandTitle'),
|
|
13327
|
+
content: export_panel_getI18n('vxe.export.expOptRowGroupAllExpand')
|
|
13302
13328
|
},
|
|
13303
13329
|
on: {
|
|
13304
13330
|
input(value) {
|
|
13305
|
-
defaultOptions.
|
|
13331
|
+
defaultOptions.isRowGroupAllExpanded = value;
|
|
13306
13332
|
}
|
|
13307
13333
|
}
|
|
13308
13334
|
})])])])]])])]), bottomSlot ? h('div', {
|
|
@@ -15951,11 +15977,6 @@ const {
|
|
|
15951
15977
|
let htmlCellElem;
|
|
15952
15978
|
const csvBOM = '\ufeff';
|
|
15953
15979
|
const enterSymbol = '\r\n';
|
|
15954
|
-
function hasTreeChildren($xeTable, row) {
|
|
15955
|
-
const treeOpts = $xeTable.computeTreeOpts;
|
|
15956
|
-
const childrenField = treeOpts.children || treeOpts.childrenField;
|
|
15957
|
-
return row[childrenField] && row[childrenField].length;
|
|
15958
|
-
}
|
|
15959
15980
|
function getSeq($xeTable, cellValue, row, $rowIndex, column, $columnIndex) {
|
|
15960
15981
|
const seqOpts = $xeTable.computeSeqOpts;
|
|
15961
15982
|
const seqMd = seqOpts.seqMethod || column.seqMethod;
|
|
@@ -15994,39 +16015,144 @@ const toStringValue = cellValue => {
|
|
|
15994
16015
|
};
|
|
15995
16016
|
function getBodyLabelData($xeTable, opts, columns, datas) {
|
|
15996
16017
|
const props = $xeTable;
|
|
16018
|
+
const reactData = $xeTable;
|
|
15997
16019
|
const {
|
|
15998
|
-
|
|
16020
|
+
isTreeAllExpanded,
|
|
16021
|
+
isRowGroupAllExpanded,
|
|
15999
16022
|
mode
|
|
16000
16023
|
} = opts;
|
|
16001
16024
|
const {
|
|
16002
16025
|
treeConfig
|
|
16003
16026
|
} = props;
|
|
16027
|
+
const {
|
|
16028
|
+
isRowGroupStatus
|
|
16029
|
+
} = reactData;
|
|
16004
16030
|
const radioOpts = $xeTable.computeRadioOpts;
|
|
16005
16031
|
const checkboxOpts = $xeTable.computeCheckboxOpts;
|
|
16006
16032
|
const treeOpts = $xeTable.computeTreeOpts;
|
|
16007
16033
|
const columnOpts = $xeTable.computeColumnOpts;
|
|
16034
|
+
const aggregateOpts = $xeTable.computeAggregateOpts;
|
|
16008
16035
|
if (!htmlCellElem) {
|
|
16009
16036
|
htmlCellElem = document.createElement('div');
|
|
16010
16037
|
}
|
|
16038
|
+
const {
|
|
16039
|
+
handleGetRowId
|
|
16040
|
+
} = createHandleGetRowId($xeTable);
|
|
16041
|
+
if (isRowGroupStatus) {
|
|
16042
|
+
// 如果是数据分组
|
|
16043
|
+
// 如果是数据分组
|
|
16044
|
+
const {
|
|
16045
|
+
mapChildrenField
|
|
16046
|
+
} = aggregateOpts;
|
|
16047
|
+
const rest = [];
|
|
16048
|
+
const expandMaps = {};
|
|
16049
|
+
const useMaps = {};
|
|
16050
|
+
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(datas, (item, $rowIndex, items, path, parentItem, nodes) => {
|
|
16051
|
+
const row = item._row || item;
|
|
16052
|
+
const rowid = handleGetRowId(row);
|
|
16053
|
+
if (useMaps[rowid]) {
|
|
16054
|
+
return;
|
|
16055
|
+
}
|
|
16056
|
+
const parentRow = parentItem && parentItem._row ? parentItem._row : parentItem;
|
|
16057
|
+
const pRowid = parentRow ? handleGetRowId(parentRow) : '';
|
|
16058
|
+
if (isRowGroupAllExpanded || !parentRow || expandMaps[pRowid] && $xeTable.isRowExpandByRow(parentRow)) {
|
|
16059
|
+
const hasRowChild = mapChildrenField && row[mapChildrenField] && row[mapChildrenField].length;
|
|
16060
|
+
const item = {
|
|
16061
|
+
_row: row,
|
|
16062
|
+
_level: nodes.length - 1,
|
|
16063
|
+
_hasChild: hasRowChild,
|
|
16064
|
+
_expand: hasRowChild && $xeTable.isRowExpandByRow(row)
|
|
16065
|
+
};
|
|
16066
|
+
columns.forEach((column, $columnIndex) => {
|
|
16067
|
+
let cellValue = '';
|
|
16068
|
+
const renderOpts = column.editRender || column.cellRender;
|
|
16069
|
+
let bodyExportMethod = column.exportMethod || columnOpts.exportMethod;
|
|
16070
|
+
if (!bodyExportMethod && renderOpts && renderOpts.name) {
|
|
16071
|
+
const compConf = export_mixin_renderer.get(renderOpts.name);
|
|
16072
|
+
if (compConf) {
|
|
16073
|
+
bodyExportMethod = compConf.tableExportMethod || compConf.exportMethod;
|
|
16074
|
+
}
|
|
16075
|
+
}
|
|
16076
|
+
if (!bodyExportMethod) {
|
|
16077
|
+
bodyExportMethod = columnOpts.exportMethod;
|
|
16078
|
+
}
|
|
16079
|
+
if (bodyExportMethod) {
|
|
16080
|
+
cellValue = bodyExportMethod({
|
|
16081
|
+
$table: $xeTable,
|
|
16082
|
+
row,
|
|
16083
|
+
column,
|
|
16084
|
+
options: opts
|
|
16085
|
+
});
|
|
16086
|
+
} else {
|
|
16087
|
+
switch (column.type) {
|
|
16088
|
+
case 'seq':
|
|
16089
|
+
{
|
|
16090
|
+
const seqVal = path.map((num, i) => i % 2 === 0 ? Number(num) + 1 : '.').join('');
|
|
16091
|
+
cellValue = mode === 'all' ? seqVal : getSeq($xeTable, seqVal, row, $rowIndex, column, $columnIndex);
|
|
16092
|
+
break;
|
|
16093
|
+
}
|
|
16094
|
+
case 'checkbox':
|
|
16095
|
+
cellValue = toBooleanValue($xeTable.isCheckedByCheckboxRow(row));
|
|
16096
|
+
item._checkboxLabel = checkboxOpts.labelField ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, checkboxOpts.labelField) : '';
|
|
16097
|
+
item._checkboxDisabled = checkboxOpts.checkMethod && !checkboxOpts.checkMethod({
|
|
16098
|
+
$table: $xeTable,
|
|
16099
|
+
row
|
|
16100
|
+
});
|
|
16101
|
+
break;
|
|
16102
|
+
case 'radio':
|
|
16103
|
+
cellValue = toBooleanValue($xeTable.isCheckedByRadioRow(row));
|
|
16104
|
+
item._radioLabel = radioOpts.labelField ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, radioOpts.labelField) : '';
|
|
16105
|
+
item._radioDisabled = radioOpts.checkMethod && !radioOpts.checkMethod({
|
|
16106
|
+
$table: $xeTable,
|
|
16107
|
+
row
|
|
16108
|
+
});
|
|
16109
|
+
break;
|
|
16110
|
+
default:
|
|
16111
|
+
if (opts.original) {
|
|
16112
|
+
cellValue = getCellValue(row, column);
|
|
16113
|
+
} else {
|
|
16114
|
+
cellValue = $xeTable.getCellLabel(row, column);
|
|
16115
|
+
if (column.type === 'html') {
|
|
16116
|
+
htmlCellElem.innerHTML = cellValue;
|
|
16117
|
+
cellValue = htmlCellElem.innerText.trim();
|
|
16118
|
+
} else {
|
|
16119
|
+
const cell = $xeTable.getCellElement(row, column);
|
|
16120
|
+
if (cell && !hasClass(cell, 'is--progress')) {
|
|
16121
|
+
cellValue = cell.innerText.trim();
|
|
16122
|
+
}
|
|
16123
|
+
}
|
|
16124
|
+
}
|
|
16125
|
+
}
|
|
16126
|
+
}
|
|
16127
|
+
item[column.id] = toStringValue(cellValue);
|
|
16128
|
+
});
|
|
16129
|
+
useMaps[rowid] = true;
|
|
16130
|
+
if (pRowid) {
|
|
16131
|
+
expandMaps[pRowid] = true;
|
|
16132
|
+
}
|
|
16133
|
+
rest.push(Object.assign(item, row));
|
|
16134
|
+
}
|
|
16135
|
+
}, {
|
|
16136
|
+
children: mapChildrenField
|
|
16137
|
+
});
|
|
16138
|
+
return rest;
|
|
16139
|
+
}
|
|
16011
16140
|
if (treeConfig) {
|
|
16012
16141
|
const childrenField = treeOpts.children || treeOpts.childrenField;
|
|
16013
|
-
//
|
|
16142
|
+
// 如果是树结构
|
|
16014
16143
|
const rest = [];
|
|
16015
16144
|
const expandMaps = {};
|
|
16016
16145
|
const useMaps = {};
|
|
16017
|
-
|
|
16018
|
-
handleGetRowId
|
|
16019
|
-
} = createHandleGetRowId($xeTable);
|
|
16020
|
-
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(datas, (item, $rowIndex, items, path, parent, nodes) => {
|
|
16146
|
+
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(datas, (item, $rowIndex, items, path, parentItem, nodes) => {
|
|
16021
16147
|
const row = item._row || item;
|
|
16022
16148
|
const rowid = handleGetRowId(row);
|
|
16023
16149
|
if (useMaps[rowid]) {
|
|
16024
16150
|
return;
|
|
16025
16151
|
}
|
|
16026
|
-
const parentRow =
|
|
16152
|
+
const parentRow = parentItem && parentItem._row ? parentItem._row : parentItem;
|
|
16027
16153
|
const pRowid = parentRow ? handleGetRowId(parentRow) : '';
|
|
16028
|
-
if (
|
|
16029
|
-
const hasRowChild =
|
|
16154
|
+
if (isTreeAllExpanded || !parentRow || expandMaps[pRowid] && $xeTable.isTreeExpandByRow(parentRow)) {
|
|
16155
|
+
const hasRowChild = row[childrenField] && row[childrenField].length;
|
|
16030
16156
|
const item = {
|
|
16031
16157
|
_row: row,
|
|
16032
16158
|
_level: nodes.length - 1,
|
|
@@ -17060,6 +17186,7 @@ function handleExportAndPrint($xeTable, options, isPrint) {
|
|
|
17060
17186
|
const {
|
|
17061
17187
|
initStore,
|
|
17062
17188
|
isGroup,
|
|
17189
|
+
rowGroupList,
|
|
17063
17190
|
footerTableData,
|
|
17064
17191
|
exportStore,
|
|
17065
17192
|
exportParams
|
|
@@ -17070,7 +17197,8 @@ function handleExportAndPrint($xeTable, options, isPrint) {
|
|
|
17070
17197
|
mergeFooterList
|
|
17071
17198
|
} = internalData;
|
|
17072
17199
|
const exportOpts = $xeTable.computeExportOpts;
|
|
17073
|
-
const hasTree = treeConfig;
|
|
17200
|
+
const hasTree = !!treeConfig;
|
|
17201
|
+
const hasRowGroup = rowGroupList.length > 0;
|
|
17074
17202
|
const customOpts = $xeTable.computeCustomOpts;
|
|
17075
17203
|
const selectRecords = $xeTable.getCheckboxRecords();
|
|
17076
17204
|
const proxyOpts = $xeGGWrapper ? $xeGGWrapper.computeProxyOpts : {};
|
|
@@ -17087,6 +17215,11 @@ function handleExportAndPrint($xeTable, options, isPrint) {
|
|
|
17087
17215
|
current: 'current',
|
|
17088
17216
|
modes: (proxyOpts.ajax && proxyOpts.ajax.queryAll ? ['all'] : []).concat(['current', 'selected', 'empty'])
|
|
17089
17217
|
}, options);
|
|
17218
|
+
// 已废弃,参数 isAllExpand
|
|
17219
|
+
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isBoolean(defOpts.isAllExpand)) {
|
|
17220
|
+
warnLog('vxe.error.delProp', ['isAllExpand', 'isTreeAllExpanded']);
|
|
17221
|
+
defOpts.isTreeAllExpanded = defOpts.isAllExpand;
|
|
17222
|
+
}
|
|
17090
17223
|
const types = defOpts.types || external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().keys(exportOpts._typeMaps);
|
|
17091
17224
|
const modes = defOpts.modes || [];
|
|
17092
17225
|
const checkMethod = customOpts.checkMethod;
|
|
@@ -17134,17 +17267,16 @@ function handleExportAndPrint($xeTable, options, isPrint) {
|
|
|
17134
17267
|
}) : false);
|
|
17135
17268
|
});
|
|
17136
17269
|
// 更新条件
|
|
17137
|
-
|
|
17138
|
-
|
|
17139
|
-
|
|
17140
|
-
|
|
17141
|
-
|
|
17142
|
-
|
|
17143
|
-
|
|
17144
|
-
|
|
17145
|
-
|
|
17146
|
-
|
|
17147
|
-
});
|
|
17270
|
+
exportStore.columns = exportColumns;
|
|
17271
|
+
exportStore.typeList = typeList;
|
|
17272
|
+
exportStore.modeList = modeList;
|
|
17273
|
+
exportStore.hasFooter = hasFooter;
|
|
17274
|
+
exportStore.hasMerge = hasMerge;
|
|
17275
|
+
exportStore.hasTree = hasTree;
|
|
17276
|
+
exportStore.hasRowGroup = hasRowGroup;
|
|
17277
|
+
exportStore.isPrint = !!isPrint;
|
|
17278
|
+
exportStore.hasColgroup = isGroup;
|
|
17279
|
+
exportStore.visible = true;
|
|
17148
17280
|
// 默认参数
|
|
17149
17281
|
Object.assign(exportParams, {
|
|
17150
17282
|
mode: selectRecords.length ? 'selected' : 'current'
|
|
@@ -17290,7 +17422,8 @@ const convertToRows = originColumns => {
|
|
|
17290
17422
|
// filename: '',
|
|
17291
17423
|
// sheetName: '',
|
|
17292
17424
|
// original: false,
|
|
17293
|
-
//
|
|
17425
|
+
// isTreeAllExpanded: false,
|
|
17426
|
+
// isRowGroupAllExpanded: false,
|
|
17294
17427
|
// data: null,
|
|
17295
17428
|
// remote: false,
|
|
17296
17429
|
// dataFilterMethod: null,
|
|
@@ -17300,6 +17433,11 @@ const convertToRows = originColumns => {
|
|
|
17300
17433
|
// beforeExportMethod: null,
|
|
17301
17434
|
// afterExportMethod: null
|
|
17302
17435
|
}, exportOpts, options);
|
|
17436
|
+
// 已废弃,参数 isAllExpand
|
|
17437
|
+
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isBoolean(opts.isAllExpand)) {
|
|
17438
|
+
warnLog('vxe.error.delProp', ['isAllExpand', 'isTreeAllExpanded']);
|
|
17439
|
+
opts.isTreeAllExpanded = opts.isAllExpand;
|
|
17440
|
+
}
|
|
17303
17441
|
let {
|
|
17304
17442
|
filename,
|
|
17305
17443
|
sheetName,
|
|
@@ -20437,6 +20575,11 @@ function renderBody(h, $xeTable) {
|
|
|
20437
20575
|
const props = $xeTable;
|
|
20438
20576
|
return Object.assign({}, table_getConfig().table.aggregateConfig || table_getConfig().table.rowGroupConfig, props.aggregateConfig || props.rowGroupConfig);
|
|
20439
20577
|
},
|
|
20578
|
+
computeAggregateMode() {
|
|
20579
|
+
const $xeTable = this;
|
|
20580
|
+
const aggregateOpts = $xeTable.computeAggregateOpts;
|
|
20581
|
+
return aggregateOpts.mode;
|
|
20582
|
+
},
|
|
20440
20583
|
computeAggregateAccuracyOpts() {
|
|
20441
20584
|
const $xeTable = this;
|
|
20442
20585
|
const props = $xeTable;
|
|
@@ -21328,6 +21471,14 @@ function renderBody(h, $xeTable) {
|
|
|
21328
21471
|
$xeTable.reloadData(tableFullData);
|
|
21329
21472
|
});
|
|
21330
21473
|
}
|
|
21474
|
+
},
|
|
21475
|
+
computeAggregateMode() {
|
|
21476
|
+
const $xeTable = this;
|
|
21477
|
+
const reactData = $xeTable;
|
|
21478
|
+
const internalData = $xeTable;
|
|
21479
|
+
if (reactData.isRowGroupStatus) {
|
|
21480
|
+
this.loadTableData(internalData.tableSynchData, false, true);
|
|
21481
|
+
}
|
|
21331
21482
|
}
|
|
21332
21483
|
},
|
|
21333
21484
|
created() {
|
|
@@ -21453,6 +21604,9 @@ function renderBody(h, $xeTable) {
|
|
|
21453
21604
|
if (exportConfig && exportOpts.types && !exportOpts.exportMethod && !external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().includeArrays(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().keys(exportOpts._typeMaps), exportOpts.types)) {
|
|
21454
21605
|
warnLog('vxe.error.errProp', [`export-config.types=${exportOpts.types.join(',')}`, exportOpts.types.filter(type => external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().includes(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().keys(exportOpts._typeMaps), type)).join(',') || external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().keys(exportOpts._typeMaps).join(',')]);
|
|
21455
21606
|
}
|
|
21607
|
+
if (exportConfig && external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isBoolean(exportOpts.isAllExpand)) {
|
|
21608
|
+
warnLog('vxe.error.delProp', ['isAllExpand', 'isTreeAllExpanded']);
|
|
21609
|
+
}
|
|
21456
21610
|
if (!props.id) {
|
|
21457
21611
|
if ((props.customConfig ? isEnableConf(customOpts) : customOpts.enabled) && customOpts.storage) {
|
|
21458
21612
|
errLog('vxe.error.reqProp', ['id']);
|
|
@@ -27140,6 +27294,10 @@ const Toolbar = VxeToolbar;
|
|
|
27140
27294
|
expMergeTitle: '如果存在,则支持带有合并结构的单元格',
|
|
27141
27295
|
expOptAllExpand: '展开树',
|
|
27142
27296
|
expAllExpandTitle: '如果存在,则支持将带有层级结构的数据全部展开',
|
|
27297
|
+
expOptTreeAllExpand: '展开树',
|
|
27298
|
+
expTreeAllExpandTitle: '如果存在,则自动展开所有树层级',
|
|
27299
|
+
expOptRowGroupAllExpand: '展开分组',
|
|
27300
|
+
expRowGroupAllExpandTitle: '如果存在,则自动展开所有分组层级',
|
|
27143
27301
|
expOptUseStyle: '样式',
|
|
27144
27302
|
expUseStyleTitle: '如果存在,则支持带样式的单元格',
|
|
27145
27303
|
expOptOriginal: '源数据',
|