vxe-table 3.15.35 → 3.15.37
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/grid/src/grid.js +50 -17
- package/es/style.css +1 -1
- package/es/table/module/edit/mixin.js +2 -2
- package/es/table/module/keyboard/mixin.js +4 -1
- package/es/table/module/validator/mixin.js +11 -2
- package/es/table/src/methods.js +56 -22
- package/es/toolbar/src/toolbar.js +0 -6
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/grid/src/grid.js +57 -24
- package/lib/grid/src/grid.min.js +1 -1
- package/lib/index.umd.js +141 -63
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/table/module/edit/mixin.js +2 -2
- package/lib/table/module/edit/mixin.min.js +1 -1
- package/lib/table/module/keyboard/mixin.js +2 -2
- package/lib/table/module/keyboard/mixin.min.js +1 -1
- package/lib/table/module/validator/mixin.js +14 -2
- package/lib/table/module/validator/mixin.min.js +1 -1
- package/lib/table/src/methods.js +63 -24
- package/lib/table/src/methods.min.js +1 -1
- package/lib/toolbar/src/toolbar.js +0 -4
- package/lib/toolbar/src/toolbar.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 +1 -1
- package/packages/grid/src/grid.ts +56 -17
- package/packages/table/module/edit/mixin.ts +2 -2
- package/packages/table/module/keyboard/mixin.ts +4 -1
- package/packages/table/module/validator/mixin.ts +11 -3
- package/packages/table/src/methods.ts +60 -23
- package/packages/toolbar/src/toolbar.ts +0 -4
- /package/es/{iconfont.1749202936550.ttf → iconfont.1749517658045.ttf} +0 -0
- /package/es/{iconfont.1749202936550.woff → iconfont.1749517658045.woff} +0 -0
- /package/es/{iconfont.1749202936550.woff2 → iconfont.1749517658045.woff2} +0 -0
- /package/lib/{iconfont.1749202936550.ttf → iconfont.1749517658045.ttf} +0 -0
- /package/lib/{iconfont.1749202936550.woff → iconfont.1749517658045.woff} +0 -0
- /package/lib/{iconfont.1749202936550.woff2 → iconfont.1749517658045.woff2} +0 -0
package/lib/index.umd.js
CHANGED
|
@@ -2002,7 +2002,7 @@ function getClass(property, params) {
|
|
|
2002
2002
|
;// CONCATENATED MODULE: ./packages/ui/index.ts
|
|
2003
2003
|
|
|
2004
2004
|
|
|
2005
|
-
const version = "3.15.
|
|
2005
|
+
const version = "3.15.37";
|
|
2006
2006
|
core_.VxeUI.version = version;
|
|
2007
2007
|
core_.VxeUI.tableVersion = version;
|
|
2008
2008
|
core_.VxeUI.setConfig({
|
|
@@ -2646,7 +2646,7 @@ function isNodeElement(elem) {
|
|
|
2646
2646
|
const {
|
|
2647
2647
|
log: log_log
|
|
2648
2648
|
} = core_.VxeUI;
|
|
2649
|
-
const log_version = `table v${"3.15.
|
|
2649
|
+
const log_version = `table v${"3.15.37"}`;
|
|
2650
2650
|
const warnLog = log_log.create('warn', log_version);
|
|
2651
2651
|
const errLog = log_log.create('error', log_version);
|
|
2652
2652
|
;// CONCATENATED MODULE: ./packages/table/src/columnInfo.ts
|
|
@@ -5497,7 +5497,17 @@ function cacheColumnMap($xeTable) {
|
|
|
5497
5497
|
reactData.expandColumn = expandColumn;
|
|
5498
5498
|
reactData.isAllOverflow = isAllOverflow;
|
|
5499
5499
|
}
|
|
5500
|
-
|
|
5500
|
+
function updateScrollXStatus($xeTable, fullColumn) {
|
|
5501
|
+
const reactData = $xeTable;
|
|
5502
|
+
const internalData = $xeTable;
|
|
5503
|
+
const virtualXOpts = $xeTable.computeVirtualXOpts;
|
|
5504
|
+
const allCols = fullColumn || internalData.tableFullColumn;
|
|
5505
|
+
// 如果gt为0,则总是启用
|
|
5506
|
+
const scrollXLoad = !!virtualXOpts.enabled && virtualXOpts.gt > -1 && (virtualXOpts.gt === 0 || virtualXOpts.gt < allCols.length);
|
|
5507
|
+
reactData.scrollXLoad = scrollXLoad;
|
|
5508
|
+
return scrollXLoad;
|
|
5509
|
+
}
|
|
5510
|
+
function updateScrollYStatus($xeTable, fullData) {
|
|
5501
5511
|
const props = $xeTable;
|
|
5502
5512
|
const reactData = $xeTable;
|
|
5503
5513
|
const internalData = $xeTable;
|
|
@@ -5514,7 +5524,7 @@ const updateScrollYStatus = ($xeTable, fullData) => {
|
|
|
5514
5524
|
const scrollYLoad = (transform || !treeConfig) && !!virtualYOpts.enabled && virtualYOpts.gt > -1 && (virtualYOpts.gt === 0 || virtualYOpts.gt < allList.length);
|
|
5515
5525
|
reactData.scrollYLoad = scrollYLoad;
|
|
5516
5526
|
return scrollYLoad;
|
|
5517
|
-
}
|
|
5527
|
+
}
|
|
5518
5528
|
/**
|
|
5519
5529
|
* 展开与收起树节点
|
|
5520
5530
|
* @param rows
|
|
@@ -8692,7 +8702,6 @@ function parseColumns($xeTable, isReset) {
|
|
|
8692
8702
|
isGroup,
|
|
8693
8703
|
columnStore
|
|
8694
8704
|
} = reactData;
|
|
8695
|
-
const virtualXOpts = $xeTable.computeVirtualXOpts;
|
|
8696
8705
|
const {
|
|
8697
8706
|
collectColumn,
|
|
8698
8707
|
tableFullColumn,
|
|
@@ -8752,15 +8761,16 @@ function parseColumns($xeTable, isReset) {
|
|
|
8752
8761
|
});
|
|
8753
8762
|
}
|
|
8754
8763
|
const visibleColumn = leftList.concat(centerList).concat(rightList);
|
|
8755
|
-
|
|
8756
|
-
|
|
8764
|
+
internalData.visibleColumn = visibleColumn;
|
|
8765
|
+
updateColumnOffsetLeft($xeTable);
|
|
8766
|
+
const sXLoad = updateScrollXStatus($xeTable);
|
|
8757
8767
|
reactData.hasFixedColumn = leftList.length > 0 || rightList.length > 0;
|
|
8758
8768
|
Object.assign(columnStore, {
|
|
8759
8769
|
leftList,
|
|
8760
8770
|
centerList,
|
|
8761
8771
|
rightList
|
|
8762
8772
|
});
|
|
8763
|
-
if (
|
|
8773
|
+
if (sXLoad) {
|
|
8764
8774
|
// if (showOverflow) {
|
|
8765
8775
|
// if (!rowOpts.height) {
|
|
8766
8776
|
// const errColumn = internalData.tableFullColumn.find(column => column.showOverflow === false)
|
|
@@ -8798,7 +8808,6 @@ function parseColumns($xeTable, isReset) {
|
|
|
8798
8808
|
$xeTable.clearMergeCells();
|
|
8799
8809
|
$xeTable.clearMergeFooterItems();
|
|
8800
8810
|
}
|
|
8801
|
-
reactData.scrollXLoad = scrollXLoad;
|
|
8802
8811
|
visibleColumn.forEach((column, index) => {
|
|
8803
8812
|
const colid = column.id;
|
|
8804
8813
|
const colRest = fullColumnIdData[colid];
|
|
@@ -8806,7 +8815,6 @@ function parseColumns($xeTable, isReset) {
|
|
|
8806
8815
|
colRest._index = index;
|
|
8807
8816
|
}
|
|
8808
8817
|
});
|
|
8809
|
-
internalData.visibleColumn = visibleColumn;
|
|
8810
8818
|
handleTableColumn($xeTable);
|
|
8811
8819
|
if (isReset) {
|
|
8812
8820
|
return $xeTable.updateFooter().then(() => {
|
|
@@ -9495,31 +9503,42 @@ const Methods = {
|
|
|
9495
9503
|
* @param {String} field 字段名
|
|
9496
9504
|
*/
|
|
9497
9505
|
reloadRow(row, record, field) {
|
|
9506
|
+
const $xeTable = this;
|
|
9507
|
+
const props = $xeTable;
|
|
9508
|
+
const reactData = $xeTable;
|
|
9509
|
+
const internalData = $xeTable;
|
|
9510
|
+
const {
|
|
9511
|
+
keepSource
|
|
9512
|
+
} = props;
|
|
9498
9513
|
const {
|
|
9499
|
-
keepSource,
|
|
9500
|
-
tableSourceData,
|
|
9501
9514
|
tableData
|
|
9502
|
-
} =
|
|
9515
|
+
} = reactData;
|
|
9516
|
+
const {
|
|
9517
|
+
sourceDataRowIdData
|
|
9518
|
+
} = internalData;
|
|
9503
9519
|
if (keepSource) {
|
|
9504
|
-
|
|
9505
|
-
|
|
9520
|
+
if ($xeTable.isAggregateRecord(row)) {
|
|
9521
|
+
return $xeTable.$nextTick();
|
|
9522
|
+
}
|
|
9523
|
+
const oRow = sourceDataRowIdData[getRowid($xeTable, row)];
|
|
9506
9524
|
if (oRow && row) {
|
|
9507
9525
|
if (field) {
|
|
9508
|
-
const newValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(record || row, field);
|
|
9526
|
+
const newValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().clone(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(record || row, field), true);
|
|
9509
9527
|
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().set(row, field, newValue);
|
|
9510
9528
|
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().set(oRow, field, newValue);
|
|
9511
9529
|
} else {
|
|
9512
|
-
const
|
|
9513
|
-
|
|
9514
|
-
}, true);
|
|
9530
|
+
const rowkey = getRowkey($xeTable);
|
|
9531
|
+
const rowid = getRowid($xeTable, row);
|
|
9532
|
+
const newRecord = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().clone(Object.assign({}, record), true);
|
|
9533
|
+
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().set(newRecord, rowkey, rowid);
|
|
9515
9534
|
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().destructuring(oRow, Object.assign(row, newRecord));
|
|
9516
9535
|
}
|
|
9517
9536
|
}
|
|
9518
|
-
|
|
9537
|
+
reactData.tableData = tableData.slice(0);
|
|
9519
9538
|
} else {
|
|
9520
9539
|
errLog('vxe.error.reqProp', ['keep-source']);
|
|
9521
9540
|
}
|
|
9522
|
-
return
|
|
9541
|
+
return $xeTable.$nextTick();
|
|
9523
9542
|
},
|
|
9524
9543
|
/**
|
|
9525
9544
|
* 加载列配置
|
|
@@ -9528,10 +9547,28 @@ const Methods = {
|
|
|
9528
9547
|
*/
|
|
9529
9548
|
loadColumn(columns) {
|
|
9530
9549
|
const $xeTable = this;
|
|
9531
|
-
const
|
|
9550
|
+
const internalData = $xeTable;
|
|
9551
|
+
const {
|
|
9552
|
+
lastScrollLeft,
|
|
9553
|
+
lastScrollTop
|
|
9554
|
+
} = internalData;
|
|
9555
|
+
const collectColumn = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().mapTree(columns, column => cell.createColumn($xeTable, column), {
|
|
9532
9556
|
children: 'children'
|
|
9533
9557
|
});
|
|
9534
|
-
return handleColumn($xeTable, collectColumn)
|
|
9558
|
+
return handleColumn($xeTable, collectColumn).then(() => {
|
|
9559
|
+
let targetScrollLeft = lastScrollLeft;
|
|
9560
|
+
let targetScrollTop = lastScrollTop;
|
|
9561
|
+
const virtualXOpts = $xeTable.computeVirtualXOpts;
|
|
9562
|
+
const virtualYOpts = $xeTable.computeVirtualYOpts;
|
|
9563
|
+
// 是否在更新数据之后自动滚动重置滚动条
|
|
9564
|
+
if (virtualXOpts.scrollToLeftOnChange) {
|
|
9565
|
+
targetScrollLeft = 0;
|
|
9566
|
+
}
|
|
9567
|
+
if (virtualYOpts.scrollToTopOnChange) {
|
|
9568
|
+
targetScrollTop = 0;
|
|
9569
|
+
}
|
|
9570
|
+
restoreScrollLocation($xeTable, targetScrollLeft, targetScrollTop);
|
|
9571
|
+
});
|
|
9535
9572
|
},
|
|
9536
9573
|
/**
|
|
9537
9574
|
* 加载列配置并恢复到初始状态
|
|
@@ -11609,7 +11646,7 @@ const Methods = {
|
|
|
11609
11646
|
return new Promise(resolve => {
|
|
11610
11647
|
// 还原滚动条位置
|
|
11611
11648
|
if (lastScrollLeft || lastScrollTop) {
|
|
11612
|
-
return restoreScrollLocation($xeTable, lastScrollLeft, lastScrollTop).then(
|
|
11649
|
+
return restoreScrollLocation($xeTable, lastScrollLeft, lastScrollTop).then(() => {
|
|
11613
11650
|
// 存在滚动行为未结束情况
|
|
11614
11651
|
setTimeout(resolve, 10);
|
|
11615
11652
|
});
|
|
@@ -17109,15 +17146,15 @@ funcs.forEach(name => {
|
|
|
17109
17146
|
Methods[name] = function (...args) {
|
|
17110
17147
|
if (!this[`_${name}`]) {
|
|
17111
17148
|
if ('openExport,openPrint,exportData,openImport,importData,saveFile,readFile,importByFile,print'.split(',').includes(name)) {
|
|
17112
|
-
errLog('vxe.error.reqModule', ['
|
|
17149
|
+
errLog('vxe.error.reqModule', ['Export']);
|
|
17113
17150
|
} else if ('fullValidate,validate'.split(',').includes(name)) {
|
|
17114
|
-
errLog('vxe.error.reqModule', ['
|
|
17151
|
+
errLog('vxe.error.reqModule', ['Validator']);
|
|
17115
17152
|
} else if ('setFilter,openFilter,clearFilter,getCheckedFilters'.split(',').includes(name)) {
|
|
17116
|
-
errLog('vxe.error.reqModule', ['
|
|
17153
|
+
errLog('vxe.error.reqModule', ['Filter']);
|
|
17117
17154
|
} else if ('insert,insertAt,insertNextAt,remove,removeCheckboxRow,removeRadioRow,removeCurrentRow,getRecordset,getInsertRecords,getRemoveRecords,getUpdateRecords,getEditRecord,getActiveRecord,isEditByRow,isActiveByRow,setEditRow,setActiveRow,setEditCell,setActiveCell'.split(',').includes(name)) {
|
|
17118
|
-
errLog('vxe.error.reqModule', ['
|
|
17155
|
+
errLog('vxe.error.reqModule', ['Edit']);
|
|
17119
17156
|
} else if ('openCustom'.split(',').includes(name)) {
|
|
17120
|
-
errLog('vxe.error.reqModule', ['
|
|
17157
|
+
errLog('vxe.error.reqModule', ['Custom']);
|
|
17121
17158
|
}
|
|
17122
17159
|
}
|
|
17123
17160
|
return this[`_${name}`] ? this[`_${name}`](...args) : null;
|
|
@@ -22902,7 +22939,7 @@ function handleEditActive($xeTable, params, evnt, isFocus, isPos) {
|
|
|
22902
22939
|
params.cell = cell;
|
|
22903
22940
|
if (cell && isEnableConf(editConfig) && isEnableConf(editRender)) {
|
|
22904
22941
|
// 激活编辑
|
|
22905
|
-
if (!$xeTable.isPendingByRow(row)) {
|
|
22942
|
+
if (!$xeTable.isPendingByRow(row) && !$xeTable.isAggregateRecord(row)) {
|
|
22906
22943
|
if (actived.row !== row || (mode === 'cell' ? actived.column !== column : false)) {
|
|
22907
22944
|
// 判断是否禁用编辑
|
|
22908
22945
|
let type = 'edit-disabled';
|
|
@@ -23010,7 +23047,7 @@ function handleEditCell($xeTable, row, fieldOrColumn, isPos) {
|
|
|
23010
23047
|
editConfig
|
|
23011
23048
|
} = props;
|
|
23012
23049
|
const column = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isString(fieldOrColumn) ? $xeTable.getColumnByField(fieldOrColumn) : fieldOrColumn;
|
|
23013
|
-
if (row && column && isEnableConf(editConfig) && isEnableConf(column.editRender)) {
|
|
23050
|
+
if (row && column && isEnableConf(editConfig) && isEnableConf(column.editRender) && !$xeTable.isAggregateRecord(row)) {
|
|
23014
23051
|
return Promise.resolve(isPos ? $xeTable.scrollToRow(row, column) : null).then(() => {
|
|
23015
23052
|
const cell = $xeTable.getCellElement(row, column);
|
|
23016
23053
|
if (cell) {
|
|
@@ -25940,8 +25977,8 @@ function handleMoveSelected($xeTable, evnt, args, isLeftArrow, isUpArrow, isRigh
|
|
|
25940
25977
|
let mouseScrollSpaceSize = 1;
|
|
25941
25978
|
const triggerEvent = (type, evnt) => {
|
|
25942
25979
|
this.emitEvent(`checkbox-range-${type}`, {
|
|
25943
|
-
records: this.getCheckboxRecords(),
|
|
25944
|
-
reserves: this.getCheckboxReserveRecords()
|
|
25980
|
+
records: () => this.getCheckboxRecords(),
|
|
25981
|
+
reserves: () => this.getCheckboxReserveRecords()
|
|
25945
25982
|
}, evnt);
|
|
25946
25983
|
};
|
|
25947
25984
|
const handleChecked = evnt => {
|
|
@@ -26353,19 +26390,23 @@ function checkRuleStatus(rule, val) {
|
|
|
26353
26390
|
beginValidate(rows, cols, cb, isFull) {
|
|
26354
26391
|
const $xeTable = this;
|
|
26355
26392
|
const props = $xeTable;
|
|
26393
|
+
const reactData = $xeTable;
|
|
26356
26394
|
const internalData = $xeTable;
|
|
26357
26395
|
const validRest = {};
|
|
26358
26396
|
const {
|
|
26359
26397
|
editRules,
|
|
26360
26398
|
treeConfig
|
|
26361
26399
|
} = props;
|
|
26400
|
+
const {
|
|
26401
|
+
isRowGroupStatus
|
|
26402
|
+
} = reactData;
|
|
26362
26403
|
const {
|
|
26363
26404
|
afterFullData,
|
|
26364
26405
|
pendingRowMaps,
|
|
26365
26406
|
removeRowMaps
|
|
26366
26407
|
} = internalData;
|
|
26367
26408
|
const treeOpts = $xeTable.computeTreeOpts;
|
|
26368
|
-
const
|
|
26409
|
+
const aggregateOpts = $xeTable.computeAggregateOpts;
|
|
26369
26410
|
let validList;
|
|
26370
26411
|
if (rows === true) {
|
|
26371
26412
|
validList = afterFullData;
|
|
@@ -26396,6 +26437,9 @@ function checkRuleStatus(rule, val) {
|
|
|
26396
26437
|
if (pendingRowMaps[rowid]) {
|
|
26397
26438
|
return;
|
|
26398
26439
|
}
|
|
26440
|
+
if ($xeTable.isAggregateRecord(row)) {
|
|
26441
|
+
return;
|
|
26442
|
+
}
|
|
26399
26443
|
if (isFull || !this.validRuleErr) {
|
|
26400
26444
|
const colVailds = [];
|
|
26401
26445
|
columns.forEach(column => {
|
|
@@ -26435,7 +26479,12 @@ function checkRuleStatus(rule, val) {
|
|
|
26435
26479
|
rowValidErrs.push(Promise.all(colVailds));
|
|
26436
26480
|
}
|
|
26437
26481
|
};
|
|
26438
|
-
if (
|
|
26482
|
+
if (isRowGroupStatus) {
|
|
26483
|
+
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(validList, handleVaild, {
|
|
26484
|
+
children: aggregateOpts.mapChildrenField
|
|
26485
|
+
});
|
|
26486
|
+
} else if (treeConfig) {
|
|
26487
|
+
const childrenField = treeOpts.children || treeOpts.childrenField;
|
|
26439
26488
|
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(validList, handleVaild, {
|
|
26440
26489
|
children: childrenField
|
|
26441
26490
|
});
|
|
@@ -29438,8 +29487,6 @@ const {
|
|
|
29438
29487
|
if ($table) {
|
|
29439
29488
|
if ($table.triggerCustomEvent) {
|
|
29440
29489
|
$table.triggerCustomEvent($event);
|
|
29441
|
-
} else {
|
|
29442
|
-
errLog('vxe.error.reqModule', ['VxeTableCustomModule']);
|
|
29443
29490
|
}
|
|
29444
29491
|
}
|
|
29445
29492
|
},
|
|
@@ -29454,8 +29501,6 @@ const {
|
|
|
29454
29501
|
const $table = connectTable;
|
|
29455
29502
|
if ($table) {
|
|
29456
29503
|
$table.customOpenEvent($event);
|
|
29457
|
-
} else {
|
|
29458
|
-
errLog('vxe.error.reqModule', ['VxeTableCustomModule']);
|
|
29459
29504
|
}
|
|
29460
29505
|
},
|
|
29461
29506
|
handleMouseleaveSettingEvent({
|
|
@@ -30083,6 +30128,39 @@ const {
|
|
|
30083
30128
|
const grid_methods = {};
|
|
30084
30129
|
const propKeys = Object.keys(props);
|
|
30085
30130
|
const defaultLayouts = [['Form'], ['Toolbar', 'Top', 'Table', 'Bottom', 'Pager']];
|
|
30131
|
+
function initPages($xeGrid, propKey) {
|
|
30132
|
+
const props = $xeGrid;
|
|
30133
|
+
const reactData = $xeGrid;
|
|
30134
|
+
const {
|
|
30135
|
+
tablePage
|
|
30136
|
+
} = reactData;
|
|
30137
|
+
const {
|
|
30138
|
+
pagerConfig
|
|
30139
|
+
} = props;
|
|
30140
|
+
const pagerOpts = $xeGrid.computePagerOpts;
|
|
30141
|
+
if (pagerConfig && isEnableConf(pagerOpts)) {
|
|
30142
|
+
if (propKey) {
|
|
30143
|
+
if (pagerOpts[propKey]) {
|
|
30144
|
+
tablePage[propKey] = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(pagerOpts[propKey]);
|
|
30145
|
+
}
|
|
30146
|
+
} else {
|
|
30147
|
+
const {
|
|
30148
|
+
currentPage,
|
|
30149
|
+
pageSize,
|
|
30150
|
+
total
|
|
30151
|
+
} = pagerOpts;
|
|
30152
|
+
if (currentPage) {
|
|
30153
|
+
tablePage.currentPage = currentPage;
|
|
30154
|
+
}
|
|
30155
|
+
if (pageSize) {
|
|
30156
|
+
tablePage.pageSize = pageSize;
|
|
30157
|
+
}
|
|
30158
|
+
if (total) {
|
|
30159
|
+
tablePage.pageSize = total;
|
|
30160
|
+
}
|
|
30161
|
+
}
|
|
30162
|
+
}
|
|
30163
|
+
}
|
|
30086
30164
|
function renderDefaultForm(h, $xeGrid) {
|
|
30087
30165
|
const VxeUIFormComponent = core_.VxeUI.getComponent('VxeForm');
|
|
30088
30166
|
const props = $xeGrid;
|
|
@@ -30652,10 +30730,20 @@ Object.keys(table.methods).forEach(name => {
|
|
|
30652
30730
|
footKeys
|
|
30653
30731
|
};
|
|
30654
30732
|
},
|
|
30655
|
-
|
|
30733
|
+
computeCustomCurrentPageFlag() {
|
|
30656
30734
|
const $xeGrid = this;
|
|
30657
30735
|
const pagerOpts = $xeGrid.computePagerOpts;
|
|
30658
|
-
return
|
|
30736
|
+
return pagerOpts.currentPage;
|
|
30737
|
+
},
|
|
30738
|
+
computeCustomPageSizeFlag() {
|
|
30739
|
+
const $xeGrid = this;
|
|
30740
|
+
const pagerOpts = $xeGrid.computePagerOpts;
|
|
30741
|
+
return pagerOpts.pageSize;
|
|
30742
|
+
},
|
|
30743
|
+
computeCustomTotalFlag() {
|
|
30744
|
+
const $xeGrid = this;
|
|
30745
|
+
const pagerOpts = $xeGrid.computePagerOpts;
|
|
30746
|
+
return pagerOpts.total;
|
|
30659
30747
|
}
|
|
30660
30748
|
},
|
|
30661
30749
|
watch: {
|
|
@@ -30675,8 +30763,17 @@ Object.keys(table.methods).forEach(name => {
|
|
|
30675
30763
|
proxyConfig() {
|
|
30676
30764
|
this.initProxy();
|
|
30677
30765
|
},
|
|
30678
|
-
|
|
30679
|
-
this
|
|
30766
|
+
computeCustomCurrentPageFlag() {
|
|
30767
|
+
const $xeGrid = this;
|
|
30768
|
+
initPages($xeGrid, 'currentPage');
|
|
30769
|
+
},
|
|
30770
|
+
computeCustomPageSizeFlag() {
|
|
30771
|
+
const $xeGrid = this;
|
|
30772
|
+
initPages($xeGrid, 'pageSize');
|
|
30773
|
+
},
|
|
30774
|
+
computeCustomTotalFlag() {
|
|
30775
|
+
const $xeGrid = this;
|
|
30776
|
+
initPages($xeGrid, 'total');
|
|
30680
30777
|
}
|
|
30681
30778
|
},
|
|
30682
30779
|
created() {
|
|
@@ -30710,7 +30807,7 @@ Object.keys(table.methods).forEach(name => {
|
|
|
30710
30807
|
}
|
|
30711
30808
|
}
|
|
30712
30809
|
});
|
|
30713
|
-
|
|
30810
|
+
initPages($xeGrid);
|
|
30714
30811
|
grid_globalEvents.on(this, 'keydown', this.handleGlobalKeydownEvent);
|
|
30715
30812
|
},
|
|
30716
30813
|
mounted() {
|
|
@@ -30803,25 +30900,6 @@ Object.keys(table.methods).forEach(name => {
|
|
|
30803
30900
|
}
|
|
30804
30901
|
});
|
|
30805
30902
|
},
|
|
30806
|
-
initPages() {
|
|
30807
|
-
const {
|
|
30808
|
-
tablePage,
|
|
30809
|
-
pagerConfig,
|
|
30810
|
-
pagerOpts
|
|
30811
|
-
} = this;
|
|
30812
|
-
const {
|
|
30813
|
-
currentPage,
|
|
30814
|
-
pageSize
|
|
30815
|
-
} = pagerOpts;
|
|
30816
|
-
if (pagerConfig) {
|
|
30817
|
-
if (currentPage) {
|
|
30818
|
-
tablePage.currentPage = currentPage;
|
|
30819
|
-
}
|
|
30820
|
-
if (pageSize) {
|
|
30821
|
-
tablePage.pageSize = pageSize;
|
|
30822
|
-
}
|
|
30823
|
-
}
|
|
30824
|
-
},
|
|
30825
30903
|
initProxy() {
|
|
30826
30904
|
const {
|
|
30827
30905
|
proxyInited,
|