vxe-table 3.21.21 → 3.21.22
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/mixin.js +32 -26
- package/es/table/module/custom/panel.js +7 -0
- package/es/table/module/edit/mixin.js +12 -6
- package/es/table/src/methods.js +5 -1
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/index.css +1 -1
- package/lib/index.min.css +1 -1
- package/lib/index.umd.js +59 -36
- 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/mixin.js +32 -26
- package/lib/table/module/custom/mixin.min.js +1 -1
- package/lib/table/module/custom/panel.js +7 -0
- package/lib/table/module/custom/panel.min.js +1 -1
- package/lib/table/module/edit/mixin.js +12 -6
- package/lib/table/src/methods.js +2 -2
- package/lib/table/src/methods.min.js +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/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/mixin.ts +31 -25
- package/packages/table/module/custom/panel.ts +7 -0
- package/packages/table/module/edit/mixin.ts +18 -6
- package/packages/table/src/methods.ts +4 -1
- package/packages/table/src/table.ts +6 -6
- package/styles/theme/base.scss +2 -1
- /package/es/{iconfont.1782656027274.ttf → iconfont.1782890276645.ttf} +0 -0
- /package/es/{iconfont.1782656027274.woff → iconfont.1782890276645.woff} +0 -0
- /package/es/{iconfont.1782656027274.woff2 → iconfont.1782890276645.woff2} +0 -0
- /package/lib/{iconfont.1782656027274.ttf → iconfont.1782890276645.ttf} +0 -0
- /package/lib/{iconfont.1782656027274.woff → iconfont.1782890276645.woff} +0 -0
- /package/lib/{iconfont.1782656027274.woff2 → iconfont.1782890276645.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.22";
|
|
3315
3315
|
core_.VxeUI.version = version;
|
|
3316
3316
|
core_.VxeUI.tableVersion = version;
|
|
3317
3317
|
core_.VxeUI.setConfig({
|
|
@@ -4074,7 +4074,7 @@ function wheelScrollTopTo(diffNum, cb) {
|
|
|
4074
4074
|
const {
|
|
4075
4075
|
log: log_log
|
|
4076
4076
|
} = core_.VxeUI;
|
|
4077
|
-
const tableVersion = `table v${"3.21.
|
|
4077
|
+
const tableVersion = `table v${"3.21.22"}`;
|
|
4078
4078
|
function createComponentLog(name) {
|
|
4079
4079
|
const uiVersion = core_.VxeUI.uiVersion ? `ui v${core_.VxeUI.uiVersion}` : '';
|
|
4080
4080
|
const ganttVersion = core_.VxeUI.ganttVersion ? `gantt v${core_.VxeUI.ganttVersion}` : '';
|
|
@@ -7885,8 +7885,8 @@ remainList.forEach(column=>{const width=Math.max(meanWidth,minCellWidth);column.
|
|
|
7885
7885
|
if(showAll){// 如果为 null 默认显示
|
|
7886
7886
|
if(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(customContent)){isShow=true;content=cellText;}else if(customContent!==''&&customContent!==false){// 如果为 '' | false 则不显示
|
|
7887
7887
|
isShow=true;content=''+customContent;}}else{// 如果为 null 使用默认逻辑
|
|
7888
|
-
if(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(customContent)){isShow=isOver;}else if(customContent!==''&&customContent!==false){// 如果为 '' | false 则不显示
|
|
7889
|
-
isShow=true;}content=cellText;}if(isShow&&content){const tipContent=formatText(content);Object.assign(tooltipStore,{row,column,visible:true,content:tipContent,type,currOpts:tipOpts});$xeTable.$nextTick(()=>{const $tooltip=$xeTable.$refs.refTooltip;if($tooltip&&$tooltip.open){$tooltip.open(isOver?tipOverEl:tipElem,tipContent);}});}return $xeTable.$nextTick();}function handleScrollToRowColumn($xeTable,fieldOrColumn,row,options){const internalData=$xeTable;const{fullColumnIdData}=internalData;const column=handleFieldOrColumn($xeTable,fieldOrColumn);if(column&&fullColumnIdData[column.id]){return colToVisible($xeTable,options?options.colAlign!==false:true,column,row);}return $xeTable.$nextTick();}function handleRowExpandReserve($xeTable,row,expanded){const internalData=$xeTable;const{rowExpandedReserveRowMap}=internalData;const expandOpts=$xeTable.computeExpandOpts;if(expandOpts.reserve){const rowid=getRowid($xeTable,row);if(expanded){rowExpandedReserveRowMap[rowid]=row;}else if(rowExpandedReserveRowMap[rowid]){delete rowExpandedReserveRowMap[rowid];}}}function handleDefaultMergeCells($xeTable){const props=$xeTable;const{mergeCells}=props;if(mergeCells){$xeTable.setMergeCells(mergeCells);}}function handleDefaultMergeHeaderItems($xeTable){const props=$xeTable;const{mergeHeaderCells}=props;if(mergeHeaderCells){$xeTable.setMergeHeaderCells(mergeHeaderCells);}}function handleDefaultMergeFooterItems($xeTable){const props=$xeTable;const{mergeFooterCells,mergeFooterItems}=props;const mFooterCells=mergeFooterCells||mergeFooterItems;if(mFooterCells){$xeTable.setMergeFooterCells(mFooterCells);}}// 计算可视渲染相关数据
|
|
7888
|
+
if(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(customContent)){isShow=isOver;content=cellText;}else if(customContent!==''&&customContent!==false){// 如果为 '' | false 则不显示
|
|
7889
|
+
isShow=true;content=customContent;}else{content=cellText;}}if(isShow&&content){const tipContent=formatText(content);Object.assign(tooltipStore,{row,column,visible:true,content:tipContent,type,currOpts:tipOpts});$xeTable.$nextTick(()=>{const $tooltip=$xeTable.$refs.refTooltip;if($tooltip&&$tooltip.open){$tooltip.open(isOver?tipOverEl:tipElem,tipContent);}});}return $xeTable.$nextTick();}function handleScrollToRowColumn($xeTable,fieldOrColumn,row,options){const internalData=$xeTable;const{fullColumnIdData}=internalData;const column=handleFieldOrColumn($xeTable,fieldOrColumn);if(column&&fullColumnIdData[column.id]){return colToVisible($xeTable,options?options.colAlign!==false:true,column,row);}return $xeTable.$nextTick();}function handleRowExpandReserve($xeTable,row,expanded){const internalData=$xeTable;const{rowExpandedReserveRowMap}=internalData;const expandOpts=$xeTable.computeExpandOpts;if(expandOpts.reserve){const rowid=getRowid($xeTable,row);if(expanded){rowExpandedReserveRowMap[rowid]=row;}else if(rowExpandedReserveRowMap[rowid]){delete rowExpandedReserveRowMap[rowid];}}}function handleDefaultMergeCells($xeTable){const props=$xeTable;const{mergeCells}=props;if(mergeCells){$xeTable.setMergeCells(mergeCells);}}function handleDefaultMergeHeaderItems($xeTable){const props=$xeTable;const{mergeHeaderCells}=props;if(mergeHeaderCells){$xeTable.setMergeHeaderCells(mergeHeaderCells);}}function handleDefaultMergeFooterItems($xeTable){const props=$xeTable;const{mergeFooterCells,mergeFooterItems}=props;const mFooterCells=mergeFooterCells||mergeFooterItems;if(mFooterCells){$xeTable.setMergeFooterCells(mFooterCells);}}// 计算可视渲染相关数据
|
|
7890
7890
|
function computeScrollLoad($xeTable){const reactData=$xeTable;const internalData=$xeTable;return $xeTable.$nextTick().then(()=>{const{scrollXLoad,scrollYLoad}=reactData;const{scrollXStore,scrollYStore}=internalData;const virtualYOpts=$xeTable.computeVirtualYOpts;const virtualXOpts=$xeTable.computeVirtualXOpts;// 计算 X 逻辑
|
|
7891
7891
|
if(scrollXLoad){const{toVisibleIndex:toXVisibleIndex,visibleSize:visibleXSize}=handleVirtualXVisible($xeTable);const offsetXSize=Math.max(0,virtualXOpts.oSize?external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(virtualXOpts.oSize):0);scrollXStore.preloadSize=external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(virtualXOpts.preSize);scrollXStore.offsetSize=offsetXSize;scrollXStore.visibleSize=visibleXSize;scrollXStore.endIndex=Math.max(scrollXStore.startIndex+scrollXStore.visibleSize+offsetXSize,scrollXStore.endIndex);scrollXStore.visibleStartIndex=Math.max(scrollXStore.startIndex,toXVisibleIndex);scrollXStore.visibleEndIndex=Math.min(scrollXStore.endIndex,toXVisibleIndex+visibleXSize);$xeTable.updateScrollXData().then(()=>{loadScrollXData($xeTable);});}else{$xeTable.updateScrollXSpace();}// 计算 Y 逻辑
|
|
7892
7892
|
const rowHeight=computeRowHeight($xeTable);scrollYStore.rowHeight=rowHeight;// 已废弃
|
|
@@ -10915,7 +10915,9 @@ function panel_hideDropTip($xeTableCustomPanel) {
|
|
|
10915
10915
|
$xeTable.saveCustom();
|
|
10916
10916
|
$xeTable.closeCustom();
|
|
10917
10917
|
$xeTable.emitCustomEvent('confirm', $event);
|
|
10918
|
+
$xeTable.dispatchEvent('custom-confirm', {}, $event);
|
|
10918
10919
|
$xeTable.emitCustomEvent('close', $event);
|
|
10920
|
+
$xeTable.dispatchEvent('custom-close', {}, $event);
|
|
10919
10921
|
},
|
|
10920
10922
|
cancelCloseEvent({
|
|
10921
10923
|
$event
|
|
@@ -10924,6 +10926,7 @@ function panel_hideDropTip($xeTableCustomPanel) {
|
|
|
10924
10926
|
const $xeTable = $xeTableCustomPanel.$xeTable;
|
|
10925
10927
|
$xeTable.closeCustom();
|
|
10926
10928
|
$xeTable.emitCustomEvent('close', $event);
|
|
10929
|
+
$xeTable.dispatchEvent('custom-close', {}, $event);
|
|
10927
10930
|
},
|
|
10928
10931
|
cancelCustomEvent({
|
|
10929
10932
|
$event
|
|
@@ -10933,7 +10936,9 @@ function panel_hideDropTip($xeTableCustomPanel) {
|
|
|
10933
10936
|
$xeTable.cancelCustom();
|
|
10934
10937
|
$xeTable.closeCustom();
|
|
10935
10938
|
$xeTable.emitCustomEvent('cancel', $event);
|
|
10939
|
+
$xeTable.dispatchEvent('custom-cancel', {}, $event);
|
|
10936
10940
|
$xeTable.emitCustomEvent('close', $event);
|
|
10941
|
+
$xeTable.dispatchEvent('custom-close', {}, $event);
|
|
10937
10942
|
},
|
|
10938
10943
|
handleResetCustomEvent(evnt) {
|
|
10939
10944
|
const $xeTableCustomPanel = this;
|
|
@@ -10941,7 +10946,9 @@ function panel_hideDropTip($xeTableCustomPanel) {
|
|
|
10941
10946
|
$xeTable.resetCustom(true);
|
|
10942
10947
|
$xeTable.closeCustom();
|
|
10943
10948
|
$xeTable.emitCustomEvent('reset', evnt);
|
|
10949
|
+
$xeTable.dispatchEvent('custom-reset', {}, evnt);
|
|
10944
10950
|
$xeTable.emitCustomEvent('close', evnt);
|
|
10951
|
+
$xeTable.dispatchEvent('custom-close', {}, evnt);
|
|
10945
10952
|
},
|
|
10946
10953
|
resetCustomEvent(evnt) {
|
|
10947
10954
|
if (core_.VxeUI.modal) {
|
|
@@ -15443,7 +15450,8 @@ function handleEditCell($xeTable, row, fieldOrColumn, options) {
|
|
|
15443
15450
|
* @param {*} records
|
|
15444
15451
|
*/
|
|
15445
15452
|
_insert(records) {
|
|
15446
|
-
|
|
15453
|
+
const $xeTable = this;
|
|
15454
|
+
return handleInsertRowAt($xeTable, records, null);
|
|
15447
15455
|
},
|
|
15448
15456
|
/**
|
|
15449
15457
|
* 往表格指定行中插入临时数据
|
|
@@ -15453,19 +15461,24 @@ function handleEditCell($xeTable, row, fieldOrColumn, options) {
|
|
|
15453
15461
|
* @returns
|
|
15454
15462
|
*/
|
|
15455
15463
|
_insertAt(records, targetRowOrRowid) {
|
|
15456
|
-
|
|
15464
|
+
const $xeTable = this;
|
|
15465
|
+
return handleInsertRowAt($xeTable, records, targetRowOrRowid);
|
|
15457
15466
|
},
|
|
15458
15467
|
_insertNextAt(records, targetRowOrRowid) {
|
|
15459
|
-
|
|
15468
|
+
const $xeTable = this;
|
|
15469
|
+
return handleInsertRowAt($xeTable, records, targetRowOrRowid, true);
|
|
15460
15470
|
},
|
|
15461
15471
|
_insertChild(records, parentRowOrParentId) {
|
|
15462
|
-
|
|
15472
|
+
const $xeTable = this;
|
|
15473
|
+
return handleInsertChildRowAt($xeTable, records, parentRowOrParentId, null);
|
|
15463
15474
|
},
|
|
15464
15475
|
_insertChildAt(records, parentRowOrParentId, targetRowOrRowid) {
|
|
15465
|
-
|
|
15476
|
+
const $xeTable = this;
|
|
15477
|
+
return handleInsertChildRowAt($xeTable, records, parentRowOrParentId, targetRowOrRowid);
|
|
15466
15478
|
},
|
|
15467
15479
|
_insertChildNextAt(records, parentRowOrParentId, targetRowOrRowid) {
|
|
15468
|
-
|
|
15480
|
+
const $xeTable = this;
|
|
15481
|
+
return handleInsertChildRowAt($xeTable, records, parentRowOrParentId, targetRowOrRowid, true);
|
|
15469
15482
|
},
|
|
15470
15483
|
/**
|
|
15471
15484
|
* 删除指定行数据
|
|
@@ -19737,7 +19750,7 @@ function emitCustomEvent($xeTable, type, evnt) {
|
|
|
19737
19750
|
}
|
|
19738
19751
|
return $xeTable.openCustom();
|
|
19739
19752
|
},
|
|
19740
|
-
_saveCustom() {
|
|
19753
|
+
_saveCustom(isDirectly) {
|
|
19741
19754
|
const $xeTable = this;
|
|
19742
19755
|
const reactData = $xeTable;
|
|
19743
19756
|
const internalData = $xeTable;
|
|
@@ -19755,34 +19768,36 @@ function emitCustomEvent($xeTable, type, evnt) {
|
|
|
19755
19768
|
allowGroup,
|
|
19756
19769
|
allowValues
|
|
19757
19770
|
} = customOpts;
|
|
19758
|
-
|
|
19759
|
-
|
|
19760
|
-
|
|
19761
|
-
|
|
19762
|
-
|
|
19763
|
-
|
|
19764
|
-
|
|
19765
|
-
|
|
19766
|
-
|
|
19767
|
-
|
|
19768
|
-
|
|
19771
|
+
if (!isDirectly) {
|
|
19772
|
+
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(customColumnList, (column, index, items, path, parentColumn) => {
|
|
19773
|
+
if (parentColumn) {
|
|
19774
|
+
// 更新子列信息
|
|
19775
|
+
column.fixed = parentColumn.fixed;
|
|
19776
|
+
} else {
|
|
19777
|
+
if (allowSort) {
|
|
19778
|
+
const sortIndex = index + 1;
|
|
19779
|
+
column.renderSortNumber = sortIndex;
|
|
19780
|
+
}
|
|
19781
|
+
if (allowFixed) {
|
|
19782
|
+
column.fixed = column.renderFixed;
|
|
19783
|
+
}
|
|
19769
19784
|
}
|
|
19770
|
-
|
|
19771
|
-
|
|
19772
|
-
|
|
19773
|
-
|
|
19774
|
-
|
|
19775
|
-
|
|
19785
|
+
if (allowResizable) {
|
|
19786
|
+
if (column.renderVisible && (!column.children || !column.children.length)) {
|
|
19787
|
+
if (column.renderResizeWidth !== column.renderWidth) {
|
|
19788
|
+
column.resizeWidth = column.renderResizeWidth;
|
|
19789
|
+
column.renderWidth = column.renderResizeWidth;
|
|
19790
|
+
}
|
|
19776
19791
|
}
|
|
19777
19792
|
}
|
|
19778
|
-
|
|
19779
|
-
|
|
19780
|
-
|
|
19781
|
-
|
|
19782
|
-
|
|
19783
|
-
|
|
19784
|
-
}
|
|
19785
|
-
}
|
|
19793
|
+
if (allowVisible) {
|
|
19794
|
+
column.visible = column.renderVisible;
|
|
19795
|
+
}
|
|
19796
|
+
if (allowGroup && allowValues) {
|
|
19797
|
+
column.aggFunc = column.renderAggFn;
|
|
19798
|
+
}
|
|
19799
|
+
});
|
|
19800
|
+
}
|
|
19786
19801
|
reactData.isCustomStatus = true;
|
|
19787
19802
|
if (allowGroup && allowValues && !!$xeTable.handlePivotTableAggData) {
|
|
19788
19803
|
if (rowGroupList.length !== aggHandleFields.length || rowGroupList.some((conf, i) => conf.field !== aggHandleFields[i])) {
|
|
@@ -20021,10 +20036,12 @@ function emitCustomEvent($xeTable, type, evnt) {
|
|
|
20021
20036
|
if (customStore.visible) {
|
|
20022
20037
|
$xeTable.closeCustom();
|
|
20023
20038
|
emitCustomEvent($xeTable, 'close', evnt);
|
|
20039
|
+
$xeTable.dispatchEvent('custom-close', {}, evnt);
|
|
20024
20040
|
} else {
|
|
20025
20041
|
customStore.btnEl = evnt.target;
|
|
20026
20042
|
$xeTable.openCustom();
|
|
20027
20043
|
emitCustomEvent($xeTable, 'open', evnt);
|
|
20044
|
+
$xeTable.dispatchEvent('custom-open', {}, evnt);
|
|
20028
20045
|
}
|
|
20029
20046
|
},
|
|
20030
20047
|
customOpenEvent(evnt) {
|
|
@@ -20038,6 +20055,7 @@ function emitCustomEvent($xeTable, type, evnt) {
|
|
|
20038
20055
|
customStore.btnEl = evnt.target;
|
|
20039
20056
|
$xeTable.openCustom();
|
|
20040
20057
|
emitCustomEvent($xeTable, 'open', evnt);
|
|
20058
|
+
$xeTable.dispatchEvent('custom-open', {}, evnt);
|
|
20041
20059
|
}
|
|
20042
20060
|
},
|
|
20043
20061
|
customCloseEvent(evnt) {
|
|
@@ -20050,6 +20068,7 @@ function emitCustomEvent($xeTable, type, evnt) {
|
|
|
20050
20068
|
customStore.activeBtn = false;
|
|
20051
20069
|
$xeTable.closeCustom();
|
|
20052
20070
|
emitCustomEvent($xeTable, 'close', evnt);
|
|
20071
|
+
$xeTable.dispatchEvent('custom-close', {}, evnt);
|
|
20053
20072
|
}
|
|
20054
20073
|
},
|
|
20055
20074
|
handleUpdateCustomColumn() {
|
|
@@ -27993,6 +28012,10 @@ const Toolbar = VxeToolbar;
|
|
|
27993
28012
|
fixedRight: '冻结在右侧',
|
|
27994
28013
|
cancelFixed: '取消冻结列'
|
|
27995
28014
|
},
|
|
28015
|
+
iconPicker: {
|
|
28016
|
+
search: '搜索',
|
|
28017
|
+
emptyText: '暂无数据'
|
|
28018
|
+
},
|
|
27996
28019
|
datePicker: {
|
|
27997
28020
|
yearTitle: '{0} 年'
|
|
27998
28021
|
},
|