vxe-table 3.16.6 → 3.16.7
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/locale/lang/ar-EG.js +1 -1
- package/es/locale/lang/de-DE.js +1 -1
- package/es/locale/lang/en-US.js +1 -1
- package/es/locale/lang/es-ES.js +1 -1
- package/es/locale/lang/fr-FR.js +1 -1
- package/es/locale/lang/hu-HU.js +1 -1
- package/es/locale/lang/hy-AM.js +1 -1
- package/es/locale/lang/id-ID.js +1 -1
- package/es/locale/lang/it-IT.js +1 -1
- package/es/locale/lang/ja-JP.js +1 -1
- package/es/locale/lang/ko-KR.js +1 -1
- package/es/locale/lang/ms-MY.js +1 -1
- package/es/locale/lang/nb-NO.js +1 -1
- package/es/locale/lang/pt-BR.js +1 -1
- package/es/locale/lang/ru-RU.js +1 -1
- package/es/locale/lang/th-TH.js +1 -1
- package/es/locale/lang/ug-CN.js +1 -1
- package/es/locale/lang/uk-UA.js +1 -1
- package/es/locale/lang/uz-UZ.js +1 -1
- package/es/locale/lang/vi-VN.js +1 -1
- package/es/locale/lang/zh-CHT.js +1 -1
- package/es/locale/lang/zh-CN.js +1 -1
- package/es/style.css +1 -1
- package/es/table/src/cell.js +5 -5
- package/es/table/src/methods.js +41 -14
- package/es/table/src/table.js +4 -1
- package/es/ui/index.js +2 -1
- package/es/ui/src/log.js +1 -1
- package/lib/index.umd.js +58 -22
- package/lib/index.umd.min.js +1 -1
- package/lib/locale/lang/ar-EG.js +1 -1
- package/lib/locale/lang/ar-EG.min.js +1 -1
- package/lib/locale/lang/ar-EG.umd.js +1 -1
- package/lib/locale/lang/de-DE.js +1 -1
- package/lib/locale/lang/de-DE.min.js +1 -1
- package/lib/locale/lang/de-DE.umd.js +1 -1
- package/lib/locale/lang/en-US.js +1 -1
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +1 -1
- package/lib/locale/lang/es-ES.js +1 -1
- package/lib/locale/lang/es-ES.min.js +1 -1
- package/lib/locale/lang/es-ES.umd.js +1 -1
- package/lib/locale/lang/fr-FR.js +1 -1
- package/lib/locale/lang/fr-FR.min.js +1 -1
- package/lib/locale/lang/fr-FR.umd.js +1 -1
- package/lib/locale/lang/hu-HU.js +1 -1
- package/lib/locale/lang/hu-HU.min.js +1 -1
- package/lib/locale/lang/hu-HU.umd.js +1 -1
- package/lib/locale/lang/hy-AM.js +1 -1
- package/lib/locale/lang/hy-AM.min.js +1 -1
- package/lib/locale/lang/hy-AM.umd.js +1 -1
- package/lib/locale/lang/id-ID.js +1 -1
- package/lib/locale/lang/id-ID.min.js +1 -1
- package/lib/locale/lang/id-ID.umd.js +1 -1
- package/lib/locale/lang/it-IT.js +1 -1
- package/lib/locale/lang/it-IT.min.js +1 -1
- package/lib/locale/lang/it-IT.umd.js +1 -1
- package/lib/locale/lang/ja-JP.js +1 -1
- package/lib/locale/lang/ja-JP.min.js +1 -1
- package/lib/locale/lang/ja-JP.umd.js +1 -1
- package/lib/locale/lang/ko-KR.js +1 -1
- package/lib/locale/lang/ko-KR.min.js +1 -1
- package/lib/locale/lang/ko-KR.umd.js +1 -1
- package/lib/locale/lang/ms-MY.js +1 -1
- package/lib/locale/lang/ms-MY.min.js +1 -1
- package/lib/locale/lang/ms-MY.umd.js +1 -1
- package/lib/locale/lang/nb-NO.js +1 -1
- package/lib/locale/lang/nb-NO.min.js +1 -1
- package/lib/locale/lang/nb-NO.umd.js +1 -1
- package/lib/locale/lang/pt-BR.js +1 -1
- package/lib/locale/lang/pt-BR.min.js +1 -1
- package/lib/locale/lang/pt-BR.umd.js +1 -1
- package/lib/locale/lang/ru-RU.js +1 -1
- package/lib/locale/lang/ru-RU.min.js +1 -1
- package/lib/locale/lang/ru-RU.umd.js +1 -1
- package/lib/locale/lang/th-TH.js +1 -1
- package/lib/locale/lang/th-TH.min.js +1 -1
- package/lib/locale/lang/th-TH.umd.js +1 -1
- package/lib/locale/lang/ug-CN.js +1 -1
- package/lib/locale/lang/ug-CN.min.js +1 -1
- package/lib/locale/lang/ug-CN.umd.js +1 -1
- package/lib/locale/lang/uk-UA.js +1 -1
- package/lib/locale/lang/uk-UA.min.js +1 -1
- package/lib/locale/lang/uk-UA.umd.js +1 -1
- package/lib/locale/lang/uz-UZ.js +1 -1
- package/lib/locale/lang/uz-UZ.min.js +1 -1
- package/lib/locale/lang/uz-UZ.umd.js +1 -1
- package/lib/locale/lang/vi-VN.js +1 -1
- package/lib/locale/lang/vi-VN.min.js +1 -1
- package/lib/locale/lang/vi-VN.umd.js +1 -1
- package/lib/locale/lang/zh-CHT.js +1 -1
- package/lib/locale/lang/zh-CHT.min.js +1 -1
- package/lib/locale/lang/zh-CHT.umd.js +1 -1
- package/lib/locale/lang/zh-CN.js +1 -1
- package/lib/locale/lang/zh-CN.min.js +1 -1
- package/lib/locale/lang/zh-CN.umd.js +1 -1
- package/lib/style.css +1 -1
- package/lib/table/src/cell.js +5 -4
- package/lib/table/src/cell.min.js +1 -1
- package/lib/table/src/methods.js +45 -14
- package/lib/table/src/methods.min.js +1 -1
- package/lib/table/src/table.js +4 -1
- 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/locale/lang/ar-EG.ts +1 -1
- package/packages/locale/lang/de-DE.ts +1 -1
- package/packages/locale/lang/en-US.ts +1 -1
- package/packages/locale/lang/es-ES.ts +1 -1
- package/packages/locale/lang/fr-FR.ts +1 -1
- package/packages/locale/lang/hu-HU.ts +1 -1
- package/packages/locale/lang/hy-AM.ts +1 -1
- package/packages/locale/lang/id-ID.ts +1 -1
- package/packages/locale/lang/it-IT.ts +1 -1
- package/packages/locale/lang/ja-JP.ts +1 -1
- package/packages/locale/lang/ko-KR.ts +1 -1
- package/packages/locale/lang/ms-MY.ts +1 -1
- package/packages/locale/lang/nb-NO.ts +1 -1
- package/packages/locale/lang/pt-BR.ts +1 -1
- package/packages/locale/lang/ru-RU.ts +1 -1
- package/packages/locale/lang/th-TH.ts +1 -1
- package/packages/locale/lang/ug-CN.ts +1 -1
- package/packages/locale/lang/uk-UA.ts +1 -1
- package/packages/locale/lang/uz-UZ.ts +1 -1
- package/packages/locale/lang/vi-VN.ts +1 -1
- package/packages/locale/lang/zh-CHT.ts +1 -1
- package/packages/locale/lang/zh-CN.ts +1 -1
- package/packages/table/src/cell.ts +5 -5
- package/packages/table/src/methods.ts +50 -13
- package/packages/table/src/table.ts +4 -1
- package/packages/ui/index.ts +1 -0
- /package/es/{iconfont.1753347577985.ttf → iconfont.1753520075971.ttf} +0 -0
- /package/es/{iconfont.1753347577985.woff → iconfont.1753520075971.woff} +0 -0
- /package/es/{iconfont.1753347577985.woff2 → iconfont.1753520075971.woff2} +0 -0
- /package/lib/{iconfont.1753347577985.ttf → iconfont.1753520075971.ttf} +0 -0
- /package/lib/{iconfont.1753347577985.woff → iconfont.1753520075971.woff} +0 -0
- /package/lib/{iconfont.1753347577985.woff2 → iconfont.1753520075971.woff2} +0 -0
package/es/table/src/cell.js
CHANGED
|
@@ -375,7 +375,7 @@ export const Cell = {
|
|
|
375
375
|
const { fullColumnFieldData } = tableInternalData;
|
|
376
376
|
const aggregateOpts = $table.computeAggregateOpts;
|
|
377
377
|
const { mode, showTotal, totalMethod, countFields, contentMethod, mapChildrenField } = aggregateOpts;
|
|
378
|
-
const
|
|
378
|
+
const aggCalcMethod = aggregateOpts.calcValuesMethod || aggregateOpts.countMethod || aggregateOpts.aggregateMethod;
|
|
379
379
|
const groupField = aggRow.groupField;
|
|
380
380
|
const groupContent = aggRow.groupContent;
|
|
381
381
|
const childList = mapChildrenField ? (aggRow[mapChildrenField] || []) : [];
|
|
@@ -409,9 +409,9 @@ export const Cell = {
|
|
|
409
409
|
cellValue = $table.getPivotTableAggregateCellAggValue(params);
|
|
410
410
|
}
|
|
411
411
|
else if (aggFunc === true || (countFields && countFields.includes(field))) {
|
|
412
|
-
if (
|
|
412
|
+
if (aggCalcMethod) {
|
|
413
413
|
ctParams.aggValue = childCount;
|
|
414
|
-
cellValue = `${
|
|
414
|
+
cellValue = `${aggCalcMethod(ctParams)}`;
|
|
415
415
|
}
|
|
416
416
|
}
|
|
417
417
|
}
|
|
@@ -461,14 +461,14 @@ export const Cell = {
|
|
|
461
461
|
const { rowGroupExpandedFlag } = tableReactData;
|
|
462
462
|
const { rowGroupExpandedMaps } = tableInternalData;
|
|
463
463
|
const aggregateOpts = $table.computeAggregateOpts;
|
|
464
|
-
const { padding, indent } = aggregateOpts;
|
|
464
|
+
const { mode, padding, indent } = aggregateOpts;
|
|
465
465
|
const rowid = getRowid($table, row);
|
|
466
466
|
const isExpand = !!rowGroupExpandedFlag && !!rowGroupExpandedMaps[rowid];
|
|
467
467
|
return h('div', {
|
|
468
468
|
class: ['vxe-row-group--tree-node', {
|
|
469
469
|
'is--expanded': isExpand
|
|
470
470
|
}],
|
|
471
|
-
style: padding && indent
|
|
471
|
+
style: mode !== 'column' && padding && indent
|
|
472
472
|
? {
|
|
473
473
|
paddingLeft: `${level * indent}px`
|
|
474
474
|
}
|
package/es/table/src/methods.js
CHANGED
|
@@ -8672,9 +8672,9 @@ const Methods = {
|
|
|
8672
8672
|
const $xeTable = this;
|
|
8673
8673
|
return handleSortEvent($xeTable, null, sortConfs, isUpdate);
|
|
8674
8674
|
},
|
|
8675
|
-
setSortByEvent(evnt, sortConfs
|
|
8675
|
+
setSortByEvent(evnt, sortConfs) {
|
|
8676
8676
|
const $xeTable = this;
|
|
8677
|
-
return handleSortEvent($xeTable, evnt, sortConfs,
|
|
8677
|
+
return handleSortEvent($xeTable, evnt, sortConfs, true);
|
|
8678
8678
|
},
|
|
8679
8679
|
/**
|
|
8680
8680
|
* 清空指定列的排序条件
|
|
@@ -8706,6 +8706,7 @@ const Methods = {
|
|
|
8706
8706
|
const internalData = $xeTable;
|
|
8707
8707
|
const { tableFullColumn } = internalData;
|
|
8708
8708
|
const sortOpts = $xeTable.computeSortOpts;
|
|
8709
|
+
const { multiple } = sortOpts;
|
|
8709
8710
|
const sortCols = [];
|
|
8710
8711
|
let column = null;
|
|
8711
8712
|
if (evnt) {
|
|
@@ -8726,13 +8727,16 @@ const Methods = {
|
|
|
8726
8727
|
if (!sortOpts.remote) {
|
|
8727
8728
|
$xeTable.handleTableData(true);
|
|
8728
8729
|
}
|
|
8729
|
-
if (
|
|
8730
|
-
|
|
8731
|
-
$xeTable.dispatchEvent('clear-all-sort', params, evnt);
|
|
8730
|
+
if (!multiple) {
|
|
8731
|
+
column = sortCols[0];
|
|
8732
8732
|
}
|
|
8733
|
-
|
|
8733
|
+
if (column) {
|
|
8734
8734
|
$xeTable.handleColumnSortEvent(evnt, column);
|
|
8735
8735
|
}
|
|
8736
|
+
if (multiple && sortCols.length) {
|
|
8737
|
+
const params = { $table: $xeTable, $event: evnt, cols: sortCols, sortList: [] };
|
|
8738
|
+
$xeTable.dispatchEvent('clear-all-sort', params, evnt);
|
|
8739
|
+
}
|
|
8736
8740
|
}
|
|
8737
8741
|
return $xeTable.$nextTick().then(() => {
|
|
8738
8742
|
updateRowOffsetTop($xeTable);
|
|
@@ -8765,14 +8769,12 @@ const Methods = {
|
|
|
8765
8769
|
}
|
|
8766
8770
|
return sortList;
|
|
8767
8771
|
},
|
|
8768
|
-
setFilterByEvent(evnt, fieldOrColumn, options
|
|
8772
|
+
setFilterByEvent(evnt, fieldOrColumn, options) {
|
|
8769
8773
|
const $xeTable = this;
|
|
8770
8774
|
const column = handleFieldOrColumn($xeTable, fieldOrColumn);
|
|
8771
8775
|
if (column && column.filters) {
|
|
8772
8776
|
column.filters = toFilters(options || []);
|
|
8773
|
-
|
|
8774
|
-
return $xeTable.handleColumnConfirmFilter(column, evnt);
|
|
8775
|
-
}
|
|
8777
|
+
return $xeTable.handleColumnConfirmFilter(column, evnt);
|
|
8776
8778
|
}
|
|
8777
8779
|
return $xeTable.$nextTick();
|
|
8778
8780
|
},
|
|
@@ -8822,6 +8824,7 @@ const Methods = {
|
|
|
8822
8824
|
const { filterStore } = reactData;
|
|
8823
8825
|
const { tableFullColumn } = internalData;
|
|
8824
8826
|
const filterOpts = $xeTable.computeFilterOpts;
|
|
8827
|
+
const { multiple } = filterOpts;
|
|
8825
8828
|
const filterCols = [];
|
|
8826
8829
|
let column = null;
|
|
8827
8830
|
if (fieldOrColumn) {
|
|
@@ -8852,13 +8855,37 @@ const Methods = {
|
|
|
8852
8855
|
if (!filterOpts.remote) {
|
|
8853
8856
|
$xeTable.updateData();
|
|
8854
8857
|
}
|
|
8855
|
-
if (
|
|
8858
|
+
if (!multiple) {
|
|
8859
|
+
column = filterCols[0];
|
|
8860
|
+
}
|
|
8861
|
+
if (column) {
|
|
8862
|
+
const filterList = () => $xeTable.getCheckedFilters();
|
|
8863
|
+
const values = [];
|
|
8864
|
+
const datas = [];
|
|
8865
|
+
column.filters.forEach((item) => {
|
|
8866
|
+
if (item.checked) {
|
|
8867
|
+
values.push(item.value);
|
|
8868
|
+
datas.push(item.data);
|
|
8869
|
+
}
|
|
8870
|
+
});
|
|
8871
|
+
const params = {
|
|
8872
|
+
$table: $xeTable,
|
|
8873
|
+
$event: evnt,
|
|
8874
|
+
column,
|
|
8875
|
+
field: column.field,
|
|
8876
|
+
property: column.field,
|
|
8877
|
+
values,
|
|
8878
|
+
datas,
|
|
8879
|
+
filters: filterList,
|
|
8880
|
+
filterList
|
|
8881
|
+
};
|
|
8882
|
+
$xeTable.dispatchEvent('filter-change', params, evnt);
|
|
8883
|
+
$xeTable.dispatchEvent('clear-filter', params, evnt);
|
|
8884
|
+
}
|
|
8885
|
+
if (multiple && filterCols.length) {
|
|
8856
8886
|
const params = { $table: $xeTable, $event: evnt, cols: filterCols, filterList: [] };
|
|
8857
8887
|
$xeTable.dispatchEvent('clear-all-filter', params, evnt);
|
|
8858
8888
|
}
|
|
8859
|
-
else if (column) {
|
|
8860
|
-
$xeTable.dispatchEvent('clear-filter', { filterList: () => $xeTable.getCheckedFilters() }, evnt);
|
|
8861
|
-
}
|
|
8862
8889
|
return $xeTable.$nextTick();
|
|
8863
8890
|
},
|
|
8864
8891
|
/**
|
package/es/table/src/table.js
CHANGED
|
@@ -1607,7 +1607,10 @@ export default {
|
|
|
1607
1607
|
warnLog('vxe.error.delProp', ['row-group-config.countFields', 'column.agg-func']);
|
|
1608
1608
|
}
|
|
1609
1609
|
if (aggregateOpts.aggregateMethod) {
|
|
1610
|
-
warnLog('vxe.error.delProp', ['row-group-config.aggregateMethod', 'aggregate-config.
|
|
1610
|
+
warnLog('vxe.error.delProp', ['row-group-config.aggregateMethod', 'aggregate-config.calcValuesMethod']);
|
|
1611
|
+
}
|
|
1612
|
+
if (aggregateOpts.countMethod) {
|
|
1613
|
+
warnLog('vxe.error.delProp', ['aggregate-config.countMethod', 'aggregate-config.calcValuesMethod']);
|
|
1611
1614
|
}
|
|
1612
1615
|
if (props.treeConfig && treeOpts.children) {
|
|
1613
1616
|
warnLog('vxe.error.delProp', ['tree-config.children', 'tree-config.childrenField']);
|
package/es/ui/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VxeUI } from '@vxe-ui/core';
|
|
2
2
|
import { getFuncText } from './src/utils';
|
|
3
|
-
export const version = "3.16.
|
|
3
|
+
export const version = "3.16.7";
|
|
4
4
|
VxeUI.version = version;
|
|
5
5
|
VxeUI.tableVersion = version;
|
|
6
6
|
VxeUI.setConfig({
|
|
@@ -134,6 +134,7 @@ VxeUI.setConfig({
|
|
|
134
134
|
// filterMethod: null,
|
|
135
135
|
// destroyOnClose: false,
|
|
136
136
|
// isEvery: false,
|
|
137
|
+
multiple: true,
|
|
137
138
|
showIcon: true
|
|
138
139
|
},
|
|
139
140
|
aggregateConfig: {
|
package/es/ui/src/log.js
CHANGED
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.16.
|
|
3237
|
+
const version = "3.16.7";
|
|
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: {
|
|
@@ -3907,7 +3908,7 @@ var es_iterator_map = __webpack_require__(1701);
|
|
|
3907
3908
|
const {
|
|
3908
3909
|
log: log_log
|
|
3909
3910
|
} = core_.VxeUI;
|
|
3910
|
-
const log_version = `table v${"3.16.
|
|
3911
|
+
const log_version = `table v${"3.16.7"}`;
|
|
3911
3912
|
const warnLog = log_log.create('warn', log_version);
|
|
3912
3913
|
const errLog = log_log.create('error', log_version);
|
|
3913
3914
|
;// ./packages/table/src/columnInfo.ts
|
|
@@ -5216,7 +5217,7 @@ const Cell = {
|
|
|
5216
5217
|
contentMethod,
|
|
5217
5218
|
mapChildrenField
|
|
5218
5219
|
} = aggregateOpts;
|
|
5219
|
-
const
|
|
5220
|
+
const aggCalcMethod = aggregateOpts.calcValuesMethod || aggregateOpts.countMethod || aggregateOpts.aggregateMethod;
|
|
5220
5221
|
const groupField = aggRow.groupField;
|
|
5221
5222
|
const groupContent = aggRow.groupContent;
|
|
5222
5223
|
const childList = mapChildrenField ? aggRow[mapChildrenField] || [] : [];
|
|
@@ -5248,9 +5249,9 @@ const Cell = {
|
|
|
5248
5249
|
} else if ($table.getPivotTableAggregateCellAggValue) {
|
|
5249
5250
|
cellValue = $table.getPivotTableAggregateCellAggValue(params);
|
|
5250
5251
|
} else if (aggFunc === true || countFields && countFields.includes(field)) {
|
|
5251
|
-
if (
|
|
5252
|
+
if (aggCalcMethod) {
|
|
5252
5253
|
ctParams.aggValue = childCount;
|
|
5253
|
-
cellValue = `${
|
|
5254
|
+
cellValue = `${aggCalcMethod(ctParams)}`;
|
|
5254
5255
|
}
|
|
5255
5256
|
}
|
|
5256
5257
|
} else {
|
|
@@ -5306,6 +5307,7 @@ const Cell = {
|
|
|
5306
5307
|
} = tableInternalData;
|
|
5307
5308
|
const aggregateOpts = $table.computeAggregateOpts;
|
|
5308
5309
|
const {
|
|
5310
|
+
mode,
|
|
5309
5311
|
padding,
|
|
5310
5312
|
indent
|
|
5311
5313
|
} = aggregateOpts;
|
|
@@ -5315,7 +5317,7 @@ const Cell = {
|
|
|
5315
5317
|
class: ['vxe-row-group--tree-node', {
|
|
5316
5318
|
'is--expanded': isExpand
|
|
5317
5319
|
}],
|
|
5318
|
-
style: padding && indent ? {
|
|
5320
|
+
style: mode !== 'column' && padding && indent ? {
|
|
5319
5321
|
paddingLeft: `${level * indent}px`
|
|
5320
5322
|
} : undefined
|
|
5321
5323
|
}, [row.isAggregate ? h('span', {
|
|
@@ -16618,9 +16620,9 @@ const Methods = {
|
|
|
16618
16620
|
const $xeTable = this;
|
|
16619
16621
|
return handleSortEvent($xeTable, null, sortConfs, isUpdate);
|
|
16620
16622
|
},
|
|
16621
|
-
setSortByEvent(evnt, sortConfs
|
|
16623
|
+
setSortByEvent(evnt, sortConfs) {
|
|
16622
16624
|
const $xeTable = this;
|
|
16623
|
-
return handleSortEvent($xeTable, evnt, sortConfs,
|
|
16625
|
+
return handleSortEvent($xeTable, evnt, sortConfs, true);
|
|
16624
16626
|
},
|
|
16625
16627
|
/**
|
|
16626
16628
|
* 清空指定列的排序条件
|
|
@@ -16653,6 +16655,9 @@ const Methods = {
|
|
|
16653
16655
|
tableFullColumn
|
|
16654
16656
|
} = internalData;
|
|
16655
16657
|
const sortOpts = $xeTable.computeSortOpts;
|
|
16658
|
+
const {
|
|
16659
|
+
multiple
|
|
16660
|
+
} = sortOpts;
|
|
16656
16661
|
const sortCols = [];
|
|
16657
16662
|
let column = null;
|
|
16658
16663
|
if (evnt) {
|
|
@@ -16672,7 +16677,13 @@ const Methods = {
|
|
|
16672
16677
|
if (!sortOpts.remote) {
|
|
16673
16678
|
$xeTable.handleTableData(true);
|
|
16674
16679
|
}
|
|
16675
|
-
if (
|
|
16680
|
+
if (!multiple) {
|
|
16681
|
+
column = sortCols[0];
|
|
16682
|
+
}
|
|
16683
|
+
if (column) {
|
|
16684
|
+
$xeTable.handleColumnSortEvent(evnt, column);
|
|
16685
|
+
}
|
|
16686
|
+
if (multiple && sortCols.length) {
|
|
16676
16687
|
const params = {
|
|
16677
16688
|
$table: $xeTable,
|
|
16678
16689
|
$event: evnt,
|
|
@@ -16680,8 +16691,6 @@ const Methods = {
|
|
|
16680
16691
|
sortList: []
|
|
16681
16692
|
};
|
|
16682
16693
|
$xeTable.dispatchEvent('clear-all-sort', params, evnt);
|
|
16683
|
-
} else if (column) {
|
|
16684
|
-
$xeTable.handleColumnSortEvent(evnt, column);
|
|
16685
16694
|
}
|
|
16686
16695
|
}
|
|
16687
16696
|
return $xeTable.$nextTick().then(() => {
|
|
@@ -16727,14 +16736,12 @@ const Methods = {
|
|
|
16727
16736
|
}
|
|
16728
16737
|
return sortList;
|
|
16729
16738
|
},
|
|
16730
|
-
setFilterByEvent(evnt, fieldOrColumn, options
|
|
16739
|
+
setFilterByEvent(evnt, fieldOrColumn, options) {
|
|
16731
16740
|
const $xeTable = this;
|
|
16732
16741
|
const column = handleFieldOrColumn($xeTable, fieldOrColumn);
|
|
16733
16742
|
if (column && column.filters) {
|
|
16734
16743
|
column.filters = toFilters(options || []);
|
|
16735
|
-
|
|
16736
|
-
return $xeTable.handleColumnConfirmFilter(column, evnt);
|
|
16737
|
-
}
|
|
16744
|
+
return $xeTable.handleColumnConfirmFilter(column, evnt);
|
|
16738
16745
|
}
|
|
16739
16746
|
return $xeTable.$nextTick();
|
|
16740
16747
|
},
|
|
@@ -16793,6 +16800,9 @@ const Methods = {
|
|
|
16793
16800
|
tableFullColumn
|
|
16794
16801
|
} = internalData;
|
|
16795
16802
|
const filterOpts = $xeTable.computeFilterOpts;
|
|
16803
|
+
const {
|
|
16804
|
+
multiple
|
|
16805
|
+
} = filterOpts;
|
|
16796
16806
|
const filterCols = [];
|
|
16797
16807
|
let column = null;
|
|
16798
16808
|
if (fieldOrColumn) {
|
|
@@ -16822,7 +16832,34 @@ const Methods = {
|
|
|
16822
16832
|
if (!filterOpts.remote) {
|
|
16823
16833
|
$xeTable.updateData();
|
|
16824
16834
|
}
|
|
16825
|
-
if (
|
|
16835
|
+
if (!multiple) {
|
|
16836
|
+
column = filterCols[0];
|
|
16837
|
+
}
|
|
16838
|
+
if (column) {
|
|
16839
|
+
const filterList = () => $xeTable.getCheckedFilters();
|
|
16840
|
+
const values = [];
|
|
16841
|
+
const datas = [];
|
|
16842
|
+
column.filters.forEach(item => {
|
|
16843
|
+
if (item.checked) {
|
|
16844
|
+
values.push(item.value);
|
|
16845
|
+
datas.push(item.data);
|
|
16846
|
+
}
|
|
16847
|
+
});
|
|
16848
|
+
const params = {
|
|
16849
|
+
$table: $xeTable,
|
|
16850
|
+
$event: evnt,
|
|
16851
|
+
column,
|
|
16852
|
+
field: column.field,
|
|
16853
|
+
property: column.field,
|
|
16854
|
+
values,
|
|
16855
|
+
datas,
|
|
16856
|
+
filters: filterList,
|
|
16857
|
+
filterList
|
|
16858
|
+
};
|
|
16859
|
+
$xeTable.dispatchEvent('filter-change', params, evnt);
|
|
16860
|
+
$xeTable.dispatchEvent('clear-filter', params, evnt);
|
|
16861
|
+
}
|
|
16862
|
+
if (multiple && filterCols.length) {
|
|
16826
16863
|
const params = {
|
|
16827
16864
|
$table: $xeTable,
|
|
16828
16865
|
$event: evnt,
|
|
@@ -16830,10 +16867,6 @@ const Methods = {
|
|
|
16830
16867
|
filterList: []
|
|
16831
16868
|
};
|
|
16832
16869
|
$xeTable.dispatchEvent('clear-all-filter', params, evnt);
|
|
16833
|
-
} else if (column) {
|
|
16834
|
-
$xeTable.dispatchEvent('clear-filter', {
|
|
16835
|
-
filterList: () => $xeTable.getCheckedFilters()
|
|
16836
|
-
}, evnt);
|
|
16837
16870
|
}
|
|
16838
16871
|
return $xeTable.$nextTick();
|
|
16839
16872
|
},
|
|
@@ -30835,7 +30868,10 @@ function renderBody(h, $xeTable) {
|
|
|
30835
30868
|
warnLog('vxe.error.delProp', ['row-group-config.countFields', 'column.agg-func']);
|
|
30836
30869
|
}
|
|
30837
30870
|
if (aggregateOpts.aggregateMethod) {
|
|
30838
|
-
warnLog('vxe.error.delProp', ['row-group-config.aggregateMethod', 'aggregate-config.
|
|
30871
|
+
warnLog('vxe.error.delProp', ['row-group-config.aggregateMethod', 'aggregate-config.calcValuesMethod']);
|
|
30872
|
+
}
|
|
30873
|
+
if (aggregateOpts.countMethod) {
|
|
30874
|
+
warnLog('vxe.error.delProp', ['aggregate-config.countMethod', 'aggregate-config.calcValuesMethod']);
|
|
30839
30875
|
}
|
|
30840
30876
|
if (props.treeConfig && treeOpts.children) {
|
|
30841
30877
|
warnLog('vxe.error.delProp', ['tree-config.children', 'tree-config.childrenField']);
|
|
@@ -35517,7 +35553,7 @@ const Toolbar = VxeToolbar;
|
|
|
35517
35553
|
treeDragChild: '父级不能拖拽到自己的子级中',
|
|
35518
35554
|
reqPlugin: '扩展插件未安装 "{1}" https://vxeui.com/other{0}/#/{1}/install',
|
|
35519
35555
|
errMaxRow: '超过支持的最大数据量 {0} 行,这可能会导致出现错误',
|
|
35520
|
-
useNew: '{0}
|
|
35556
|
+
useNew: '不建议使用 {0},请使用 {1}'
|
|
35521
35557
|
},
|
|
35522
35558
|
table: {
|
|
35523
35559
|
emptyText: '暂无数据',
|