vxe-table 3.9.0 → 3.9.2
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/README.md +80 -9
- package/es/grid/src/grid.js +4 -4
- package/es/locale/lang/en-US.js +4 -1
- package/es/locale/lang/es-ES.js +3 -0
- package/es/locale/lang/hu-HU.js +3 -0
- package/es/locale/lang/ja-JP.js +3 -0
- package/es/locale/lang/ko-KR.js +3 -0
- package/es/locale/lang/pt-BR.js +3 -0
- package/es/locale/lang/ru-RU.js +3 -0
- package/es/locale/lang/uk-UA.js +3 -0
- package/es/locale/lang/vi-VN.js +3 -0
- package/es/locale/lang/zh-CHT.js +3 -0
- package/es/locale/lang/zh-CN.js +3 -0
- package/es/style.css +1 -1
- package/es/table/module/edit/mixin.js +2 -16
- package/es/table/src/methods.js +71 -22
- package/es/table/src/table.js +28 -28
- package/es/ui/index.js +2 -2
- package/es/ui/src/log.js +1 -1
- package/lib/grid/src/grid.js +4 -4
- package/lib/grid/src/grid.min.js +1 -1
- package/lib/index.umd.js +133 -86
- package/lib/index.umd.min.js +1 -1
- package/lib/locale/lang/en-US.js +4 -1
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +4 -1
- package/lib/locale/lang/es-ES.js +3 -0
- package/lib/locale/lang/es-ES.min.js +1 -1
- package/lib/locale/lang/es-ES.umd.js +3 -0
- package/lib/locale/lang/hu-HU.js +3 -0
- package/lib/locale/lang/hu-HU.min.js +1 -1
- package/lib/locale/lang/hu-HU.umd.js +3 -0
- package/lib/locale/lang/ja-JP.js +3 -0
- package/lib/locale/lang/ja-JP.min.js +1 -1
- package/lib/locale/lang/ja-JP.umd.js +3 -0
- package/lib/locale/lang/ko-KR.js +3 -0
- package/lib/locale/lang/ko-KR.min.js +1 -1
- package/lib/locale/lang/ko-KR.umd.js +3 -0
- package/lib/locale/lang/pt-BR.js +3 -0
- package/lib/locale/lang/pt-BR.min.js +1 -1
- package/lib/locale/lang/pt-BR.umd.js +3 -0
- package/lib/locale/lang/ru-RU.js +3 -0
- package/lib/locale/lang/ru-RU.min.js +1 -1
- package/lib/locale/lang/ru-RU.umd.js +3 -0
- package/lib/locale/lang/uk-UA.js +3 -0
- package/lib/locale/lang/uk-UA.min.js +1 -1
- package/lib/locale/lang/uk-UA.umd.js +3 -0
- package/lib/locale/lang/vi-VN.js +3 -0
- package/lib/locale/lang/vi-VN.min.js +1 -1
- package/lib/locale/lang/zh-CHT.js +3 -0
- package/lib/locale/lang/zh-CHT.min.js +1 -1
- package/lib/locale/lang/zh-CHT.umd.js +3 -0
- package/lib/locale/lang/zh-CN.js +3 -0
- package/lib/locale/lang/zh-CN.min.js +1 -1
- package/lib/locale/lang/zh-CN.umd.js +3 -0
- package/lib/style.css +1 -1
- package/lib/table/module/edit/mixin.js +2 -16
- package/lib/table/module/edit/mixin.min.js +1 -1
- package/lib/table/src/methods.js +93 -35
- package/lib/table/src/methods.min.js +1 -1
- package/lib/table/src/table.js +28 -28
- package/lib/table/src/table.min.js +1 -1
- package/lib/ui/index.js +2 -2
- 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/grid/src/grid.ts +4 -4
- package/packages/locale/lang/en-US.ts +4 -1
- package/packages/locale/lang/es-ES.ts +3 -0
- package/packages/locale/lang/hu-HU.ts +3 -0
- package/packages/locale/lang/ja-JP.ts +3 -0
- package/packages/locale/lang/ko-KR.ts +3 -0
- package/packages/locale/lang/pt-BR.ts +3 -0
- package/packages/locale/lang/ru-RU.ts +3 -0
- package/packages/locale/lang/uk-UA.ts +3 -0
- package/packages/locale/lang/vi-VN.ts +3 -0
- package/packages/locale/lang/zh-CHT.ts +3 -0
- package/packages/locale/lang/zh-CN.ts +3 -0
- package/packages/table/module/edit/mixin.ts +2 -16
- package/packages/table/src/methods.ts +73 -22
- package/packages/table/src/table.ts +28 -28
- /package/es/{iconfont.1728348263835.ttf → iconfont.1728637870047.ttf} +0 -0
- /package/es/{iconfont.1728348263835.woff → iconfont.1728637870047.woff} +0 -0
- /package/es/{iconfont.1728348263835.woff2 → iconfont.1728637870047.woff2} +0 -0
- /package/lib/{iconfont.1728348263835.ttf → iconfont.1728637870047.ttf} +0 -0
- /package/lib/{iconfont.1728348263835.woff → iconfont.1728637870047.woff} +0 -0
- /package/lib/{iconfont.1728348263835.woff2 → iconfont.1728637870047.woff2} +0 -0
package/lib/index.umd.js
CHANGED
|
@@ -2220,9 +2220,9 @@ function getClass(property, params) {
|
|
|
2220
2220
|
;// CONCATENATED MODULE: ./packages/ui/index.ts
|
|
2221
2221
|
|
|
2222
2222
|
|
|
2223
|
-
const version = "3.9.
|
|
2223
|
+
const version = "3.9.2";
|
|
2224
2224
|
core_.VxeUI.version = version;
|
|
2225
|
-
core_.VxeUI.tableVersion = "3.9.
|
|
2225
|
+
core_.VxeUI.tableVersion = "3.9.2";
|
|
2226
2226
|
core_.VxeUI.setConfig({
|
|
2227
2227
|
emptyCell: ' ',
|
|
2228
2228
|
table: {
|
|
@@ -2764,7 +2764,7 @@ function isNodeElement(elem) {
|
|
|
2764
2764
|
const {
|
|
2765
2765
|
log: log_log
|
|
2766
2766
|
} = core_.VxeUI;
|
|
2767
|
-
const log_version = `table v${"3.9.
|
|
2767
|
+
const log_version = `table v${"3.9.2"}`;
|
|
2768
2768
|
const warnLog = log_log.create('warn', log_version);
|
|
2769
2769
|
const errLog = log_log.create('error', log_version);
|
|
2770
2770
|
;// CONCATENATED MODULE: ./packages/table/src/columnInfo.ts
|
|
@@ -5389,23 +5389,21 @@ const Methods = {
|
|
|
5389
5389
|
* 更新数据行的 Map
|
|
5390
5390
|
* 牺牲数据组装的耗时,用来换取使用过程中的流畅
|
|
5391
5391
|
*/
|
|
5392
|
-
cacheRowMap(
|
|
5392
|
+
cacheRowMap(isSource) {
|
|
5393
5393
|
const {
|
|
5394
5394
|
treeConfig,
|
|
5395
5395
|
treeOpts,
|
|
5396
5396
|
tableFullData,
|
|
5397
|
-
|
|
5397
|
+
fullAllDataRowIdData,
|
|
5398
5398
|
fullAllDataRowMap,
|
|
5399
5399
|
tableFullTreeData
|
|
5400
5400
|
} = this;
|
|
5401
|
-
let {
|
|
5402
|
-
fullDataRowIdData,
|
|
5403
|
-
fullAllDataRowIdData
|
|
5404
|
-
} = this;
|
|
5405
5401
|
const childrenField = treeOpts.children || treeOpts.childrenField;
|
|
5406
5402
|
const hasChildField = treeOpts.hasChild || treeOpts.hasChildField;
|
|
5407
5403
|
const rowkey = getRowkey(this);
|
|
5408
5404
|
const isLazy = treeConfig && treeOpts.lazy;
|
|
5405
|
+
const fullAllDataRowIdMaps = {};
|
|
5406
|
+
const fullDataRowIdMaps = {};
|
|
5409
5407
|
const handleCache = (row, index, items, path, parent, nodes) => {
|
|
5410
5408
|
let rowid = getRowid(this, row);
|
|
5411
5409
|
const seq = treeConfig && path ? toTreePathSeq(path) : index + 1;
|
|
@@ -5417,29 +5415,30 @@ const Methods = {
|
|
|
5417
5415
|
if (isLazy && row[hasChildField] && external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isUndefined(row[childrenField])) {
|
|
5418
5416
|
row[childrenField] = null;
|
|
5419
5417
|
}
|
|
5420
|
-
|
|
5421
|
-
|
|
5422
|
-
|
|
5423
|
-
|
|
5424
|
-
|
|
5425
|
-
|
|
5426
|
-
|
|
5427
|
-
|
|
5428
|
-
|
|
5429
|
-
|
|
5430
|
-
|
|
5431
|
-
|
|
5432
|
-
|
|
5433
|
-
fullDataRowMap.set(row, rest);
|
|
5418
|
+
let cacheItem = fullAllDataRowIdData[rowid];
|
|
5419
|
+
if (!cacheItem) {
|
|
5420
|
+
cacheItem = {
|
|
5421
|
+
row,
|
|
5422
|
+
rowid,
|
|
5423
|
+
seq,
|
|
5424
|
+
index: -1,
|
|
5425
|
+
_index: -1,
|
|
5426
|
+
$index: -1,
|
|
5427
|
+
items,
|
|
5428
|
+
parent,
|
|
5429
|
+
level
|
|
5430
|
+
};
|
|
5434
5431
|
}
|
|
5435
|
-
|
|
5436
|
-
|
|
5432
|
+
if (isSource) {
|
|
5433
|
+
cacheItem.index = treeConfig && parent ? -1 : index;
|
|
5434
|
+
fullDataRowIdMaps[rowid] = cacheItem;
|
|
5435
|
+
}
|
|
5436
|
+
fullAllDataRowIdMaps[rowid] = cacheItem;
|
|
5437
5437
|
};
|
|
5438
|
-
if (
|
|
5439
|
-
|
|
5440
|
-
fullDataRowMap.clear();
|
|
5438
|
+
if (isSource) {
|
|
5439
|
+
this.fullDataRowIdData = fullDataRowIdMaps;
|
|
5441
5440
|
}
|
|
5442
|
-
|
|
5441
|
+
this.fullAllDataRowIdData = fullAllDataRowIdMaps;
|
|
5443
5442
|
fullAllDataRowMap.clear();
|
|
5444
5443
|
if (treeConfig) {
|
|
5445
5444
|
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(tableFullTreeData, handleCache, {
|
|
@@ -5733,11 +5732,11 @@ const Methods = {
|
|
|
5733
5732
|
*/
|
|
5734
5733
|
getRowSeq(row) {
|
|
5735
5734
|
const {
|
|
5736
|
-
|
|
5735
|
+
fullAllDataRowIdData
|
|
5737
5736
|
} = this;
|
|
5738
5737
|
if (row) {
|
|
5739
5738
|
const rowid = getRowid(this, row);
|
|
5740
|
-
const rest =
|
|
5739
|
+
const rest = fullAllDataRowIdData[rowid];
|
|
5741
5740
|
if (rest) {
|
|
5742
5741
|
return rest.seq;
|
|
5743
5742
|
}
|
|
@@ -5749,14 +5748,34 @@ const Methods = {
|
|
|
5749
5748
|
* @param {Row} row 行对象
|
|
5750
5749
|
*/
|
|
5751
5750
|
getRowIndex(row) {
|
|
5752
|
-
|
|
5751
|
+
const {
|
|
5752
|
+
fullAllDataRowIdData
|
|
5753
|
+
} = this;
|
|
5754
|
+
if (row) {
|
|
5755
|
+
const rowid = getRowid(this, row);
|
|
5756
|
+
const rest = fullAllDataRowIdData[rowid];
|
|
5757
|
+
if (rest) {
|
|
5758
|
+
return rest.index;
|
|
5759
|
+
}
|
|
5760
|
+
}
|
|
5761
|
+
return -1;
|
|
5753
5762
|
},
|
|
5754
5763
|
/**
|
|
5755
5764
|
* 根据 row 获取相对于当前数据中的索引
|
|
5756
5765
|
* @param {Row} row 行对象
|
|
5757
5766
|
*/
|
|
5758
5767
|
getVTRowIndex(row) {
|
|
5759
|
-
|
|
5768
|
+
const {
|
|
5769
|
+
fullAllDataRowIdData
|
|
5770
|
+
} = this;
|
|
5771
|
+
if (row) {
|
|
5772
|
+
const rowid = getRowid(this, row);
|
|
5773
|
+
const rest = fullAllDataRowIdData[rowid];
|
|
5774
|
+
if (rest) {
|
|
5775
|
+
return rest._index;
|
|
5776
|
+
}
|
|
5777
|
+
}
|
|
5778
|
+
return -1;
|
|
5760
5779
|
},
|
|
5761
5780
|
// 在 v3 中废弃
|
|
5762
5781
|
_getRowIndex(row) {
|
|
@@ -5770,7 +5789,17 @@ const Methods = {
|
|
|
5770
5789
|
* @param {Row} row 行对象
|
|
5771
5790
|
*/
|
|
5772
5791
|
getVMRowIndex(row) {
|
|
5773
|
-
|
|
5792
|
+
const {
|
|
5793
|
+
fullAllDataRowIdData
|
|
5794
|
+
} = this;
|
|
5795
|
+
if (row) {
|
|
5796
|
+
const rowid = getRowid(this, row);
|
|
5797
|
+
const rest = fullAllDataRowIdData[rowid];
|
|
5798
|
+
if (rest) {
|
|
5799
|
+
return rest.$index;
|
|
5800
|
+
}
|
|
5801
|
+
}
|
|
5802
|
+
return -1;
|
|
5774
5803
|
},
|
|
5775
5804
|
// 在 v3 中废弃
|
|
5776
5805
|
$getRowIndex(row) {
|
|
@@ -5784,14 +5813,32 @@ const Methods = {
|
|
|
5784
5813
|
* @param {ColumnInfo} column 列配置
|
|
5785
5814
|
*/
|
|
5786
5815
|
getColumnIndex(column) {
|
|
5787
|
-
|
|
5816
|
+
const {
|
|
5817
|
+
fullColumnIdData
|
|
5818
|
+
} = this;
|
|
5819
|
+
if (column) {
|
|
5820
|
+
const rest = fullColumnIdData[column.id];
|
|
5821
|
+
if (rest) {
|
|
5822
|
+
return rest.index;
|
|
5823
|
+
}
|
|
5824
|
+
}
|
|
5825
|
+
return -1;
|
|
5788
5826
|
},
|
|
5789
5827
|
/**
|
|
5790
5828
|
* 根据 column 获取相对于当前表格列中的索引
|
|
5791
5829
|
* @param {ColumnInfo} column 列配置
|
|
5792
5830
|
*/
|
|
5793
5831
|
getVTColumnIndex(column) {
|
|
5794
|
-
|
|
5832
|
+
const {
|
|
5833
|
+
fullColumnIdData
|
|
5834
|
+
} = this;
|
|
5835
|
+
if (column) {
|
|
5836
|
+
const rest = fullColumnIdData[column.id];
|
|
5837
|
+
if (rest) {
|
|
5838
|
+
return rest._index;
|
|
5839
|
+
}
|
|
5840
|
+
}
|
|
5841
|
+
return -1;
|
|
5795
5842
|
},
|
|
5796
5843
|
// 在 v3 中废弃
|
|
5797
5844
|
_getColumnIndex(column) {
|
|
@@ -5805,7 +5852,16 @@ const Methods = {
|
|
|
5805
5852
|
* @param {ColumnInfo} column 列配置
|
|
5806
5853
|
*/
|
|
5807
5854
|
getVMColumnIndex(column) {
|
|
5808
|
-
|
|
5855
|
+
const {
|
|
5856
|
+
fullColumnIdData
|
|
5857
|
+
} = this;
|
|
5858
|
+
if (column) {
|
|
5859
|
+
const rest = fullColumnIdData[column.id];
|
|
5860
|
+
if (rest) {
|
|
5861
|
+
return rest.$index;
|
|
5862
|
+
}
|
|
5863
|
+
}
|
|
5864
|
+
return -1;
|
|
5809
5865
|
},
|
|
5810
5866
|
// 在 v3 中废弃
|
|
5811
5867
|
$getColumnIndex(column) {
|
|
@@ -7262,7 +7318,9 @@ const Methods = {
|
|
|
7262
7318
|
});
|
|
7263
7319
|
} else {
|
|
7264
7320
|
const labelEl = cellEl.firstChild;
|
|
7265
|
-
|
|
7321
|
+
if (labelEl) {
|
|
7322
|
+
titleWidth = labelEl.offsetWidth;
|
|
7323
|
+
}
|
|
7266
7324
|
}
|
|
7267
7325
|
if (titleWidth) {
|
|
7268
7326
|
colWidth = Math.max(colWidth, Math.ceil(titleWidth) + 4);
|
|
@@ -16654,24 +16712,10 @@ function handleInsertRowAt(_vm, records, row, isInsertNextRow) {
|
|
|
16654
16712
|
}
|
|
16655
16713
|
});
|
|
16656
16714
|
}
|
|
16657
|
-
this.emitEvent(type,
|
|
16658
|
-
row,
|
|
16659
|
-
rowIndex: this.getRowIndex(row),
|
|
16660
|
-
$rowIndex: this.getVMRowIndex(row),
|
|
16661
|
-
column,
|
|
16662
|
-
columnIndex: this.getColumnIndex(column),
|
|
16663
|
-
$columnIndex: this.getVMColumnIndex(column)
|
|
16664
|
-
}, evnt);
|
|
16715
|
+
this.emitEvent(type, params, evnt);
|
|
16665
16716
|
// v4已废弃
|
|
16666
16717
|
if (type === 'edit-activated') {
|
|
16667
|
-
this.emitEvent('edit-actived',
|
|
16668
|
-
row,
|
|
16669
|
-
rowIndex: this.getRowIndex(row),
|
|
16670
|
-
$rowIndex: this.getVMRowIndex(row),
|
|
16671
|
-
column,
|
|
16672
|
-
columnIndex: this.getColumnIndex(column),
|
|
16673
|
-
$columnIndex: this.getVMColumnIndex(column)
|
|
16674
|
-
}, evnt);
|
|
16718
|
+
this.emitEvent('edit-actived', params, evnt);
|
|
16675
16719
|
}
|
|
16676
16720
|
} else {
|
|
16677
16721
|
const {
|
|
@@ -20330,19 +20374,19 @@ function handleUupdateResize(_vm) {
|
|
|
20330
20374
|
computeValidOpts() {
|
|
20331
20375
|
return Object.assign({
|
|
20332
20376
|
message: 'default'
|
|
20333
|
-
},
|
|
20377
|
+
}, table_getConfig().table.validConfig, this.validConfig);
|
|
20334
20378
|
},
|
|
20335
20379
|
sXOpts() {
|
|
20336
20380
|
return this.computeSXOpts;
|
|
20337
20381
|
},
|
|
20338
20382
|
computeSXOpts() {
|
|
20339
|
-
return Object.assign({},
|
|
20383
|
+
return Object.assign({}, table_getConfig().table.scrollX, this.scrollX);
|
|
20340
20384
|
},
|
|
20341
20385
|
sYOpts() {
|
|
20342
20386
|
return this.computeSYOpts;
|
|
20343
20387
|
},
|
|
20344
20388
|
computeSYOpts() {
|
|
20345
|
-
return Object.assign({},
|
|
20389
|
+
return Object.assign({}, table_getConfig().table.scrollY, this.scrollY);
|
|
20346
20390
|
},
|
|
20347
20391
|
rowHeightMaps() {
|
|
20348
20392
|
return {
|
|
@@ -20356,25 +20400,25 @@ function handleUupdateResize(_vm) {
|
|
|
20356
20400
|
return this.computeColumnOpts;
|
|
20357
20401
|
},
|
|
20358
20402
|
computeColumnOpts() {
|
|
20359
|
-
return Object.assign({},
|
|
20403
|
+
return Object.assign({}, table_getConfig().table.columnConfig, this.columnConfig);
|
|
20360
20404
|
},
|
|
20361
20405
|
rowOpts() {
|
|
20362
20406
|
return this.computeRowOpts;
|
|
20363
20407
|
},
|
|
20364
20408
|
computeRowOpts() {
|
|
20365
|
-
return Object.assign({},
|
|
20409
|
+
return Object.assign({}, table_getConfig().table.rowConfig, this.rowConfig);
|
|
20366
20410
|
},
|
|
20367
20411
|
resizeOpts() {
|
|
20368
20412
|
return this.computeResizeOpts;
|
|
20369
20413
|
},
|
|
20370
20414
|
computeResizeOpts() {
|
|
20371
|
-
return Object.assign({},
|
|
20415
|
+
return Object.assign({}, table_getConfig().table.resizeConfig, this.resizeConfig);
|
|
20372
20416
|
},
|
|
20373
20417
|
resizableOpts() {
|
|
20374
20418
|
return this.computeResizableOpts;
|
|
20375
20419
|
},
|
|
20376
20420
|
computeResizableOpts() {
|
|
20377
|
-
return Object.assign({},
|
|
20421
|
+
return Object.assign({}, table_getConfig().table.resizableConfig, this.resizableConfig);
|
|
20378
20422
|
},
|
|
20379
20423
|
seqOpts() {
|
|
20380
20424
|
return this.computeSeqOpts;
|
|
@@ -20382,25 +20426,25 @@ function handleUupdateResize(_vm) {
|
|
|
20382
20426
|
computeSeqOpts() {
|
|
20383
20427
|
return Object.assign({
|
|
20384
20428
|
startIndex: 0
|
|
20385
|
-
},
|
|
20429
|
+
}, table_getConfig().table.seqConfig, this.seqConfig);
|
|
20386
20430
|
},
|
|
20387
20431
|
radioOpts() {
|
|
20388
20432
|
return this.computeRadioOpts;
|
|
20389
20433
|
},
|
|
20390
20434
|
computeRadioOpts() {
|
|
20391
|
-
return Object.assign({},
|
|
20435
|
+
return Object.assign({}, table_getConfig().table.radioConfig, this.radioConfig);
|
|
20392
20436
|
},
|
|
20393
20437
|
checkboxOpts() {
|
|
20394
20438
|
return this.computeCheckboxOpts;
|
|
20395
20439
|
},
|
|
20396
20440
|
computeCheckboxOpts() {
|
|
20397
|
-
return Object.assign({},
|
|
20441
|
+
return Object.assign({}, table_getConfig().table.checkboxConfig, this.checkboxConfig);
|
|
20398
20442
|
},
|
|
20399
20443
|
tooltipOpts() {
|
|
20400
20444
|
return this.computeTooltipOpts;
|
|
20401
20445
|
},
|
|
20402
20446
|
computeTooltipOpts() {
|
|
20403
|
-
return Object.assign({},
|
|
20447
|
+
return Object.assign({}, table_getConfig().tooltip, table_getConfig().table.tooltipConfig, this.tooltipConfig);
|
|
20404
20448
|
},
|
|
20405
20449
|
tipConfig() {
|
|
20406
20450
|
return {
|
|
@@ -20416,7 +20460,7 @@ function handleUupdateResize(_vm) {
|
|
|
20416
20460
|
return this.computeEditOpts;
|
|
20417
20461
|
},
|
|
20418
20462
|
computeEditOpts() {
|
|
20419
|
-
return Object.assign({},
|
|
20463
|
+
return Object.assign({}, table_getConfig().table.editConfig, this.editConfig);
|
|
20420
20464
|
},
|
|
20421
20465
|
sortOpts() {
|
|
20422
20466
|
return this.computeSortOpts;
|
|
@@ -20424,43 +20468,43 @@ function handleUupdateResize(_vm) {
|
|
|
20424
20468
|
computeSortOpts() {
|
|
20425
20469
|
return Object.assign({
|
|
20426
20470
|
orders: ['asc', 'desc', null]
|
|
20427
|
-
},
|
|
20471
|
+
}, table_getConfig().table.sortConfig, this.sortConfig);
|
|
20428
20472
|
},
|
|
20429
20473
|
filterOpts() {
|
|
20430
20474
|
return this.computeFilterOpts;
|
|
20431
20475
|
},
|
|
20432
20476
|
computeFilterOpts() {
|
|
20433
|
-
return Object.assign({},
|
|
20477
|
+
return Object.assign({}, table_getConfig().table.filterConfig, this.filterConfig);
|
|
20434
20478
|
},
|
|
20435
20479
|
mouseOpts() {
|
|
20436
20480
|
return this.computeMouseOpts;
|
|
20437
20481
|
},
|
|
20438
20482
|
computeMouseOpts() {
|
|
20439
|
-
return Object.assign({},
|
|
20483
|
+
return Object.assign({}, table_getConfig().table.mouseConfig, this.mouseConfig);
|
|
20440
20484
|
},
|
|
20441
20485
|
areaOpts() {
|
|
20442
20486
|
return this.computeAreaOpts;
|
|
20443
20487
|
},
|
|
20444
20488
|
computeAreaOpts() {
|
|
20445
|
-
return Object.assign({},
|
|
20489
|
+
return Object.assign({}, table_getConfig().table.areaConfig, this.areaConfig);
|
|
20446
20490
|
},
|
|
20447
20491
|
keyboardOpts() {
|
|
20448
20492
|
return this.computeKeyboardOpts;
|
|
20449
20493
|
},
|
|
20450
20494
|
computeKeyboardOpts() {
|
|
20451
|
-
return Object.assign({},
|
|
20495
|
+
return Object.assign({}, table_getConfig().table.keyboardConfig, this.keyboardConfig);
|
|
20452
20496
|
},
|
|
20453
20497
|
clipOpts() {
|
|
20454
20498
|
return this.computeClipOpts;
|
|
20455
20499
|
},
|
|
20456
20500
|
computeClipOpts() {
|
|
20457
|
-
return Object.assign({},
|
|
20501
|
+
return Object.assign({}, table_getConfig().table.clipConfig, this.clipConfig);
|
|
20458
20502
|
},
|
|
20459
20503
|
fnrOpts() {
|
|
20460
20504
|
return this.computeFNROpts;
|
|
20461
20505
|
},
|
|
20462
20506
|
computeFNROpts() {
|
|
20463
|
-
return Object.assign({},
|
|
20507
|
+
return Object.assign({}, table_getConfig().table.fnrConfig, this.fnrConfig);
|
|
20464
20508
|
},
|
|
20465
20509
|
headerCtxMenu() {
|
|
20466
20510
|
const headerOpts = this.ctxMenuOpts.header;
|
|
@@ -20490,49 +20534,49 @@ function handleUupdateResize(_vm) {
|
|
|
20490
20534
|
return this.computeMenuOpts;
|
|
20491
20535
|
},
|
|
20492
20536
|
computeMenuOpts() {
|
|
20493
|
-
return Object.assign({},
|
|
20537
|
+
return Object.assign({}, table_getConfig().table.menuConfig, this.contextMenu, this.menuConfig);
|
|
20494
20538
|
},
|
|
20495
20539
|
exportOpts() {
|
|
20496
20540
|
return this.computeExportOpts;
|
|
20497
20541
|
},
|
|
20498
20542
|
computeExportOpts() {
|
|
20499
|
-
return Object.assign({},
|
|
20543
|
+
return Object.assign({}, table_getConfig().table.exportConfig, this.exportConfig);
|
|
20500
20544
|
},
|
|
20501
20545
|
importOpts() {
|
|
20502
20546
|
return this.computeImportOpts;
|
|
20503
20547
|
},
|
|
20504
20548
|
computeImportOpts() {
|
|
20505
|
-
return Object.assign({},
|
|
20549
|
+
return Object.assign({}, table_getConfig().table.importConfig, this.importConfig);
|
|
20506
20550
|
},
|
|
20507
20551
|
printOpts() {
|
|
20508
20552
|
return this.computePrintOpts;
|
|
20509
20553
|
},
|
|
20510
20554
|
computePrintOpts() {
|
|
20511
|
-
return Object.assign({},
|
|
20555
|
+
return Object.assign({}, table_getConfig().table.printConfig, this.printConfig);
|
|
20512
20556
|
},
|
|
20513
20557
|
expandOpts() {
|
|
20514
20558
|
return this.computeExpandOpts;
|
|
20515
20559
|
},
|
|
20516
20560
|
computeExpandOpts() {
|
|
20517
|
-
return Object.assign({},
|
|
20561
|
+
return Object.assign({}, table_getConfig().table.expandConfig, this.expandConfig);
|
|
20518
20562
|
},
|
|
20519
20563
|
treeOpts() {
|
|
20520
20564
|
return this.computeTreeOpts;
|
|
20521
20565
|
},
|
|
20522
20566
|
computeTreeOpts() {
|
|
20523
|
-
return Object.assign({},
|
|
20567
|
+
return Object.assign({}, table_getConfig().table.treeConfig, this.treeConfig);
|
|
20524
20568
|
},
|
|
20525
20569
|
emptyOpts() {
|
|
20526
20570
|
return this.computeEmptyOpts;
|
|
20527
20571
|
},
|
|
20528
20572
|
computeEmptyOpts() {
|
|
20529
|
-
return Object.assign({},
|
|
20573
|
+
return Object.assign({}, table_getConfig().table.emptyRender, this.emptyRender);
|
|
20530
20574
|
},
|
|
20531
20575
|
loadingOpts() {
|
|
20532
20576
|
return this.computeLoadingOpts;
|
|
20533
20577
|
},
|
|
20534
20578
|
computeLoadingOpts() {
|
|
20535
|
-
return Object.assign({},
|
|
20579
|
+
return Object.assign({}, table_getConfig().table.loadingConfig, this.loadingConfig);
|
|
20536
20580
|
},
|
|
20537
20581
|
cellOffsetWidth() {
|
|
20538
20582
|
return this.border ? Math.max(2, Math.ceil(this.scrollbarWidth / this.tableColumn.length)) : 1;
|
|
@@ -20541,7 +20585,7 @@ function handleUupdateResize(_vm) {
|
|
|
20541
20585
|
return this.computeCustomOpts;
|
|
20542
20586
|
},
|
|
20543
20587
|
computeCustomOpts() {
|
|
20544
|
-
return Object.assign({},
|
|
20588
|
+
return Object.assign({}, table_getConfig().table.customConfig, this.customConfig);
|
|
20545
20589
|
},
|
|
20546
20590
|
autoWidthColumnList() {
|
|
20547
20591
|
const {
|
|
@@ -22472,25 +22516,25 @@ Object.keys(table.methods).forEach(name => {
|
|
|
22472
22516
|
return this.computePagerOpts;
|
|
22473
22517
|
},
|
|
22474
22518
|
computePagerOpts() {
|
|
22475
|
-
return Object.assign({},
|
|
22519
|
+
return Object.assign({}, grid_getConfig().grid.pagerConfig, this.pagerConfig);
|
|
22476
22520
|
},
|
|
22477
22521
|
formOpts() {
|
|
22478
22522
|
return this.computeFormOpts;
|
|
22479
22523
|
},
|
|
22480
22524
|
computeFormOpts() {
|
|
22481
|
-
return Object.assign({},
|
|
22525
|
+
return Object.assign({}, grid_getConfig().grid.formConfig, this.formConfig);
|
|
22482
22526
|
},
|
|
22483
22527
|
toolbarOpts() {
|
|
22484
22528
|
return this.computeToolbarOpts;
|
|
22485
22529
|
},
|
|
22486
22530
|
computeToolbarOpts() {
|
|
22487
|
-
return Object.assign({},
|
|
22531
|
+
return Object.assign({}, grid_getConfig().grid.toolbarConfig, this.toolbarConfig || this.toolbar);
|
|
22488
22532
|
},
|
|
22489
22533
|
zoomOpts() {
|
|
22490
22534
|
return this.computeZoomOpts;
|
|
22491
22535
|
},
|
|
22492
22536
|
computeZoomOpts() {
|
|
22493
|
-
return Object.assign({},
|
|
22537
|
+
return Object.assign({}, grid_getConfig().grid.zoomConfig, this.zoomConfig);
|
|
22494
22538
|
},
|
|
22495
22539
|
renderStyle() {
|
|
22496
22540
|
return this.isZMax ? {
|
|
@@ -24909,6 +24953,9 @@ const Toolbar = VxeToolbar;
|
|
|
24909
24953
|
fileTitle: '上传文件'
|
|
24910
24954
|
}
|
|
24911
24955
|
},
|
|
24956
|
+
empty: {
|
|
24957
|
+
defText: '暂无数据'
|
|
24958
|
+
},
|
|
24912
24959
|
formDesign: {
|
|
24913
24960
|
formName: '表单名称',
|
|
24914
24961
|
defFormTitle: '未命名的表单',
|