vxe-table 3.21.14 → 3.21.16
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 +7 -0
- package/es/locale/lang/de-DE.js +7 -0
- package/es/locale/lang/en-US.js +7 -0
- package/es/locale/lang/es-ES.js +7 -0
- package/es/locale/lang/fr-FR.js +7 -0
- package/es/locale/lang/hu-HU.js +7 -0
- package/es/locale/lang/hy-AM.js +7 -0
- package/es/locale/lang/id-ID.js +7 -0
- package/es/locale/lang/it-IT.js +7 -0
- package/es/locale/lang/ja-JP.js +7 -0
- package/es/locale/lang/ko-KR.js +7 -0
- package/es/locale/lang/ms-MY.js +7 -0
- package/es/locale/lang/nb-NO.js +7 -0
- package/es/locale/lang/pt-BR.js +7 -0
- package/es/locale/lang/ru-RU.js +7 -0
- package/es/locale/lang/th-TH.js +7 -0
- package/es/locale/lang/ug-CN.js +7 -0
- package/es/locale/lang/uk-UA.js +7 -0
- package/es/locale/lang/uz-UZ.js +7 -0
- package/es/locale/lang/vi-VN.js +7 -0
- package/es/locale/lang/zh-CHT.js +7 -0
- package/es/locale/lang/zh-CN.js +7 -0
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/table/module/export/mixin.js +22 -3
- package/es/table/render/index.js +46 -18
- package/es/table/src/header.js +6 -3
- package/es/table/src/methods.js +32 -4
- package/es/table/src/table.js +25 -3
- package/es/table/style.css +10 -5
- 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 +10 -5
- 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 +135 -29
- package/lib/index.umd.min.js +1 -1
- package/lib/locale/lang/ar-EG.js +7 -0
- package/lib/locale/lang/ar-EG.min.js +1 -1
- package/lib/locale/lang/ar-EG.umd.js +7 -0
- package/lib/locale/lang/de-DE.js +7 -0
- package/lib/locale/lang/de-DE.min.js +1 -1
- package/lib/locale/lang/de-DE.umd.js +7 -0
- package/lib/locale/lang/en-US.js +7 -0
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +7 -0
- package/lib/locale/lang/es-ES.js +7 -0
- package/lib/locale/lang/es-ES.min.js +1 -1
- package/lib/locale/lang/es-ES.umd.js +7 -0
- package/lib/locale/lang/fr-FR.js +7 -0
- package/lib/locale/lang/fr-FR.min.js +1 -1
- package/lib/locale/lang/fr-FR.umd.js +7 -0
- package/lib/locale/lang/hu-HU.js +7 -0
- package/lib/locale/lang/hu-HU.min.js +1 -1
- package/lib/locale/lang/hu-HU.umd.js +7 -0
- package/lib/locale/lang/hy-AM.js +7 -0
- package/lib/locale/lang/hy-AM.min.js +1 -1
- package/lib/locale/lang/hy-AM.umd.js +7 -0
- package/lib/locale/lang/id-ID.js +7 -0
- package/lib/locale/lang/id-ID.min.js +1 -1
- package/lib/locale/lang/id-ID.umd.js +7 -0
- package/lib/locale/lang/it-IT.js +7 -0
- package/lib/locale/lang/it-IT.min.js +1 -1
- package/lib/locale/lang/it-IT.umd.js +7 -0
- package/lib/locale/lang/ja-JP.js +7 -0
- package/lib/locale/lang/ja-JP.min.js +1 -1
- package/lib/locale/lang/ja-JP.umd.js +7 -0
- package/lib/locale/lang/ko-KR.js +7 -0
- package/lib/locale/lang/ko-KR.min.js +1 -1
- package/lib/locale/lang/ko-KR.umd.js +7 -0
- package/lib/locale/lang/ms-MY.js +7 -0
- package/lib/locale/lang/ms-MY.min.js +1 -1
- package/lib/locale/lang/ms-MY.umd.js +7 -0
- package/lib/locale/lang/nb-NO.js +7 -0
- package/lib/locale/lang/nb-NO.min.js +1 -1
- package/lib/locale/lang/nb-NO.umd.js +7 -0
- package/lib/locale/lang/pt-BR.js +7 -0
- package/lib/locale/lang/pt-BR.min.js +1 -1
- package/lib/locale/lang/pt-BR.umd.js +7 -0
- package/lib/locale/lang/ru-RU.js +7 -0
- package/lib/locale/lang/ru-RU.min.js +1 -1
- package/lib/locale/lang/ru-RU.umd.js +7 -0
- package/lib/locale/lang/th-TH.js +7 -0
- package/lib/locale/lang/th-TH.min.js +1 -1
- package/lib/locale/lang/th-TH.umd.js +7 -0
- package/lib/locale/lang/ug-CN.js +7 -0
- package/lib/locale/lang/ug-CN.min.js +1 -1
- package/lib/locale/lang/ug-CN.umd.js +7 -0
- package/lib/locale/lang/uk-UA.js +7 -0
- package/lib/locale/lang/uk-UA.min.js +1 -1
- package/lib/locale/lang/uk-UA.umd.js +7 -0
- package/lib/locale/lang/uz-UZ.js +7 -0
- package/lib/locale/lang/uz-UZ.min.js +1 -1
- package/lib/locale/lang/uz-UZ.umd.js +7 -0
- package/lib/locale/lang/vi-VN.js +7 -0
- package/lib/locale/lang/vi-VN.min.js +1 -1
- package/lib/locale/lang/vi-VN.umd.js +7 -0
- package/lib/locale/lang/zh-CHT.js +7 -0
- package/lib/locale/lang/zh-CHT.min.js +1 -1
- package/lib/locale/lang/zh-CHT.umd.js +7 -0
- package/lib/locale/lang/zh-CN.js +7 -0
- package/lib/locale/lang/zh-CN.min.js +1 -1
- package/lib/locale/lang/zh-CN.umd.js +7 -0
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/module/export/mixin.js +26 -3
- package/lib/table/module/export/mixin.min.js +1 -1
- package/lib/table/render/index.js +62 -18
- package/lib/table/render/index.min.js +1 -1
- package/lib/table/src/header.js +7 -3
- package/lib/table/src/header.min.js +1 -1
- package/lib/table/src/methods.js +6 -1
- package/lib/table/src/methods.min.js +1 -1
- package/lib/table/src/table.js +25 -2
- package/lib/table/src/table.min.js +1 -1
- package/lib/table/style/style.css +10 -5
- 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 +10 -5
- package/lib/vxe-table/style/style.min.css +1 -1
- package/package.json +2 -2
- package/packages/locale/lang/ar-EG.ts +7 -0
- package/packages/locale/lang/de-DE.ts +7 -0
- package/packages/locale/lang/en-US.ts +7 -0
- package/packages/locale/lang/es-ES.ts +7 -0
- package/packages/locale/lang/fr-FR.ts +7 -0
- package/packages/locale/lang/hu-HU.ts +7 -0
- package/packages/locale/lang/hy-AM.ts +7 -0
- package/packages/locale/lang/id-ID.ts +7 -0
- package/packages/locale/lang/it-IT.ts +7 -0
- package/packages/locale/lang/ja-JP.ts +7 -0
- package/packages/locale/lang/ko-KR.ts +7 -0
- package/packages/locale/lang/ms-MY.ts +7 -0
- package/packages/locale/lang/nb-NO.ts +7 -0
- package/packages/locale/lang/pt-BR.ts +7 -0
- package/packages/locale/lang/ru-RU.ts +7 -0
- package/packages/locale/lang/th-TH.ts +7 -0
- package/packages/locale/lang/ug-CN.ts +7 -0
- package/packages/locale/lang/uk-UA.ts +7 -0
- package/packages/locale/lang/uz-UZ.ts +7 -0
- package/packages/locale/lang/vi-VN.ts +7 -0
- package/packages/locale/lang/zh-CHT.ts +7 -0
- package/packages/locale/lang/zh-CN.ts +7 -0
- package/packages/table/module/export/mixin.ts +22 -3
- package/packages/table/render/index.ts +46 -18
- package/packages/table/src/header.ts +6 -3
- package/packages/table/src/methods.ts +29 -4
- package/packages/table/src/table.ts +31 -3
- package/styles/components/table.scss +8 -4
- /package/es/{iconfont.1781257629862.ttf → iconfont.1781753790081.ttf} +0 -0
- /package/es/{iconfont.1781257629862.woff → iconfont.1781753790081.woff} +0 -0
- /package/es/{iconfont.1781257629862.woff2 → iconfont.1781753790081.woff2} +0 -0
- /package/lib/{iconfont.1781257629862.ttf → iconfont.1781753790081.ttf} +0 -0
- /package/lib/{iconfont.1781257629862.woff → iconfont.1781753790081.woff} +0 -0
- /package/lib/{iconfont.1781257629862.woff2 → iconfont.1781753790081.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.16";
|
|
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 log_version = `table v${"3.21.
|
|
4077
|
+
const log_version = `table v${"3.21.16"}`;
|
|
4078
4078
|
const warnLog = log_log.create('warn', log_version);
|
|
4079
4079
|
const errLog = log_log.create('error', log_version);
|
|
4080
4080
|
;// ./packages/table/src/columnInfo.ts
|
|
@@ -7857,7 +7857,12 @@ remainList.forEach(column=>{const width=Math.max(meanWidth,minCellWidth);column.
|
|
|
7857
7857
|
* 处理显示 tooltip
|
|
7858
7858
|
* @param {Event} evnt 事件
|
|
7859
7859
|
* @param {Row} row 行对象
|
|
7860
|
-
*/function handleTooltip($xeTable,evnt,tipOpts,type,tdEl,overflowElem,tipElem,params){const reactData=$xeTable;const tipOverEl=overflowElem||tdEl;if(!tipOverEl){return $xeTable.$nextTick();}params.cell=tdEl;const{tooltipStore}=reactData;const{column,row}=params;const{showAll,contentMethod}=tipOpts;const
|
|
7860
|
+
*/function handleTooltip($xeTable,evnt,tipOpts,type,tdEl,overflowElem,tipElem,params){const reactData=$xeTable;const tipOverEl=overflowElem||tdEl;if(!tipOverEl){return $xeTable.$nextTick();}params.cell=tdEl;const{tooltipStore}=reactData;const{column,row}=params;const{showAll,contentMethod}=tipOpts;const cellText=external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toString(column.type==='html'?tipOverEl.innerText:tipOverEl.textContent).trim();const isOver=tipOverEl.scrollWidth>tipOverEl.clientWidth;let isShow=false;let customContent=null;let content='';if(contentMethod){customContent=contentMethod(params);}// 是否全部展示
|
|
7861
|
+
if(showAll){// 如果为 null 默认显示
|
|
7862
|
+
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 则不显示
|
|
7863
|
+
isShow=true;content=''+customContent;}}else{// 如果为 null 使用默认逻辑
|
|
7864
|
+
if(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(customContent)){isShow=isOver;}else if(customContent!==''&&customContent!==false){// 如果为 '' | false 则不显示
|
|
7865
|
+
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);}}// 计算可视渲染相关数据
|
|
7861
7866
|
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 逻辑
|
|
7862
7867
|
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 逻辑
|
|
7863
7868
|
const rowHeight=computeRowHeight($xeTable);scrollYStore.rowHeight=rowHeight;// 已废弃
|
|
@@ -9888,6 +9893,10 @@ function renderFilterRows(h, _vm, isOptimizeMode, cols) {
|
|
|
9888
9893
|
const cellOpts = $xeTable.computeCellOpts;
|
|
9889
9894
|
const defaultRowHeight = $xeTable.computeDefaultRowHeight;
|
|
9890
9895
|
const headerCellOpts = $xeTable.computeHeaderCellOpts;
|
|
9896
|
+
const floatingFilterOpts = $xeTable.computeFloatingFilterOpts;
|
|
9897
|
+
const {
|
|
9898
|
+
cellClassName
|
|
9899
|
+
} = floatingFilterOpts;
|
|
9891
9900
|
const currCellHeight = getCalcHeight(headerCellOpts.height) || defaultRowHeight;
|
|
9892
9901
|
return cols.map((column, $columnIndex) => {
|
|
9893
9902
|
const {
|
|
@@ -9952,7 +9961,7 @@ function renderFilterRows(h, _vm, isOptimizeMode, cols) {
|
|
|
9952
9961
|
tcStyle.minHeight = `${currCellHeight}px`;
|
|
9953
9962
|
}
|
|
9954
9963
|
return h('th', {
|
|
9955
|
-
class: ['vxe-table--column vxe-header--column', colid, fixedHiddenColumn ? 'fixed--hidden' : 'fixed--visible', {
|
|
9964
|
+
class: ['vxe-table--column vxe-header--column is--floating-filters', colid, fixedHiddenColumn ? 'fixed--hidden' : 'fixed--visible', {
|
|
9956
9965
|
[`col--${headAlign}`]: headAlign,
|
|
9957
9966
|
[`col--${type}`]: type,
|
|
9958
9967
|
'col--last': isLastColumn,
|
|
@@ -9966,7 +9975,7 @@ function renderFilterRows(h, _vm, isOptimizeMode, cols) {
|
|
|
9966
9975
|
key: colid,
|
|
9967
9976
|
attrs: thAttrs
|
|
9968
9977
|
}, [h('div', {
|
|
9969
|
-
class: ['vxe-cell', {
|
|
9978
|
+
class: ['vxe-cell', '' + (cellClassName || ''), {
|
|
9970
9979
|
'c--title': showTitle,
|
|
9971
9980
|
'c--tooltip': showTooltip,
|
|
9972
9981
|
'c--ellipsis': showEllipsis
|
|
@@ -10008,7 +10017,7 @@ function renderHeads(h, _vm, isGroup, isOptimizeMode, headerGroups, renderColumn
|
|
|
10008
10017
|
if (floatingFilterOpts.enabled) {
|
|
10009
10018
|
rowVNs.push(h('tr', {
|
|
10010
10019
|
key: 'ff',
|
|
10011
|
-
class: ['vxe-header--row']
|
|
10020
|
+
class: ['vxe-header--row is--floating-filters', '' + (floatingFilterOpts.rowClassName || '')]
|
|
10012
10021
|
}, renderFilterRows(h, _vm, isOptimizeMode, renderColumnList)));
|
|
10013
10022
|
}
|
|
10014
10023
|
return rowVNs;
|
|
@@ -16675,7 +16684,8 @@ function toHtml($xeTable, opts, columns, datas) {
|
|
|
16675
16684
|
isIndeterminate
|
|
16676
16685
|
} = reactData;
|
|
16677
16686
|
const {
|
|
16678
|
-
mergeBodyCellMaps
|
|
16687
|
+
mergeBodyCellMaps,
|
|
16688
|
+
mergeFooterCellMaps
|
|
16679
16689
|
} = internalData;
|
|
16680
16690
|
const treeOpts = $xeTable.computeTreeOpts;
|
|
16681
16691
|
const {
|
|
@@ -16816,15 +16826,37 @@ function toHtml($xeTable, opts, columns, datas) {
|
|
|
16816
16826
|
const footers = getFooterData($xeTable, opts, footerTableData);
|
|
16817
16827
|
if (footers.length) {
|
|
16818
16828
|
tables.push('<tfoot>');
|
|
16819
|
-
footers.forEach(row => {
|
|
16829
|
+
footers.forEach((row, rIndex) => {
|
|
16820
16830
|
tables.push(`<tr>${columns.map(column => {
|
|
16821
16831
|
const footAlign = column.footerAlign || column.align || allFooterAlign || allAlign;
|
|
16822
16832
|
const classNames = hasEllipsis($xeTable, column, 'showOverflow', allColumnOverflow) ? ['col--ellipsis'] : [];
|
|
16823
16833
|
const cellValue = getFooterCellValue($xeTable, opts, row, column);
|
|
16834
|
+
let rowSpan = 1;
|
|
16835
|
+
let colSpan = 1;
|
|
16836
|
+
if (isMerge) {
|
|
16837
|
+
const _rowIndex = rIndex;
|
|
16838
|
+
const _columnIndex = $xeTable.getVTColumnIndex(column);
|
|
16839
|
+
const spanRest = mergeFooterCellMaps[`${_rowIndex}:${_columnIndex}`];
|
|
16840
|
+
if (spanRest) {
|
|
16841
|
+
const {
|
|
16842
|
+
rowspan,
|
|
16843
|
+
colspan
|
|
16844
|
+
} = spanRest;
|
|
16845
|
+
if (!rowspan || !colspan) {
|
|
16846
|
+
return '';
|
|
16847
|
+
}
|
|
16848
|
+
if (rowspan > 1) {
|
|
16849
|
+
rowSpan = rowspan;
|
|
16850
|
+
}
|
|
16851
|
+
if (colspan > 1) {
|
|
16852
|
+
colSpan = colspan;
|
|
16853
|
+
}
|
|
16854
|
+
}
|
|
16855
|
+
}
|
|
16824
16856
|
if (footAlign) {
|
|
16825
16857
|
classNames.push(`col--${footAlign}`);
|
|
16826
16858
|
}
|
|
16827
|
-
return `<td class="${classNames.join(' ')}" title="${cellValue}"><div ${isPrint ? '' : `style="width: ${column.renderWidth}px"`}>${formatText(cellValue, true)}</div></td>`;
|
|
16859
|
+
return `<td class="${classNames.join(' ')}" rowspan="${rowSpan}" colspan="${colSpan}" title="${cellValue}"><div ${isPrint ? '' : `style="width: ${column.renderWidth}px"`}>${formatText(cellValue, true)}</div></td>`;
|
|
16828
16860
|
}).join('')}</tr>`);
|
|
16829
16861
|
});
|
|
16830
16862
|
tables.push('</tfoot>');
|
|
@@ -20519,6 +20551,9 @@ function renderBody(h, $xeTable) {
|
|
|
20519
20551
|
};
|
|
20520
20552
|
},
|
|
20521
20553
|
inject: {
|
|
20554
|
+
$xeModal: {
|
|
20555
|
+
default: null
|
|
20556
|
+
},
|
|
20522
20557
|
$xeTabs: {
|
|
20523
20558
|
default: null
|
|
20524
20559
|
},
|
|
@@ -20544,6 +20579,7 @@ function renderBody(h, $xeTable) {
|
|
|
20544
20579
|
reLayoutFlag: 0,
|
|
20545
20580
|
footFlag: 0,
|
|
20546
20581
|
kfFlag: 0,
|
|
20582
|
+
layoutReFlag: 0,
|
|
20547
20583
|
mergeFooteCellFlag: 0,
|
|
20548
20584
|
crossTableDragRowInfo: crossTableDragRowGlobal
|
|
20549
20585
|
};
|
|
@@ -21494,11 +21530,21 @@ function renderBody(h, $xeTable) {
|
|
|
21494
21530
|
const props = $xeTable;
|
|
21495
21531
|
return Object.assign({}, table_getConfig().table.undoRedoHistoryConfig, props.undoRedoHistoryConfig);
|
|
21496
21532
|
},
|
|
21497
|
-
|
|
21533
|
+
combineTabsResizeFlag() {
|
|
21498
21534
|
const $xeTable = this;
|
|
21499
21535
|
const $xeTabs = $xeTable.$xeTabs;
|
|
21500
21536
|
return $xeTabs ? $xeTabs.reactData.resizeFlag : null;
|
|
21501
21537
|
},
|
|
21538
|
+
combineModalResizeFlag() {
|
|
21539
|
+
const $xeTable = this;
|
|
21540
|
+
const $xeModal = $xeTable.$xeModal;
|
|
21541
|
+
return $xeModal ? $xeModal.reactData.resizeFlag : null;
|
|
21542
|
+
},
|
|
21543
|
+
combineSplitterResizeFlag() {
|
|
21544
|
+
const $xeTable = this;
|
|
21545
|
+
const $xeSplitter = $xeTable.$xeSplitter;
|
|
21546
|
+
return $xeSplitter ? $xeSplitter.reactData.resizeFlag : null;
|
|
21547
|
+
},
|
|
21502
21548
|
computeVxeLanguage() {
|
|
21503
21549
|
return core_.VxeUI.getLanguage();
|
|
21504
21550
|
},
|
|
@@ -21636,7 +21682,16 @@ function renderBody(h, $xeTable) {
|
|
|
21636
21682
|
});
|
|
21637
21683
|
}
|
|
21638
21684
|
},
|
|
21639
|
-
|
|
21685
|
+
combineTabsResizeFlag() {
|
|
21686
|
+
this.layoutReFlag++;
|
|
21687
|
+
},
|
|
21688
|
+
combineModalResizeFlag() {
|
|
21689
|
+
this.layoutReFlag++;
|
|
21690
|
+
},
|
|
21691
|
+
combineSplitterResizeFlag() {
|
|
21692
|
+
this.layoutReFlag++;
|
|
21693
|
+
},
|
|
21694
|
+
layoutReFlag() {
|
|
21640
21695
|
this.handleGlobalResizeEvent();
|
|
21641
21696
|
},
|
|
21642
21697
|
mergeCells(value) {
|
|
@@ -26525,14 +26580,14 @@ function handleSetTreeSelectValue(renderOpts, params) {
|
|
|
26525
26580
|
*/
|
|
26526
26581
|
render_renderer.mixin({
|
|
26527
26582
|
input: {
|
|
26528
|
-
tableAutoFocus:
|
|
26583
|
+
tableAutoFocus: true,
|
|
26529
26584
|
renderTableEdit: nativeEditRender,
|
|
26530
26585
|
renderTableDefault: nativeEditRender,
|
|
26531
26586
|
renderTableFilter: nativeFilterRender,
|
|
26532
26587
|
tableFilterDefaultMethod: handleInputFilterMethod
|
|
26533
26588
|
},
|
|
26534
26589
|
textarea: {
|
|
26535
|
-
tableAutoFocus:
|
|
26590
|
+
tableAutoFocus: true,
|
|
26536
26591
|
renderTableEdit: nativeEditRender
|
|
26537
26592
|
},
|
|
26538
26593
|
select: {
|
|
@@ -26594,7 +26649,7 @@ render_renderer.mixin({
|
|
|
26594
26649
|
tableExportMethod: handleExportSelectMethod
|
|
26595
26650
|
},
|
|
26596
26651
|
VxeInput: {
|
|
26597
|
-
tableAutoFocus:
|
|
26652
|
+
tableAutoFocus: true,
|
|
26598
26653
|
renderTableEdit: defaultEditRender,
|
|
26599
26654
|
renderTableCell(h, renderOpts, params) {
|
|
26600
26655
|
const {
|
|
@@ -26642,7 +26697,7 @@ render_renderer.mixin({
|
|
|
26642
26697
|
}
|
|
26643
26698
|
},
|
|
26644
26699
|
VxeNumberInput: {
|
|
26645
|
-
tableAutoFocus:
|
|
26700
|
+
tableAutoFocus: true,
|
|
26646
26701
|
renderTableEdit: defaultEditRender,
|
|
26647
26702
|
renderTableCell: handleNumberCell,
|
|
26648
26703
|
renderTableFooter(h, renderOpts, params) {
|
|
@@ -26706,7 +26761,7 @@ render_renderer.mixin({
|
|
|
26706
26761
|
}
|
|
26707
26762
|
},
|
|
26708
26763
|
VxeDatePicker: {
|
|
26709
|
-
tableAutoFocus:
|
|
26764
|
+
tableAutoFocus: true,
|
|
26710
26765
|
renderTableEdit: defaultEditRender,
|
|
26711
26766
|
renderTableCell(h, renderOpts, params) {
|
|
26712
26767
|
const props = renderOpts.props || {};
|
|
@@ -26740,7 +26795,7 @@ render_renderer.mixin({
|
|
|
26740
26795
|
tableFilterDefaultMethod: handleFilterMethod
|
|
26741
26796
|
},
|
|
26742
26797
|
VxeDateRangePicker: {
|
|
26743
|
-
tableAutoFocus:
|
|
26798
|
+
tableAutoFocus: true,
|
|
26744
26799
|
renderTableEdit(h, renderOpts, params) {
|
|
26745
26800
|
const {
|
|
26746
26801
|
startField,
|
|
@@ -26863,7 +26918,7 @@ render_renderer.mixin({
|
|
|
26863
26918
|
}
|
|
26864
26919
|
},
|
|
26865
26920
|
VxeTextarea: {
|
|
26866
|
-
tableAutoFocus:
|
|
26921
|
+
tableAutoFocus: true,
|
|
26867
26922
|
renderTableDefault: defaultEditRender,
|
|
26868
26923
|
renderTableEdit: defaultEditRender
|
|
26869
26924
|
},
|
|
@@ -26885,7 +26940,7 @@ render_renderer.mixin({
|
|
|
26885
26940
|
}
|
|
26886
26941
|
},
|
|
26887
26942
|
VxeSelect: {
|
|
26888
|
-
tableAutoFocus:
|
|
26943
|
+
tableAutoFocus: true,
|
|
26889
26944
|
renderTableEdit: defaultSelectEditRender,
|
|
26890
26945
|
renderTableDefault: defaultSelectEditRender,
|
|
26891
26946
|
renderTableCell(h, renderOpts, params) {
|
|
@@ -27073,7 +27128,7 @@ render_renderer.mixin({
|
|
|
27073
27128
|
tableExportMethod: handleExportSelectMethod
|
|
27074
27129
|
},
|
|
27075
27130
|
VxeTreeSelect: {
|
|
27076
|
-
tableAutoFocus:
|
|
27131
|
+
tableAutoFocus: true,
|
|
27077
27132
|
renderTableEdit: defaultTableOrTreeSelectEditRender,
|
|
27078
27133
|
renderTableCell(h, renderOpts, params) {
|
|
27079
27134
|
const {
|
|
@@ -27167,8 +27222,52 @@ render_renderer.mixin({
|
|
|
27167
27222
|
tableCellPasteMethod: handleSetTreeSelectValue,
|
|
27168
27223
|
tableExportMethod: handleExportTreeSelectMethod
|
|
27169
27224
|
},
|
|
27225
|
+
VxeCascader: {
|
|
27226
|
+
tableAutoFocus: true,
|
|
27227
|
+
renderTableEdit: defaultTableOrTreeSelectEditRender,
|
|
27228
|
+
renderTableCell(h, renderOpts, params) {
|
|
27229
|
+
const {
|
|
27230
|
+
options,
|
|
27231
|
+
optionGroups
|
|
27232
|
+
} = renderOpts;
|
|
27233
|
+
const {
|
|
27234
|
+
$table,
|
|
27235
|
+
row,
|
|
27236
|
+
column
|
|
27237
|
+
} = params;
|
|
27238
|
+
const opSize = options ? options.length : null;
|
|
27239
|
+
const ogSize = optionGroups ? optionGroups.length : null;
|
|
27240
|
+
const {
|
|
27241
|
+
cellResult
|
|
27242
|
+
} = $table.effectCellData(row, column, {
|
|
27243
|
+
key: 'render_table_cell',
|
|
27244
|
+
isChanged({
|
|
27245
|
+
oldValue,
|
|
27246
|
+
cellValue
|
|
27247
|
+
}) {
|
|
27248
|
+
return oldValue && oldValue[0] === cellValue && oldValue[1] === opSize && oldValue[2] === ogSize;
|
|
27249
|
+
},
|
|
27250
|
+
setValue({
|
|
27251
|
+
cellValue
|
|
27252
|
+
}) {
|
|
27253
|
+
return [cellValue, opSize, ogSize];
|
|
27254
|
+
},
|
|
27255
|
+
getResult({
|
|
27256
|
+
cellValue
|
|
27257
|
+
}) {
|
|
27258
|
+
return handleTreeSelectCellValue(cellValue, renderOpts);
|
|
27259
|
+
}
|
|
27260
|
+
});
|
|
27261
|
+
// const cellResult = getTreeSelectCellValue(renderOpts, params)
|
|
27262
|
+
return getCellLabelVNs(h, renderOpts, params, cellResult);
|
|
27263
|
+
},
|
|
27264
|
+
tableCellFormatter: handleFormatTreeSelect,
|
|
27265
|
+
tableCellCopyMethod: handleFormatTreeSelect,
|
|
27266
|
+
tableCellPasteMethod: handleSetTreeSelectValue,
|
|
27267
|
+
tableExportMethod: handleExportTreeSelectMethod
|
|
27268
|
+
},
|
|
27170
27269
|
VxeTableSelect: {
|
|
27171
|
-
tableAutoFocus:
|
|
27270
|
+
tableAutoFocus: true,
|
|
27172
27271
|
renderTableEdit: defaultTableOrTreeSelectEditRender,
|
|
27173
27272
|
renderTableCell(h, renderOpts, params) {
|
|
27174
27273
|
const {
|
|
@@ -27212,7 +27311,7 @@ render_renderer.mixin({
|
|
|
27212
27311
|
tableExportMethod: handleExportTreeSelectMethod
|
|
27213
27312
|
},
|
|
27214
27313
|
VxeColorPicker: {
|
|
27215
|
-
tableAutoFocus:
|
|
27314
|
+
tableAutoFocus: true,
|
|
27216
27315
|
renderTableEdit(h, renderOpts, params) {
|
|
27217
27316
|
const {
|
|
27218
27317
|
row,
|
|
@@ -27246,7 +27345,7 @@ render_renderer.mixin({
|
|
|
27246
27345
|
}
|
|
27247
27346
|
},
|
|
27248
27347
|
VxeIconPicker: {
|
|
27249
|
-
tableAutoFocus:
|
|
27348
|
+
tableAutoFocus: true,
|
|
27250
27349
|
renderTableEdit(h, renderOpts, params) {
|
|
27251
27350
|
const {
|
|
27252
27351
|
row,
|
|
@@ -27358,7 +27457,7 @@ render_renderer.mixin({
|
|
|
27358
27457
|
},
|
|
27359
27458
|
// 以下已废弃
|
|
27360
27459
|
$input: {
|
|
27361
|
-
tableAutoFocus: '
|
|
27460
|
+
tableAutoFocus: 'input',
|
|
27362
27461
|
renderTableEdit: oldEditRender,
|
|
27363
27462
|
renderTableCell(h, renderOpts, params) {
|
|
27364
27463
|
const {
|
|
@@ -27390,7 +27489,7 @@ render_renderer.mixin({
|
|
|
27390
27489
|
tableFilterDefaultMethod: handleInputFilterMethod
|
|
27391
27490
|
},
|
|
27392
27491
|
$textarea: {
|
|
27393
|
-
tableAutoFocus: '
|
|
27492
|
+
tableAutoFocus: 'textarea'
|
|
27394
27493
|
},
|
|
27395
27494
|
$button: {
|
|
27396
27495
|
renderTableDefault: oldButtonEditRender
|
|
@@ -27399,7 +27498,7 @@ render_renderer.mixin({
|
|
|
27399
27498
|
renderTableDefault: oldButtonsEditRender
|
|
27400
27499
|
},
|
|
27401
27500
|
$select: {
|
|
27402
|
-
tableAutoFocus: '
|
|
27501
|
+
tableAutoFocus: 'input',
|
|
27403
27502
|
renderTableEdit: oldSelectEditRender,
|
|
27404
27503
|
renderTableDefault: oldSelectEditRender,
|
|
27405
27504
|
renderTableCell(h, renderOpts, params) {
|
|
@@ -27433,13 +27532,13 @@ render_renderer.mixin({
|
|
|
27433
27532
|
tableExportMethod: handleExportSelectMethod
|
|
27434
27533
|
},
|
|
27435
27534
|
$radio: {
|
|
27436
|
-
tableAutoFocus: '
|
|
27535
|
+
tableAutoFocus: 'input'
|
|
27437
27536
|
},
|
|
27438
27537
|
$checkbox: {
|
|
27439
|
-
tableAutoFocus: '
|
|
27538
|
+
tableAutoFocus: 'input'
|
|
27440
27539
|
},
|
|
27441
27540
|
$switch: {
|
|
27442
|
-
tableAutoFocus: '
|
|
27541
|
+
tableAutoFocus: 'button',
|
|
27443
27542
|
renderTableEdit: oldEditRender,
|
|
27444
27543
|
renderTableDefault: oldEditRender
|
|
27445
27544
|
}
|
|
@@ -27863,6 +27962,13 @@ const Toolbar = VxeToolbar;
|
|
|
27863
27962
|
yearLabel: '{0} 年',
|
|
27864
27963
|
monthLabel: '{0} 月'
|
|
27865
27964
|
},
|
|
27965
|
+
cascader: {
|
|
27966
|
+
clearChecked: '清除',
|
|
27967
|
+
allChecked: '全选',
|
|
27968
|
+
total: '已选 {0} 项',
|
|
27969
|
+
close: '关闭',
|
|
27970
|
+
search: '搜索'
|
|
27971
|
+
},
|
|
27866
27972
|
numberInput: {
|
|
27867
27973
|
currencySymbol: '¥'
|
|
27868
27974
|
},
|