vxe-table 3.15.54 → 3.15.57
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 +31 -0
- package/es/locale/lang/ar-EG.js +2 -1
- package/es/locale/lang/de-DE.js +2 -1
- package/es/locale/lang/en-US.js +2 -1
- package/es/locale/lang/es-ES.js +2 -1
- package/es/locale/lang/fr-FR.js +2 -1
- package/es/locale/lang/hu-HU.js +2 -1
- package/es/locale/lang/hy-AM.js +2 -1
- package/es/locale/lang/id-ID.js +2 -1
- package/es/locale/lang/it-IT.js +2 -1
- package/es/locale/lang/ja-JP.js +2 -1
- package/es/locale/lang/ko-KR.js +2 -1
- package/es/locale/lang/ms-MY.js +2 -1
- package/es/locale/lang/nb-NO.js +2 -1
- package/es/locale/lang/pt-BR.js +2 -1
- package/es/locale/lang/ru-RU.js +2 -1
- package/es/locale/lang/th-TH.js +2 -1
- package/es/locale/lang/ug-CN.js +2 -1
- package/es/locale/lang/uk-UA.js +2 -1
- package/es/locale/lang/uz-UZ.js +2 -1
- package/es/locale/lang/vi-VN.js +2 -1
- package/es/locale/lang/zh-CHT.js +2 -1
- package/es/locale/lang/zh-CN.js +2 -1
- package/es/style.css +1 -1
- package/es/table/src/methods.js +60 -17
- package/es/table/src/table.js +30 -2
- package/es/ui/index.js +2 -1
- package/es/ui/src/log.js +1 -1
- package/lib/grid/src/grid.js +48 -0
- package/lib/grid/src/grid.min.js +1 -1
- package/lib/index.umd.js +157 -22
- package/lib/index.umd.min.js +1 -1
- package/lib/locale/lang/ar-EG.js +2 -1
- package/lib/locale/lang/ar-EG.min.js +1 -1
- package/lib/locale/lang/ar-EG.umd.js +2 -1
- package/lib/locale/lang/de-DE.js +2 -1
- package/lib/locale/lang/de-DE.min.js +1 -1
- package/lib/locale/lang/de-DE.umd.js +2 -1
- package/lib/locale/lang/en-US.js +2 -1
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +2 -1
- package/lib/locale/lang/es-ES.js +2 -1
- package/lib/locale/lang/es-ES.min.js +1 -1
- package/lib/locale/lang/es-ES.umd.js +2 -1
- package/lib/locale/lang/fr-FR.js +2 -1
- package/lib/locale/lang/fr-FR.min.js +1 -1
- package/lib/locale/lang/fr-FR.umd.js +2 -1
- package/lib/locale/lang/hu-HU.js +2 -1
- package/lib/locale/lang/hu-HU.min.js +1 -1
- package/lib/locale/lang/hu-HU.umd.js +2 -1
- package/lib/locale/lang/hy-AM.js +2 -1
- package/lib/locale/lang/hy-AM.min.js +1 -1
- package/lib/locale/lang/hy-AM.umd.js +2 -1
- package/lib/locale/lang/id-ID.js +2 -1
- package/lib/locale/lang/id-ID.min.js +1 -1
- package/lib/locale/lang/id-ID.umd.js +2 -1
- package/lib/locale/lang/it-IT.js +2 -1
- package/lib/locale/lang/it-IT.min.js +1 -1
- package/lib/locale/lang/it-IT.umd.js +2 -1
- package/lib/locale/lang/ja-JP.js +2 -1
- package/lib/locale/lang/ja-JP.min.js +1 -1
- package/lib/locale/lang/ja-JP.umd.js +2 -1
- package/lib/locale/lang/ko-KR.js +2 -1
- package/lib/locale/lang/ko-KR.min.js +1 -1
- package/lib/locale/lang/ko-KR.umd.js +2 -1
- package/lib/locale/lang/ms-MY.js +2 -1
- package/lib/locale/lang/ms-MY.min.js +1 -1
- package/lib/locale/lang/ms-MY.umd.js +2 -1
- package/lib/locale/lang/nb-NO.js +2 -1
- package/lib/locale/lang/nb-NO.min.js +1 -1
- package/lib/locale/lang/nb-NO.umd.js +2 -1
- package/lib/locale/lang/pt-BR.js +2 -1
- package/lib/locale/lang/pt-BR.min.js +1 -1
- package/lib/locale/lang/pt-BR.umd.js +2 -1
- package/lib/locale/lang/ru-RU.js +2 -1
- package/lib/locale/lang/ru-RU.min.js +1 -1
- package/lib/locale/lang/ru-RU.umd.js +2 -1
- package/lib/locale/lang/th-TH.js +2 -1
- package/lib/locale/lang/th-TH.min.js +1 -1
- package/lib/locale/lang/th-TH.umd.js +2 -1
- package/lib/locale/lang/ug-CN.js +2 -1
- package/lib/locale/lang/ug-CN.min.js +1 -1
- package/lib/locale/lang/ug-CN.umd.js +2 -1
- package/lib/locale/lang/uk-UA.js +2 -1
- package/lib/locale/lang/uk-UA.min.js +1 -1
- package/lib/locale/lang/uk-UA.umd.js +2 -1
- package/lib/locale/lang/uz-UZ.js +2 -1
- package/lib/locale/lang/uz-UZ.min.js +1 -1
- package/lib/locale/lang/uz-UZ.umd.js +2 -1
- package/lib/locale/lang/vi-VN.js +2 -1
- package/lib/locale/lang/vi-VN.min.js +1 -1
- package/lib/locale/lang/vi-VN.umd.js +2 -1
- package/lib/locale/lang/zh-CHT.js +2 -1
- package/lib/locale/lang/zh-CHT.min.js +1 -1
- package/lib/locale/lang/zh-CHT.umd.js +2 -1
- package/lib/locale/lang/zh-CN.js +2 -1
- package/lib/locale/lang/zh-CN.min.js +1 -1
- package/lib/locale/lang/zh-CN.umd.js +2 -1
- package/lib/style.css +1 -1
- package/lib/table/src/methods.js +66 -17
- package/lib/table/src/methods.min.js +1 -1
- package/lib/table/src/table.js +36 -2
- package/lib/table/src/table.min.js +1 -1
- package/lib/ui/index.js +2 -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 +31 -0
- package/packages/locale/lang/ar-EG.ts +2 -1
- package/packages/locale/lang/de-DE.ts +2 -1
- package/packages/locale/lang/en-US.ts +2 -1
- package/packages/locale/lang/es-ES.ts +2 -1
- package/packages/locale/lang/fr-FR.ts +2 -1
- package/packages/locale/lang/hu-HU.ts +2 -1
- package/packages/locale/lang/hy-AM.ts +2 -1
- package/packages/locale/lang/id-ID.ts +2 -1
- package/packages/locale/lang/it-IT.ts +2 -1
- package/packages/locale/lang/ja-JP.ts +2 -1
- package/packages/locale/lang/ko-KR.ts +2 -1
- package/packages/locale/lang/ms-MY.ts +2 -1
- package/packages/locale/lang/nb-NO.ts +2 -1
- package/packages/locale/lang/pt-BR.ts +2 -1
- package/packages/locale/lang/ru-RU.ts +2 -1
- package/packages/locale/lang/th-TH.ts +2 -1
- package/packages/locale/lang/ug-CN.ts +2 -1
- package/packages/locale/lang/uk-UA.ts +2 -1
- package/packages/locale/lang/uz-UZ.ts +2 -1
- package/packages/locale/lang/vi-VN.ts +2 -1
- package/packages/locale/lang/zh-CHT.ts +2 -1
- package/packages/locale/lang/zh-CN.ts +2 -1
- package/packages/table/src/methods.ts +70 -16
- package/packages/table/src/table.ts +31 -3
- package/packages/ui/index.ts +1 -0
- /package/es/{iconfont.1753260891694.ttf → iconfont.1754364592710.ttf} +0 -0
- /package/es/{iconfont.1753260891694.woff → iconfont.1754364592710.woff} +0 -0
- /package/es/{iconfont.1753260891694.woff2 → iconfont.1754364592710.woff2} +0 -0
- /package/lib/{iconfont.1753260891694.ttf → iconfont.1754364592710.ttf} +0 -0
- /package/lib/{iconfont.1753260891694.woff → iconfont.1754364592710.woff} +0 -0
- /package/lib/{iconfont.1753260891694.woff2 → iconfont.1754364592710.woff2} +0 -0
package/lib/index.umd.js
CHANGED
|
@@ -3234,7 +3234,7 @@ function getClass(property, params) {
|
|
|
3234
3234
|
;// ./packages/ui/index.ts
|
|
3235
3235
|
|
|
3236
3236
|
|
|
3237
|
-
const version = "3.15.
|
|
3237
|
+
const version = "3.15.57";
|
|
3238
3238
|
core_.VxeUI.version = version;
|
|
3239
3239
|
core_.VxeUI.tableVersion = version;
|
|
3240
3240
|
core_.VxeUI.setConfig({
|
|
@@ -3368,6 +3368,7 @@ core_.VxeUI.setConfig({
|
|
|
3368
3368
|
// filterMethod: null,
|
|
3369
3369
|
// destroyOnClose: false,
|
|
3370
3370
|
// isEvery: false,
|
|
3371
|
+
multiple: true,
|
|
3371
3372
|
showIcon: true
|
|
3372
3373
|
},
|
|
3373
3374
|
aggregateConfig: {
|
|
@@ -3906,7 +3907,7 @@ var es_iterator_map = __webpack_require__(1701);
|
|
|
3906
3907
|
const {
|
|
3907
3908
|
log: log_log
|
|
3908
3909
|
} = core_.VxeUI;
|
|
3909
|
-
const log_version = `table v${"3.15.
|
|
3910
|
+
const log_version = `table v${"3.15.57"}`;
|
|
3910
3911
|
const warnLog = log_log.create('warn', log_version);
|
|
3911
3912
|
const errLog = log_log.create('error', log_version);
|
|
3912
3913
|
;// ./packages/table/src/columnInfo.ts
|
|
@@ -6805,10 +6806,10 @@ function cacheColumnMap($xeTable) {
|
|
|
6805
6806
|
}
|
|
6806
6807
|
if (htmlColumn) {
|
|
6807
6808
|
if (!columnOpts.useKey) {
|
|
6808
|
-
errLog('vxe.error.
|
|
6809
|
+
errLog('vxe.error.notSupportProp', ['column.type=html', 'column-config.useKey=false', 'column-config.useKey=true']);
|
|
6809
6810
|
}
|
|
6810
6811
|
if (!rowOpts.useKey) {
|
|
6811
|
-
errLog('vxe.error.
|
|
6812
|
+
errLog('vxe.error.notSupportProp', ['column.type=html', 'row-config.useKey=false', 'row-config.useKey=true']);
|
|
6812
6813
|
}
|
|
6813
6814
|
}
|
|
6814
6815
|
reactData.isGroup = isGroup;
|
|
@@ -8850,6 +8851,10 @@ function removeFooterMerges($xeTable, merges) {
|
|
|
8850
8851
|
return rest;
|
|
8851
8852
|
}
|
|
8852
8853
|
function handleSortEvent($xeTable, evnt, sortConfs, isUpdate) {
|
|
8854
|
+
const internalData = $xeTable;
|
|
8855
|
+
const {
|
|
8856
|
+
tableFullColumn
|
|
8857
|
+
} = internalData;
|
|
8853
8858
|
const sortOpts = $xeTable.computeSortOpts;
|
|
8854
8859
|
const {
|
|
8855
8860
|
multiple,
|
|
@@ -8860,10 +8865,16 @@ function handleSortEvent($xeTable, evnt, sortConfs, isUpdate) {
|
|
|
8860
8865
|
sortConfs = [sortConfs];
|
|
8861
8866
|
}
|
|
8862
8867
|
if (sortConfs && sortConfs.length) {
|
|
8868
|
+
const orderActiveMaps = {};
|
|
8863
8869
|
if (!multiple) {
|
|
8864
8870
|
sortConfs = [sortConfs[0]];
|
|
8865
|
-
|
|
8871
|
+
tableFullColumn.forEach(column => {
|
|
8872
|
+
if (column.order) {
|
|
8873
|
+
orderActiveMaps[column.id] = column;
|
|
8874
|
+
}
|
|
8875
|
+
});
|
|
8866
8876
|
}
|
|
8877
|
+
const sortColMpps = {};
|
|
8867
8878
|
let firstColumn = null;
|
|
8868
8879
|
sortConfs.forEach((confs, index) => {
|
|
8869
8880
|
let {
|
|
@@ -8885,8 +8896,16 @@ function handleSortEvent($xeTable, evnt, sortConfs, isUpdate) {
|
|
|
8885
8896
|
column.order = order;
|
|
8886
8897
|
}
|
|
8887
8898
|
column.sortTime = Date.now() + index;
|
|
8899
|
+
sortColMpps[column.id] = column;
|
|
8888
8900
|
}
|
|
8889
8901
|
});
|
|
8902
|
+
if (!multiple) {
|
|
8903
|
+
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().each(orderActiveMaps, (oaCol, oaId) => {
|
|
8904
|
+
if (!sortColMpps[oaId]) {
|
|
8905
|
+
oaCol.order = null;
|
|
8906
|
+
}
|
|
8907
|
+
});
|
|
8908
|
+
}
|
|
8890
8909
|
if (isUpdate) {
|
|
8891
8910
|
if (!remote) {
|
|
8892
8911
|
$xeTable.handleTableData(true);
|
|
@@ -16358,9 +16377,9 @@ const Methods = {
|
|
|
16358
16377
|
const $xeTable = this;
|
|
16359
16378
|
return handleSortEvent($xeTable, null, sortConfs, isUpdate);
|
|
16360
16379
|
},
|
|
16361
|
-
setSortByEvent(evnt, sortConfs
|
|
16380
|
+
setSortByEvent(evnt, sortConfs) {
|
|
16362
16381
|
const $xeTable = this;
|
|
16363
|
-
return handleSortEvent($xeTable, evnt, sortConfs,
|
|
16382
|
+
return handleSortEvent($xeTable, evnt, sortConfs, true);
|
|
16364
16383
|
},
|
|
16365
16384
|
/**
|
|
16366
16385
|
* 清空指定列的排序条件
|
|
@@ -16393,6 +16412,9 @@ const Methods = {
|
|
|
16393
16412
|
tableFullColumn
|
|
16394
16413
|
} = internalData;
|
|
16395
16414
|
const sortOpts = $xeTable.computeSortOpts;
|
|
16415
|
+
const {
|
|
16416
|
+
multiple
|
|
16417
|
+
} = sortOpts;
|
|
16396
16418
|
const sortCols = [];
|
|
16397
16419
|
let column = null;
|
|
16398
16420
|
if (evnt) {
|
|
@@ -16412,7 +16434,13 @@ const Methods = {
|
|
|
16412
16434
|
if (!sortOpts.remote) {
|
|
16413
16435
|
$xeTable.handleTableData(true);
|
|
16414
16436
|
}
|
|
16415
|
-
if (
|
|
16437
|
+
if (!multiple) {
|
|
16438
|
+
column = sortCols[0];
|
|
16439
|
+
}
|
|
16440
|
+
if (column) {
|
|
16441
|
+
$xeTable.handleColumnSortEvent(evnt, column);
|
|
16442
|
+
}
|
|
16443
|
+
if (multiple && sortCols.length) {
|
|
16416
16444
|
const params = {
|
|
16417
16445
|
$table: $xeTable,
|
|
16418
16446
|
$event: evnt,
|
|
@@ -16420,8 +16448,6 @@ const Methods = {
|
|
|
16420
16448
|
sortList: []
|
|
16421
16449
|
};
|
|
16422
16450
|
$xeTable.dispatchEvent('clear-all-sort', params, evnt);
|
|
16423
|
-
} else if (column) {
|
|
16424
|
-
$xeTable.handleColumnSortEvent(evnt, column);
|
|
16425
16451
|
}
|
|
16426
16452
|
}
|
|
16427
16453
|
return $xeTable.$nextTick().then(() => {
|
|
@@ -16467,14 +16493,12 @@ const Methods = {
|
|
|
16467
16493
|
}
|
|
16468
16494
|
return sortList;
|
|
16469
16495
|
},
|
|
16470
|
-
setFilterByEvent(evnt, fieldOrColumn, options
|
|
16496
|
+
setFilterByEvent(evnt, fieldOrColumn, options) {
|
|
16471
16497
|
const $xeTable = this;
|
|
16472
16498
|
const column = handleFieldOrColumn($xeTable, fieldOrColumn);
|
|
16473
16499
|
if (column && column.filters) {
|
|
16474
16500
|
column.filters = toFilters(options || []);
|
|
16475
|
-
|
|
16476
|
-
return $xeTable.handleColumnConfirmFilter(column, evnt);
|
|
16477
|
-
}
|
|
16501
|
+
return $xeTable.handleColumnConfirmFilter(column, evnt);
|
|
16478
16502
|
}
|
|
16479
16503
|
return $xeTable.$nextTick();
|
|
16480
16504
|
},
|
|
@@ -16533,6 +16557,9 @@ const Methods = {
|
|
|
16533
16557
|
tableFullColumn
|
|
16534
16558
|
} = internalData;
|
|
16535
16559
|
const filterOpts = $xeTable.computeFilterOpts;
|
|
16560
|
+
const {
|
|
16561
|
+
multiple
|
|
16562
|
+
} = filterOpts;
|
|
16536
16563
|
const filterCols = [];
|
|
16537
16564
|
let column = null;
|
|
16538
16565
|
if (fieldOrColumn) {
|
|
@@ -16562,7 +16589,34 @@ const Methods = {
|
|
|
16562
16589
|
if (!filterOpts.remote) {
|
|
16563
16590
|
$xeTable.updateData();
|
|
16564
16591
|
}
|
|
16565
|
-
if (
|
|
16592
|
+
if (!multiple) {
|
|
16593
|
+
column = filterCols[0];
|
|
16594
|
+
}
|
|
16595
|
+
if (column) {
|
|
16596
|
+
const filterList = () => $xeTable.getCheckedFilters();
|
|
16597
|
+
const values = [];
|
|
16598
|
+
const datas = [];
|
|
16599
|
+
column.filters.forEach(item => {
|
|
16600
|
+
if (item.checked) {
|
|
16601
|
+
values.push(item.value);
|
|
16602
|
+
datas.push(item.data);
|
|
16603
|
+
}
|
|
16604
|
+
});
|
|
16605
|
+
const params = {
|
|
16606
|
+
$table: $xeTable,
|
|
16607
|
+
$event: evnt,
|
|
16608
|
+
column,
|
|
16609
|
+
field: column.field,
|
|
16610
|
+
property: column.field,
|
|
16611
|
+
values,
|
|
16612
|
+
datas,
|
|
16613
|
+
filters: filterList,
|
|
16614
|
+
filterList
|
|
16615
|
+
};
|
|
16616
|
+
$xeTable.dispatchEvent('filter-change', params, evnt);
|
|
16617
|
+
$xeTable.dispatchEvent('clear-filter', params, evnt);
|
|
16618
|
+
}
|
|
16619
|
+
if (multiple && filterCols.length) {
|
|
16566
16620
|
const params = {
|
|
16567
16621
|
$table: $xeTable,
|
|
16568
16622
|
$event: evnt,
|
|
@@ -16570,10 +16624,6 @@ const Methods = {
|
|
|
16570
16624
|
filterList: []
|
|
16571
16625
|
};
|
|
16572
16626
|
$xeTable.dispatchEvent('clear-all-filter', params, evnt);
|
|
16573
|
-
} else if (column) {
|
|
16574
|
-
$xeTable.dispatchEvent('clear-filter', {
|
|
16575
|
-
filterList: () => $xeTable.getCheckedFilters()
|
|
16576
|
-
}, evnt);
|
|
16577
16627
|
}
|
|
16578
16628
|
return $xeTable.$nextTick();
|
|
16579
16629
|
},
|
|
@@ -29703,12 +29753,46 @@ function renderBody(h, $xeTable) {
|
|
|
29703
29753
|
computeVirtualXOpts() {
|
|
29704
29754
|
const $xeTable = this;
|
|
29705
29755
|
const props = $xeTable;
|
|
29706
|
-
|
|
29756
|
+
const {
|
|
29757
|
+
virtualXConfig,
|
|
29758
|
+
scrollX
|
|
29759
|
+
} = props;
|
|
29760
|
+
const globalVirtualXConfig = table_getConfig().table.virtualXConfig;
|
|
29761
|
+
const globalScrollX = table_getConfig().table.scrollX;
|
|
29762
|
+
if (virtualXConfig) {
|
|
29763
|
+
return Object.assign({}, globalVirtualXConfig, virtualXConfig);
|
|
29764
|
+
}
|
|
29765
|
+
if (scrollX) {
|
|
29766
|
+
// 已废弃,保留兼容
|
|
29767
|
+
return Object.assign({}, globalScrollX, scrollX);
|
|
29768
|
+
}
|
|
29769
|
+
if (globalVirtualXConfig) {
|
|
29770
|
+
return Object.assign({}, globalVirtualXConfig, virtualXConfig);
|
|
29771
|
+
}
|
|
29772
|
+
// 已废弃,保留兼容
|
|
29773
|
+
return Object.assign({}, globalScrollX, scrollX);
|
|
29707
29774
|
},
|
|
29708
29775
|
computeVirtualYOpts() {
|
|
29709
29776
|
const $xeTable = this;
|
|
29710
29777
|
const props = $xeTable;
|
|
29711
|
-
|
|
29778
|
+
const {
|
|
29779
|
+
virtualYConfig,
|
|
29780
|
+
scrollY
|
|
29781
|
+
} = props;
|
|
29782
|
+
const globalVirtualYConfig = table_getConfig().table.virtualYConfig;
|
|
29783
|
+
const globalScrollY = table_getConfig().table.scrollY;
|
|
29784
|
+
if (virtualYConfig) {
|
|
29785
|
+
return Object.assign({}, globalVirtualYConfig, virtualYConfig);
|
|
29786
|
+
}
|
|
29787
|
+
if (scrollY) {
|
|
29788
|
+
// 已废弃,保留兼容
|
|
29789
|
+
return Object.assign({}, globalScrollY, scrollY);
|
|
29790
|
+
}
|
|
29791
|
+
if (globalVirtualYConfig) {
|
|
29792
|
+
return Object.assign({}, globalVirtualYConfig, virtualYConfig);
|
|
29793
|
+
}
|
|
29794
|
+
// 已废弃,保留兼容
|
|
29795
|
+
return Object.assign({}, globalScrollY, scrollY);
|
|
29712
29796
|
},
|
|
29713
29797
|
computeScrollbarOpts() {
|
|
29714
29798
|
const $xeTable = this;
|
|
@@ -32256,9 +32340,11 @@ function getTableOns(_vm) {
|
|
|
32256
32340
|
if (proxyConfig) {
|
|
32257
32341
|
if (proxyOpts.sort) {
|
|
32258
32342
|
ons['sort-change'] = _vm.sortChangeEvent;
|
|
32343
|
+
ons['clear-all-sort'] = _vm.clearAllSortEvent;
|
|
32259
32344
|
}
|
|
32260
32345
|
if (proxyOpts.filter) {
|
|
32261
32346
|
ons['filter-change'] = _vm.filterChangeEvent;
|
|
32347
|
+
ons['clear-all-filter'] = _vm.clearAllFilterEvent;
|
|
32262
32348
|
}
|
|
32263
32349
|
}
|
|
32264
32350
|
return ons;
|
|
@@ -33499,6 +33585,31 @@ Object.keys(table.methods).forEach(name => {
|
|
|
33499
33585
|
$grid: this
|
|
33500
33586
|
}, params));
|
|
33501
33587
|
},
|
|
33588
|
+
clearAllSortEvent(params) {
|
|
33589
|
+
const {
|
|
33590
|
+
$table,
|
|
33591
|
+
column,
|
|
33592
|
+
sortList
|
|
33593
|
+
} = params;
|
|
33594
|
+
const isRemote = column && external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isBoolean(column.remoteSort) ? column.remoteSort : $table.sortOpts.remote;
|
|
33595
|
+
// 如果是服务端排序
|
|
33596
|
+
if (isRemote) {
|
|
33597
|
+
this.sortData = sortList;
|
|
33598
|
+
if (this.proxyConfig) {
|
|
33599
|
+
this.tablePage.currentPage = 1;
|
|
33600
|
+
this.commitProxy('query').then(rest => {
|
|
33601
|
+
this.$emit('proxy-query', {
|
|
33602
|
+
...rest,
|
|
33603
|
+
$grid: this,
|
|
33604
|
+
$event: params.$event
|
|
33605
|
+
});
|
|
33606
|
+
});
|
|
33607
|
+
}
|
|
33608
|
+
}
|
|
33609
|
+
this.$emit('clear-all-sort', Object.assign({
|
|
33610
|
+
$grid: this
|
|
33611
|
+
}, params));
|
|
33612
|
+
},
|
|
33502
33613
|
filterChangeEvent(params) {
|
|
33503
33614
|
const {
|
|
33504
33615
|
$table,
|
|
@@ -33522,6 +33633,29 @@ Object.keys(table.methods).forEach(name => {
|
|
|
33522
33633
|
$grid: this
|
|
33523
33634
|
}, params));
|
|
33524
33635
|
},
|
|
33636
|
+
clearAllFilterEvent(params) {
|
|
33637
|
+
const {
|
|
33638
|
+
$table,
|
|
33639
|
+
filterList
|
|
33640
|
+
} = params;
|
|
33641
|
+
// 如果是服务端过滤
|
|
33642
|
+
if ($table.filterOpts.remote) {
|
|
33643
|
+
this.filterData = filterList;
|
|
33644
|
+
if (this.proxyConfig) {
|
|
33645
|
+
this.tablePage.currentPage = 1;
|
|
33646
|
+
this.commitProxy('query').then(rest => {
|
|
33647
|
+
this.$emit('proxy-query', {
|
|
33648
|
+
...rest,
|
|
33649
|
+
$grid: this,
|
|
33650
|
+
$event: params.$event
|
|
33651
|
+
});
|
|
33652
|
+
});
|
|
33653
|
+
}
|
|
33654
|
+
}
|
|
33655
|
+
this.$emit('clear-all-filter', Object.assign({
|
|
33656
|
+
$grid: this
|
|
33657
|
+
}, params));
|
|
33658
|
+
},
|
|
33525
33659
|
submitEvent(params) {
|
|
33526
33660
|
const $xeGrid = this;
|
|
33527
33661
|
const reactData = $xeGrid;
|
|
@@ -35161,7 +35295,8 @@ const Toolbar = VxeToolbar;
|
|
|
35161
35295
|
treeCrossDrag: '只能拖拽第一层级',
|
|
35162
35296
|
treeDragChild: '父级不能拖拽到自己的子级中',
|
|
35163
35297
|
reqPlugin: '扩展插件未安装 "{1}" https://vxeui.com/other{0}/#/{1}/install',
|
|
35164
|
-
errMaxRow: '超过支持的最大数据量 {0} 行,这可能会导致出现错误'
|
|
35298
|
+
errMaxRow: '超过支持的最大数据量 {0} 行,这可能会导致出现错误',
|
|
35299
|
+
useNew: '不建议使用 {0},请使用 {1}'
|
|
35165
35300
|
},
|
|
35166
35301
|
table: {
|
|
35167
35302
|
emptyText: '暂无数据',
|