vxe-table 3.17.0-beta.4 → 3.17.0-beta.6
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 +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/module/filter/mixin.js +11 -23
- package/es/table/module/keyboard/mixin.js +2 -2
- package/es/table/src/methods.js +35 -8
- package/es/table/src/table.js +1 -1
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/index.umd.js +68 -50
- 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/module/filter/mixin.js +12 -34
- package/lib/table/module/filter/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/src/methods.js +49 -10
- package/lib/table/src/methods.min.js +1 -1
- package/lib/table/src/table.js +1 -1
- 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 +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/package.json +1 -1
- 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/module/filter/mixin.ts +13 -26
- package/packages/table/module/keyboard/mixin.ts +2 -2
- package/packages/table/src/methods.ts +36 -9
- package/packages/table/src/table.ts +1 -1
- /package/es/{iconfont.1753251251289.ttf → iconfont.1753325009048.ttf} +0 -0
- /package/es/{iconfont.1753251251289.woff → iconfont.1753325009048.woff} +0 -0
- /package/es/{iconfont.1753251251289.woff2 → iconfont.1753325009048.woff2} +0 -0
- /package/lib/{iconfont.1753251251289.ttf → iconfont.1753325009048.ttf} +0 -0
- /package/lib/{iconfont.1753251251289.woff → iconfont.1753325009048.woff} +0 -0
- /package/lib/{iconfont.1753251251289.woff2 → iconfont.1753325009048.woff2} +0 -0
|
@@ -32,12 +32,18 @@ export default {
|
|
|
32
32
|
*/
|
|
33
33
|
_setFilter(fieldOrColumn, options, isUpdate) {
|
|
34
34
|
const $xeTable = this;
|
|
35
|
-
const
|
|
35
|
+
const reactData = $xeTable;
|
|
36
|
+
const { filterStore } = reactData;
|
|
37
|
+
const column = handleFieldOrColumn($xeTable, fieldOrColumn);
|
|
36
38
|
if (column && column.filters) {
|
|
37
39
|
column.filters = toFilters(options || []);
|
|
38
40
|
if (isUpdate) {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
+
return $xeTable.handleColumnConfirmFilter(column, null);
|
|
42
|
+
}
|
|
43
|
+
else {
|
|
44
|
+
if (filterStore.visible) {
|
|
45
|
+
$xeTable.handleFilterOptions(column);
|
|
46
|
+
}
|
|
41
47
|
}
|
|
42
48
|
}
|
|
43
49
|
return $xeTable.$nextTick();
|
|
@@ -77,27 +83,9 @@ export default {
|
|
|
77
83
|
const { transfer } = filterOpts;
|
|
78
84
|
const tableRect = el.getBoundingClientRect();
|
|
79
85
|
const btnElem = evnt.currentTarget;
|
|
80
|
-
|
|
81
|
-
const compConf = isEnableConf(filterRender) ? renderer.get(filterRender.name) : null;
|
|
82
|
-
const frMethod = column.filterRecoverMethod || (compConf ? (compConf.tableFilterRecoverMethod || compConf.filterRecoverMethod) : null);
|
|
86
|
+
$xeTable.handleFilterOptions(column);
|
|
83
87
|
internalData._currFilterParams = params;
|
|
84
|
-
|
|
85
|
-
multiple: filterMultiple,
|
|
86
|
-
options: filters,
|
|
87
|
-
column,
|
|
88
|
-
style: null
|
|
89
|
-
});
|
|
90
|
-
// 复原状态
|
|
91
|
-
filterStore.options.forEach((option) => {
|
|
92
|
-
const { _checked, checked } = option;
|
|
93
|
-
option._checked = checked;
|
|
94
|
-
if (!checked && _checked !== checked) {
|
|
95
|
-
if (frMethod) {
|
|
96
|
-
frMethod({ option, column, $table: $xeTable });
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
});
|
|
100
|
-
this.checkFilterOptions();
|
|
88
|
+
filterStore.style = null;
|
|
101
89
|
filterStore.visible = true;
|
|
102
90
|
initStore.filter = true;
|
|
103
91
|
$xeTable.$nextTick(() => {
|
|
@@ -352,8 +352,8 @@ export default {
|
|
|
352
352
|
handleCellMousedownEvent(evnt, params) {
|
|
353
353
|
const $xeTable = this;
|
|
354
354
|
const { editConfig, editOpts, handleSelected, checkboxConfig, checkboxOpts, mouseConfig, mouseOpts } = this;
|
|
355
|
-
if (mouseConfig && mouseOpts.area && $xeTable.
|
|
356
|
-
return $xeTable.
|
|
355
|
+
if (mouseConfig && mouseOpts.area && $xeTable.triggerCellAreaModownEvent) {
|
|
356
|
+
return $xeTable.triggerCellAreaModownEvent(evnt, params);
|
|
357
357
|
}
|
|
358
358
|
else {
|
|
359
359
|
if (checkboxConfig && checkboxOpts.range) {
|
package/es/table/src/methods.js
CHANGED
|
@@ -1511,20 +1511,18 @@ const handleDefaultTreeExpand = ($xeTable) => {
|
|
|
1511
1511
|
const internalData = $xeTable;
|
|
1512
1512
|
const { treeConfig } = props;
|
|
1513
1513
|
if (treeConfig) {
|
|
1514
|
-
const {
|
|
1514
|
+
const { fullAllDataRowIdData } = internalData;
|
|
1515
1515
|
const treeOpts = $xeTable.computeTreeOpts;
|
|
1516
1516
|
const { expandAll, expandRowKeys } = treeOpts;
|
|
1517
|
-
const childrenField = treeOpts.children || treeOpts.childrenField;
|
|
1518
1517
|
if (expandAll) {
|
|
1519
1518
|
$xeTable.setAllTreeExpand(true);
|
|
1520
1519
|
}
|
|
1521
1520
|
else if (expandRowKeys) {
|
|
1522
1521
|
const defExpandeds = [];
|
|
1523
|
-
const rowkey = getRowkey($xeTable);
|
|
1524
1522
|
expandRowKeys.forEach((rowid) => {
|
|
1525
|
-
const
|
|
1526
|
-
if (
|
|
1527
|
-
defExpandeds.push(
|
|
1523
|
+
const rowRest = fullAllDataRowIdData[rowid];
|
|
1524
|
+
if (rowRest) {
|
|
1525
|
+
defExpandeds.push(rowRest.row);
|
|
1528
1526
|
}
|
|
1529
1527
|
});
|
|
1530
1528
|
$xeTable.setTreeExpand(defExpandeds, true);
|
|
@@ -5170,6 +5168,28 @@ const Methods = {
|
|
|
5170
5168
|
handleRefreshColumnQueue() {
|
|
5171
5169
|
this.reColumnFlag++;
|
|
5172
5170
|
},
|
|
5171
|
+
handleFilterOptions(column) {
|
|
5172
|
+
const $xeTable = this;
|
|
5173
|
+
const reactData = $xeTable;
|
|
5174
|
+
const { filterStore } = reactData;
|
|
5175
|
+
const { filters, filterMultiple, filterRender } = column;
|
|
5176
|
+
const compConf = isEnableConf(filterRender) ? renderer.get(filterRender.name) : null;
|
|
5177
|
+
const frMethod = column.filterRecoverMethod || (compConf ? (compConf.tableFilterRecoverMethod || compConf.filterRecoverMethod) : null);
|
|
5178
|
+
filterStore.multiple = filterMultiple;
|
|
5179
|
+
filterStore.options = filters;
|
|
5180
|
+
filterStore.column = column;
|
|
5181
|
+
// 复原状态
|
|
5182
|
+
filterStore.options.forEach((option) => {
|
|
5183
|
+
const { _checked, checked } = option;
|
|
5184
|
+
option._checked = checked;
|
|
5185
|
+
if (!checked && _checked !== checked) {
|
|
5186
|
+
if (frMethod) {
|
|
5187
|
+
frMethod({ option, column, $table: $xeTable });
|
|
5188
|
+
}
|
|
5189
|
+
}
|
|
5190
|
+
});
|
|
5191
|
+
$xeTable.checkFilterOptions();
|
|
5192
|
+
},
|
|
5173
5193
|
/**
|
|
5174
5194
|
* 刷新列配置
|
|
5175
5195
|
*/
|
|
@@ -7729,8 +7749,8 @@ const Methods = {
|
|
|
7729
7749
|
$xeTable.handleHeaderCellDragMousedownEvent(evnt, params);
|
|
7730
7750
|
}
|
|
7731
7751
|
}
|
|
7732
|
-
if (!triggerDrag && mouseConfig && mouseOpts.area && $xeTable.
|
|
7733
|
-
$xeTable.
|
|
7752
|
+
if (!triggerDrag && mouseConfig && mouseOpts.area && $xeTable.handleHeaderCellAreaModownEvent) {
|
|
7753
|
+
$xeTable.handleHeaderCellAreaModownEvent(evnt, Object.assign({ cell, triggerSort, triggerFilter }, params));
|
|
7734
7754
|
}
|
|
7735
7755
|
$xeTable.focus();
|
|
7736
7756
|
if ($xeTable.closeMenu) {
|
|
@@ -8797,12 +8817,19 @@ const Methods = {
|
|
|
8797
8817
|
},
|
|
8798
8818
|
setFilterByEvent(evnt, fieldOrColumn, options, isUpdate) {
|
|
8799
8819
|
const $xeTable = this;
|
|
8820
|
+
const reactData = $xeTable;
|
|
8821
|
+
const { filterStore } = reactData;
|
|
8800
8822
|
const column = handleFieldOrColumn($xeTable, fieldOrColumn);
|
|
8801
8823
|
if (column && column.filters) {
|
|
8802
8824
|
column.filters = toFilters(options || []);
|
|
8803
8825
|
if (isUpdate) {
|
|
8804
8826
|
return $xeTable.handleColumnConfirmFilter(column, evnt);
|
|
8805
8827
|
}
|
|
8828
|
+
else {
|
|
8829
|
+
if (filterStore.visible) {
|
|
8830
|
+
$xeTable.handleFilterOptions(column);
|
|
8831
|
+
}
|
|
8832
|
+
}
|
|
8806
8833
|
}
|
|
8807
8834
|
return $xeTable.$nextTick();
|
|
8808
8835
|
},
|
package/es/table/src/table.js
CHANGED
|
@@ -1572,7 +1572,7 @@ export default {
|
|
|
1572
1572
|
if (rowOpts.height && !this.showOverflow) {
|
|
1573
1573
|
warnLog('vxe.error.notProp', ['table.show-overflow']);
|
|
1574
1574
|
}
|
|
1575
|
-
if (!$xeTable.
|
|
1575
|
+
if (!$xeTable.triggerCellAreaModownEvent) {
|
|
1576
1576
|
if (props.areaConfig) {
|
|
1577
1577
|
warnLog('vxe.error.notProp', ['area-config']);
|
|
1578
1578
|
}
|
package/es/ui/index.js
CHANGED
package/es/ui/src/log.js
CHANGED
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.17.0-beta.
|
|
2005
|
+
const version = "3.17.0-beta.6";
|
|
2006
2006
|
core_.VxeUI.version = version;
|
|
2007
2007
|
core_.VxeUI.tableVersion = version;
|
|
2008
2008
|
core_.VxeUI.setConfig({
|
|
@@ -2667,7 +2667,7 @@ function isNodeElement(elem) {
|
|
|
2667
2667
|
const {
|
|
2668
2668
|
log: log_log
|
|
2669
2669
|
} = core_.VxeUI;
|
|
2670
|
-
const log_version = `table v${"3.17.0-beta.
|
|
2670
|
+
const log_version = `table v${"3.17.0-beta.6"}`;
|
|
2671
2671
|
const warnLog = log_log.create('warn', log_version);
|
|
2672
2672
|
const errLog = log_log.create('error', log_version);
|
|
2673
2673
|
;// CONCATENATED MODULE: ./packages/table/src/columnInfo.ts
|
|
@@ -7098,25 +7098,21 @@ const handleDefaultTreeExpand = $xeTable => {
|
|
|
7098
7098
|
} = props;
|
|
7099
7099
|
if (treeConfig) {
|
|
7100
7100
|
const {
|
|
7101
|
-
|
|
7101
|
+
fullAllDataRowIdData
|
|
7102
7102
|
} = internalData;
|
|
7103
7103
|
const treeOpts = $xeTable.computeTreeOpts;
|
|
7104
7104
|
const {
|
|
7105
7105
|
expandAll,
|
|
7106
7106
|
expandRowKeys
|
|
7107
7107
|
} = treeOpts;
|
|
7108
|
-
const childrenField = treeOpts.children || treeOpts.childrenField;
|
|
7109
7108
|
if (expandAll) {
|
|
7110
7109
|
$xeTable.setAllTreeExpand(true);
|
|
7111
7110
|
} else if (expandRowKeys) {
|
|
7112
7111
|
const defExpandeds = [];
|
|
7113
|
-
const rowkey = getRowkey($xeTable);
|
|
7114
7112
|
expandRowKeys.forEach(rowid => {
|
|
7115
|
-
const
|
|
7116
|
-
|
|
7117
|
-
|
|
7118
|
-
if (matchObj) {
|
|
7119
|
-
defExpandeds.push(matchObj.item);
|
|
7113
|
+
const rowRest = fullAllDataRowIdData[rowid];
|
|
7114
|
+
if (rowRest) {
|
|
7115
|
+
defExpandeds.push(rowRest.row);
|
|
7120
7116
|
}
|
|
7121
7117
|
});
|
|
7122
7118
|
$xeTable.setTreeExpand(defExpandeds, true);
|
|
@@ -11286,6 +11282,41 @@ const Methods = {
|
|
|
11286
11282
|
handleRefreshColumnQueue() {
|
|
11287
11283
|
this.reColumnFlag++;
|
|
11288
11284
|
},
|
|
11285
|
+
handleFilterOptions(column) {
|
|
11286
|
+
const $xeTable = this;
|
|
11287
|
+
const reactData = $xeTable;
|
|
11288
|
+
const {
|
|
11289
|
+
filterStore
|
|
11290
|
+
} = reactData;
|
|
11291
|
+
const {
|
|
11292
|
+
filters,
|
|
11293
|
+
filterMultiple,
|
|
11294
|
+
filterRender
|
|
11295
|
+
} = column;
|
|
11296
|
+
const compConf = isEnableConf(filterRender) ? methods_renderer.get(filterRender.name) : null;
|
|
11297
|
+
const frMethod = column.filterRecoverMethod || (compConf ? compConf.tableFilterRecoverMethod || compConf.filterRecoverMethod : null);
|
|
11298
|
+
filterStore.multiple = filterMultiple;
|
|
11299
|
+
filterStore.options = filters;
|
|
11300
|
+
filterStore.column = column;
|
|
11301
|
+
// 复原状态
|
|
11302
|
+
filterStore.options.forEach(option => {
|
|
11303
|
+
const {
|
|
11304
|
+
_checked,
|
|
11305
|
+
checked
|
|
11306
|
+
} = option;
|
|
11307
|
+
option._checked = checked;
|
|
11308
|
+
if (!checked && _checked !== checked) {
|
|
11309
|
+
if (frMethod) {
|
|
11310
|
+
frMethod({
|
|
11311
|
+
option,
|
|
11312
|
+
column,
|
|
11313
|
+
$table: $xeTable
|
|
11314
|
+
});
|
|
11315
|
+
}
|
|
11316
|
+
}
|
|
11317
|
+
});
|
|
11318
|
+
$xeTable.checkFilterOptions();
|
|
11319
|
+
},
|
|
11289
11320
|
/**
|
|
11290
11321
|
* 刷新列配置
|
|
11291
11322
|
*/
|
|
@@ -14294,8 +14325,8 @@ const Methods = {
|
|
|
14294
14325
|
$xeTable.handleHeaderCellDragMousedownEvent(evnt, params);
|
|
14295
14326
|
}
|
|
14296
14327
|
}
|
|
14297
|
-
if (!triggerDrag && mouseConfig && mouseOpts.area && $xeTable.
|
|
14298
|
-
$xeTable.
|
|
14328
|
+
if (!triggerDrag && mouseConfig && mouseOpts.area && $xeTable.handleHeaderCellAreaModownEvent) {
|
|
14329
|
+
$xeTable.handleHeaderCellAreaModownEvent(evnt, Object.assign({
|
|
14299
14330
|
cell,
|
|
14300
14331
|
triggerSort,
|
|
14301
14332
|
triggerFilter
|
|
@@ -15495,11 +15526,19 @@ const Methods = {
|
|
|
15495
15526
|
},
|
|
15496
15527
|
setFilterByEvent(evnt, fieldOrColumn, options, isUpdate) {
|
|
15497
15528
|
const $xeTable = this;
|
|
15529
|
+
const reactData = $xeTable;
|
|
15530
|
+
const {
|
|
15531
|
+
filterStore
|
|
15532
|
+
} = reactData;
|
|
15498
15533
|
const column = handleFieldOrColumn($xeTable, fieldOrColumn);
|
|
15499
15534
|
if (column && column.filters) {
|
|
15500
15535
|
column.filters = toFilters(options || []);
|
|
15501
15536
|
if (isUpdate) {
|
|
15502
15537
|
return $xeTable.handleColumnConfirmFilter(column, evnt);
|
|
15538
|
+
} else {
|
|
15539
|
+
if (filterStore.visible) {
|
|
15540
|
+
$xeTable.handleFilterOptions(column);
|
|
15541
|
+
}
|
|
15503
15542
|
}
|
|
15504
15543
|
}
|
|
15505
15544
|
return $xeTable.$nextTick();
|
|
@@ -22332,12 +22371,19 @@ const {
|
|
|
22332
22371
|
*/
|
|
22333
22372
|
_setFilter(fieldOrColumn, options, isUpdate) {
|
|
22334
22373
|
const $xeTable = this;
|
|
22335
|
-
const
|
|
22374
|
+
const reactData = $xeTable;
|
|
22375
|
+
const {
|
|
22376
|
+
filterStore
|
|
22377
|
+
} = reactData;
|
|
22378
|
+
const column = handleFieldOrColumn($xeTable, fieldOrColumn);
|
|
22336
22379
|
if (column && column.filters) {
|
|
22337
22380
|
column.filters = toFilters(options || []);
|
|
22338
22381
|
if (isUpdate) {
|
|
22339
|
-
|
|
22340
|
-
|
|
22382
|
+
return $xeTable.handleColumnConfirmFilter(column, null);
|
|
22383
|
+
} else {
|
|
22384
|
+
if (filterStore.visible) {
|
|
22385
|
+
$xeTable.handleFilterOptions(column);
|
|
22386
|
+
}
|
|
22341
22387
|
}
|
|
22342
22388
|
}
|
|
22343
22389
|
return $xeTable.$nextTick();
|
|
@@ -22391,38 +22437,9 @@ const {
|
|
|
22391
22437
|
} = filterOpts;
|
|
22392
22438
|
const tableRect = el.getBoundingClientRect();
|
|
22393
22439
|
const btnElem = evnt.currentTarget;
|
|
22394
|
-
|
|
22395
|
-
filters,
|
|
22396
|
-
filterMultiple,
|
|
22397
|
-
filterRender
|
|
22398
|
-
} = column;
|
|
22399
|
-
const compConf = isEnableConf(filterRender) ? mixin_renderer.get(filterRender.name) : null;
|
|
22400
|
-
const frMethod = column.filterRecoverMethod || (compConf ? compConf.tableFilterRecoverMethod || compConf.filterRecoverMethod : null);
|
|
22440
|
+
$xeTable.handleFilterOptions(column);
|
|
22401
22441
|
internalData._currFilterParams = params;
|
|
22402
|
-
|
|
22403
|
-
multiple: filterMultiple,
|
|
22404
|
-
options: filters,
|
|
22405
|
-
column,
|
|
22406
|
-
style: null
|
|
22407
|
-
});
|
|
22408
|
-
// 复原状态
|
|
22409
|
-
filterStore.options.forEach(option => {
|
|
22410
|
-
const {
|
|
22411
|
-
_checked,
|
|
22412
|
-
checked
|
|
22413
|
-
} = option;
|
|
22414
|
-
option._checked = checked;
|
|
22415
|
-
if (!checked && _checked !== checked) {
|
|
22416
|
-
if (frMethod) {
|
|
22417
|
-
frMethod({
|
|
22418
|
-
option,
|
|
22419
|
-
column,
|
|
22420
|
-
$table: $xeTable
|
|
22421
|
-
});
|
|
22422
|
-
}
|
|
22423
|
-
}
|
|
22424
|
-
});
|
|
22425
|
-
this.checkFilterOptions();
|
|
22442
|
+
filterStore.style = null;
|
|
22426
22443
|
filterStore.visible = true;
|
|
22427
22444
|
initStore.filter = true;
|
|
22428
22445
|
$xeTable.$nextTick(() => {
|
|
@@ -26604,8 +26621,8 @@ function handleMoveSelected($xeTable, evnt, args, isLeftArrow, isUpArrow, isRigh
|
|
|
26604
26621
|
mouseConfig,
|
|
26605
26622
|
mouseOpts
|
|
26606
26623
|
} = this;
|
|
26607
|
-
if (mouseConfig && mouseOpts.area && $xeTable.
|
|
26608
|
-
return $xeTable.
|
|
26624
|
+
if (mouseConfig && mouseOpts.area && $xeTable.triggerCellAreaModownEvent) {
|
|
26625
|
+
return $xeTable.triggerCellAreaModownEvent(evnt, params);
|
|
26609
26626
|
} else {
|
|
26610
26627
|
if (checkboxConfig && checkboxOpts.range) {
|
|
26611
26628
|
this.handleCheckboxRangeEvent(evnt, params);
|
|
@@ -29548,7 +29565,7 @@ function renderBody(h, $xeTable) {
|
|
|
29548
29565
|
if (rowOpts.height && !this.showOverflow) {
|
|
29549
29566
|
warnLog('vxe.error.notProp', ['table.show-overflow']);
|
|
29550
29567
|
}
|
|
29551
|
-
if (!$xeTable.
|
|
29568
|
+
if (!$xeTable.triggerCellAreaModownEvent) {
|
|
29552
29569
|
if (props.areaConfig) {
|
|
29553
29570
|
warnLog('vxe.error.notProp', ['area-config']);
|
|
29554
29571
|
}
|
|
@@ -34256,7 +34273,8 @@ const Toolbar = VxeToolbar;
|
|
|
34256
34273
|
treeCrossDrag: '只能拖拽第一层级',
|
|
34257
34274
|
treeDragChild: '父级不能拖拽到自己的子级中',
|
|
34258
34275
|
reqPlugin: '扩展插件未安装 "{1}" https://vxeui.com/other{0}/#/{1}/install',
|
|
34259
|
-
errMaxRow: '超过支持的最大数据量 {0} 行,这可能会导致出现错误'
|
|
34276
|
+
errMaxRow: '超过支持的最大数据量 {0} 行,这可能会导致出现错误',
|
|
34277
|
+
useNew: '{0} 已经不建议使用,请使用新的方式 {1}'
|
|
34260
34278
|
},
|
|
34261
34279
|
table: {
|
|
34262
34280
|
emptyText: '暂无数据',
|