vxe-table 3.4.3-beta.0 → 3.4.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/README.en.md +1 -1
- package/README.md +1 -1
- package/README.zh-TW.md +1 -1
- package/lib/edit/src/mixin.js +153 -70
- package/lib/edit/src/mixin.min.js +1 -1
- package/lib/export/src/mixin.js +27 -10
- package/lib/export/src/mixin.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 +1013 -125
- package/lib/index.umd.min.js +2 -1
- package/lib/input/src/input.js +10 -2
- package/lib/input/src/input.min.js +1 -1
- package/lib/table/src/methods.js +34 -32
- package/lib/table/src/methods.min.js +1 -1
- package/lib/table/src/table.js +6 -6
- 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/mixin.js +3 -3
- package/lib/validator/src/mixin.min.js +1 -1
- package/package.json +1 -22
- package/packages/edit/src/mixin.js +107 -56
- package/packages/export/src/mixin.js +16 -5
- package/packages/grid/src/grid.js +6 -2
- package/packages/input/src/input.js +9 -2
- package/packages/table/src/methods.js +27 -25
- package/packages/table/src/table.js +6 -6
- package/packages/v-x-e-table/src/conf.js +4 -1
- package/packages/validator/src/mixin.js +3 -3
- package/types/table.d.ts +13 -10
- package/types/v-x-e-table/renderer.d.ts +3 -1
package/lib/index.umd.js
CHANGED
|
@@ -783,6 +783,16 @@ module.exports = function (exec, SKIP_CLOSING) {
|
|
|
783
783
|
};
|
|
784
784
|
|
|
785
785
|
|
|
786
|
+
/***/ }),
|
|
787
|
+
|
|
788
|
+
/***/ "1cdc":
|
|
789
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
790
|
+
|
|
791
|
+
var userAgent = __webpack_require__("342f");
|
|
792
|
+
|
|
793
|
+
module.exports = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent);
|
|
794
|
+
|
|
795
|
+
|
|
786
796
|
/***/ }),
|
|
787
797
|
|
|
788
798
|
/***/ "1d80":
|
|
@@ -2115,6 +2125,126 @@ $({ global: true, forced: !USE_NATIVE_URL, sham: !DESCRIPTORS }, {
|
|
|
2115
2125
|
});
|
|
2116
2126
|
|
|
2117
2127
|
|
|
2128
|
+
/***/ }),
|
|
2129
|
+
|
|
2130
|
+
/***/ "2cf4":
|
|
2131
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
2132
|
+
|
|
2133
|
+
var global = __webpack_require__("da84");
|
|
2134
|
+
var isCallable = __webpack_require__("1626");
|
|
2135
|
+
var fails = __webpack_require__("d039");
|
|
2136
|
+
var bind = __webpack_require__("0366");
|
|
2137
|
+
var html = __webpack_require__("1be4");
|
|
2138
|
+
var createElement = __webpack_require__("cc12");
|
|
2139
|
+
var IS_IOS = __webpack_require__("1cdc");
|
|
2140
|
+
var IS_NODE = __webpack_require__("605d");
|
|
2141
|
+
|
|
2142
|
+
var set = global.setImmediate;
|
|
2143
|
+
var clear = global.clearImmediate;
|
|
2144
|
+
var process = global.process;
|
|
2145
|
+
var MessageChannel = global.MessageChannel;
|
|
2146
|
+
var Dispatch = global.Dispatch;
|
|
2147
|
+
var counter = 0;
|
|
2148
|
+
var queue = {};
|
|
2149
|
+
var ONREADYSTATECHANGE = 'onreadystatechange';
|
|
2150
|
+
var location, defer, channel, port;
|
|
2151
|
+
|
|
2152
|
+
try {
|
|
2153
|
+
// Deno throws a ReferenceError on `location` access without `--location` flag
|
|
2154
|
+
location = global.location;
|
|
2155
|
+
} catch (error) { /* empty */ }
|
|
2156
|
+
|
|
2157
|
+
var run = function (id) {
|
|
2158
|
+
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
2159
|
+
if (queue.hasOwnProperty(id)) {
|
|
2160
|
+
var fn = queue[id];
|
|
2161
|
+
delete queue[id];
|
|
2162
|
+
fn();
|
|
2163
|
+
}
|
|
2164
|
+
};
|
|
2165
|
+
|
|
2166
|
+
var runner = function (id) {
|
|
2167
|
+
return function () {
|
|
2168
|
+
run(id);
|
|
2169
|
+
};
|
|
2170
|
+
};
|
|
2171
|
+
|
|
2172
|
+
var listener = function (event) {
|
|
2173
|
+
run(event.data);
|
|
2174
|
+
};
|
|
2175
|
+
|
|
2176
|
+
var post = function (id) {
|
|
2177
|
+
// old engines have not location.origin
|
|
2178
|
+
global.postMessage(String(id), location.protocol + '//' + location.host);
|
|
2179
|
+
};
|
|
2180
|
+
|
|
2181
|
+
// Node.js 0.9+ & IE10+ has setImmediate, otherwise:
|
|
2182
|
+
if (!set || !clear) {
|
|
2183
|
+
set = function setImmediate(fn) {
|
|
2184
|
+
var args = [];
|
|
2185
|
+
var argumentsLength = arguments.length;
|
|
2186
|
+
var i = 1;
|
|
2187
|
+
while (argumentsLength > i) args.push(arguments[i++]);
|
|
2188
|
+
queue[++counter] = function () {
|
|
2189
|
+
// eslint-disable-next-line no-new-func -- spec requirement
|
|
2190
|
+
(isCallable(fn) ? fn : Function(fn)).apply(undefined, args);
|
|
2191
|
+
};
|
|
2192
|
+
defer(counter);
|
|
2193
|
+
return counter;
|
|
2194
|
+
};
|
|
2195
|
+
clear = function clearImmediate(id) {
|
|
2196
|
+
delete queue[id];
|
|
2197
|
+
};
|
|
2198
|
+
// Node.js 0.8-
|
|
2199
|
+
if (IS_NODE) {
|
|
2200
|
+
defer = function (id) {
|
|
2201
|
+
process.nextTick(runner(id));
|
|
2202
|
+
};
|
|
2203
|
+
// Sphere (JS game engine) Dispatch API
|
|
2204
|
+
} else if (Dispatch && Dispatch.now) {
|
|
2205
|
+
defer = function (id) {
|
|
2206
|
+
Dispatch.now(runner(id));
|
|
2207
|
+
};
|
|
2208
|
+
// Browsers with MessageChannel, includes WebWorkers
|
|
2209
|
+
// except iOS - https://github.com/zloirock/core-js/issues/624
|
|
2210
|
+
} else if (MessageChannel && !IS_IOS) {
|
|
2211
|
+
channel = new MessageChannel();
|
|
2212
|
+
port = channel.port2;
|
|
2213
|
+
channel.port1.onmessage = listener;
|
|
2214
|
+
defer = bind(port.postMessage, port, 1);
|
|
2215
|
+
// Browsers with postMessage, skip WebWorkers
|
|
2216
|
+
// IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
|
|
2217
|
+
} else if (
|
|
2218
|
+
global.addEventListener &&
|
|
2219
|
+
isCallable(global.postMessage) &&
|
|
2220
|
+
!global.importScripts &&
|
|
2221
|
+
location && location.protocol !== 'file:' &&
|
|
2222
|
+
!fails(post)
|
|
2223
|
+
) {
|
|
2224
|
+
defer = post;
|
|
2225
|
+
global.addEventListener('message', listener, false);
|
|
2226
|
+
// IE8-
|
|
2227
|
+
} else if (ONREADYSTATECHANGE in createElement('script')) {
|
|
2228
|
+
defer = function (id) {
|
|
2229
|
+
html.appendChild(createElement('script'))[ONREADYSTATECHANGE] = function () {
|
|
2230
|
+
html.removeChild(this);
|
|
2231
|
+
run(id);
|
|
2232
|
+
};
|
|
2233
|
+
};
|
|
2234
|
+
// Rest old browsers
|
|
2235
|
+
} else {
|
|
2236
|
+
defer = function (id) {
|
|
2237
|
+
setTimeout(runner(id), 0);
|
|
2238
|
+
};
|
|
2239
|
+
}
|
|
2240
|
+
}
|
|
2241
|
+
|
|
2242
|
+
module.exports = {
|
|
2243
|
+
set: set,
|
|
2244
|
+
clear: clear
|
|
2245
|
+
};
|
|
2246
|
+
|
|
2247
|
+
|
|
2118
2248
|
/***/ }),
|
|
2119
2249
|
|
|
2120
2250
|
/***/ "2d00":
|
|
@@ -2341,6 +2471,21 @@ module.exports = function (key) {
|
|
|
2341
2471
|
};
|
|
2342
2472
|
|
|
2343
2473
|
|
|
2474
|
+
/***/ }),
|
|
2475
|
+
|
|
2476
|
+
/***/ "44de":
|
|
2477
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
2478
|
+
|
|
2479
|
+
var global = __webpack_require__("da84");
|
|
2480
|
+
|
|
2481
|
+
module.exports = function (a, b) {
|
|
2482
|
+
var console = global.console;
|
|
2483
|
+
if (console && console.error) {
|
|
2484
|
+
arguments.length === 1 ? console.error(a) : console.error(a, b);
|
|
2485
|
+
}
|
|
2486
|
+
};
|
|
2487
|
+
|
|
2488
|
+
|
|
2344
2489
|
/***/ }),
|
|
2345
2490
|
|
|
2346
2491
|
/***/ "44e7":
|
|
@@ -3484,6 +3629,25 @@ module.exports = function (input) {
|
|
|
3484
3629
|
};
|
|
3485
3630
|
|
|
3486
3631
|
|
|
3632
|
+
/***/ }),
|
|
3633
|
+
|
|
3634
|
+
/***/ "605d":
|
|
3635
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
3636
|
+
|
|
3637
|
+
var classof = __webpack_require__("c6b6");
|
|
3638
|
+
var global = __webpack_require__("da84");
|
|
3639
|
+
|
|
3640
|
+
module.exports = classof(global.process) == 'process';
|
|
3641
|
+
|
|
3642
|
+
|
|
3643
|
+
/***/ }),
|
|
3644
|
+
|
|
3645
|
+
/***/ "6069":
|
|
3646
|
+
/***/ (function(module, exports) {
|
|
3647
|
+
|
|
3648
|
+
module.exports = typeof window == 'object';
|
|
3649
|
+
|
|
3650
|
+
|
|
3487
3651
|
/***/ }),
|
|
3488
3652
|
|
|
3489
3653
|
/***/ "60da":
|
|
@@ -5490,6 +5654,16 @@ $({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
|
|
|
5490
5654
|
});
|
|
5491
5655
|
|
|
5492
5656
|
|
|
5657
|
+
/***/ }),
|
|
5658
|
+
|
|
5659
|
+
/***/ "a4b4":
|
|
5660
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
5661
|
+
|
|
5662
|
+
var userAgent = __webpack_require__("342f");
|
|
5663
|
+
|
|
5664
|
+
module.exports = /web0s(?!.*chrome)/i.test(userAgent);
|
|
5665
|
+
|
|
5666
|
+
|
|
5493
5667
|
/***/ }),
|
|
5494
5668
|
|
|
5495
5669
|
/***/ "a4d3":
|
|
@@ -6173,6 +6347,96 @@ if (DESCRIPTORS && !FUNCTION_NAME_EXISTS) {
|
|
|
6173
6347
|
}
|
|
6174
6348
|
|
|
6175
6349
|
|
|
6350
|
+
/***/ }),
|
|
6351
|
+
|
|
6352
|
+
/***/ "b575":
|
|
6353
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
6354
|
+
|
|
6355
|
+
var global = __webpack_require__("da84");
|
|
6356
|
+
var getOwnPropertyDescriptor = __webpack_require__("06cf").f;
|
|
6357
|
+
var macrotask = __webpack_require__("2cf4").set;
|
|
6358
|
+
var IS_IOS = __webpack_require__("1cdc");
|
|
6359
|
+
var IS_IOS_PEBBLE = __webpack_require__("d4c3");
|
|
6360
|
+
var IS_WEBOS_WEBKIT = __webpack_require__("a4b4");
|
|
6361
|
+
var IS_NODE = __webpack_require__("605d");
|
|
6362
|
+
|
|
6363
|
+
var MutationObserver = global.MutationObserver || global.WebKitMutationObserver;
|
|
6364
|
+
var document = global.document;
|
|
6365
|
+
var process = global.process;
|
|
6366
|
+
var Promise = global.Promise;
|
|
6367
|
+
// Node.js 11 shows ExperimentalWarning on getting `queueMicrotask`
|
|
6368
|
+
var queueMicrotaskDescriptor = getOwnPropertyDescriptor(global, 'queueMicrotask');
|
|
6369
|
+
var queueMicrotask = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value;
|
|
6370
|
+
|
|
6371
|
+
var flush, head, last, notify, toggle, node, promise, then;
|
|
6372
|
+
|
|
6373
|
+
// modern engines have queueMicrotask method
|
|
6374
|
+
if (!queueMicrotask) {
|
|
6375
|
+
flush = function () {
|
|
6376
|
+
var parent, fn;
|
|
6377
|
+
if (IS_NODE && (parent = process.domain)) parent.exit();
|
|
6378
|
+
while (head) {
|
|
6379
|
+
fn = head.fn;
|
|
6380
|
+
head = head.next;
|
|
6381
|
+
try {
|
|
6382
|
+
fn();
|
|
6383
|
+
} catch (error) {
|
|
6384
|
+
if (head) notify();
|
|
6385
|
+
else last = undefined;
|
|
6386
|
+
throw error;
|
|
6387
|
+
}
|
|
6388
|
+
} last = undefined;
|
|
6389
|
+
if (parent) parent.enter();
|
|
6390
|
+
};
|
|
6391
|
+
|
|
6392
|
+
// browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339
|
|
6393
|
+
// also except WebOS Webkit https://github.com/zloirock/core-js/issues/898
|
|
6394
|
+
if (!IS_IOS && !IS_NODE && !IS_WEBOS_WEBKIT && MutationObserver && document) {
|
|
6395
|
+
toggle = true;
|
|
6396
|
+
node = document.createTextNode('');
|
|
6397
|
+
new MutationObserver(flush).observe(node, { characterData: true });
|
|
6398
|
+
notify = function () {
|
|
6399
|
+
node.data = toggle = !toggle;
|
|
6400
|
+
};
|
|
6401
|
+
// environments with maybe non-completely correct, but existent Promise
|
|
6402
|
+
} else if (!IS_IOS_PEBBLE && Promise && Promise.resolve) {
|
|
6403
|
+
// Promise.resolve without an argument throws an error in LG WebOS 2
|
|
6404
|
+
promise = Promise.resolve(undefined);
|
|
6405
|
+
// workaround of WebKit ~ iOS Safari 10.1 bug
|
|
6406
|
+
promise.constructor = Promise;
|
|
6407
|
+
then = promise.then;
|
|
6408
|
+
notify = function () {
|
|
6409
|
+
then.call(promise, flush);
|
|
6410
|
+
};
|
|
6411
|
+
// Node.js without promises
|
|
6412
|
+
} else if (IS_NODE) {
|
|
6413
|
+
notify = function () {
|
|
6414
|
+
process.nextTick(flush);
|
|
6415
|
+
};
|
|
6416
|
+
// for other environments - macrotask based on:
|
|
6417
|
+
// - setImmediate
|
|
6418
|
+
// - MessageChannel
|
|
6419
|
+
// - window.postMessag
|
|
6420
|
+
// - onreadystatechange
|
|
6421
|
+
// - setTimeout
|
|
6422
|
+
} else {
|
|
6423
|
+
notify = function () {
|
|
6424
|
+
// strange IE + webpack dev server bug - use .call(global)
|
|
6425
|
+
macrotask.call(global, flush);
|
|
6426
|
+
};
|
|
6427
|
+
}
|
|
6428
|
+
}
|
|
6429
|
+
|
|
6430
|
+
module.exports = queueMicrotask || function (fn) {
|
|
6431
|
+
var task = { fn: fn, next: undefined };
|
|
6432
|
+
if (last) last.next = task;
|
|
6433
|
+
if (!head) {
|
|
6434
|
+
head = task;
|
|
6435
|
+
notify();
|
|
6436
|
+
} last = task;
|
|
6437
|
+
};
|
|
6438
|
+
|
|
6439
|
+
|
|
6176
6440
|
/***/ }),
|
|
6177
6441
|
|
|
6178
6442
|
/***/ "b622":
|
|
@@ -6643,6 +6907,41 @@ module.exports = function (it) {
|
|
|
6643
6907
|
};
|
|
6644
6908
|
|
|
6645
6909
|
|
|
6910
|
+
/***/ }),
|
|
6911
|
+
|
|
6912
|
+
/***/ "cca6":
|
|
6913
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
6914
|
+
|
|
6915
|
+
var $ = __webpack_require__("23e7");
|
|
6916
|
+
var assign = __webpack_require__("60da");
|
|
6917
|
+
|
|
6918
|
+
// `Object.assign` method
|
|
6919
|
+
// https://tc39.es/ecma262/#sec-object.assign
|
|
6920
|
+
// eslint-disable-next-line es/no-object-assign -- required for testing
|
|
6921
|
+
$({ target: 'Object', stat: true, forced: Object.assign !== assign }, {
|
|
6922
|
+
assign: assign
|
|
6923
|
+
});
|
|
6924
|
+
|
|
6925
|
+
|
|
6926
|
+
/***/ }),
|
|
6927
|
+
|
|
6928
|
+
/***/ "cdf9":
|
|
6929
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
6930
|
+
|
|
6931
|
+
var anObject = __webpack_require__("825a");
|
|
6932
|
+
var isObject = __webpack_require__("861d");
|
|
6933
|
+
var newPromiseCapability = __webpack_require__("f069");
|
|
6934
|
+
|
|
6935
|
+
module.exports = function (C, x) {
|
|
6936
|
+
anObject(C);
|
|
6937
|
+
if (isObject(x) && x.constructor === C) return x;
|
|
6938
|
+
var promiseCapability = newPromiseCapability.f(C);
|
|
6939
|
+
var resolve = promiseCapability.resolve;
|
|
6940
|
+
resolve(x);
|
|
6941
|
+
return promiseCapability.promise;
|
|
6942
|
+
};
|
|
6943
|
+
|
|
6944
|
+
|
|
6646
6945
|
/***/ }),
|
|
6647
6946
|
|
|
6648
6947
|
/***/ "ce4e":
|
|
@@ -6800,6 +7099,17 @@ module.exports = function (it, TAG, STATIC) {
|
|
|
6800
7099
|
};
|
|
6801
7100
|
|
|
6802
7101
|
|
|
7102
|
+
/***/ }),
|
|
7103
|
+
|
|
7104
|
+
/***/ "d4c3":
|
|
7105
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
7106
|
+
|
|
7107
|
+
var userAgent = __webpack_require__("342f");
|
|
7108
|
+
var global = __webpack_require__("da84");
|
|
7109
|
+
|
|
7110
|
+
module.exports = /ipad|iphone|ipod/i.test(userAgent) && global.Pebble !== undefined;
|
|
7111
|
+
|
|
7112
|
+
|
|
6803
7113
|
/***/ }),
|
|
6804
7114
|
|
|
6805
7115
|
/***/ "d784":
|
|
@@ -7267,6 +7577,422 @@ var wellKnownSymbol = __webpack_require__("b622");
|
|
|
7267
7577
|
exports.f = wellKnownSymbol;
|
|
7268
7578
|
|
|
7269
7579
|
|
|
7580
|
+
/***/ }),
|
|
7581
|
+
|
|
7582
|
+
/***/ "e667":
|
|
7583
|
+
/***/ (function(module, exports) {
|
|
7584
|
+
|
|
7585
|
+
module.exports = function (exec) {
|
|
7586
|
+
try {
|
|
7587
|
+
return { error: false, value: exec() };
|
|
7588
|
+
} catch (error) {
|
|
7589
|
+
return { error: true, value: error };
|
|
7590
|
+
}
|
|
7591
|
+
};
|
|
7592
|
+
|
|
7593
|
+
|
|
7594
|
+
/***/ }),
|
|
7595
|
+
|
|
7596
|
+
/***/ "e6cf":
|
|
7597
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
7598
|
+
|
|
7599
|
+
"use strict";
|
|
7600
|
+
|
|
7601
|
+
var $ = __webpack_require__("23e7");
|
|
7602
|
+
var IS_PURE = __webpack_require__("c430");
|
|
7603
|
+
var global = __webpack_require__("da84");
|
|
7604
|
+
var getBuiltIn = __webpack_require__("d066");
|
|
7605
|
+
var NativePromise = __webpack_require__("fea9");
|
|
7606
|
+
var redefine = __webpack_require__("6eeb");
|
|
7607
|
+
var redefineAll = __webpack_require__("e2cc");
|
|
7608
|
+
var setPrototypeOf = __webpack_require__("d2bb");
|
|
7609
|
+
var setToStringTag = __webpack_require__("d44e");
|
|
7610
|
+
var setSpecies = __webpack_require__("2626");
|
|
7611
|
+
var aCallable = __webpack_require__("59ed");
|
|
7612
|
+
var isCallable = __webpack_require__("1626");
|
|
7613
|
+
var isObject = __webpack_require__("861d");
|
|
7614
|
+
var anInstance = __webpack_require__("19aa");
|
|
7615
|
+
var inspectSource = __webpack_require__("8925");
|
|
7616
|
+
var iterate = __webpack_require__("2266");
|
|
7617
|
+
var checkCorrectnessOfIteration = __webpack_require__("1c7e");
|
|
7618
|
+
var speciesConstructor = __webpack_require__("4840");
|
|
7619
|
+
var task = __webpack_require__("2cf4").set;
|
|
7620
|
+
var microtask = __webpack_require__("b575");
|
|
7621
|
+
var promiseResolve = __webpack_require__("cdf9");
|
|
7622
|
+
var hostReportErrors = __webpack_require__("44de");
|
|
7623
|
+
var newPromiseCapabilityModule = __webpack_require__("f069");
|
|
7624
|
+
var perform = __webpack_require__("e667");
|
|
7625
|
+
var InternalStateModule = __webpack_require__("69f3");
|
|
7626
|
+
var isForced = __webpack_require__("94ca");
|
|
7627
|
+
var wellKnownSymbol = __webpack_require__("b622");
|
|
7628
|
+
var IS_BROWSER = __webpack_require__("6069");
|
|
7629
|
+
var IS_NODE = __webpack_require__("605d");
|
|
7630
|
+
var V8_VERSION = __webpack_require__("2d00");
|
|
7631
|
+
|
|
7632
|
+
var SPECIES = wellKnownSymbol('species');
|
|
7633
|
+
var PROMISE = 'Promise';
|
|
7634
|
+
var getInternalState = InternalStateModule.get;
|
|
7635
|
+
var setInternalState = InternalStateModule.set;
|
|
7636
|
+
var getInternalPromiseState = InternalStateModule.getterFor(PROMISE);
|
|
7637
|
+
var NativePromisePrototype = NativePromise && NativePromise.prototype;
|
|
7638
|
+
var PromiseConstructor = NativePromise;
|
|
7639
|
+
var PromiseConstructorPrototype = NativePromisePrototype;
|
|
7640
|
+
var TypeError = global.TypeError;
|
|
7641
|
+
var document = global.document;
|
|
7642
|
+
var process = global.process;
|
|
7643
|
+
var newPromiseCapability = newPromiseCapabilityModule.f;
|
|
7644
|
+
var newGenericPromiseCapability = newPromiseCapability;
|
|
7645
|
+
var DISPATCH_EVENT = !!(document && document.createEvent && global.dispatchEvent);
|
|
7646
|
+
var NATIVE_REJECTION_EVENT = isCallable(global.PromiseRejectionEvent);
|
|
7647
|
+
var UNHANDLED_REJECTION = 'unhandledrejection';
|
|
7648
|
+
var REJECTION_HANDLED = 'rejectionhandled';
|
|
7649
|
+
var PENDING = 0;
|
|
7650
|
+
var FULFILLED = 1;
|
|
7651
|
+
var REJECTED = 2;
|
|
7652
|
+
var HANDLED = 1;
|
|
7653
|
+
var UNHANDLED = 2;
|
|
7654
|
+
var SUBCLASSING = false;
|
|
7655
|
+
var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;
|
|
7656
|
+
|
|
7657
|
+
var FORCED = isForced(PROMISE, function () {
|
|
7658
|
+
var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(PromiseConstructor);
|
|
7659
|
+
var GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(PromiseConstructor);
|
|
7660
|
+
// V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables
|
|
7661
|
+
// https://bugs.chromium.org/p/chromium/issues/detail?id=830565
|
|
7662
|
+
// We can't detect it synchronously, so just check versions
|
|
7663
|
+
if (!GLOBAL_CORE_JS_PROMISE && V8_VERSION === 66) return true;
|
|
7664
|
+
// We need Promise#finally in the pure version for preventing prototype pollution
|
|
7665
|
+
if (IS_PURE && !PromiseConstructorPrototype['finally']) return true;
|
|
7666
|
+
// We can't use @@species feature detection in V8 since it causes
|
|
7667
|
+
// deoptimization and performance degradation
|
|
7668
|
+
// https://github.com/zloirock/core-js/issues/679
|
|
7669
|
+
if (V8_VERSION >= 51 && /native code/.test(PROMISE_CONSTRUCTOR_SOURCE)) return false;
|
|
7670
|
+
// Detect correctness of subclassing with @@species support
|
|
7671
|
+
var promise = new PromiseConstructor(function (resolve) { resolve(1); });
|
|
7672
|
+
var FakePromise = function (exec) {
|
|
7673
|
+
exec(function () { /* empty */ }, function () { /* empty */ });
|
|
7674
|
+
};
|
|
7675
|
+
var constructor = promise.constructor = {};
|
|
7676
|
+
constructor[SPECIES] = FakePromise;
|
|
7677
|
+
SUBCLASSING = promise.then(function () { /* empty */ }) instanceof FakePromise;
|
|
7678
|
+
if (!SUBCLASSING) return true;
|
|
7679
|
+
// Unhandled rejections tracking support, NodeJS Promise without it fails @@species test
|
|
7680
|
+
return !GLOBAL_CORE_JS_PROMISE && IS_BROWSER && !NATIVE_REJECTION_EVENT;
|
|
7681
|
+
});
|
|
7682
|
+
|
|
7683
|
+
var INCORRECT_ITERATION = FORCED || !checkCorrectnessOfIteration(function (iterable) {
|
|
7684
|
+
PromiseConstructor.all(iterable)['catch'](function () { /* empty */ });
|
|
7685
|
+
});
|
|
7686
|
+
|
|
7687
|
+
// helpers
|
|
7688
|
+
var isThenable = function (it) {
|
|
7689
|
+
var then;
|
|
7690
|
+
return isObject(it) && isCallable(then = it.then) ? then : false;
|
|
7691
|
+
};
|
|
7692
|
+
|
|
7693
|
+
var notify = function (state, isReject) {
|
|
7694
|
+
if (state.notified) return;
|
|
7695
|
+
state.notified = true;
|
|
7696
|
+
var chain = state.reactions;
|
|
7697
|
+
microtask(function () {
|
|
7698
|
+
var value = state.value;
|
|
7699
|
+
var ok = state.state == FULFILLED;
|
|
7700
|
+
var index = 0;
|
|
7701
|
+
// variable length - can't use forEach
|
|
7702
|
+
while (chain.length > index) {
|
|
7703
|
+
var reaction = chain[index++];
|
|
7704
|
+
var handler = ok ? reaction.ok : reaction.fail;
|
|
7705
|
+
var resolve = reaction.resolve;
|
|
7706
|
+
var reject = reaction.reject;
|
|
7707
|
+
var domain = reaction.domain;
|
|
7708
|
+
var result, then, exited;
|
|
7709
|
+
try {
|
|
7710
|
+
if (handler) {
|
|
7711
|
+
if (!ok) {
|
|
7712
|
+
if (state.rejection === UNHANDLED) onHandleUnhandled(state);
|
|
7713
|
+
state.rejection = HANDLED;
|
|
7714
|
+
}
|
|
7715
|
+
if (handler === true) result = value;
|
|
7716
|
+
else {
|
|
7717
|
+
if (domain) domain.enter();
|
|
7718
|
+
result = handler(value); // can throw
|
|
7719
|
+
if (domain) {
|
|
7720
|
+
domain.exit();
|
|
7721
|
+
exited = true;
|
|
7722
|
+
}
|
|
7723
|
+
}
|
|
7724
|
+
if (result === reaction.promise) {
|
|
7725
|
+
reject(TypeError('Promise-chain cycle'));
|
|
7726
|
+
} else if (then = isThenable(result)) {
|
|
7727
|
+
then.call(result, resolve, reject);
|
|
7728
|
+
} else resolve(result);
|
|
7729
|
+
} else reject(value);
|
|
7730
|
+
} catch (error) {
|
|
7731
|
+
if (domain && !exited) domain.exit();
|
|
7732
|
+
reject(error);
|
|
7733
|
+
}
|
|
7734
|
+
}
|
|
7735
|
+
state.reactions = [];
|
|
7736
|
+
state.notified = false;
|
|
7737
|
+
if (isReject && !state.rejection) onUnhandled(state);
|
|
7738
|
+
});
|
|
7739
|
+
};
|
|
7740
|
+
|
|
7741
|
+
var dispatchEvent = function (name, promise, reason) {
|
|
7742
|
+
var event, handler;
|
|
7743
|
+
if (DISPATCH_EVENT) {
|
|
7744
|
+
event = document.createEvent('Event');
|
|
7745
|
+
event.promise = promise;
|
|
7746
|
+
event.reason = reason;
|
|
7747
|
+
event.initEvent(name, false, true);
|
|
7748
|
+
global.dispatchEvent(event);
|
|
7749
|
+
} else event = { promise: promise, reason: reason };
|
|
7750
|
+
if (!NATIVE_REJECTION_EVENT && (handler = global['on' + name])) handler(event);
|
|
7751
|
+
else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);
|
|
7752
|
+
};
|
|
7753
|
+
|
|
7754
|
+
var onUnhandled = function (state) {
|
|
7755
|
+
task.call(global, function () {
|
|
7756
|
+
var promise = state.facade;
|
|
7757
|
+
var value = state.value;
|
|
7758
|
+
var IS_UNHANDLED = isUnhandled(state);
|
|
7759
|
+
var result;
|
|
7760
|
+
if (IS_UNHANDLED) {
|
|
7761
|
+
result = perform(function () {
|
|
7762
|
+
if (IS_NODE) {
|
|
7763
|
+
process.emit('unhandledRejection', value, promise);
|
|
7764
|
+
} else dispatchEvent(UNHANDLED_REJECTION, promise, value);
|
|
7765
|
+
});
|
|
7766
|
+
// Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should
|
|
7767
|
+
state.rejection = IS_NODE || isUnhandled(state) ? UNHANDLED : HANDLED;
|
|
7768
|
+
if (result.error) throw result.value;
|
|
7769
|
+
}
|
|
7770
|
+
});
|
|
7771
|
+
};
|
|
7772
|
+
|
|
7773
|
+
var isUnhandled = function (state) {
|
|
7774
|
+
return state.rejection !== HANDLED && !state.parent;
|
|
7775
|
+
};
|
|
7776
|
+
|
|
7777
|
+
var onHandleUnhandled = function (state) {
|
|
7778
|
+
task.call(global, function () {
|
|
7779
|
+
var promise = state.facade;
|
|
7780
|
+
if (IS_NODE) {
|
|
7781
|
+
process.emit('rejectionHandled', promise);
|
|
7782
|
+
} else dispatchEvent(REJECTION_HANDLED, promise, state.value);
|
|
7783
|
+
});
|
|
7784
|
+
};
|
|
7785
|
+
|
|
7786
|
+
var bind = function (fn, state, unwrap) {
|
|
7787
|
+
return function (value) {
|
|
7788
|
+
fn(state, value, unwrap);
|
|
7789
|
+
};
|
|
7790
|
+
};
|
|
7791
|
+
|
|
7792
|
+
var internalReject = function (state, value, unwrap) {
|
|
7793
|
+
if (state.done) return;
|
|
7794
|
+
state.done = true;
|
|
7795
|
+
if (unwrap) state = unwrap;
|
|
7796
|
+
state.value = value;
|
|
7797
|
+
state.state = REJECTED;
|
|
7798
|
+
notify(state, true);
|
|
7799
|
+
};
|
|
7800
|
+
|
|
7801
|
+
var internalResolve = function (state, value, unwrap) {
|
|
7802
|
+
if (state.done) return;
|
|
7803
|
+
state.done = true;
|
|
7804
|
+
if (unwrap) state = unwrap;
|
|
7805
|
+
try {
|
|
7806
|
+
if (state.facade === value) throw TypeError("Promise can't be resolved itself");
|
|
7807
|
+
var then = isThenable(value);
|
|
7808
|
+
if (then) {
|
|
7809
|
+
microtask(function () {
|
|
7810
|
+
var wrapper = { done: false };
|
|
7811
|
+
try {
|
|
7812
|
+
then.call(value,
|
|
7813
|
+
bind(internalResolve, wrapper, state),
|
|
7814
|
+
bind(internalReject, wrapper, state)
|
|
7815
|
+
);
|
|
7816
|
+
} catch (error) {
|
|
7817
|
+
internalReject(wrapper, error, state);
|
|
7818
|
+
}
|
|
7819
|
+
});
|
|
7820
|
+
} else {
|
|
7821
|
+
state.value = value;
|
|
7822
|
+
state.state = FULFILLED;
|
|
7823
|
+
notify(state, false);
|
|
7824
|
+
}
|
|
7825
|
+
} catch (error) {
|
|
7826
|
+
internalReject({ done: false }, error, state);
|
|
7827
|
+
}
|
|
7828
|
+
};
|
|
7829
|
+
|
|
7830
|
+
// constructor polyfill
|
|
7831
|
+
if (FORCED) {
|
|
7832
|
+
// 25.4.3.1 Promise(executor)
|
|
7833
|
+
PromiseConstructor = function Promise(executor) {
|
|
7834
|
+
anInstance(this, PromiseConstructor, PROMISE);
|
|
7835
|
+
aCallable(executor);
|
|
7836
|
+
Internal.call(this);
|
|
7837
|
+
var state = getInternalState(this);
|
|
7838
|
+
try {
|
|
7839
|
+
executor(bind(internalResolve, state), bind(internalReject, state));
|
|
7840
|
+
} catch (error) {
|
|
7841
|
+
internalReject(state, error);
|
|
7842
|
+
}
|
|
7843
|
+
};
|
|
7844
|
+
PromiseConstructorPrototype = PromiseConstructor.prototype;
|
|
7845
|
+
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
|
7846
|
+
Internal = function Promise(executor) {
|
|
7847
|
+
setInternalState(this, {
|
|
7848
|
+
type: PROMISE,
|
|
7849
|
+
done: false,
|
|
7850
|
+
notified: false,
|
|
7851
|
+
parent: false,
|
|
7852
|
+
reactions: [],
|
|
7853
|
+
rejection: false,
|
|
7854
|
+
state: PENDING,
|
|
7855
|
+
value: undefined
|
|
7856
|
+
});
|
|
7857
|
+
};
|
|
7858
|
+
Internal.prototype = redefineAll(PromiseConstructorPrototype, {
|
|
7859
|
+
// `Promise.prototype.then` method
|
|
7860
|
+
// https://tc39.es/ecma262/#sec-promise.prototype.then
|
|
7861
|
+
then: function then(onFulfilled, onRejected) {
|
|
7862
|
+
var state = getInternalPromiseState(this);
|
|
7863
|
+
var reaction = newPromiseCapability(speciesConstructor(this, PromiseConstructor));
|
|
7864
|
+
reaction.ok = isCallable(onFulfilled) ? onFulfilled : true;
|
|
7865
|
+
reaction.fail = isCallable(onRejected) && onRejected;
|
|
7866
|
+
reaction.domain = IS_NODE ? process.domain : undefined;
|
|
7867
|
+
state.parent = true;
|
|
7868
|
+
state.reactions.push(reaction);
|
|
7869
|
+
if (state.state != PENDING) notify(state, false);
|
|
7870
|
+
return reaction.promise;
|
|
7871
|
+
},
|
|
7872
|
+
// `Promise.prototype.catch` method
|
|
7873
|
+
// https://tc39.es/ecma262/#sec-promise.prototype.catch
|
|
7874
|
+
'catch': function (onRejected) {
|
|
7875
|
+
return this.then(undefined, onRejected);
|
|
7876
|
+
}
|
|
7877
|
+
});
|
|
7878
|
+
OwnPromiseCapability = function () {
|
|
7879
|
+
var promise = new Internal();
|
|
7880
|
+
var state = getInternalState(promise);
|
|
7881
|
+
this.promise = promise;
|
|
7882
|
+
this.resolve = bind(internalResolve, state);
|
|
7883
|
+
this.reject = bind(internalReject, state);
|
|
7884
|
+
};
|
|
7885
|
+
newPromiseCapabilityModule.f = newPromiseCapability = function (C) {
|
|
7886
|
+
return C === PromiseConstructor || C === PromiseWrapper
|
|
7887
|
+
? new OwnPromiseCapability(C)
|
|
7888
|
+
: newGenericPromiseCapability(C);
|
|
7889
|
+
};
|
|
7890
|
+
|
|
7891
|
+
if (!IS_PURE && isCallable(NativePromise) && NativePromisePrototype !== Object.prototype) {
|
|
7892
|
+
nativeThen = NativePromisePrototype.then;
|
|
7893
|
+
|
|
7894
|
+
if (!SUBCLASSING) {
|
|
7895
|
+
// make `Promise#then` return a polyfilled `Promise` for native promise-based APIs
|
|
7896
|
+
redefine(NativePromisePrototype, 'then', function then(onFulfilled, onRejected) {
|
|
7897
|
+
var that = this;
|
|
7898
|
+
return new PromiseConstructor(function (resolve, reject) {
|
|
7899
|
+
nativeThen.call(that, resolve, reject);
|
|
7900
|
+
}).then(onFulfilled, onRejected);
|
|
7901
|
+
// https://github.com/zloirock/core-js/issues/640
|
|
7902
|
+
}, { unsafe: true });
|
|
7903
|
+
|
|
7904
|
+
// makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then`
|
|
7905
|
+
redefine(NativePromisePrototype, 'catch', PromiseConstructorPrototype['catch'], { unsafe: true });
|
|
7906
|
+
}
|
|
7907
|
+
|
|
7908
|
+
// make `.constructor === Promise` work for native promise-based APIs
|
|
7909
|
+
try {
|
|
7910
|
+
delete NativePromisePrototype.constructor;
|
|
7911
|
+
} catch (error) { /* empty */ }
|
|
7912
|
+
|
|
7913
|
+
// make `instanceof Promise` work for native promise-based APIs
|
|
7914
|
+
if (setPrototypeOf) {
|
|
7915
|
+
setPrototypeOf(NativePromisePrototype, PromiseConstructorPrototype);
|
|
7916
|
+
}
|
|
7917
|
+
}
|
|
7918
|
+
}
|
|
7919
|
+
|
|
7920
|
+
$({ global: true, wrap: true, forced: FORCED }, {
|
|
7921
|
+
Promise: PromiseConstructor
|
|
7922
|
+
});
|
|
7923
|
+
|
|
7924
|
+
setToStringTag(PromiseConstructor, PROMISE, false, true);
|
|
7925
|
+
setSpecies(PROMISE);
|
|
7926
|
+
|
|
7927
|
+
PromiseWrapper = getBuiltIn(PROMISE);
|
|
7928
|
+
|
|
7929
|
+
// statics
|
|
7930
|
+
$({ target: PROMISE, stat: true, forced: FORCED }, {
|
|
7931
|
+
// `Promise.reject` method
|
|
7932
|
+
// https://tc39.es/ecma262/#sec-promise.reject
|
|
7933
|
+
reject: function reject(r) {
|
|
7934
|
+
var capability = newPromiseCapability(this);
|
|
7935
|
+
capability.reject.call(undefined, r);
|
|
7936
|
+
return capability.promise;
|
|
7937
|
+
}
|
|
7938
|
+
});
|
|
7939
|
+
|
|
7940
|
+
$({ target: PROMISE, stat: true, forced: IS_PURE || FORCED }, {
|
|
7941
|
+
// `Promise.resolve` method
|
|
7942
|
+
// https://tc39.es/ecma262/#sec-promise.resolve
|
|
7943
|
+
resolve: function resolve(x) {
|
|
7944
|
+
return promiseResolve(IS_PURE && this === PromiseWrapper ? PromiseConstructor : this, x);
|
|
7945
|
+
}
|
|
7946
|
+
});
|
|
7947
|
+
|
|
7948
|
+
$({ target: PROMISE, stat: true, forced: INCORRECT_ITERATION }, {
|
|
7949
|
+
// `Promise.all` method
|
|
7950
|
+
// https://tc39.es/ecma262/#sec-promise.all
|
|
7951
|
+
all: function all(iterable) {
|
|
7952
|
+
var C = this;
|
|
7953
|
+
var capability = newPromiseCapability(C);
|
|
7954
|
+
var resolve = capability.resolve;
|
|
7955
|
+
var reject = capability.reject;
|
|
7956
|
+
var result = perform(function () {
|
|
7957
|
+
var $promiseResolve = aCallable(C.resolve);
|
|
7958
|
+
var values = [];
|
|
7959
|
+
var counter = 0;
|
|
7960
|
+
var remaining = 1;
|
|
7961
|
+
iterate(iterable, function (promise) {
|
|
7962
|
+
var index = counter++;
|
|
7963
|
+
var alreadyCalled = false;
|
|
7964
|
+
values.push(undefined);
|
|
7965
|
+
remaining++;
|
|
7966
|
+
$promiseResolve.call(C, promise).then(function (value) {
|
|
7967
|
+
if (alreadyCalled) return;
|
|
7968
|
+
alreadyCalled = true;
|
|
7969
|
+
values[index] = value;
|
|
7970
|
+
--remaining || resolve(values);
|
|
7971
|
+
}, reject);
|
|
7972
|
+
});
|
|
7973
|
+
--remaining || resolve(values);
|
|
7974
|
+
});
|
|
7975
|
+
if (result.error) reject(result.value);
|
|
7976
|
+
return capability.promise;
|
|
7977
|
+
},
|
|
7978
|
+
// `Promise.race` method
|
|
7979
|
+
// https://tc39.es/ecma262/#sec-promise.race
|
|
7980
|
+
race: function race(iterable) {
|
|
7981
|
+
var C = this;
|
|
7982
|
+
var capability = newPromiseCapability(C);
|
|
7983
|
+
var reject = capability.reject;
|
|
7984
|
+
var result = perform(function () {
|
|
7985
|
+
var $promiseResolve = aCallable(C.resolve);
|
|
7986
|
+
iterate(iterable, function (promise) {
|
|
7987
|
+
$promiseResolve.call(C, promise).then(capability.resolve, reject);
|
|
7988
|
+
});
|
|
7989
|
+
});
|
|
7990
|
+
if (result.error) reject(result.value);
|
|
7991
|
+
return capability.promise;
|
|
7992
|
+
}
|
|
7993
|
+
});
|
|
7994
|
+
|
|
7995
|
+
|
|
7270
7996
|
/***/ }),
|
|
7271
7997
|
|
|
7272
7998
|
/***/ "e893":
|
|
@@ -7320,6 +8046,33 @@ module.exports = function (it) {
|
|
|
7320
8046
|
};
|
|
7321
8047
|
|
|
7322
8048
|
|
|
8049
|
+
/***/ }),
|
|
8050
|
+
|
|
8051
|
+
/***/ "f069":
|
|
8052
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
8053
|
+
|
|
8054
|
+
"use strict";
|
|
8055
|
+
|
|
8056
|
+
var aCallable = __webpack_require__("59ed");
|
|
8057
|
+
|
|
8058
|
+
var PromiseCapability = function (C) {
|
|
8059
|
+
var resolve, reject;
|
|
8060
|
+
this.promise = new C(function ($$resolve, $$reject) {
|
|
8061
|
+
if (resolve !== undefined || reject !== undefined) throw TypeError('Bad Promise constructor');
|
|
8062
|
+
resolve = $$resolve;
|
|
8063
|
+
reject = $$reject;
|
|
8064
|
+
});
|
|
8065
|
+
this.resolve = aCallable(resolve);
|
|
8066
|
+
this.reject = aCallable(reject);
|
|
8067
|
+
};
|
|
8068
|
+
|
|
8069
|
+
// `NewPromiseCapability` abstract operation
|
|
8070
|
+
// https://tc39.es/ecma262/#sec-newpromisecapability
|
|
8071
|
+
module.exports.f = function (C) {
|
|
8072
|
+
return new PromiseCapability(C);
|
|
8073
|
+
};
|
|
8074
|
+
|
|
8075
|
+
|
|
7323
8076
|
/***/ }),
|
|
7324
8077
|
|
|
7325
8078
|
/***/ "f0af":
|
|
@@ -7661,6 +8414,7 @@ var iconPrefix = 'vxe-icon--';
|
|
|
7661
8414
|
showHeader: true,
|
|
7662
8415
|
animat: true,
|
|
7663
8416
|
delayHover: 250,
|
|
8417
|
+
autoResize: true,
|
|
7664
8418
|
// keepSource: false,
|
|
7665
8419
|
// showOverflow: null,
|
|
7666
8420
|
// showHeaderOverflow: null,
|
|
@@ -7668,7 +8422,6 @@ var iconPrefix = 'vxe-icon--';
|
|
|
7668
8422
|
// resizeInterval: 500,
|
|
7669
8423
|
// size: null,
|
|
7670
8424
|
// zIndex: null,
|
|
7671
|
-
// autoResize: false,
|
|
7672
8425
|
// stripe: false,
|
|
7673
8426
|
// border: false,
|
|
7674
8427
|
// round: false,
|
|
@@ -7741,6 +8494,9 @@ var iconPrefix = 'vxe-icon--';
|
|
|
7741
8494
|
mouseConfig: {
|
|
7742
8495
|
extension: true
|
|
7743
8496
|
},
|
|
8497
|
+
keyboardConfig: {
|
|
8498
|
+
isEsc: true
|
|
8499
|
+
},
|
|
7744
8500
|
areaConfig: {
|
|
7745
8501
|
selectCellByHeader: true
|
|
7746
8502
|
},
|
|
@@ -9942,6 +10698,12 @@ var Icon = {
|
|
|
9942
10698
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.number.constructor.js
|
|
9943
10699
|
var es_number_constructor = __webpack_require__("a9e3");
|
|
9944
10700
|
|
|
10701
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.assign.js
|
|
10702
|
+
var es_object_assign = __webpack_require__("cca6");
|
|
10703
|
+
|
|
10704
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.iterator.js
|
|
10705
|
+
var es_array_iterator = __webpack_require__("e260");
|
|
10706
|
+
|
|
9945
10707
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.map.js
|
|
9946
10708
|
var es_map = __webpack_require__("4ec9");
|
|
9947
10709
|
|
|
@@ -11116,6 +11878,9 @@ function _objectSpread2(target) {
|
|
|
11116
11878
|
|
|
11117
11879
|
return target;
|
|
11118
11880
|
}
|
|
11881
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.promise.js
|
|
11882
|
+
var es_promise = __webpack_require__("e6cf");
|
|
11883
|
+
|
|
11119
11884
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.trim.js
|
|
11120
11885
|
var es_string_trim = __webpack_require__("498a");
|
|
11121
11886
|
|
|
@@ -12073,6 +12838,9 @@ var Cell = {
|
|
|
12073
12838
|
|
|
12074
12839
|
|
|
12075
12840
|
|
|
12841
|
+
|
|
12842
|
+
|
|
12843
|
+
|
|
12076
12844
|
|
|
12077
12845
|
|
|
12078
12846
|
|
|
@@ -12648,16 +13416,12 @@ var Methods = {
|
|
|
12648
13416
|
|
|
12649
13417
|
if (oRow && row) {
|
|
12650
13418
|
if (field) {
|
|
12651
|
-
|
|
13419
|
+
var newValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.get(record || row, field);
|
|
13420
|
+
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.set(row, field, newValue);
|
|
13421
|
+
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.set(oRow, field, newValue);
|
|
12652
13422
|
} else {
|
|
12653
|
-
|
|
12654
|
-
|
|
12655
|
-
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.clear(row, undefined);
|
|
12656
|
-
Object.assign(row, this.defineField(Object.assign({}, record)));
|
|
12657
|
-
this.cacheRowMap(true);
|
|
12658
|
-
} else {
|
|
12659
|
-
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.destructuring(oRow, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.clone(row, true));
|
|
12660
|
-
}
|
|
13423
|
+
var newRecord = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.clone(_objectSpread2({}, record), true);
|
|
13424
|
+
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.destructuring(oRow, Object.assign(row, newRecord));
|
|
12661
13425
|
}
|
|
12662
13426
|
}
|
|
12663
13427
|
|
|
@@ -14756,7 +15520,8 @@ var Methods = {
|
|
|
14756
15520
|
editStore = this.editStore,
|
|
14757
15521
|
keyboardConfig = this.keyboardConfig,
|
|
14758
15522
|
mouseConfig = this.mouseConfig,
|
|
14759
|
-
mouseOpts = this.mouseOpts
|
|
15523
|
+
mouseOpts = this.mouseOpts,
|
|
15524
|
+
keyboardOpts = this.keyboardOpts;
|
|
14760
15525
|
var actived = editStore.actived;
|
|
14761
15526
|
var keyCode = evnt.keyCode;
|
|
14762
15527
|
var isEsc = keyCode === 27;
|
|
@@ -14770,19 +15535,21 @@ var Methods = {
|
|
|
14770
15535
|
|
|
14771
15536
|
_this23.closeFilter();
|
|
14772
15537
|
|
|
14773
|
-
_this23.closeMenu();
|
|
14774
|
-
|
|
15538
|
+
_this23.closeMenu();
|
|
14775
15539
|
|
|
14776
|
-
if (
|
|
14777
|
-
|
|
15540
|
+
if (keyboardConfig && keyboardOpts.isEsc) {
|
|
15541
|
+
// 如果是激活编辑状态,则取消编辑
|
|
15542
|
+
if (actived.row) {
|
|
15543
|
+
var params = actived.args;
|
|
14778
15544
|
|
|
14779
|
-
|
|
15545
|
+
_this23.clearActived(evnt); // 如果配置了选中功能,则为选中状态
|
|
14780
15546
|
|
|
14781
15547
|
|
|
14782
|
-
|
|
14783
|
-
|
|
14784
|
-
|
|
14785
|
-
|
|
15548
|
+
if (mouseConfig && mouseOpts.selected) {
|
|
15549
|
+
_this23.$nextTick(function () {
|
|
15550
|
+
return _this23.handleSelected(params, evnt);
|
|
15551
|
+
});
|
|
15552
|
+
}
|
|
14786
15553
|
}
|
|
14787
15554
|
}
|
|
14788
15555
|
}
|
|
@@ -15927,6 +16694,18 @@ var Methods = {
|
|
|
15927
16694
|
var reserveSelection = [];
|
|
15928
16695
|
|
|
15929
16696
|
if (checkboxOpts.reserve) {
|
|
16697
|
+
var afterFullIdMaps = {};
|
|
16698
|
+
|
|
16699
|
+
if (treeConfig) {
|
|
16700
|
+
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.eachTree(afterFullData, function (row) {
|
|
16701
|
+
afterFullIdMaps[methods_getRowid(_this30, row)] = 1;
|
|
16702
|
+
}, treeOpts);
|
|
16703
|
+
} else {
|
|
16704
|
+
afterFullData.forEach(function (row) {
|
|
16705
|
+
afterFullIdMaps[methods_getRowid(_this30, row)] = 1;
|
|
16706
|
+
});
|
|
16707
|
+
}
|
|
16708
|
+
|
|
15930
16709
|
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.each(checkboxReserveRowMap, function (oldRow, oldRowid) {
|
|
15931
16710
|
if (oldRow) {
|
|
15932
16711
|
if (isFull) {
|
|
@@ -15934,18 +16713,8 @@ var Methods = {
|
|
|
15934
16713
|
reserveSelection.push(oldRow);
|
|
15935
16714
|
}
|
|
15936
16715
|
} else {
|
|
15937
|
-
if (
|
|
15938
|
-
|
|
15939
|
-
return methods_getRowid(_this30, row) === oldRowid;
|
|
15940
|
-
}, treeOpts)) {
|
|
15941
|
-
reserveSelection.push(oldRow);
|
|
15942
|
-
}
|
|
15943
|
-
} else {
|
|
15944
|
-
if (!afterFullData.some(function (row) {
|
|
15945
|
-
return methods_getRowid(_this30, row) === oldRowid;
|
|
15946
|
-
})) {
|
|
15947
|
-
reserveSelection.push(oldRow);
|
|
15948
|
-
}
|
|
16716
|
+
if (!afterFullIdMaps[oldRowid]) {
|
|
16717
|
+
reserveSelection.push(oldRow);
|
|
15949
16718
|
}
|
|
15950
16719
|
}
|
|
15951
16720
|
}
|
|
@@ -18062,6 +18831,8 @@ funcs.forEach(function (name) {
|
|
|
18062
18831
|
|
|
18063
18832
|
|
|
18064
18833
|
|
|
18834
|
+
|
|
18835
|
+
|
|
18065
18836
|
/**
|
|
18066
18837
|
* 渲染浮固定列
|
|
18067
18838
|
* 分别渲染左边固定列和右边固定列
|
|
@@ -18232,35 +19003,35 @@ function handleUupdateResize(_vm) {
|
|
|
18232
19003
|
return conf.table.showHeader;
|
|
18233
19004
|
}
|
|
18234
19005
|
},
|
|
18235
|
-
//
|
|
19006
|
+
// (即将废弃)是否要高亮当前选中行
|
|
18236
19007
|
highlightCurrentRow: {
|
|
18237
19008
|
type: Boolean,
|
|
18238
19009
|
default: function _default() {
|
|
18239
19010
|
return conf.table.highlightCurrentRow;
|
|
18240
19011
|
}
|
|
18241
19012
|
},
|
|
18242
|
-
//
|
|
19013
|
+
// (即将废弃)鼠标移到行是否要高亮显示
|
|
18243
19014
|
highlightHoverRow: {
|
|
18244
19015
|
type: Boolean,
|
|
18245
19016
|
default: function _default() {
|
|
18246
19017
|
return conf.table.highlightHoverRow;
|
|
18247
19018
|
}
|
|
18248
19019
|
},
|
|
18249
|
-
//
|
|
19020
|
+
// (即将废弃)是否要高亮当前选中列
|
|
18250
19021
|
highlightCurrentColumn: {
|
|
18251
19022
|
type: Boolean,
|
|
18252
19023
|
default: function _default() {
|
|
18253
19024
|
return conf.table.highlightCurrentColumn;
|
|
18254
19025
|
}
|
|
18255
19026
|
},
|
|
18256
|
-
//
|
|
19027
|
+
// (即将废弃)鼠标移到列是否要高亮显示
|
|
18257
19028
|
highlightHoverColumn: {
|
|
18258
19029
|
type: Boolean,
|
|
18259
19030
|
default: function _default() {
|
|
18260
19031
|
return conf.table.highlightHoverColumn;
|
|
18261
19032
|
}
|
|
18262
19033
|
},
|
|
18263
|
-
//
|
|
19034
|
+
// (即将废弃)激活单元格编辑时是否高亮显示
|
|
18264
19035
|
highlightCell: Boolean,
|
|
18265
19036
|
// 是否显示表尾合计
|
|
18266
19037
|
showFooter: Boolean,
|
|
@@ -18408,7 +19179,7 @@ function handleUupdateResize(_vm) {
|
|
|
18408
19179
|
scrollX: Object,
|
|
18409
19180
|
// 纵向虚拟滚动配置项
|
|
18410
19181
|
scrollY: Object,
|
|
18411
|
-
//
|
|
19182
|
+
// (即将废弃)优化相关
|
|
18412
19183
|
animat: {
|
|
18413
19184
|
type: Boolean,
|
|
18414
19185
|
default: function _default() {
|
|
@@ -20385,6 +21156,67 @@ var Menu = {
|
|
|
20385
21156
|
|
|
20386
21157
|
|
|
20387
21158
|
var mixin_getRowid = UtilTools.getRowid;
|
|
21159
|
+
|
|
21160
|
+
function insertTreeRow(_vm, newRecords, isAppend) {
|
|
21161
|
+
var treeFullData = _vm.treeFullData,
|
|
21162
|
+
afterFullData = _vm.afterFullData,
|
|
21163
|
+
fullDataRowIdData = _vm.fullDataRowIdData,
|
|
21164
|
+
fullAllDataRowIdData = _vm.fullAllDataRowIdData,
|
|
21165
|
+
treeOpts = _vm.treeOpts;
|
|
21166
|
+
var funcName = isAppend ? 'push' : 'unshift';
|
|
21167
|
+
newRecords.forEach(function (item) {
|
|
21168
|
+
var parentRowId = item[treeOpts.parentField];
|
|
21169
|
+
var rowid = mixin_getRowid(_vm, item);
|
|
21170
|
+
var matchObj = parentRowId ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.findTree(treeFullData, function (item) {
|
|
21171
|
+
return parentRowId === item[treeOpts.rowField];
|
|
21172
|
+
}, treeOpts) : null;
|
|
21173
|
+
|
|
21174
|
+
if (matchObj) {
|
|
21175
|
+
var parentRow = matchObj.item;
|
|
21176
|
+
var parentRest = fullAllDataRowIdData[mixin_getRowid(_vm, parentRow)];
|
|
21177
|
+
var parentLevel = parentRest ? parentRest.level : 0;
|
|
21178
|
+
var parentChilds = parentRow[treeOpts.children];
|
|
21179
|
+
|
|
21180
|
+
if (!external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.isArray(parentChilds)) {
|
|
21181
|
+
parentChilds = parentRow[treeOpts.children] = [];
|
|
21182
|
+
}
|
|
21183
|
+
|
|
21184
|
+
parentChilds[funcName](item);
|
|
21185
|
+
var rest = {
|
|
21186
|
+
row: item,
|
|
21187
|
+
rowid: rowid,
|
|
21188
|
+
index: -1,
|
|
21189
|
+
_index: -1,
|
|
21190
|
+
$index: -1,
|
|
21191
|
+
items: parentChilds,
|
|
21192
|
+
parent: parent,
|
|
21193
|
+
level: parentLevel + 1
|
|
21194
|
+
};
|
|
21195
|
+
fullDataRowIdData[rowid] = rest;
|
|
21196
|
+
fullAllDataRowIdData[rowid] = rest;
|
|
21197
|
+
} else {
|
|
21198
|
+
if (false) {}
|
|
21199
|
+
|
|
21200
|
+
afterFullData[funcName](item);
|
|
21201
|
+
treeFullData[funcName](item);
|
|
21202
|
+
var _rest = {
|
|
21203
|
+
row: item,
|
|
21204
|
+
rowid: rowid,
|
|
21205
|
+
index: -1,
|
|
21206
|
+
_index: -1,
|
|
21207
|
+
$index: -1,
|
|
21208
|
+
items: treeFullData,
|
|
21209
|
+
parent: null,
|
|
21210
|
+
level: 0
|
|
21211
|
+
};
|
|
21212
|
+
fullDataRowIdData[rowid] = _rest;
|
|
21213
|
+
fullAllDataRowIdData[rowid] = _rest;
|
|
21214
|
+
}
|
|
21215
|
+
});
|
|
21216
|
+
|
|
21217
|
+
_vm.updateVirtualTreeData();
|
|
21218
|
+
}
|
|
21219
|
+
|
|
20388
21220
|
/* harmony default export */ var edit_src_mixin = ({
|
|
20389
21221
|
methods: {
|
|
20390
21222
|
/**
|
|
@@ -20419,6 +21251,7 @@ var mixin_getRowid = UtilTools.getRowid;
|
|
|
20419
21251
|
fullDataRowIdData = this.fullDataRowIdData,
|
|
20420
21252
|
fullAllDataRowIdData = this.fullAllDataRowIdData,
|
|
20421
21253
|
treeOpts = this.treeOpts;
|
|
21254
|
+
var transform = treeOpts.transform;
|
|
20422
21255
|
|
|
20423
21256
|
if (!external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.isArray(records)) {
|
|
20424
21257
|
records = [records];
|
|
@@ -20430,27 +21263,60 @@ var mixin_getRowid = UtilTools.getRowid;
|
|
|
20430
21263
|
|
|
20431
21264
|
if (!row) {
|
|
20432
21265
|
// 如果为虚拟树
|
|
20433
|
-
if (treeConfig &&
|
|
20434
|
-
|
|
20435
|
-
|
|
20436
|
-
|
|
21266
|
+
if (treeConfig && transform) {
|
|
21267
|
+
insertTreeRow(this, newRecords, false);
|
|
21268
|
+
} else {
|
|
21269
|
+
afterFullData.unshift.apply(afterFullData, _toConsumableArray(newRecords));
|
|
21270
|
+
tableFullData.unshift.apply(tableFullData, _toConsumableArray(newRecords)); // 刷新单元格合并
|
|
20437
21271
|
|
|
20438
|
-
|
|
20439
|
-
|
|
20440
|
-
|
|
20441
|
-
|
|
21272
|
+
mergeList.forEach(function (mergeItem) {
|
|
21273
|
+
var mergeRowIndex = mergeItem.row;
|
|
21274
|
+
|
|
21275
|
+
if (mergeRowIndex > 0) {
|
|
21276
|
+
mergeItem.row = mergeRowIndex + newRecords.length;
|
|
21277
|
+
}
|
|
21278
|
+
});
|
|
21279
|
+
}
|
|
21280
|
+
} else {
|
|
21281
|
+
if (row === -1) {
|
|
21282
|
+
// 如果为虚拟树
|
|
21283
|
+
if (treeConfig && transform) {
|
|
21284
|
+
insertTreeRow(this, newRecords, true);
|
|
21285
|
+
} else {
|
|
21286
|
+
afterFullData.push.apply(afterFullData, _toConsumableArray(newRecords));
|
|
21287
|
+
tableFullData.push.apply(tableFullData, _toConsumableArray(newRecords)); // 刷新单元格合并
|
|
20442
21288
|
|
|
20443
|
-
|
|
20444
|
-
|
|
20445
|
-
|
|
20446
|
-
var parentLevel = parentRest ? parentRest.level : 0;
|
|
20447
|
-
var parentChilds = parentRow[treeOpts.children];
|
|
21289
|
+
mergeList.forEach(function (mergeItem) {
|
|
21290
|
+
var mergeRowIndex = mergeItem.row,
|
|
21291
|
+
mergeRowspan = mergeItem.rowspan;
|
|
20448
21292
|
|
|
20449
|
-
|
|
20450
|
-
|
|
21293
|
+
if (mergeRowIndex + mergeRowspan > afterFullData.length) {
|
|
21294
|
+
mergeItem.rowspan = mergeRowspan + newRecords.length;
|
|
21295
|
+
}
|
|
21296
|
+
});
|
|
21297
|
+
}
|
|
21298
|
+
} else {
|
|
21299
|
+
// 如果为虚拟树
|
|
21300
|
+
if (treeConfig && transform) {
|
|
21301
|
+
var matchObj = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.findTree(treeFullData, function (item) {
|
|
21302
|
+
return row[treeOpts.rowField] === item[treeOpts.rowField];
|
|
21303
|
+
}, treeOpts);
|
|
21304
|
+
|
|
21305
|
+
if (matchObj) {
|
|
21306
|
+
var parentRow = matchObj.parent;
|
|
21307
|
+
var parentChilds = matchObj.items;
|
|
21308
|
+
var parentRest = fullAllDataRowIdData[mixin_getRowid(this, parentRow)];
|
|
21309
|
+
var parentLevel = parentRest ? parentRest.level : 0;
|
|
21310
|
+
newRecords.forEach(function (item, i) {
|
|
21311
|
+
var rowid = mixin_getRowid(_this, item);
|
|
21312
|
+
|
|
21313
|
+
if (false) {}
|
|
21314
|
+
|
|
21315
|
+
if (parentRow) {
|
|
21316
|
+
item[treeOpts.parentField] = parentRow[treeOpts.rowField];
|
|
20451
21317
|
}
|
|
20452
21318
|
|
|
20453
|
-
parentChilds.
|
|
21319
|
+
parentChilds.splice(matchObj.index + i, 0, item);
|
|
20454
21320
|
var rest = {
|
|
20455
21321
|
row: item,
|
|
20456
21322
|
rowid: rowid,
|
|
@@ -20458,75 +21324,50 @@ var mixin_getRowid = UtilTools.getRowid;
|
|
|
20458
21324
|
_index: -1,
|
|
20459
21325
|
$index: -1,
|
|
20460
21326
|
items: parentChilds,
|
|
20461
|
-
parent:
|
|
21327
|
+
parent: parentRow,
|
|
20462
21328
|
level: parentLevel + 1
|
|
20463
21329
|
};
|
|
20464
21330
|
fullDataRowIdData[rowid] = rest;
|
|
20465
21331
|
fullAllDataRowIdData[rowid] = rest;
|
|
20466
|
-
}
|
|
20467
|
-
|
|
21332
|
+
});
|
|
21333
|
+
this.updateVirtualTreeData();
|
|
20468
21334
|
} else {
|
|
20469
|
-
|
|
20470
|
-
treeFullData.unshift(item);
|
|
20471
|
-
}
|
|
20472
|
-
});
|
|
20473
|
-
this.updateVirtualTreeData();
|
|
20474
|
-
} else {
|
|
20475
|
-
afterFullData.unshift.apply(afterFullData, _toConsumableArray(newRecords));
|
|
20476
|
-
tableFullData.unshift.apply(tableFullData, _toConsumableArray(newRecords)); // 刷新单元格合并
|
|
20477
|
-
|
|
20478
|
-
mergeList.forEach(function (mergeItem) {
|
|
20479
|
-
var mergeRowIndex = mergeItem.row;
|
|
21335
|
+
if (false) {}
|
|
20480
21336
|
|
|
20481
|
-
|
|
20482
|
-
mergeItem.row = mergeRowIndex + newRecords.length;
|
|
21337
|
+
insertTreeRow(this, newRecords, true);
|
|
20483
21338
|
}
|
|
20484
|
-
}
|
|
20485
|
-
|
|
20486
|
-
|
|
20487
|
-
if (row === -1) {
|
|
20488
|
-
afterFullData.push.apply(afterFullData, _toConsumableArray(newRecords));
|
|
20489
|
-
tableFullData.push.apply(tableFullData, _toConsumableArray(newRecords)); // 刷新单元格合并
|
|
20490
|
-
|
|
20491
|
-
mergeList.forEach(function (mergeItem) {
|
|
20492
|
-
var mergeRowIndex = mergeItem.row,
|
|
20493
|
-
mergeRowspan = mergeItem.rowspan;
|
|
20494
|
-
|
|
20495
|
-
if (mergeRowIndex + mergeRowspan > afterFullData.length) {
|
|
20496
|
-
mergeItem.rowspan = mergeRowspan + newRecords.length;
|
|
21339
|
+
} else {
|
|
21340
|
+
if (treeConfig) {
|
|
21341
|
+
throw new Error(UtilTools.getLog('vxe.error.noTree', ['insert']));
|
|
20497
21342
|
}
|
|
20498
|
-
});
|
|
20499
|
-
} else {
|
|
20500
|
-
if (treeConfig) {
|
|
20501
|
-
throw new Error(UtilTools.getLog('vxe.error.noTree', ['insert']));
|
|
20502
|
-
}
|
|
20503
21343
|
|
|
20504
|
-
|
|
21344
|
+
var afIndex = afterFullData.indexOf(row);
|
|
20505
21345
|
|
|
20506
|
-
|
|
20507
|
-
|
|
20508
|
-
|
|
21346
|
+
if (afIndex === -1) {
|
|
21347
|
+
throw new Error(UtilTools.error('vxe.error.unableInsert'));
|
|
21348
|
+
}
|
|
20509
21349
|
|
|
20510
|
-
|
|
20511
|
-
|
|
21350
|
+
afterFullData.splice.apply(afterFullData, [afIndex, 0].concat(_toConsumableArray(newRecords)));
|
|
21351
|
+
tableFullData.splice.apply(tableFullData, [tableFullData.indexOf(row), 0].concat(_toConsumableArray(newRecords))); // 刷新单元格合并
|
|
20512
21352
|
|
|
20513
|
-
|
|
20514
|
-
|
|
20515
|
-
|
|
21353
|
+
mergeList.forEach(function (mergeItem) {
|
|
21354
|
+
var mergeRowIndex = mergeItem.row,
|
|
21355
|
+
mergeRowspan = mergeItem.rowspan;
|
|
20516
21356
|
|
|
20517
|
-
|
|
20518
|
-
|
|
20519
|
-
|
|
20520
|
-
|
|
20521
|
-
|
|
20522
|
-
|
|
21357
|
+
if (mergeRowIndex > afIndex) {
|
|
21358
|
+
mergeItem.row = mergeRowIndex + newRecords.length;
|
|
21359
|
+
} else if (mergeRowIndex + mergeRowspan > afIndex) {
|
|
21360
|
+
mergeItem.rowspan = mergeRowspan + newRecords.length;
|
|
21361
|
+
}
|
|
21362
|
+
});
|
|
21363
|
+
}
|
|
20523
21364
|
}
|
|
20524
21365
|
}
|
|
20525
21366
|
|
|
20526
21367
|
(_editStore$insertList = editStore.insertList).unshift.apply(_editStore$insertList, _toConsumableArray(newRecords));
|
|
20527
21368
|
|
|
20528
21369
|
this.scrollYLoad = !treeConfig && sYOpts.gt > -1 && sYOpts.gt < tableFullData.length;
|
|
20529
|
-
this.handleTableData();
|
|
21370
|
+
this.handleTableData(transform);
|
|
20530
21371
|
this.updateFooter();
|
|
20531
21372
|
this.cacheRowMap();
|
|
20532
21373
|
this.checkSelectionStatus();
|
|
@@ -20568,6 +21409,7 @@ var mixin_getRowid = UtilTools.getRowid;
|
|
|
20568
21409
|
sYOpts = this.sYOpts,
|
|
20569
21410
|
scrollYLoad = this.scrollYLoad,
|
|
20570
21411
|
treeOpts = this.treeOpts;
|
|
21412
|
+
var transform = treeOpts.transform;
|
|
20571
21413
|
var actived = editStore.actived,
|
|
20572
21414
|
removeList = editStore.removeList,
|
|
20573
21415
|
insertList = editStore.insertList;
|
|
@@ -20605,7 +21447,7 @@ var mixin_getRowid = UtilTools.getRowid;
|
|
|
20605
21447
|
this.clearMergeCells();
|
|
20606
21448
|
} else {
|
|
20607
21449
|
// 如果为虚拟树
|
|
20608
|
-
if (treeConfig &&
|
|
21450
|
+
if (treeConfig && transform) {
|
|
20609
21451
|
rows.forEach(function (row) {
|
|
20610
21452
|
var rowid = mixin_getRowid(_this2, row);
|
|
20611
21453
|
var matchObj = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.findTree(treeFullData, function (item) {
|
|
@@ -20668,7 +21510,7 @@ var mixin_getRowid = UtilTools.getRowid;
|
|
|
20668
21510
|
}
|
|
20669
21511
|
});
|
|
20670
21512
|
this.scrollYLoad = !treeConfig && sYOpts.gt > -1 && sYOpts.gt < tableFullData.length;
|
|
20671
|
-
this.handleTableData();
|
|
21513
|
+
this.handleTableData(transform);
|
|
20672
21514
|
this.updateFooter();
|
|
20673
21515
|
this.cacheRowMap();
|
|
20674
21516
|
this.checkSelectionStatus();
|
|
@@ -22549,12 +23391,20 @@ function getDateQuarter(date) {
|
|
|
22549
23391
|
return 4;
|
|
22550
23392
|
}
|
|
22551
23393
|
|
|
23394
|
+
function toFloatValueFixed(inputValue, digitsValue) {
|
|
23395
|
+
if (/^-/.test('' + inputValue)) {
|
|
23396
|
+
return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.toFixed(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.ceil(inputValue, digitsValue), digitsValue);
|
|
23397
|
+
}
|
|
23398
|
+
|
|
23399
|
+
return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.toFixed(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.floor(inputValue, digitsValue), digitsValue);
|
|
23400
|
+
}
|
|
23401
|
+
|
|
22552
23402
|
function getNumberValue(_vm, val) {
|
|
22553
23403
|
var type = _vm.type,
|
|
22554
23404
|
exponential = _vm.exponential,
|
|
22555
23405
|
digitsValue = _vm.digitsValue,
|
|
22556
23406
|
inpMaxlength = _vm.inpMaxlength;
|
|
22557
|
-
var restVal = type === 'float' ?
|
|
23407
|
+
var restVal = type === 'float' ? toFloatValueFixed(val, digitsValue) : external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.toValueString(val);
|
|
22558
23408
|
|
|
22559
23409
|
if (exponential && (val === restVal || external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.toValueString(val).toLowerCase() === external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.toNumber(restVal).toExponential())) {
|
|
22560
23410
|
return val;
|
|
@@ -23998,7 +24848,7 @@ function renderExtraSuffixIcon(h, _vm) {
|
|
|
23998
24848
|
this.changeValue();
|
|
23999
24849
|
} else if (type === 'float') {
|
|
24000
24850
|
if (inputValue) {
|
|
24001
|
-
var validValue =
|
|
24851
|
+
var validValue = toFloatValueFixed(inputValue, digitsValue);
|
|
24002
24852
|
|
|
24003
24853
|
if (inputValue !== validValue) {
|
|
24004
24854
|
this.emitModel(validValue, {
|
|
@@ -26795,6 +27645,11 @@ var es_string_repeat = __webpack_require__("38cf");
|
|
|
26795
27645
|
|
|
26796
27646
|
|
|
26797
27647
|
|
|
27648
|
+
|
|
27649
|
+
|
|
27650
|
+
|
|
27651
|
+
|
|
27652
|
+
|
|
26798
27653
|
|
|
26799
27654
|
|
|
26800
27655
|
|
|
@@ -26834,15 +27689,26 @@ function hasTreeChildren($xetable, row) {
|
|
|
26834
27689
|
return row[treeOpts.children] && row[treeOpts.children].length > 0;
|
|
26835
27690
|
}
|
|
26836
27691
|
|
|
26837
|
-
function getSeq($xetable, row, rowIndex, column, columnIndex) {
|
|
27692
|
+
function getSeq($xetable, row, rowIndex, column, columnIndex, paths) {
|
|
26838
27693
|
var seqOpts = $xetable.seqOpts;
|
|
26839
27694
|
var seqMethod = seqOpts.seqMethod || column.seqMethod;
|
|
26840
|
-
|
|
26841
|
-
|
|
26842
|
-
|
|
26843
|
-
|
|
26844
|
-
|
|
26845
|
-
|
|
27695
|
+
|
|
27696
|
+
if (seqMethod) {
|
|
27697
|
+
return seqMethod({
|
|
27698
|
+
row: row,
|
|
27699
|
+
rowIndex: rowIndex,
|
|
27700
|
+
column: column,
|
|
27701
|
+
columnIndex: columnIndex
|
|
27702
|
+
});
|
|
27703
|
+
}
|
|
27704
|
+
|
|
27705
|
+
if (paths) {
|
|
27706
|
+
return paths.map(function (num, i) {
|
|
27707
|
+
return i % 2 === 0 ? Number(num) + 1 : '.';
|
|
27708
|
+
}).join('');
|
|
27709
|
+
}
|
|
27710
|
+
|
|
27711
|
+
return seqOpts.startIndex + rowIndex + 1;
|
|
26846
27712
|
}
|
|
26847
27713
|
|
|
26848
27714
|
function defaultFilterExportColumn(column) {
|
|
@@ -26879,11 +27745,12 @@ function getLabelData($xetable, opts, columns, datas) {
|
|
|
26879
27745
|
if (treeConfig) {
|
|
26880
27746
|
// 如果是树表格只允许导出数据源
|
|
26881
27747
|
var rest = [];
|
|
27748
|
+
var expandMaps = new Map();
|
|
26882
27749
|
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.eachTree(datas, function (item, rowIndex, items, path, parent, nodes) {
|
|
26883
27750
|
var row = item._row || item;
|
|
26884
27751
|
var parentRow = parent && parent._row ? parent._row : parent;
|
|
26885
27752
|
|
|
26886
|
-
if (isAllExpand || !parentRow || $xetable.isTreeExpandByRow(parentRow)) {
|
|
27753
|
+
if (isAllExpand || !parentRow || expandMaps.has(parentRow) && $xetable.isTreeExpandByRow(parentRow)) {
|
|
26887
27754
|
var hasRowChild = hasTreeChildren($xetable, row);
|
|
26888
27755
|
var _item = {
|
|
26889
27756
|
_row: row,
|
|
@@ -26914,7 +27781,7 @@ function getLabelData($xetable, opts, columns, datas) {
|
|
|
26914
27781
|
} else {
|
|
26915
27782
|
switch (column.type) {
|
|
26916
27783
|
case 'seq':
|
|
26917
|
-
cellValue = getSeq($xetable, row, rowIndex, column, columnIndex);
|
|
27784
|
+
cellValue = getSeq($xetable, row, rowIndex, column, columnIndex, path);
|
|
26918
27785
|
break;
|
|
26919
27786
|
|
|
26920
27787
|
case 'checkbox':
|
|
@@ -26956,6 +27823,7 @@ function getLabelData($xetable, opts, columns, datas) {
|
|
|
26956
27823
|
|
|
26957
27824
|
_item[column.id] = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.toValueString(cellValue);
|
|
26958
27825
|
});
|
|
27826
|
+
expandMaps.set(row, 1);
|
|
26959
27827
|
rest.push(Object.assign(_item, row));
|
|
26960
27828
|
}
|
|
26961
27829
|
}, treeOpts);
|
|
@@ -26989,7 +27857,7 @@ function getLabelData($xetable, opts, columns, datas) {
|
|
|
26989
27857
|
} else {
|
|
26990
27858
|
switch (column.type) {
|
|
26991
27859
|
case 'seq':
|
|
26992
|
-
cellValue = getSeq($xetable, row, rowIndex, column, columnIndex);
|
|
27860
|
+
cellValue = getSeq($xetable, row, rowIndex, column, columnIndex, null);
|
|
26993
27861
|
break;
|
|
26994
27862
|
|
|
26995
27863
|
case 'checkbox':
|
|
@@ -27097,6 +27965,10 @@ function getFooterData(opts, footerTableData) {
|
|
|
27097
27965
|
|
|
27098
27966
|
function getCsvCellTypeLabel(column, cellValue) {
|
|
27099
27967
|
if (cellValue) {
|
|
27968
|
+
if (column.type === 'seq') {
|
|
27969
|
+
return "\t".concat(cellValue);
|
|
27970
|
+
}
|
|
27971
|
+
|
|
27100
27972
|
switch (column.cellType) {
|
|
27101
27973
|
case 'string':
|
|
27102
27974
|
if (!isNaN(cellValue)) {
|
|
@@ -29368,7 +30240,7 @@ function validErrorRuleValue(rule, val) {
|
|
|
29368
30240
|
var ruleProps = Object.keys(validRest);
|
|
29369
30241
|
return _this2.$nextTick().then(function () {
|
|
29370
30242
|
if (ruleProps.length) {
|
|
29371
|
-
return
|
|
30243
|
+
return validRest[ruleProps[0]][0];
|
|
29372
30244
|
}
|
|
29373
30245
|
|
|
29374
30246
|
if (cb) {
|
|
@@ -29376,14 +30248,14 @@ function validErrorRuleValue(rule, val) {
|
|
|
29376
30248
|
}
|
|
29377
30249
|
});
|
|
29378
30250
|
}).catch(function (firstErrParams) {
|
|
29379
|
-
return new Promise(function (resolve
|
|
30251
|
+
return new Promise(function (resolve) {
|
|
29380
30252
|
var finish = function finish() {
|
|
29381
30253
|
_this2.$nextTick(function () {
|
|
29382
30254
|
if (cb) {
|
|
29383
30255
|
cb(validRest);
|
|
29384
30256
|
resolve();
|
|
29385
30257
|
} else {
|
|
29386
|
-
|
|
30258
|
+
resolve(validRest);
|
|
29387
30259
|
}
|
|
29388
30260
|
});
|
|
29389
30261
|
};
|
|
@@ -30634,6 +31506,8 @@ var Colgroup = Object.assign(src_group, {
|
|
|
30634
31506
|
|
|
30635
31507
|
|
|
30636
31508
|
|
|
31509
|
+
|
|
31510
|
+
|
|
30637
31511
|
var grid_methods = {};
|
|
30638
31512
|
var propKeys = Object.keys(packages_table.props);
|
|
30639
31513
|
|
|
@@ -31486,7 +32360,12 @@ Object.keys(packages_table.methods).forEach(function (name) {
|
|
|
31486
32360
|
} // 只校验新增和修改的数据
|
|
31487
32361
|
|
|
31488
32362
|
|
|
31489
|
-
return this.validate(_body.insertRecords.concat(updateRecords)).then(function () {
|
|
32363
|
+
return this.validate(_body.insertRecords.concat(updateRecords)).then(function (errMap) {
|
|
32364
|
+
if (errMap) {
|
|
32365
|
+
// 如果校验不通过
|
|
32366
|
+
return;
|
|
32367
|
+
}
|
|
32368
|
+
|
|
31490
32369
|
if (_body.insertRecords.length || _removeRecords.length || updateRecords.length || _body.pendingRecords.length) {
|
|
31491
32370
|
_this5.tableLoading = true;
|
|
31492
32371
|
return Promise.resolve((beforeSave || _ajaxMethods2).apply(void 0, _toConsumableArray(_applyArgs2))).then(function (rest) {
|
|
@@ -31534,8 +32413,6 @@ Object.keys(packages_table.methods).forEach(function (name) {
|
|
|
31534
32413
|
});
|
|
31535
32414
|
}
|
|
31536
32415
|
}
|
|
31537
|
-
}).catch(function (errMap) {
|
|
31538
|
-
return errMap;
|
|
31539
32416
|
});
|
|
31540
32417
|
} else {
|
|
31541
32418
|
if (false) {}
|
|
@@ -37258,7 +38135,18 @@ module.exports = NATIVE_SYMBOL
|
|
|
37258
38135
|
&& typeof Symbol.iterator == 'symbol';
|
|
37259
38136
|
|
|
37260
38137
|
|
|
38138
|
+
/***/ }),
|
|
38139
|
+
|
|
38140
|
+
/***/ "fea9":
|
|
38141
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
38142
|
+
|
|
38143
|
+
var global = __webpack_require__("da84");
|
|
38144
|
+
|
|
38145
|
+
module.exports = global.Promise;
|
|
38146
|
+
|
|
38147
|
+
|
|
37261
38148
|
/***/ })
|
|
37262
38149
|
|
|
37263
38150
|
/******/ });
|
|
37264
|
-
});
|
|
38151
|
+
});
|
|
38152
|
+
//# sourceMappingURL=index.umd.js.map
|