vxe-table 4.19.17 → 4.19.19
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/dist/all.esm.js +117 -51
- package/dist/style.css +1 -1
- package/dist/style.min.css +1 -1
- package/es/grid/src/grid.js +1 -1
- package/es/index.css +1 -1
- package/es/index.min.css +1 -1
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/table/module/custom/panel.js +5 -2
- package/es/table/module/edit/hook.js +16 -4
- package/es/table/src/columnInfo.js +6 -6
- package/es/table/src/emits.js +4 -4
- package/es/table/src/footer.js +5 -5
- package/es/table/src/header.js +10 -8
- package/es/table/src/table.js +65 -17
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +4 -3
- package/lib/grid/src/grid.js +1 -1
- package/lib/grid/src/grid.min.js +1 -1
- package/lib/index.css +1 -1
- package/lib/index.min.css +1 -1
- package/lib/index.umd.js +1012 -973
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/module/custom/panel.js +5 -2
- package/lib/table/module/custom/panel.min.js +1 -1
- package/lib/table/module/edit/hook.js +18 -4
- package/lib/table/module/edit/hook.min.js +1 -1
- package/lib/table/src/columnInfo.js +6 -0
- package/lib/table/src/emits.js +9 -1
- package/lib/table/src/footer.js +5 -4
- package/lib/table/src/footer.min.js +1 -1
- package/lib/table/src/header.js +12 -8
- package/lib/table/src/header.min.js +1 -1
- package/lib/table/src/table.js +7 -5
- package/lib/table/src/table.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 +4 -3
- package/lib/ui/src/log.min.js +1 -1
- package/package.json +3 -3
- package/packages/grid/src/grid.ts +1 -1
- package/packages/table/module/custom/panel.ts +5 -2
- package/packages/table/module/edit/hook.ts +15 -4
- package/packages/table/src/footer.ts +5 -5
- package/packages/table/src/header.ts +10 -8
- package/packages/table/src/table.ts +61 -17
- package/packages/table/src/util.ts +2 -16
- package/packages/ui/src/log.ts +3 -2
- package/styles/theme/dark.scss +1 -1
- package/styles/variable.scss +1 -1
- /package/es/{iconfont.1781876895482.ttf → iconfont.1782286881041.ttf} +0 -0
- /package/es/{iconfont.1781876895482.woff → iconfont.1782286881041.woff} +0 -0
- /package/es/{iconfont.1781876895482.woff2 → iconfont.1782286881041.woff2} +0 -0
- /package/lib/{iconfont.1781876895482.ttf → iconfont.1782286881041.ttf} +0 -0
- /package/lib/{iconfont.1781876895482.woff → iconfont.1782286881041.woff} +0 -0
- /package/lib/{iconfont.1781876895482.woff2 → iconfont.1782286881041.woff2} +0 -0
package/dist/all.esm.js
CHANGED
|
@@ -44,7 +44,7 @@ function eqEmptyValue(cellValue) {
|
|
|
44
44
|
return cellValue === '' || XEUtils.eqNull(cellValue);
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
const version = "4.19.
|
|
47
|
+
const version = "4.19.19";
|
|
48
48
|
VxeUI.version = version;
|
|
49
49
|
VxeUI.tableVersion = version;
|
|
50
50
|
VxeUI.setConfig({
|
|
@@ -743,14 +743,15 @@ function wheelScrollTopTo(diffNum, cb) {
|
|
|
743
743
|
}
|
|
744
744
|
|
|
745
745
|
const { log } = VxeUI;
|
|
746
|
-
const tableVersion = `table v${"4.19.
|
|
746
|
+
const tableVersion = `table v${"4.19.19"}`;
|
|
747
747
|
function createComponentLog(name) {
|
|
748
748
|
const uiVersion = VxeUI.uiVersion ? `ui v${VxeUI.uiVersion}` : '';
|
|
749
749
|
const ganttVersion = VxeUI.ganttVersion ? `gantt v${VxeUI.ganttVersion}` : '';
|
|
750
750
|
const designVersion = VxeUI.designVersion ? `design v${VxeUI.designVersion}` : '';
|
|
751
|
+
const versionInfo = [uiVersion, tableVersion, ganttVersion, designVersion].join(' ');
|
|
751
752
|
return {
|
|
752
|
-
warnLog: log.create('warn',
|
|
753
|
-
errLog: log.create('error',
|
|
753
|
+
warnLog: log.create('warn', versionInfo + '] [' + name),
|
|
754
|
+
errLog: log.create('error', versionInfo + '] [' + name)
|
|
754
755
|
};
|
|
755
756
|
}
|
|
756
757
|
log.create('warn', tableVersion);
|
|
@@ -893,11 +894,11 @@ class ColumnInfo {
|
|
|
893
894
|
// 跨列
|
|
894
895
|
colSpan: 1,
|
|
895
896
|
// 数据排序
|
|
896
|
-
order: null,
|
|
897
|
-
sortTime: 0,
|
|
897
|
+
order: null, // 用于记录排序类型,升序和倒序
|
|
898
|
+
sortTime: 0, // 用于多列的先后顺序
|
|
898
899
|
// 列排序
|
|
899
|
-
sortNumber: 0,
|
|
900
|
-
renderSortNumber: 0,
|
|
900
|
+
sortNumber: 0, // 用于记录自定义列顺序
|
|
901
|
+
renderSortNumber: 0, // 用于记录自定义列顺序
|
|
901
902
|
renderAggFn: '',
|
|
902
903
|
renderAggDigits: null,
|
|
903
904
|
renderAggFormat: null,
|
|
@@ -907,9 +908,9 @@ class ColumnInfo {
|
|
|
907
908
|
renderHeight: 0,
|
|
908
909
|
renderResizeWidth: 0,
|
|
909
910
|
renderAutoWidth: 0,
|
|
910
|
-
resizeWidth: 0,
|
|
911
|
+
resizeWidth: 0, // 手动调整
|
|
911
912
|
renderLeft: 0,
|
|
912
|
-
renderArgs: [],
|
|
913
|
+
renderArgs: [], // 渲染参数可用于扩展
|
|
913
914
|
model: {},
|
|
914
915
|
renderHeader: renderHeader || colConfs.renderHeader,
|
|
915
916
|
renderCell: renderCell || colConfs.renderCell,
|
|
@@ -3816,7 +3817,7 @@ const tableEmits = [
|
|
|
3816
3817
|
'columns-change',
|
|
3817
3818
|
'data-change',
|
|
3818
3819
|
'footer-data-change',
|
|
3819
|
-
'current-change',
|
|
3820
|
+
'current-change', // 已废弃
|
|
3820
3821
|
'current-row-change',
|
|
3821
3822
|
'current-row-disabled',
|
|
3822
3823
|
'current-column-change',
|
|
@@ -3850,7 +3851,7 @@ const tableEmits = [
|
|
|
3850
3851
|
'filter-visible',
|
|
3851
3852
|
'clear-filter',
|
|
3852
3853
|
'clear-all-filter',
|
|
3853
|
-
'resizable-change',
|
|
3854
|
+
'resizable-change', // 废弃
|
|
3854
3855
|
'column-resizable-change',
|
|
3855
3856
|
'row-resizable-change',
|
|
3856
3857
|
'toggle-row-group-expand',
|
|
@@ -3868,7 +3869,7 @@ const tableEmits = [
|
|
|
3868
3869
|
'column-dragend',
|
|
3869
3870
|
'enter-append-row',
|
|
3870
3871
|
'tab-append-row',
|
|
3871
|
-
'edit-actived',
|
|
3872
|
+
'edit-actived', // 废弃
|
|
3872
3873
|
'edit-activated',
|
|
3873
3874
|
'edit-disabled',
|
|
3874
3875
|
'valid-error',
|
|
@@ -3879,7 +3880,7 @@ const tableEmits = [
|
|
|
3879
3880
|
'custom-visible-all',
|
|
3880
3881
|
'custom-fixed-change',
|
|
3881
3882
|
'custom-sort-change',
|
|
3882
|
-
'change-fnr',
|
|
3883
|
+
'change-fnr', // 废弃
|
|
3883
3884
|
'open-fnr',
|
|
3884
3885
|
'show-fnr',
|
|
3885
3886
|
'hide-fnr',
|
|
@@ -4883,7 +4884,7 @@ var TableHeaderComponent = defineVxeComponent({
|
|
|
4883
4884
|
$xeTable.dispatchEvent('columns-change', { visibleColgroups, collectColumn, visibleColumn }, null);
|
|
4884
4885
|
});
|
|
4885
4886
|
};
|
|
4886
|
-
const renderRows = (isGroup, isOptimizeMode, headerGroups,
|
|
4887
|
+
const renderRows = (isGroup, isOptimizeMode, headerGroups, _rowIndex, cols) => {
|
|
4887
4888
|
const $xeGrid = $xeTable.xeGrid;
|
|
4888
4889
|
const $xeGantt = $xeTable.xeGantt;
|
|
4889
4890
|
const { fixedType } = props;
|
|
@@ -4898,7 +4899,7 @@ var TableHeaderComponent = defineVxeComponent({
|
|
|
4898
4899
|
const headerCellOpts = computeHeaderCellOpts.value;
|
|
4899
4900
|
const currCellHeight = getCalcHeight(headerCellOpts.height) || defaultRowHeight;
|
|
4900
4901
|
const { disabledMethod: dragDisabledMethod, isCrossDrag, isPeerDrag } = columnDragOpts;
|
|
4901
|
-
const isLastRow =
|
|
4902
|
+
const isLastRow = _rowIndex === headerGroups.length - 1;
|
|
4902
4903
|
return cols.map((column, $columnIndex) => {
|
|
4903
4904
|
const { type, showHeaderOverflow, headerAlign, align, filters, headerClassName, editRender, cellRender } = column;
|
|
4904
4905
|
const colid = column.id;
|
|
@@ -4926,7 +4927,9 @@ var TableHeaderComponent = defineVxeComponent({
|
|
|
4926
4927
|
$table: $xeTable,
|
|
4927
4928
|
$grid: $xeGrid,
|
|
4928
4929
|
$gantt: $xeGantt,
|
|
4929
|
-
|
|
4930
|
+
rowIndex: _rowIndex,
|
|
4931
|
+
_rowIndex,
|
|
4932
|
+
$rowIndex: _rowIndex,
|
|
4930
4933
|
column,
|
|
4931
4934
|
columnIndex,
|
|
4932
4935
|
$columnIndex,
|
|
@@ -4948,7 +4951,7 @@ var TableHeaderComponent = defineVxeComponent({
|
|
|
4948
4951
|
thAttrs.rowspan = column.rowSpan > 1 ? column.rowSpan : null;
|
|
4949
4952
|
}
|
|
4950
4953
|
if (mergeHeadFlag && mergeHeaderList.length && (showCustomHeader || isLastRow)) {
|
|
4951
|
-
const spanRest = mergeHeaderCellMaps[`${
|
|
4954
|
+
const spanRest = mergeHeaderCellMaps[`${_rowIndex}:${showCustomHeader ? $columnIndex : _columnIndex}`];
|
|
4952
4955
|
if (spanRest) {
|
|
4953
4956
|
const { rowspan, colspan } = spanRest;
|
|
4954
4957
|
if (!rowspan || !colspan) {
|
|
@@ -5164,16 +5167,16 @@ var TableHeaderComponent = defineVxeComponent({
|
|
|
5164
5167
|
const { fixedType } = props;
|
|
5165
5168
|
const { headerRowClassName, headerRowStyle } = tableProps;
|
|
5166
5169
|
const floatingFilterOpts = computeFloatingFilterOpts.value;
|
|
5167
|
-
const rowVNs = headerGroups.map((cols,
|
|
5168
|
-
const params = { $table: $xeTable, $rowIndex, fixed: fixedType, type: renderType$1 };
|
|
5170
|
+
const rowVNs = headerGroups.map((cols, _rowIndex) => {
|
|
5171
|
+
const params = { $table: $xeTable, rowIndex: _rowIndex, _rowIndex, $rowIndex: _rowIndex, fixed: fixedType, type: renderType$1 };
|
|
5169
5172
|
return h('tr', {
|
|
5170
|
-
key:
|
|
5173
|
+
key: _rowIndex,
|
|
5171
5174
|
class: [
|
|
5172
5175
|
'vxe-header--row',
|
|
5173
5176
|
headerRowClassName ? (XEUtils.isFunction(headerRowClassName) ? headerRowClassName(params) : headerRowClassName) : ''
|
|
5174
5177
|
],
|
|
5175
5178
|
style: headerRowStyle ? (XEUtils.isFunction(headerRowStyle) ? headerRowStyle(params) : headerRowStyle) : null
|
|
5176
|
-
}, renderRows(isGroup, isOptimizeMode, headerGroups,
|
|
5179
|
+
}, renderRows(isGroup, isOptimizeMode, headerGroups, _rowIndex, cols));
|
|
5177
5180
|
});
|
|
5178
5181
|
if (floatingFilterOpts.enabled) {
|
|
5179
5182
|
rowVNs.push(h('tr', {
|
|
@@ -5550,17 +5553,17 @@ var TableFooterComponent = defineVxeComponent({
|
|
|
5550
5553
|
const renderHeads = (isOptimizeMode, renderColumnList) => {
|
|
5551
5554
|
const { fixedType, footerTableData } = props;
|
|
5552
5555
|
const { footerRowClassName, footerRowStyle } = tableProps;
|
|
5553
|
-
return footerTableData.map((row,
|
|
5554
|
-
const
|
|
5555
|
-
const rowParams = { $table: $xeTable, row, _rowIndex, $rowIndex, fixed: fixedType, type: renderType };
|
|
5556
|
+
return footerTableData.map((row, _rowIndex) => {
|
|
5557
|
+
const $rowIndex = _rowIndex;
|
|
5558
|
+
const rowParams = { $table: $xeTable, row, rowIndex: _rowIndex, _rowIndex, $rowIndex, fixed: fixedType, type: renderType };
|
|
5556
5559
|
return h('tr', {
|
|
5557
|
-
key:
|
|
5560
|
+
key: _rowIndex,
|
|
5558
5561
|
class: [
|
|
5559
5562
|
'vxe-footer--row',
|
|
5560
5563
|
footerRowClassName ? XEUtils.isFunction(footerRowClassName) ? footerRowClassName(rowParams) : footerRowClassName : ''
|
|
5561
5564
|
],
|
|
5562
5565
|
style: footerRowStyle ? (XEUtils.isFunction(footerRowStyle) ? footerRowStyle(rowParams) : footerRowStyle) : null
|
|
5563
|
-
}, renderRows(isOptimizeMode, renderColumnList, footerTableData, row,
|
|
5566
|
+
}, renderRows(isOptimizeMode, renderColumnList, footerTableData, row, _rowIndex, _rowIndex));
|
|
5564
5567
|
});
|
|
5565
5568
|
};
|
|
5566
5569
|
const renderVN = () => {
|
|
@@ -6697,8 +6700,11 @@ var TableCustomPanelComponent = defineVxeComponent({
|
|
|
6697
6700
|
const resizeParams = {
|
|
6698
6701
|
$table: $xeTable,
|
|
6699
6702
|
column,
|
|
6700
|
-
columnIndex:
|
|
6701
|
-
$columnIndex:
|
|
6703
|
+
columnIndex: $xeTable.getColumnIndex(column),
|
|
6704
|
+
$columnIndex: $xeTable.getVMColumnIndex(column),
|
|
6705
|
+
_columnIndex: $xeTable.getVTColumnIndex(column),
|
|
6706
|
+
rowIndex: -1,
|
|
6707
|
+
_rowIndex: -1,
|
|
6702
6708
|
$rowIndex: -1
|
|
6703
6709
|
};
|
|
6704
6710
|
if (reMinWidth) {
|
|
@@ -9906,16 +9912,28 @@ hooks$5.add('tableEditModule', {
|
|
|
9906
9912
|
*/
|
|
9907
9913
|
getUpdateRecords() {
|
|
9908
9914
|
const { keepSource, treeConfig } = props;
|
|
9909
|
-
const { tableFullData } = internalData;
|
|
9915
|
+
const { tableFullData, tableFullTreeData } = internalData;
|
|
9910
9916
|
const treeOpts = computeTreeOpts.value;
|
|
9917
|
+
const updateRecords = [];
|
|
9911
9918
|
if (keepSource) {
|
|
9912
9919
|
syncActivedCell();
|
|
9913
9920
|
if (treeConfig) {
|
|
9914
|
-
|
|
9921
|
+
const childrenField = treeOpts.children || treeOpts.childrenField;
|
|
9922
|
+
XEUtils.eachTree(tableFullTreeData, row => {
|
|
9923
|
+
if ($xeTable.isUpdateByRow(row)) {
|
|
9924
|
+
updateRecords.push(row);
|
|
9925
|
+
}
|
|
9926
|
+
}, { children: childrenField });
|
|
9927
|
+
}
|
|
9928
|
+
else {
|
|
9929
|
+
tableFullData.forEach((row) => {
|
|
9930
|
+
if ($xeTable.isUpdateByRow(row)) {
|
|
9931
|
+
updateRecords.push(row);
|
|
9932
|
+
}
|
|
9933
|
+
});
|
|
9915
9934
|
}
|
|
9916
|
-
return tableFullData.filter((row) => $xeTable.isUpdateByRow(row));
|
|
9917
9935
|
}
|
|
9918
|
-
return
|
|
9936
|
+
return updateRecords;
|
|
9919
9937
|
},
|
|
9920
9938
|
getActiveRecord() {
|
|
9921
9939
|
warnLog$5('vxe.error.delFunc', ['getActiveRecord', 'getEditCell']);
|
|
@@ -15706,16 +15724,20 @@ var VxeTableComponent = defineVxeComponent({
|
|
|
15706
15724
|
// 已废弃
|
|
15707
15725
|
xegrid: $xeGrid
|
|
15708
15726
|
};
|
|
15709
|
-
const eqCellValue = (
|
|
15710
|
-
const val1 = XEUtils.get(
|
|
15711
|
-
const val2 = XEUtils.get(
|
|
15727
|
+
const eqCellValue = (newRow, oldRow, field) => {
|
|
15728
|
+
const val1 = XEUtils.get(newRow, field);
|
|
15729
|
+
const val2 = XEUtils.get(oldRow, field);
|
|
15730
|
+
let result = false;
|
|
15712
15731
|
if (eqEmptyValue(val1) && eqEmptyValue(val2)) {
|
|
15713
|
-
|
|
15732
|
+
result = true;
|
|
15733
|
+
}
|
|
15734
|
+
else if (XEUtils.isString(val1) || XEUtils.isNumber(val1)) {
|
|
15735
|
+
result = ('' + val1) === ('' + val2);
|
|
15714
15736
|
}
|
|
15715
|
-
|
|
15716
|
-
|
|
15737
|
+
else {
|
|
15738
|
+
result = XEUtils.isEqual(val1, val2);
|
|
15717
15739
|
}
|
|
15718
|
-
return
|
|
15740
|
+
return { newValue: val1, oldValue: val2, result };
|
|
15719
15741
|
};
|
|
15720
15742
|
const handleKeyField = () => {
|
|
15721
15743
|
const keyField = computeRowField.value;
|
|
@@ -20544,18 +20566,57 @@ var VxeTableComponent = defineVxeComponent({
|
|
|
20544
20566
|
}
|
|
20545
20567
|
const row = rowRest.row;
|
|
20546
20568
|
const oRow = sourceDataRowIdData[rowid];
|
|
20547
|
-
if (oRow) {
|
|
20548
|
-
|
|
20549
|
-
|
|
20569
|
+
if (!oRow) {
|
|
20570
|
+
return false;
|
|
20571
|
+
}
|
|
20572
|
+
if (arguments.length > 1) {
|
|
20573
|
+
return !eqCellValue(oRow, row, field).result;
|
|
20574
|
+
}
|
|
20575
|
+
for (let i = 0; i < keepFields.length; i++) {
|
|
20576
|
+
if (!eqCellValue(oRow, row, keepFields[i]).result) {
|
|
20577
|
+
return true;
|
|
20578
|
+
}
|
|
20579
|
+
}
|
|
20580
|
+
}
|
|
20581
|
+
return false;
|
|
20582
|
+
},
|
|
20583
|
+
getUpdateCells() {
|
|
20584
|
+
const { keepSource, treeConfig } = props;
|
|
20585
|
+
const { tableFullData, tableFullTreeData, fullDataRowIdData, sourceDataRowIdData, fullColumnFieldData } = internalData;
|
|
20586
|
+
const treeOpts = computeTreeOpts.value;
|
|
20587
|
+
const keepFields = computeKeepFields.value;
|
|
20588
|
+
const cellList = [];
|
|
20589
|
+
if (keepSource) {
|
|
20590
|
+
const { handleGetRowId } = createHandleGetRowId($xeTable);
|
|
20591
|
+
const handleCell = (item) => {
|
|
20592
|
+
const rowid = handleGetRowId(item);
|
|
20593
|
+
const rowRest = fullDataRowIdData[rowid];
|
|
20594
|
+
// 新增的数据不需要检测
|
|
20595
|
+
if (!rowRest) {
|
|
20596
|
+
return;
|
|
20597
|
+
}
|
|
20598
|
+
const row = rowRest.row;
|
|
20599
|
+
const oRow = sourceDataRowIdData[rowid];
|
|
20600
|
+
if (!oRow) {
|
|
20601
|
+
return;
|
|
20550
20602
|
}
|
|
20551
20603
|
for (let i = 0; i < keepFields.length; i++) {
|
|
20552
|
-
|
|
20553
|
-
|
|
20604
|
+
const field = keepFields[i];
|
|
20605
|
+
const { result, newValue, oldValue } = eqCellValue(oRow, row, field);
|
|
20606
|
+
if (!result) {
|
|
20607
|
+
const column = fullColumnFieldData[field] ? fullColumnFieldData[field].column : null;
|
|
20608
|
+
cellList.push({ row, rowid, column, field, newValue, oldValue });
|
|
20554
20609
|
}
|
|
20555
20610
|
}
|
|
20611
|
+
};
|
|
20612
|
+
if (treeConfig) {
|
|
20613
|
+
XEUtils.eachTree(tableFullTreeData, handleCell, treeOpts);
|
|
20614
|
+
}
|
|
20615
|
+
else {
|
|
20616
|
+
tableFullData.forEach(handleCell);
|
|
20556
20617
|
}
|
|
20557
20618
|
}
|
|
20558
|
-
return
|
|
20619
|
+
return cellList;
|
|
20559
20620
|
},
|
|
20560
20621
|
/**
|
|
20561
20622
|
* 获取表格的可视列,也可以指定索引获取列
|
|
@@ -21845,7 +21906,7 @@ var VxeTableComponent = defineVxeComponent({
|
|
|
21845
21906
|
style: null,
|
|
21846
21907
|
options: [],
|
|
21847
21908
|
column: null,
|
|
21848
|
-
multiple: false,
|
|
21909
|
+
multiple: false, // 选项是覅多选
|
|
21849
21910
|
visible: false
|
|
21850
21911
|
});
|
|
21851
21912
|
}
|
|
@@ -25544,7 +25605,13 @@ var VxeTableComponent = defineVxeComponent({
|
|
|
25544
25605
|
}
|
|
25545
25606
|
if (editOpts.trigger === 'manual') {
|
|
25546
25607
|
if (actived.args && actived.row === row && column !== actived.column) {
|
|
25547
|
-
|
|
25608
|
+
if (editOpts.mode === 'row') {
|
|
25609
|
+
handleChangeCell(evnt, params);
|
|
25610
|
+
}
|
|
25611
|
+
else {
|
|
25612
|
+
checkValidate('blur')
|
|
25613
|
+
.catch((e) => e);
|
|
25614
|
+
}
|
|
25548
25615
|
}
|
|
25549
25616
|
}
|
|
25550
25617
|
else if (!actived.args || row !== actived.row || column !== actived.column) {
|
|
@@ -29453,8 +29520,7 @@ var VxeTableComponent = defineVxeComponent({
|
|
|
29453
29520
|
}
|
|
29454
29521
|
if ((props.showOverflow === true || props.showOverflow === 'tooltip') ||
|
|
29455
29522
|
(props.showHeaderOverflow === true || props.showHeaderOverflow === 'tooltip') ||
|
|
29456
|
-
(props.showFooterOverflow === true || props.showFooterOverflow === 'tooltip')
|
|
29457
|
-
props.tooltipConfig || props.editRules) {
|
|
29523
|
+
(props.showFooterOverflow === true || props.showFooterOverflow === 'tooltip')) {
|
|
29458
29524
|
if (!VxeUITooltipComponent) {
|
|
29459
29525
|
if (props.showOverflow === true) {
|
|
29460
29526
|
errLog$2('vxe.error.errProp', ['show-overflow=true', 'show-overflow=title']);
|
|
@@ -30106,7 +30172,7 @@ var VxeToolbarComponent = defineVxeComponent({
|
|
|
30106
30172
|
const { warnLog, errLog } = createComponentLog('grid');
|
|
30107
30173
|
const { getConfig, getI18n, commands, hooks, useFns, createEvent, globalEvents, GLOBAL_EVENT_KEYS, renderEmptyElement } = VxeUI;
|
|
30108
30174
|
const tableComponentPropKeys = Object.keys(tableProps);
|
|
30109
|
-
const tableComponentMethodKeys = ['clearAll', 'syncData', 'updateData', 'loadData', 'reloadData', 'reloadRow', 'loadColumn', 'reloadColumn', 'getRowNode', 'getColumnNode', 'getRowIndex', 'getVTRowIndex', 'getVMRowIndex', 'getColumnIndex', 'getVTColumnIndex', 'getVMColumnIndex', 'setRow', 'createData', 'createRow', 'revertData', 'clearData', 'isRemoveByRow', 'isInsertByRow', 'isUpdateByRow', 'getColumns', 'getColumnById', 'getColumnByField', 'getTableColumn', 'getFullColumns', 'getData', 'getCheckboxRecords', 'getParentRow', 'getTreeRowChildren', 'getTreeRowLevel', 'getTreeParentRow', 'getRowSeq', 'getRowById', 'getRowid', 'getTableData', 'getFullData', 'setColumnFixed', 'clearColumnFixed', 'setColumnWidth', 'getColumnWidth', 'recalcRowHeight', 'setRowHeightConf', 'getRowHeightConf', 'setRowHeight', 'getRowHeight', 'hideColumn', 'showColumn', 'resetColumn', 'refreshColumn', 'refreshScroll', 'recalculate', 'closeTooltip', 'isAllCheckboxChecked', 'isAllCheckboxIndeterminate', 'getCheckboxIndeterminateRecords', 'setCheckboxRow', 'setCheckboxRowKey', 'isCheckedByCheckboxRow', 'isCheckedByCheckboxRowKey', 'isIndeterminateByCheckboxRow', 'isIndeterminateByCheckboxRowKey', 'toggleCheckboxRow', 'setAllCheckboxRow', 'getRadioReserveRecord', 'clearRadioReserve', 'getCheckboxReserveRecords', 'clearCheckboxReserve', 'toggleAllCheckboxRow', 'clearCheckboxRow', 'setCurrentRow', 'isCheckedByRadioRow', 'isCheckedByRadioRowKey', 'setRadioRow', 'setRadioRowKey', 'clearCurrentRow', 'clearRadioRow', 'getCurrentRecord', 'getRadioRecord', 'getCurrentColumn', 'setCurrentColumn', 'clearCurrentColumn', 'setPendingRow', 'togglePendingRow', 'hasPendingByRow', 'isPendingByRow', 'getPendingRecords', 'clearPendingRow', 'setFilterByEvent', 'sort', 'setSort', 'setSortByEvent', 'clearSort', 'clearSortByEvent', 'isSort', 'getSortColumns', 'closeFilter', 'isFilter', 'clearFilterByEvent', 'isActiveFilterByColumn', 'isRowExpandLoaded', 'clearRowExpandLoaded', 'reloadRowExpand', 'reloadRowExpand', 'toggleRowExpand', 'setAllRowExpand', 'setRowExpand', 'isExpandByRow', 'isRowExpandByRow', 'clearRowExpand', 'clearRowExpandReserve', 'getRowExpandRecords', 'getTreeExpandRecords', 'isTreeExpandLoaded', 'clearTreeExpandLoaded', 'reloadTreeExpand', 'reloadTreeChilds', 'toggleTreeExpand', 'setAllTreeExpand', 'setTreeExpand', 'isTreeExpandByRow', 'clearTreeExpand', 'clearTreeExpandReserve', 'getScroll', 'getScrollData', 'scrollTo', 'scrollToStartRow', 'scrollToEndRow', 'scrollToRow', 'scrollToStartColumn', 'scrollToEndColumn', 'scrollToColumn', 'clearScroll', 'updateFooter', 'updateStatus', 'setMergeCells', 'removeInsertRow', 'removeMergeCells', 'getMergeCells', 'setMergeHeaderCells', 'removeMergeHeaderCells', 'getMergeHeaderCells', 'clearMergeHeaderCells', 'clearMergeCells', 'setMergeFooterItems', 'removeMergeFooterItems', 'getMergeFooterItems', 'clearMergeFooterItems', 'setCustomStoreData', 'getCustomStoreData', 'setRowGroupExpand', 'setRowGroupExpandByField', 'setAllRowGroupExpand', 'clearRowGroupExpand', 'isRowGroupExpandByRow', 'isRowGroupRecord', 'isAggregateRecord', 'isAggregateExpandByRow', 'getAggregateContentByRow', 'getAggregateRowChildren', 'setRowGroups', 'clearRowGroups', 'openTooltip', 'moveColumnTo', 'moveRowTo', 'getCellLabel', 'updateCellLabel', 'clearFormatterCache', 'getFooterCellLabel', 'updateFooterCellLabel', 'clearFooterFormatterCache', 'undo', 'redo', 'effectCellData', 'getCellElement', 'focus', 'blur', 'connect', 'connectToolbar'];
|
|
30175
|
+
const tableComponentMethodKeys = ['clearAll', 'syncData', 'updateData', 'loadData', 'reloadData', 'reloadRow', 'loadColumn', 'reloadColumn', 'getRowNode', 'getColumnNode', 'getRowIndex', 'getVTRowIndex', 'getVMRowIndex', 'getColumnIndex', 'getVTColumnIndex', 'getVMColumnIndex', 'setRow', 'createData', 'createRow', 'revertData', 'clearData', 'isRemoveByRow', 'isInsertByRow', 'isUpdateByRow', 'getColumns', 'getColumnById', 'getColumnByField', 'getTableColumn', 'getFullColumns', 'getData', 'getCheckboxRecords', 'getParentRow', 'getTreeRowChildren', 'getTreeRowLevel', 'getTreeParentRow', 'getRowSeq', 'getRowById', 'getRowid', 'getTableData', 'getFullData', 'setColumnFixed', 'clearColumnFixed', 'setColumnWidth', 'getColumnWidth', 'recalcRowHeight', 'setRowHeightConf', 'getRowHeightConf', 'setRowHeight', 'getRowHeight', 'hideColumn', 'showColumn', 'resetColumn', 'refreshColumn', 'refreshScroll', 'recalculate', 'closeTooltip', 'isAllCheckboxChecked', 'isAllCheckboxIndeterminate', 'getCheckboxIndeterminateRecords', 'setCheckboxRow', 'setCheckboxRowKey', 'isCheckedByCheckboxRow', 'isCheckedByCheckboxRowKey', 'isIndeterminateByCheckboxRow', 'isIndeterminateByCheckboxRowKey', 'toggleCheckboxRow', 'setAllCheckboxRow', 'getRadioReserveRecord', 'clearRadioReserve', 'getCheckboxReserveRecords', 'clearCheckboxReserve', 'toggleAllCheckboxRow', 'clearCheckboxRow', 'setCurrentRow', 'isCheckedByRadioRow', 'isCheckedByRadioRowKey', 'setRadioRow', 'setRadioRowKey', 'clearCurrentRow', 'clearRadioRow', 'getCurrentRecord', 'getRadioRecord', 'getCurrentColumn', 'setCurrentColumn', 'clearCurrentColumn', 'setPendingRow', 'togglePendingRow', 'hasPendingByRow', 'isPendingByRow', 'getPendingRecords', 'clearPendingRow', 'setFilterByEvent', 'sort', 'setSort', 'setSortByEvent', 'clearSort', 'clearSortByEvent', 'isSort', 'getSortColumns', 'closeFilter', 'isFilter', 'clearFilterByEvent', 'isActiveFilterByColumn', 'isRowExpandLoaded', 'clearRowExpandLoaded', 'reloadRowExpand', 'reloadRowExpand', 'toggleRowExpand', 'setAllRowExpand', 'setRowExpand', 'isExpandByRow', 'isRowExpandByRow', 'clearRowExpand', 'clearRowExpandReserve', 'getRowExpandRecords', 'getTreeExpandRecords', 'isTreeExpandLoaded', 'clearTreeExpandLoaded', 'reloadTreeExpand', 'reloadTreeChilds', 'toggleTreeExpand', 'setAllTreeExpand', 'setTreeExpand', 'isTreeExpandByRow', 'clearTreeExpand', 'clearTreeExpandReserve', 'getScroll', 'getScrollData', 'scrollTo', 'scrollToStartRow', 'scrollToEndRow', 'scrollToRow', 'scrollToStartColumn', 'scrollToEndColumn', 'scrollToColumn', 'clearScroll', 'updateFooter', 'updateStatus', 'setMergeCells', 'removeInsertRow', 'removeMergeCells', 'getMergeCells', 'setMergeHeaderCells', 'removeMergeHeaderCells', 'getMergeHeaderCells', 'clearMergeHeaderCells', 'clearMergeCells', 'setMergeFooterItems', 'removeMergeFooterItems', 'getMergeFooterItems', 'clearMergeFooterItems', 'setCustomStoreData', 'getCustomStoreData', 'setRowGroupExpand', 'setRowGroupExpandByField', 'setAllRowGroupExpand', 'clearRowGroupExpand', 'isRowGroupExpandByRow', 'isRowGroupRecord', 'isAggregateRecord', 'isAggregateExpandByRow', 'getAggregateContentByRow', 'getAggregateRowChildren', 'setRowGroups', 'clearRowGroups', 'openTooltip', 'moveColumnTo', 'moveRowTo', 'getCellLabel', 'updateCellLabel', 'clearFormatterCache', 'getFooterCellLabel', 'updateFooterCellLabel', 'clearFooterFormatterCache', 'getUpdateCells', 'undo', 'redo', 'effectCellData', 'getCellElement', 'focus', 'blur', 'connect', 'connectToolbar'];
|
|
30110
30176
|
function createReactData() {
|
|
30111
30177
|
var _a;
|
|
30112
30178
|
return {
|