vxe-table 4.1.5 → 4.1.8
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/export/src/hook.js +16 -5
- package/es/form/src/form.js +2 -2
- package/es/grid/src/grid.js +6 -2
- package/es/table/src/props.js +6 -6
- package/es/table/src/table.js +25 -18
- package/es/v-x-e-table/src/conf.js +4 -1
- package/es/validator/src/hook.js +3 -3
- package/lib/export/src/hook.js +27 -10
- package/lib/export/src/hook.min.js +1 -1
- package/lib/form/src/form.js +2 -2
- package/lib/form/src/form.min.js +1 -1
- package/lib/grid/src/grid.js +6 -3
- package/lib/grid/src/grid.min.js +1 -1
- package/lib/index.umd.js +95 -140
- package/lib/index.umd.min.js +2 -1
- package/lib/table/src/props.js +6 -6
- package/lib/table/src/table.js +28 -22
- package/lib/table/src/table.min.js +1 -1
- package/lib/v-x-e-table/src/conf.js +4 -1
- package/lib/v-x-e-table/src/conf.min.js +1 -1
- package/lib/validator/src/hook.js +3 -3
- package/lib/validator/src/hook.min.js +1 -1
- package/package.json +3 -26
- package/packages/export/src/hook.ts +16 -5
- package/packages/form/src/form.ts +2 -2
- package/packages/grid/src/grid.ts +6 -2
- package/packages/table/src/props.ts +6 -6
- package/packages/table/src/table.ts +24 -17
- package/packages/v-x-e-table/src/conf.ts +4 -1
- package/packages/v-x-e-table/src/renderer.ts +1 -1
- package/packages/validator/src/hook.ts +3 -3
- package/types/table.d.ts +4 -0
- package/types/v-x-e-table/renderer.d.ts +4 -2
package/lib/index.umd.js
CHANGED
|
@@ -8420,6 +8420,7 @@ var GlobalConfig = {
|
|
|
8420
8420
|
showHeader: true,
|
|
8421
8421
|
animat: true,
|
|
8422
8422
|
delayHover: 250,
|
|
8423
|
+
autoResize: true,
|
|
8423
8424
|
// keepSource: false,
|
|
8424
8425
|
// showOverflow: null,
|
|
8425
8426
|
// showHeaderOverflow: null,
|
|
@@ -8427,7 +8428,6 @@ var GlobalConfig = {
|
|
|
8427
8428
|
// resizeInterval: 500,
|
|
8428
8429
|
// size: null,
|
|
8429
8430
|
// zIndex: null,
|
|
8430
|
-
// autoResize: false,
|
|
8431
8431
|
// stripe: false,
|
|
8432
8432
|
// border: false,
|
|
8433
8433
|
// round: false,
|
|
@@ -8500,6 +8500,9 @@ var GlobalConfig = {
|
|
|
8500
8500
|
mouseConfig: {
|
|
8501
8501
|
extension: true
|
|
8502
8502
|
},
|
|
8503
|
+
keyboardConfig: {
|
|
8504
|
+
isEsc: true
|
|
8505
|
+
},
|
|
8503
8506
|
areaConfig: {
|
|
8504
8507
|
selectCellByHeader: true
|
|
8505
8508
|
},
|
|
@@ -8927,9 +8930,6 @@ var es_regexp_exec = __webpack_require__("ac1f");
|
|
|
8927
8930
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.replace.js
|
|
8928
8931
|
var es_string_replace = __webpack_require__("5319");
|
|
8929
8932
|
|
|
8930
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.assign.js
|
|
8931
|
-
var es_object_assign = __webpack_require__("cca6");
|
|
8932
|
-
|
|
8933
8933
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
|
|
8934
8934
|
var es_array_concat = __webpack_require__("99af");
|
|
8935
8935
|
|
|
@@ -8954,9 +8954,6 @@ var es_array_slice = __webpack_require__("fb6a");
|
|
|
8954
8954
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.to-string.js
|
|
8955
8955
|
var es_object_to_string = __webpack_require__("d3b7");
|
|
8956
8956
|
|
|
8957
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.promise.js
|
|
8958
|
-
var es_promise = __webpack_require__("e6cf");
|
|
8959
|
-
|
|
8960
8957
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.fixed.js
|
|
8961
8958
|
var es_string_fixed = __webpack_require__("c7cd");
|
|
8962
8959
|
|
|
@@ -8971,7 +8968,6 @@ var es_string_fixed = __webpack_require__("c7cd");
|
|
|
8971
8968
|
|
|
8972
8969
|
|
|
8973
8970
|
|
|
8974
|
-
|
|
8975
8971
|
var columnInfo_ColumnInfo = /*#__PURE__*/function () {
|
|
8976
8972
|
/* eslint-disable @typescript-eslint/no-use-before-define */
|
|
8977
8973
|
function ColumnInfo($xetable, _vm) {
|
|
@@ -9348,7 +9344,6 @@ function dom_triggerEvent(targetElem, type) {
|
|
|
9348
9344
|
|
|
9349
9345
|
|
|
9350
9346
|
|
|
9351
|
-
|
|
9352
9347
|
function restoreScrollLocation($xetable, scrollLeft, scrollTop) {
|
|
9353
9348
|
var internalData = $xetable.internalData;
|
|
9354
9349
|
return $xetable.clearScroll().then(function () {
|
|
@@ -9730,7 +9725,6 @@ function getOnName(type) {
|
|
|
9730
9725
|
|
|
9731
9726
|
|
|
9732
9727
|
|
|
9733
|
-
|
|
9734
9728
|
var componentDefaultModelProp = 'modelValue';
|
|
9735
9729
|
var defaultCompProps = {
|
|
9736
9730
|
transfer: true
|
|
@@ -10520,7 +10514,6 @@ var renderer = {
|
|
|
10520
10514
|
|
|
10521
10515
|
|
|
10522
10516
|
|
|
10523
|
-
|
|
10524
10517
|
/**
|
|
10525
10518
|
* 创建数据仓库
|
|
10526
10519
|
*/
|
|
@@ -10578,7 +10571,6 @@ var store_Store = /*#__PURE__*/function () {
|
|
|
10578
10571
|
/* harmony default export */ var store = (store_Store);
|
|
10579
10572
|
// CONCATENATED MODULE: ./packages/v-x-e-table/src/commands.ts
|
|
10580
10573
|
|
|
10581
|
-
|
|
10582
10574
|
var commands = new store();
|
|
10583
10575
|
|
|
10584
10576
|
if (true) {
|
|
@@ -10588,7 +10580,6 @@ if (true) {
|
|
|
10588
10580
|
}
|
|
10589
10581
|
// CONCATENATED MODULE: ./packages/v-x-e-table/src/menus.ts
|
|
10590
10582
|
|
|
10591
|
-
|
|
10592
10583
|
var menus = new store();
|
|
10593
10584
|
|
|
10594
10585
|
if (true) {
|
|
@@ -10598,7 +10589,6 @@ if (true) {
|
|
|
10598
10589
|
}
|
|
10599
10590
|
// CONCATENATED MODULE: ./packages/v-x-e-table/src/formats.ts
|
|
10600
10591
|
|
|
10601
|
-
|
|
10602
10592
|
var formats = new store();
|
|
10603
10593
|
|
|
10604
10594
|
if (true) {
|
|
@@ -10748,7 +10738,6 @@ var Icon = {
|
|
|
10748
10738
|
|
|
10749
10739
|
|
|
10750
10740
|
|
|
10751
|
-
|
|
10752
10741
|
/* harmony default export */ var panel = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({
|
|
10753
10742
|
name: 'VxeTableFilter',
|
|
10754
10743
|
props: {
|
|
@@ -10971,7 +10960,6 @@ var Icon = {
|
|
|
10971
10960
|
|
|
10972
10961
|
|
|
10973
10962
|
|
|
10974
|
-
|
|
10975
10963
|
var tableFilterMethodKeys = ['setFilter', 'clearFilter', 'getCheckedFilters'];
|
|
10976
10964
|
var tableFilterHook = {
|
|
10977
10965
|
setupTable: function setupTable($xetable) {
|
|
@@ -11556,7 +11544,6 @@ if (browse.isDoc) {
|
|
|
11556
11544
|
|
|
11557
11545
|
|
|
11558
11546
|
|
|
11559
|
-
|
|
11560
11547
|
var tableMenuMethodKeys = ['closeMenu'];
|
|
11561
11548
|
var tableMenuHook = {
|
|
11562
11549
|
setupTable: function setupTable($xetable) {
|
|
@@ -11981,9 +11968,6 @@ var es_symbol_description = __webpack_require__("e01a");
|
|
|
11981
11968
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.symbol.iterator.js
|
|
11982
11969
|
var es_symbol_iterator = __webpack_require__("d28b");
|
|
11983
11970
|
|
|
11984
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.iterator.js
|
|
11985
|
-
var es_array_iterator = __webpack_require__("e260");
|
|
11986
|
-
|
|
11987
11971
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.iterator.js
|
|
11988
11972
|
var es_string_iterator = __webpack_require__("3ca3");
|
|
11989
11973
|
|
|
@@ -12001,7 +11985,6 @@ var es_array_from = __webpack_require__("a630");
|
|
|
12001
11985
|
|
|
12002
11986
|
|
|
12003
11987
|
|
|
12004
|
-
|
|
12005
11988
|
function _iterableToArray(iter) {
|
|
12006
11989
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
12007
11990
|
}
|
|
@@ -12049,7 +12032,6 @@ function _toConsumableArray(arr) {
|
|
|
12049
12032
|
|
|
12050
12033
|
|
|
12051
12034
|
|
|
12052
|
-
|
|
12053
12035
|
var tableEditMethodKeys = ['insert', 'insertAt', 'remove', 'removeCheckboxRow', 'removeRadioRow', 'removeCurrentRow', 'getRecordset', 'getInsertRecords', 'getRemoveRecords', 'getUpdateRecords', 'getActiveRecord', 'getSelectedCell', 'clearActived', 'clearSelected', 'isActiveByRow', 'setActiveRow', 'setActiveCell', 'setSelectCell'];
|
|
12054
12036
|
var editHook = {
|
|
12055
12037
|
setupTable: function setupTable($xetable) {
|
|
@@ -12996,7 +12978,6 @@ function _arrayWithHoles(arr) {
|
|
|
12996
12978
|
|
|
12997
12979
|
|
|
12998
12980
|
|
|
12999
|
-
|
|
13000
12981
|
function _iterableToArrayLimit(arr, i) {
|
|
13001
12982
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
13002
12983
|
|
|
@@ -13067,7 +13048,6 @@ function useSize(props) {
|
|
|
13067
13048
|
|
|
13068
13049
|
|
|
13069
13050
|
|
|
13070
|
-
|
|
13071
13051
|
/* harmony default export */ var src_button = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({
|
|
13072
13052
|
name: 'VxeButton',
|
|
13073
13053
|
props: {
|
|
@@ -13544,8 +13524,6 @@ function useSize(props) {
|
|
|
13544
13524
|
|
|
13545
13525
|
|
|
13546
13526
|
|
|
13547
|
-
|
|
13548
|
-
|
|
13549
13527
|
|
|
13550
13528
|
var allActivedModals = [];
|
|
13551
13529
|
var msgQueue = [];
|
|
@@ -14762,7 +14740,6 @@ var es_string_pad_start = __webpack_require__("4d90");
|
|
|
14762
14740
|
|
|
14763
14741
|
|
|
14764
14742
|
|
|
14765
|
-
|
|
14766
14743
|
var yearSize = 20;
|
|
14767
14744
|
var monthSize = 20;
|
|
14768
14745
|
var quarterSize = 8;
|
|
@@ -17221,7 +17198,6 @@ var es_string_includes = __webpack_require__("2532");
|
|
|
17221
17198
|
|
|
17222
17199
|
|
|
17223
17200
|
|
|
17224
|
-
|
|
17225
17201
|
/* harmony default export */ var src_checkbox = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({
|
|
17226
17202
|
name: 'VxeCheckbox',
|
|
17227
17203
|
props: {
|
|
@@ -17347,7 +17323,6 @@ var es_string_includes = __webpack_require__("2532");
|
|
|
17347
17323
|
|
|
17348
17324
|
|
|
17349
17325
|
|
|
17350
|
-
|
|
17351
17326
|
function isOptionVisible(option) {
|
|
17352
17327
|
return option.visible !== false;
|
|
17353
17328
|
}
|
|
@@ -18287,7 +18262,6 @@ function getOptUniqueId() {
|
|
|
18287
18262
|
|
|
18288
18263
|
|
|
18289
18264
|
|
|
18290
|
-
|
|
18291
18265
|
/* harmony default export */ var export_panel = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({
|
|
18292
18266
|
name: 'VxeExportPanel',
|
|
18293
18267
|
props: {
|
|
@@ -18658,7 +18632,6 @@ function getOptUniqueId() {
|
|
|
18658
18632
|
|
|
18659
18633
|
|
|
18660
18634
|
|
|
18661
|
-
|
|
18662
18635
|
/* harmony default export */ var src_group = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({
|
|
18663
18636
|
name: 'VxeRadioGroup',
|
|
18664
18637
|
props: {
|
|
@@ -18722,7 +18695,6 @@ function getOptUniqueId() {
|
|
|
18722
18695
|
|
|
18723
18696
|
|
|
18724
18697
|
|
|
18725
|
-
|
|
18726
18698
|
/* harmony default export */ var src_radio = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({
|
|
18727
18699
|
name: 'VxeRadio',
|
|
18728
18700
|
props: {
|
|
@@ -18839,7 +18811,6 @@ function getOptUniqueId() {
|
|
|
18839
18811
|
|
|
18840
18812
|
|
|
18841
18813
|
|
|
18842
|
-
|
|
18843
18814
|
/* harmony default export */ var import_panel = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({
|
|
18844
18815
|
name: 'VxeImportPanel',
|
|
18845
18816
|
props: {
|
|
@@ -19007,6 +18978,18 @@ var es_string_repeat = __webpack_require__("38cf");
|
|
|
19007
18978
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.trim.js
|
|
19008
18979
|
var es_string_trim = __webpack_require__("498a");
|
|
19009
18980
|
|
|
18981
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.iterator.js
|
|
18982
|
+
var es_array_iterator = __webpack_require__("e260");
|
|
18983
|
+
|
|
18984
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.map.js
|
|
18985
|
+
var es_map = __webpack_require__("4ec9");
|
|
18986
|
+
|
|
18987
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.assign.js
|
|
18988
|
+
var es_object_assign = __webpack_require__("cca6");
|
|
18989
|
+
|
|
18990
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.promise.js
|
|
18991
|
+
var es_promise = __webpack_require__("e6cf");
|
|
18992
|
+
|
|
19010
18993
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/web.url.js
|
|
19011
18994
|
var web_url = __webpack_require__("2b3d");
|
|
19012
18995
|
|
|
@@ -19028,9 +19011,6 @@ var web_url_search_params = __webpack_require__("9861");
|
|
|
19028
19011
|
|
|
19029
19012
|
|
|
19030
19013
|
|
|
19031
|
-
|
|
19032
|
-
|
|
19033
|
-
|
|
19034
19014
|
// 导入
|
|
19035
19015
|
|
|
19036
19016
|
var fileForm;
|
|
@@ -19255,6 +19235,11 @@ var util_saveLocalFile = function saveLocalFile(options) {
|
|
|
19255
19235
|
|
|
19256
19236
|
|
|
19257
19237
|
|
|
19238
|
+
|
|
19239
|
+
|
|
19240
|
+
|
|
19241
|
+
|
|
19242
|
+
|
|
19258
19243
|
|
|
19259
19244
|
|
|
19260
19245
|
|
|
@@ -19361,6 +19346,10 @@ function getFooterData(opts, footerTableData) {
|
|
|
19361
19346
|
|
|
19362
19347
|
function getCsvCellTypeLabel(column, cellValue) {
|
|
19363
19348
|
if (cellValue) {
|
|
19349
|
+
if (column.type === 'seq') {
|
|
19350
|
+
return "\t".concat(cellValue);
|
|
19351
|
+
}
|
|
19352
|
+
|
|
19364
19353
|
switch (column.cellType) {
|
|
19365
19354
|
case 'string':
|
|
19366
19355
|
if (!isNaN(cellValue)) {
|
|
@@ -19602,15 +19591,26 @@ var tableExportHook = {
|
|
|
19602
19591
|
return row[treeOpts.children] && row[treeOpts.children].length;
|
|
19603
19592
|
};
|
|
19604
19593
|
|
|
19605
|
-
var getSeq = function getSeq(row, rowIndex, column, columnIndex) {
|
|
19594
|
+
var getSeq = function getSeq(row, rowIndex, column, columnIndex, paths) {
|
|
19606
19595
|
var seqOpts = computeSeqOpts.value;
|
|
19607
19596
|
var seqMethod = seqOpts.seqMethod || column.seqMethod;
|
|
19608
|
-
|
|
19609
|
-
|
|
19610
|
-
|
|
19611
|
-
|
|
19612
|
-
|
|
19613
|
-
|
|
19597
|
+
|
|
19598
|
+
if (seqMethod) {
|
|
19599
|
+
return seqMethod({
|
|
19600
|
+
row: row,
|
|
19601
|
+
rowIndex: rowIndex,
|
|
19602
|
+
column: column,
|
|
19603
|
+
columnIndex: columnIndex
|
|
19604
|
+
});
|
|
19605
|
+
}
|
|
19606
|
+
|
|
19607
|
+
if (paths) {
|
|
19608
|
+
return paths.map(function (num, i) {
|
|
19609
|
+
return i % 2 === 0 ? Number(num) + 1 : '.';
|
|
19610
|
+
}).join('');
|
|
19611
|
+
}
|
|
19612
|
+
|
|
19613
|
+
return seqOpts.startIndex + rowIndex + 1;
|
|
19614
19614
|
};
|
|
19615
19615
|
|
|
19616
19616
|
var toBooleanValue = function toBooleanValue(cellValue) {
|
|
@@ -19631,11 +19631,12 @@ var tableExportHook = {
|
|
|
19631
19631
|
if (treeConfig) {
|
|
19632
19632
|
// 如果是树表格只允许导出数据源
|
|
19633
19633
|
var rest = [];
|
|
19634
|
+
var expandMaps = new Map();
|
|
19634
19635
|
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.eachTree(datas, function (item, rowIndex, items, path, parent, nodes) {
|
|
19635
19636
|
var row = item._row || item;
|
|
19636
19637
|
var parentRow = parent && parent._row ? parent._row : parent;
|
|
19637
19638
|
|
|
19638
|
-
if (isAllExpand || !parentRow || $xetable.isTreeExpandByRow(parentRow)) {
|
|
19639
|
+
if (isAllExpand || !parentRow || expandMaps.has(parentRow) && $xetable.isTreeExpandByRow(parentRow)) {
|
|
19639
19640
|
var hasRowChild = hasTreeChildren(row);
|
|
19640
19641
|
var _item = {
|
|
19641
19642
|
_row: row,
|
|
@@ -19666,7 +19667,7 @@ var tableExportHook = {
|
|
|
19666
19667
|
} else {
|
|
19667
19668
|
switch (column.type) {
|
|
19668
19669
|
case 'seq':
|
|
19669
|
-
cellValue = getSeq(row, rowIndex, column, columnIndex);
|
|
19670
|
+
cellValue = getSeq(row, rowIndex, column, columnIndex, path);
|
|
19670
19671
|
break;
|
|
19671
19672
|
|
|
19672
19673
|
case 'checkbox':
|
|
@@ -19708,6 +19709,7 @@ var tableExportHook = {
|
|
|
19708
19709
|
|
|
19709
19710
|
_item[column.id] = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.toValueString(cellValue);
|
|
19710
19711
|
});
|
|
19712
|
+
expandMaps.set(row, 1);
|
|
19711
19713
|
rest.push(Object.assign(_item, row));
|
|
19712
19714
|
}
|
|
19713
19715
|
}, treeOpts);
|
|
@@ -19741,7 +19743,7 @@ var tableExportHook = {
|
|
|
19741
19743
|
} else {
|
|
19742
19744
|
switch (column.type) {
|
|
19743
19745
|
case 'seq':
|
|
19744
|
-
cellValue = getSeq(row, rowIndex, column, columnIndex);
|
|
19746
|
+
cellValue = getSeq(row, rowIndex, column, columnIndex, []);
|
|
19745
19747
|
break;
|
|
19746
19748
|
|
|
19747
19749
|
case 'checkbox':
|
|
@@ -20976,7 +20978,6 @@ var tableExportHook = {
|
|
|
20976
20978
|
|
|
20977
20979
|
|
|
20978
20980
|
|
|
20979
|
-
|
|
20980
20981
|
var export_print = function print(options) {
|
|
20981
20982
|
var opts = Object.assign({}, options, {
|
|
20982
20983
|
type: 'html'
|
|
@@ -21015,7 +21016,6 @@ var Export = {
|
|
|
21015
21016
|
|
|
21016
21017
|
|
|
21017
21018
|
|
|
21018
|
-
|
|
21019
21019
|
function getTargetOffset(target, container) {
|
|
21020
21020
|
var offsetTop = 0;
|
|
21021
21021
|
var offsetLeft = 0;
|
|
@@ -21522,9 +21522,6 @@ var Keyboard = {
|
|
|
21522
21522
|
|
|
21523
21523
|
|
|
21524
21524
|
|
|
21525
|
-
|
|
21526
|
-
|
|
21527
|
-
|
|
21528
21525
|
/**
|
|
21529
21526
|
* 校验规则
|
|
21530
21527
|
*/
|
|
@@ -21699,7 +21696,7 @@ var validatorHook = {
|
|
|
21699
21696
|
var ruleProps = Object.keys(validRest);
|
|
21700
21697
|
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["nextTick"])().then(function () {
|
|
21701
21698
|
if (ruleProps.length) {
|
|
21702
|
-
return
|
|
21699
|
+
return validRest[ruleProps[0]][0];
|
|
21703
21700
|
}
|
|
21704
21701
|
|
|
21705
21702
|
if (cb) {
|
|
@@ -21707,14 +21704,14 @@ var validatorHook = {
|
|
|
21707
21704
|
}
|
|
21708
21705
|
});
|
|
21709
21706
|
}).catch(function (firstErrParams) {
|
|
21710
|
-
return new Promise(function (resolve
|
|
21707
|
+
return new Promise(function (resolve) {
|
|
21711
21708
|
var finish = function finish() {
|
|
21712
21709
|
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["nextTick"])(function () {
|
|
21713
21710
|
if (cb) {
|
|
21714
21711
|
cb(validRest);
|
|
21715
21712
|
resolve();
|
|
21716
21713
|
} else {
|
|
21717
|
-
|
|
21714
|
+
resolve(validRest);
|
|
21718
21715
|
}
|
|
21719
21716
|
});
|
|
21720
21717
|
};
|
|
@@ -22440,7 +22437,6 @@ var renderType = 'header';
|
|
|
22440
22437
|
|
|
22441
22438
|
|
|
22442
22439
|
|
|
22443
|
-
|
|
22444
22440
|
var Header = Object.assign(header, {
|
|
22445
22441
|
install: function install(app) {
|
|
22446
22442
|
dynamicApp.component(header.name, header);
|
|
@@ -22458,7 +22454,6 @@ var Header = Object.assign(header, {
|
|
|
22458
22454
|
|
|
22459
22455
|
|
|
22460
22456
|
|
|
22461
|
-
|
|
22462
22457
|
var footer_renderType = 'footer';
|
|
22463
22458
|
|
|
22464
22459
|
function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
@@ -22818,7 +22813,6 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
22818
22813
|
|
|
22819
22814
|
|
|
22820
22815
|
|
|
22821
|
-
|
|
22822
22816
|
var Footer = Object.assign(footer, {
|
|
22823
22817
|
install: function install(app) {
|
|
22824
22818
|
dynamicApp.component(footer.name, footer);
|
|
@@ -22838,7 +22832,6 @@ var Footer = Object.assign(footer, {
|
|
|
22838
22832
|
|
|
22839
22833
|
|
|
22840
22834
|
|
|
22841
|
-
|
|
22842
22835
|
function renderHelpIcon(params) {
|
|
22843
22836
|
var $table = params.$table,
|
|
22844
22837
|
column = params.column;
|
|
@@ -23937,7 +23930,6 @@ var columnProps = {
|
|
|
23937
23930
|
|
|
23938
23931
|
|
|
23939
23932
|
|
|
23940
|
-
|
|
23941
23933
|
var Column = Object.assign(src_column, {
|
|
23942
23934
|
install: function install(app) {
|
|
23943
23935
|
dynamicApp.component(src_column.name, src_column);
|
|
@@ -23996,7 +23988,6 @@ var Column = Object.assign(src_column, {
|
|
|
23996
23988
|
|
|
23997
23989
|
|
|
23998
23990
|
|
|
23999
|
-
|
|
24000
23991
|
var Colgroup = Object.assign(table_src_group, {
|
|
24001
23992
|
install: function install(app) {
|
|
24002
23993
|
dynamicApp.component(table_src_group.name, table_src_group);
|
|
@@ -24094,35 +24085,35 @@ var es_array_sort = __webpack_require__("4e82");
|
|
|
24094
24085
|
return conf.table.showHeader;
|
|
24095
24086
|
}
|
|
24096
24087
|
},
|
|
24097
|
-
//
|
|
24088
|
+
// (即将废弃)是否要高亮当前选中行
|
|
24098
24089
|
highlightCurrentRow: {
|
|
24099
24090
|
type: Boolean,
|
|
24100
24091
|
default: function _default() {
|
|
24101
24092
|
return conf.table.highlightCurrentRow;
|
|
24102
24093
|
}
|
|
24103
24094
|
},
|
|
24104
|
-
//
|
|
24095
|
+
// (即将废弃)鼠标移到行是否要高亮显示
|
|
24105
24096
|
highlightHoverRow: {
|
|
24106
24097
|
type: Boolean,
|
|
24107
24098
|
default: function _default() {
|
|
24108
24099
|
return conf.table.highlightHoverRow;
|
|
24109
24100
|
}
|
|
24110
24101
|
},
|
|
24111
|
-
//
|
|
24102
|
+
// (即将废弃)是否要高亮当前选中列
|
|
24112
24103
|
highlightCurrentColumn: {
|
|
24113
24104
|
type: Boolean,
|
|
24114
24105
|
default: function _default() {
|
|
24115
24106
|
return conf.table.highlightCurrentColumn;
|
|
24116
24107
|
}
|
|
24117
24108
|
},
|
|
24118
|
-
//
|
|
24109
|
+
// (即将废弃)鼠标移到列是否要高亮显示
|
|
24119
24110
|
highlightHoverColumn: {
|
|
24120
24111
|
type: Boolean,
|
|
24121
24112
|
default: function _default() {
|
|
24122
24113
|
return conf.table.highlightHoverColumn;
|
|
24123
24114
|
}
|
|
24124
24115
|
},
|
|
24125
|
-
//
|
|
24116
|
+
// (即将废弃)激活单元格编辑时是否高亮显示
|
|
24126
24117
|
highlightCell: Boolean,
|
|
24127
24118
|
// 是否显示表尾合计
|
|
24128
24119
|
showFooter: Boolean,
|
|
@@ -24268,7 +24259,7 @@ var es_array_sort = __webpack_require__("4e82");
|
|
|
24268
24259
|
scrollX: Object,
|
|
24269
24260
|
// 纵向虚拟滚动配置项
|
|
24270
24261
|
scrollY: Object,
|
|
24271
|
-
//
|
|
24262
|
+
// (即将废弃)优化相关
|
|
24272
24263
|
animat: {
|
|
24273
24264
|
type: Boolean,
|
|
24274
24265
|
default: function _default() {
|
|
@@ -25381,7 +25372,12 @@ var gridComponentEmits = [].concat(_toConsumableArray(emits), ['page-change', 'f
|
|
|
25381
25372
|
} // 只校验新增和修改的数据
|
|
25382
25373
|
|
|
25383
25374
|
|
|
25384
|
-
return $xetable.validate(_body.insertRecords.concat(updateRecords)).then(function () {
|
|
25375
|
+
return $xetable.validate(_body.insertRecords.concat(updateRecords)).then(function (errMap) {
|
|
25376
|
+
if (errMap) {
|
|
25377
|
+
// 如果校验不通过
|
|
25378
|
+
return;
|
|
25379
|
+
}
|
|
25380
|
+
|
|
25385
25381
|
if (_body.insertRecords.length || _removeRecords.length || updateRecords.length || _body.pendingRecords.length) {
|
|
25386
25382
|
reactData.tableLoading = true;
|
|
25387
25383
|
return Promise.resolve((beforeSave || _ajaxMethods2).apply(void 0, _toConsumableArray(_applyArgs2))).then(function (rest) {
|
|
@@ -25441,8 +25437,6 @@ var gridComponentEmits = [].concat(_toConsumableArray(emits), ['page-change', 'f
|
|
|
25441
25437
|
});
|
|
25442
25438
|
}
|
|
25443
25439
|
}
|
|
25444
|
-
}).catch(function (errMap) {
|
|
25445
|
-
return errMap;
|
|
25446
25440
|
});
|
|
25447
25441
|
} else {
|
|
25448
25442
|
if (true) {
|
|
@@ -25700,7 +25694,6 @@ var gridComponentEmits = [].concat(_toConsumableArray(emits), ['page-change', 'f
|
|
|
25700
25694
|
|
|
25701
25695
|
|
|
25702
25696
|
|
|
25703
|
-
|
|
25704
25697
|
var Grid = Object.assign(grid, {
|
|
25705
25698
|
install: function install(app) {
|
|
25706
25699
|
dynamicApp.component(grid.name, grid);
|
|
@@ -25723,8 +25716,6 @@ var Grid = Object.assign(grid, {
|
|
|
25723
25716
|
|
|
25724
25717
|
|
|
25725
25718
|
|
|
25726
|
-
|
|
25727
|
-
|
|
25728
25719
|
/* harmony default export */ var toolbar = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({
|
|
25729
25720
|
name: 'VxeToolbar',
|
|
25730
25721
|
props: {
|
|
@@ -26475,7 +26466,6 @@ var Grid = Object.assign(grid, {
|
|
|
26475
26466
|
|
|
26476
26467
|
|
|
26477
26468
|
|
|
26478
|
-
|
|
26479
26469
|
var Toolbar = Object.assign(toolbar, {
|
|
26480
26470
|
install: function install(app) {
|
|
26481
26471
|
dynamicApp.component(toolbar.name, toolbar);
|
|
@@ -26494,7 +26484,6 @@ var Toolbar = Object.assign(toolbar, {
|
|
|
26494
26484
|
|
|
26495
26485
|
|
|
26496
26486
|
|
|
26497
|
-
|
|
26498
26487
|
/* harmony default export */ var pager = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({
|
|
26499
26488
|
name: 'VxePager',
|
|
26500
26489
|
props: {
|
|
@@ -27057,7 +27046,6 @@ var Toolbar = Object.assign(toolbar, {
|
|
|
27057
27046
|
|
|
27058
27047
|
|
|
27059
27048
|
|
|
27060
|
-
|
|
27061
27049
|
var Pager = Object.assign(pager, {
|
|
27062
27050
|
install: function install(app) {
|
|
27063
27051
|
dynamicApp.component(pager.name, pager);
|
|
@@ -27069,7 +27057,6 @@ var Pager = Object.assign(pager, {
|
|
|
27069
27057
|
|
|
27070
27058
|
|
|
27071
27059
|
|
|
27072
|
-
|
|
27073
27060
|
var Checkbox = Object.assign(src_checkbox, {
|
|
27074
27061
|
install: function install(app) {
|
|
27075
27062
|
dynamicApp.component(src_checkbox.name, src_checkbox);
|
|
@@ -27083,7 +27070,6 @@ var Checkbox = Object.assign(src_checkbox, {
|
|
|
27083
27070
|
|
|
27084
27071
|
|
|
27085
27072
|
|
|
27086
|
-
|
|
27087
27073
|
/* harmony default export */ var checkbox_src_group = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({
|
|
27088
27074
|
name: 'VxeCheckboxGroup',
|
|
27089
27075
|
props: {
|
|
@@ -27153,7 +27139,6 @@ var Checkbox = Object.assign(src_checkbox, {
|
|
|
27153
27139
|
|
|
27154
27140
|
|
|
27155
27141
|
|
|
27156
|
-
|
|
27157
27142
|
var CheckboxGroup = Object.assign(checkbox_src_group, {
|
|
27158
27143
|
install: function install(app) {
|
|
27159
27144
|
dynamicApp.component(checkbox_src_group.name, checkbox_src_group);
|
|
@@ -27165,7 +27150,6 @@ var CheckboxGroup = Object.assign(checkbox_src_group, {
|
|
|
27165
27150
|
|
|
27166
27151
|
|
|
27167
27152
|
|
|
27168
|
-
|
|
27169
27153
|
var Radio = Object.assign(src_radio, {
|
|
27170
27154
|
install: function install(app) {
|
|
27171
27155
|
dynamicApp.component(src_radio.name, src_radio);
|
|
@@ -27177,7 +27161,6 @@ var Radio = Object.assign(src_radio, {
|
|
|
27177
27161
|
|
|
27178
27162
|
|
|
27179
27163
|
|
|
27180
|
-
|
|
27181
27164
|
var RadioGroup = Object.assign(src_group, {
|
|
27182
27165
|
install: function install(app) {
|
|
27183
27166
|
dynamicApp.component(src_group.name, src_group);
|
|
@@ -27194,7 +27177,6 @@ var RadioGroup = Object.assign(src_group, {
|
|
|
27194
27177
|
|
|
27195
27178
|
|
|
27196
27179
|
|
|
27197
|
-
|
|
27198
27180
|
/* harmony default export */ var radio_src_button = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({
|
|
27199
27181
|
name: 'VxeRadioButton',
|
|
27200
27182
|
props: {
|
|
@@ -27298,7 +27280,6 @@ var RadioGroup = Object.assign(src_group, {
|
|
|
27298
27280
|
|
|
27299
27281
|
|
|
27300
27282
|
|
|
27301
|
-
|
|
27302
27283
|
var RadioButton = Object.assign(radio_src_button, {
|
|
27303
27284
|
install: function install(app) {
|
|
27304
27285
|
dynamicApp.component(radio_src_button.name, radio_src_button);
|
|
@@ -27310,7 +27291,6 @@ var RadioButton = Object.assign(radio_src_button, {
|
|
|
27310
27291
|
|
|
27311
27292
|
|
|
27312
27293
|
|
|
27313
|
-
|
|
27314
27294
|
var Input = Object.assign(input, {
|
|
27315
27295
|
install: function install(app) {
|
|
27316
27296
|
dynamicApp.component(input.name, input);
|
|
@@ -27331,7 +27311,6 @@ var Input = Object.assign(input, {
|
|
|
27331
27311
|
|
|
27332
27312
|
|
|
27333
27313
|
|
|
27334
|
-
|
|
27335
27314
|
var autoTxtElem;
|
|
27336
27315
|
/* harmony default export */ var src_textarea = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({
|
|
27337
27316
|
name: 'VxeTextarea',
|
|
@@ -27615,7 +27594,6 @@ var autoTxtElem;
|
|
|
27615
27594
|
|
|
27616
27595
|
|
|
27617
27596
|
|
|
27618
|
-
|
|
27619
27597
|
var Textarea = Object.assign(src_textarea, {
|
|
27620
27598
|
install: function install(app) {
|
|
27621
27599
|
dynamicApp.component(src_textarea.name, src_textarea);
|
|
@@ -27627,7 +27605,6 @@ var Textarea = Object.assign(src_textarea, {
|
|
|
27627
27605
|
|
|
27628
27606
|
|
|
27629
27607
|
|
|
27630
|
-
|
|
27631
27608
|
var Button = Object.assign(src_button, {
|
|
27632
27609
|
install: function install(app) {
|
|
27633
27610
|
dynamicApp.component(src_button.name, src_button);
|
|
@@ -27649,9 +27626,6 @@ var Button = Object.assign(src_button, {
|
|
|
27649
27626
|
|
|
27650
27627
|
|
|
27651
27628
|
|
|
27652
|
-
|
|
27653
|
-
|
|
27654
|
-
|
|
27655
27629
|
function modal_openModal(options) {
|
|
27656
27630
|
// 使用动态组件渲染动态弹框
|
|
27657
27631
|
checkDynamic();
|
|
@@ -27773,7 +27747,6 @@ var Modal = Object.assign(modal, {
|
|
|
27773
27747
|
|
|
27774
27748
|
|
|
27775
27749
|
|
|
27776
|
-
|
|
27777
27750
|
/* harmony default export */ var tooltip = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({
|
|
27778
27751
|
name: 'VxeTooltip',
|
|
27779
27752
|
props: {
|
|
@@ -28141,7 +28114,6 @@ var Modal = Object.assign(modal, {
|
|
|
28141
28114
|
|
|
28142
28115
|
|
|
28143
28116
|
|
|
28144
|
-
|
|
28145
28117
|
var Tooltip = Object.assign(tooltip, {
|
|
28146
28118
|
install: function install(app) {
|
|
28147
28119
|
VXETable.tooltip = true;
|
|
@@ -28154,7 +28126,6 @@ var Tooltip = Object.assign(tooltip, {
|
|
|
28154
28126
|
|
|
28155
28127
|
|
|
28156
28128
|
|
|
28157
|
-
|
|
28158
28129
|
var itemInfo_ItemInfo = /*#__PURE__*/function () {
|
|
28159
28130
|
function ItemInfo($xeform, item) {
|
|
28160
28131
|
_classCallCheck(this, ItemInfo);
|
|
@@ -28345,9 +28316,6 @@ function renderTitle($xeform, item) {
|
|
|
28345
28316
|
|
|
28346
28317
|
|
|
28347
28318
|
|
|
28348
|
-
|
|
28349
|
-
|
|
28350
|
-
|
|
28351
28319
|
|
|
28352
28320
|
|
|
28353
28321
|
|
|
@@ -28866,7 +28834,7 @@ function getResetValue(value, resetValue) {
|
|
|
28866
28834
|
callback();
|
|
28867
28835
|
}
|
|
28868
28836
|
}).catch(function () {
|
|
28869
|
-
return new Promise(function (resolve
|
|
28837
|
+
return new Promise(function (resolve) {
|
|
28870
28838
|
showErrTime = window.setTimeout(function () {
|
|
28871
28839
|
itemList.forEach(function (item) {
|
|
28872
28840
|
if (item.errRule) {
|
|
@@ -28885,7 +28853,7 @@ function getResetValue(value, resetValue) {
|
|
|
28885
28853
|
callback(validRest);
|
|
28886
28854
|
resolve();
|
|
28887
28855
|
} else {
|
|
28888
|
-
|
|
28856
|
+
resolve(validRest);
|
|
28889
28857
|
}
|
|
28890
28858
|
});
|
|
28891
28859
|
});
|
|
@@ -29245,7 +29213,6 @@ function getResetValue(value, resetValue) {
|
|
|
29245
29213
|
|
|
29246
29214
|
|
|
29247
29215
|
|
|
29248
|
-
|
|
29249
29216
|
var Form = Object.assign(src_form, {
|
|
29250
29217
|
install: function install(app) {
|
|
29251
29218
|
dynamicApp.component(src_form.name, src_form);
|
|
@@ -29441,7 +29408,6 @@ var formItemProps = {
|
|
|
29441
29408
|
|
|
29442
29409
|
|
|
29443
29410
|
|
|
29444
|
-
|
|
29445
29411
|
var FormItem = Object.assign(form_item, {
|
|
29446
29412
|
install: function install(app) {
|
|
29447
29413
|
dynamicApp.component(form_item.name, form_item);
|
|
@@ -29498,7 +29464,6 @@ var FormItem = Object.assign(form_item, {
|
|
|
29498
29464
|
|
|
29499
29465
|
|
|
29500
29466
|
|
|
29501
|
-
|
|
29502
29467
|
var FormGather = Object.assign(form_gather, {
|
|
29503
29468
|
install: function install(app) {
|
|
29504
29469
|
dynamicApp.component(form_gather.name, form_gather);
|
|
@@ -29510,7 +29475,6 @@ var FormGather = Object.assign(form_gather, {
|
|
|
29510
29475
|
|
|
29511
29476
|
|
|
29512
29477
|
|
|
29513
|
-
|
|
29514
29478
|
var Select = Object.assign(src_select, {
|
|
29515
29479
|
install: function install(app) {
|
|
29516
29480
|
dynamicApp.component(src_select.name, src_select);
|
|
@@ -29522,7 +29486,6 @@ var Select = Object.assign(src_select, {
|
|
|
29522
29486
|
|
|
29523
29487
|
|
|
29524
29488
|
|
|
29525
|
-
|
|
29526
29489
|
var optionInfo_OptionInfo = /*#__PURE__*/function () {
|
|
29527
29490
|
function OptionInfo($xeselect, _vm) {
|
|
29528
29491
|
_classCallCheck(this, OptionInfo);
|
|
@@ -29642,7 +29605,6 @@ function destroyOption($xeselect, option) {
|
|
|
29642
29605
|
|
|
29643
29606
|
|
|
29644
29607
|
|
|
29645
|
-
|
|
29646
29608
|
var Optgroup = Object.assign(src_optgroup, {
|
|
29647
29609
|
install: function install(app) {
|
|
29648
29610
|
dynamicApp.component(src_optgroup.name, src_optgroup);
|
|
@@ -29694,7 +29656,6 @@ var Optgroup = Object.assign(src_optgroup, {
|
|
|
29694
29656
|
|
|
29695
29657
|
|
|
29696
29658
|
|
|
29697
|
-
|
|
29698
29659
|
var Option = Object.assign(src_option, {
|
|
29699
29660
|
install: function install(app) {
|
|
29700
29661
|
dynamicApp.component(src_option.name, src_option);
|
|
@@ -29710,7 +29671,6 @@ var Option = Object.assign(src_option, {
|
|
|
29710
29671
|
|
|
29711
29672
|
|
|
29712
29673
|
|
|
29713
|
-
|
|
29714
29674
|
/* harmony default export */ var src_switch = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({
|
|
29715
29675
|
name: 'VxeSwitch',
|
|
29716
29676
|
props: {
|
|
@@ -29861,7 +29821,6 @@ var Option = Object.assign(src_option, {
|
|
|
29861
29821
|
|
|
29862
29822
|
|
|
29863
29823
|
|
|
29864
|
-
|
|
29865
29824
|
var Switch = Object.assign(src_switch, {
|
|
29866
29825
|
install: function install(app) {
|
|
29867
29826
|
dynamicApp.component(src_switch.name, src_switch);
|
|
@@ -29998,8 +29957,6 @@ function createResizeEvent(callback) {
|
|
|
29998
29957
|
|
|
29999
29958
|
|
|
30000
29959
|
|
|
30001
|
-
|
|
30002
|
-
|
|
30003
29960
|
/* harmony default export */ var src_list = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({
|
|
30004
29961
|
name: 'VxeList',
|
|
30005
29962
|
props: {
|
|
@@ -30399,7 +30356,6 @@ function createResizeEvent(callback) {
|
|
|
30399
30356
|
|
|
30400
30357
|
|
|
30401
30358
|
|
|
30402
|
-
|
|
30403
30359
|
var List = Object.assign(src_list, {
|
|
30404
30360
|
install: function install(app) {
|
|
30405
30361
|
dynamicApp.component(src_list.name, src_list);
|
|
@@ -30417,8 +30373,6 @@ var List = Object.assign(src_list, {
|
|
|
30417
30373
|
|
|
30418
30374
|
|
|
30419
30375
|
|
|
30420
|
-
|
|
30421
|
-
|
|
30422
30376
|
/* harmony default export */ var pulldown = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({
|
|
30423
30377
|
name: 'VxePulldown',
|
|
30424
30378
|
props: {
|
|
@@ -30740,7 +30694,6 @@ var List = Object.assign(src_list, {
|
|
|
30740
30694
|
|
|
30741
30695
|
|
|
30742
30696
|
|
|
30743
|
-
|
|
30744
30697
|
var Pulldown = Object.assign(pulldown, {
|
|
30745
30698
|
install: function install(app) {
|
|
30746
30699
|
dynamicApp.component(pulldown.name, pulldown);
|
|
@@ -30748,9 +30701,6 @@ var Pulldown = Object.assign(pulldown, {
|
|
|
30748
30701
|
}
|
|
30749
30702
|
});
|
|
30750
30703
|
/* harmony default export */ var packages_pulldown = (Pulldown);
|
|
30751
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.map.js
|
|
30752
|
-
var es_map = __webpack_require__("4ec9");
|
|
30753
|
-
|
|
30754
30704
|
// CONCATENATED MODULE: ./packages/table/src/body.ts
|
|
30755
30705
|
|
|
30756
30706
|
|
|
@@ -30767,7 +30717,6 @@ var es_map = __webpack_require__("4ec9");
|
|
|
30767
30717
|
|
|
30768
30718
|
|
|
30769
30719
|
|
|
30770
|
-
|
|
30771
30720
|
var body_renderType = 'body';
|
|
30772
30721
|
var lineOffsetSizes = {
|
|
30773
30722
|
mini: 3,
|
|
@@ -35522,6 +35471,18 @@ var visibleStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_VISIBLE';
|
|
|
35522
35471
|
var reserveSelection = [];
|
|
35523
35472
|
|
|
35524
35473
|
if (checkboxOpts.reserve) {
|
|
35474
|
+
var afterFullIdMaps = {};
|
|
35475
|
+
|
|
35476
|
+
if (treeConfig) {
|
|
35477
|
+
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.eachTree(afterFullData, function (row) {
|
|
35478
|
+
afterFullIdMaps[util_getRowid($xetable, row)] = 1;
|
|
35479
|
+
}, treeOpts);
|
|
35480
|
+
} else {
|
|
35481
|
+
afterFullData.forEach(function (row) {
|
|
35482
|
+
afterFullIdMaps[util_getRowid($xetable, row)] = 1;
|
|
35483
|
+
});
|
|
35484
|
+
}
|
|
35485
|
+
|
|
35525
35486
|
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.each(checkboxReserveRowMap, function (oldRow, oldRowid) {
|
|
35526
35487
|
if (oldRow) {
|
|
35527
35488
|
if (isFull) {
|
|
@@ -35529,18 +35490,8 @@ var visibleStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_VISIBLE';
|
|
|
35529
35490
|
reserveSelection.push(oldRow);
|
|
35530
35491
|
}
|
|
35531
35492
|
} else {
|
|
35532
|
-
if (
|
|
35533
|
-
|
|
35534
|
-
return util_getRowid($xetable, row) === oldRowid;
|
|
35535
|
-
}, treeOpts)) {
|
|
35536
|
-
reserveSelection.push(oldRow);
|
|
35537
|
-
}
|
|
35538
|
-
} else {
|
|
35539
|
-
if (!afterFullData.some(function (row) {
|
|
35540
|
-
return util_getRowid($xetable, row) === oldRowid;
|
|
35541
|
-
})) {
|
|
35542
|
-
reserveSelection.push(oldRow);
|
|
35543
|
-
}
|
|
35493
|
+
if (!afterFullIdMaps[oldRowid]) {
|
|
35494
|
+
reserveSelection.push(oldRow);
|
|
35544
35495
|
}
|
|
35545
35496
|
}
|
|
35546
35497
|
}
|
|
@@ -35703,7 +35654,7 @@ var visibleStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_VISIBLE';
|
|
|
35703
35654
|
return selectRow;
|
|
35704
35655
|
}
|
|
35705
35656
|
} else {
|
|
35706
|
-
if (
|
|
35657
|
+
if ($xetable.findRowIndexOf(afterFullData, selectRow) > -1) {
|
|
35707
35658
|
return selectRow;
|
|
35708
35659
|
}
|
|
35709
35660
|
}
|
|
@@ -36673,6 +36624,7 @@ var visibleStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_VISIBLE';
|
|
|
36673
36624
|
ctxMenuStore = reactData.ctxMenuStore,
|
|
36674
36625
|
editStore = reactData.editStore;
|
|
36675
36626
|
var mouseOpts = computeMouseOpts.value;
|
|
36627
|
+
var keyboardOpts = computeKeyboardOpts.value;
|
|
36676
36628
|
var actived = editStore.actived;
|
|
36677
36629
|
var isEsc = hasEventKey(evnt, EVENT_KEYS.ESCAPE);
|
|
36678
36630
|
|
|
@@ -36687,16 +36639,19 @@ var visibleStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_VISIBLE';
|
|
|
36687
36639
|
$xetable.closeMenu();
|
|
36688
36640
|
}
|
|
36689
36641
|
|
|
36690
|
-
tableMethods.closeFilter();
|
|
36642
|
+
tableMethods.closeFilter();
|
|
36691
36643
|
|
|
36692
|
-
if (
|
|
36693
|
-
|
|
36694
|
-
|
|
36644
|
+
if (keyboardConfig && keyboardOpts.isEsc) {
|
|
36645
|
+
// 如果是激活编辑状态,则取消编辑
|
|
36646
|
+
if (actived.row) {
|
|
36647
|
+
var params = actived.args;
|
|
36648
|
+
$xetable.clearActived(evnt); // 如果配置了选中功能,则为选中状态
|
|
36695
36649
|
|
|
36696
|
-
|
|
36697
|
-
|
|
36698
|
-
|
|
36699
|
-
|
|
36650
|
+
if (mouseOpts.selected) {
|
|
36651
|
+
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["nextTick"])(function () {
|
|
36652
|
+
return $xetable.handleSelected(params, evnt);
|
|
36653
|
+
});
|
|
36654
|
+
}
|
|
36700
36655
|
}
|
|
36701
36656
|
}
|
|
36702
36657
|
}
|
|
@@ -36773,7 +36728,7 @@ var visibleStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_VISIBLE';
|
|
|
36773
36728
|
|
|
36774
36729
|
tableMethods.closeFilter();
|
|
36775
36730
|
|
|
36776
|
-
if (
|
|
36731
|
+
if (keyboardConfig && keyboardOpts.isEsc) {
|
|
36777
36732
|
// 如果是激活编辑状态,则取消编辑
|
|
36778
36733
|
if (actived.row) {
|
|
36779
36734
|
var _params = actived.args;
|
|
@@ -39021,7 +38976,6 @@ var visibleStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_VISIBLE';
|
|
|
39021
38976
|
|
|
39022
38977
|
|
|
39023
38978
|
|
|
39024
|
-
|
|
39025
38979
|
var Table = Object.assign(table, {
|
|
39026
38980
|
install: function install(app) {
|
|
39027
38981
|
dynamicApp.component(table.name, table);
|
|
@@ -39599,4 +39553,5 @@ module.exports = global.Promise;
|
|
|
39599
39553
|
/***/ })
|
|
39600
39554
|
|
|
39601
39555
|
/******/ });
|
|
39602
|
-
});
|
|
39556
|
+
});
|
|
39557
|
+
//# sourceMappingURL=index.umd.js.map
|