vxe-table 3.4.2 → 3.4.5

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/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,
@@ -10367,7 +11120,7 @@ function renderColumn(h, _vm, $xetable, $seq, seq, rowid, fixedType, rowLevel, r
10367
11120
  } // 点击事件处理
10368
11121
 
10369
11122
 
10370
- if (highlightCurrentRow || tableListeners['cell-click'] || editRender && editConfig || expandOpts.trigger === 'row' || expandOpts.trigger === 'cell' || radioOpts.trigger === 'row' || column.type === 'radio' && radioOpts.trigger === 'cell' || checkboxOpts.trigger === 'row' || column.type === 'checkbox' && checkboxOpts.trigger === 'cell' || treeOpts.trigger === 'row' || column.treeNode && treeOpts.trigger === 'cell') {
11123
+ if (rowOpts.isCurrent || highlightCurrentRow || tableListeners['cell-click'] || editRender && editConfig || expandOpts.trigger === 'row' || expandOpts.trigger === 'cell' || radioOpts.trigger === 'row' || column.type === 'radio' && radioOpts.trigger === 'cell' || checkboxOpts.trigger === 'row' || column.type === 'checkbox' && checkboxOpts.trigger === 'cell' || treeOpts.trigger === 'row' || column.treeNode && treeOpts.trigger === 'cell') {
10371
11124
  tdOns.click = function (evnt) {
10372
11125
  $xetable.triggerCellClickEvent(evnt, params);
10373
11126
  };
@@ -10505,7 +11258,8 @@ function renderRows(h, _vm, $xetable, $seq, fixedType, tableData, tableColumn) {
10505
11258
  checkboxOpts = $xetable.checkboxOpts,
10506
11259
  expandColumn = $xetable.expandColumn,
10507
11260
  hasFixedColumn = $xetable.hasFixedColumn,
10508
- fullAllDataRowIdData = $xetable.fullAllDataRowIdData;
11261
+ fullAllDataRowIdData = $xetable.fullAllDataRowIdData,
11262
+ rowOpts = $xetable.rowOpts;
10509
11263
  var rows = [];
10510
11264
  tableData.forEach(function (row, $rowIndex) {
10511
11265
  var trOn = {};
@@ -10521,7 +11275,7 @@ function renderRows(h, _vm, $xetable, $seq, fixedType, tableData, tableColumn) {
10521
11275
 
10522
11276
  rowIndex = $xetable.getRowIndex(row); // 事件绑定
10523
11277
 
10524
- if (highlightHoverRow) {
11278
+ if (rowOpts.isHover || highlightHoverRow) {
10525
11279
  trOn.mouseenter = function (evnt) {
10526
11280
  if (isOperateMouse($xetable)) {
10527
11281
  return;
@@ -10851,7 +11605,8 @@ function syncBodyScroll(scrollTop, elem1, elem2) {
10851
11605
  scrollXLoad = $xetable.scrollXLoad,
10852
11606
  scrollYLoad = $xetable.scrollYLoad,
10853
11607
  lastScrollTop = $xetable.lastScrollTop,
10854
- lastScrollLeft = $xetable.lastScrollLeft;
11608
+ lastScrollLeft = $xetable.lastScrollLeft,
11609
+ rowOpts = $xetable.rowOpts;
10855
11610
  var tableHeader = $refs.tableHeader,
10856
11611
  tableBody = $refs.tableBody,
10857
11612
  leftBody = $refs.leftBody,
@@ -10875,7 +11630,7 @@ function syncBodyScroll(scrollTop, elem1, elem2) {
10875
11630
  $xetable.lastScrollLeft = scrollLeft;
10876
11631
  $xetable.lastScrollTime = Date.now();
10877
11632
 
10878
- if (highlightHoverRow) {
11633
+ if (rowOpts.isHover || highlightHoverRow) {
10879
11634
  $xetable.clearHoverRow();
10880
11635
  }
10881
11636
 
@@ -11013,7 +11768,8 @@ function syncBodyScroll(scrollTop, elem1, elem2) {
11013
11768
  highlightHoverRow = $xetable.highlightHoverRow,
11014
11769
  scrollYLoad = $xetable.scrollYLoad,
11015
11770
  lastScrollTop = $xetable.lastScrollTop,
11016
- lastScrollLeft = $xetable.lastScrollLeft;
11771
+ lastScrollLeft = $xetable.lastScrollLeft,
11772
+ rowOpts = $xetable.rowOpts;
11017
11773
  var tableBody = $refs.tableBody;
11018
11774
  var bodyElem = tableBody.$el;
11019
11775
  var deltaTop = browse.firefox ? deltaY * 40 : deltaY;
@@ -11035,7 +11791,7 @@ function syncBodyScroll(scrollTop, elem1, elem2) {
11035
11791
  $xetable.lastScrollLeft = scrollLeft;
11036
11792
  $xetable.lastScrollTime = Date.now();
11037
11793
 
11038
- if (highlightHoverRow) {
11794
+ if (rowOpts.isHover || highlightHoverRow) {
11039
11795
  $xetable.clearHoverRow();
11040
11796
  }
11041
11797
 
@@ -11113,12 +11869,21 @@ function _objectSpread2(target) {
11113
11869
 
11114
11870
  return target;
11115
11871
  }
11872
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.promise.js
11873
+ var es_promise = __webpack_require__("e6cf");
11874
+
11875
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.assign.js
11876
+ var es_object_assign = __webpack_require__("cca6");
11877
+
11116
11878
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.trim.js
11117
11879
  var es_string_trim = __webpack_require__("498a");
11118
11880
 
11119
11881
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.sort.js
11120
11882
  var es_array_sort = __webpack_require__("4e82");
11121
11883
 
11884
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.iterator.js
11885
+ var es_array_iterator = __webpack_require__("e260");
11886
+
11122
11887
  // CONCATENATED MODULE: ./packages/table/src/cell.js
11123
11888
 
11124
11889
 
@@ -12068,6 +12833,10 @@ var Cell = {
12068
12833
 
12069
12834
 
12070
12835
 
12836
+
12837
+
12838
+
12839
+
12071
12840
 
12072
12841
 
12073
12842
 
@@ -12644,16 +13413,12 @@ var Methods = {
12644
13413
 
12645
13414
  if (oRow && row) {
12646
13415
  if (field) {
12647
- external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.set(oRow, field, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.get(record || row, field));
13416
+ var newValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.get(record || row, field);
13417
+ external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.set(row, field, newValue);
13418
+ external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.set(oRow, field, newValue);
12648
13419
  } else {
12649
- if (record) {
12650
- tableSourceData[rowIndex] = record;
12651
- external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.clear(row, undefined);
12652
- Object.assign(row, this.defineField(Object.assign({}, record)));
12653
- this.cacheRowMap(true);
12654
- } else {
12655
- 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));
12656
- }
13420
+ var newRecord = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.clone(_objectSpread2({}, record), true);
13421
+ external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.destructuring(oRow, Object.assign(row, newRecord));
12657
13422
  }
12658
13423
  }
12659
13424
 
@@ -14811,7 +15576,8 @@ var Methods = {
14811
15576
  treeOpts = _this24.treeOpts,
14812
15577
  highlightCurrentRow = _this24.highlightCurrentRow,
14813
15578
  currentRow = _this24.currentRow,
14814
- bodyCtxMenu = _this24.bodyCtxMenu;
15579
+ bodyCtxMenu = _this24.bodyCtxMenu,
15580
+ rowOpts = _this24.rowOpts;
14815
15581
  var selected = editStore.selected,
14816
15582
  actived = editStore.actived;
14817
15583
  var keyCode = evnt.keyCode;
@@ -14881,7 +15647,7 @@ var Methods = {
14881
15647
  _this24.keyCtxTimeout = setTimeout(function () {
14882
15648
  _this24._keyCtx = false;
14883
15649
  }, 1000);
14884
- } else if (isEnter && !hasAltKey && keyboardConfig && keyboardOpts.isEnter && (selected.row || actived.row || treeConfig && highlightCurrentRow && currentRow)) {
15650
+ } else if (isEnter && !hasAltKey && keyboardConfig && keyboardOpts.isEnter && (selected.row || actived.row || treeConfig && (rowOpts.isCurrent || highlightCurrentRow) && currentRow)) {
14885
15651
  // 退出选中
14886
15652
  if (hasCtrlKey) {
14887
15653
  // 如果是激活编辑状态,则取消编辑
@@ -14915,7 +15681,7 @@ var Methods = {
14915
15681
  _this24.moveSelected(targetArgs, isLeftArrow, false, isRightArrow, true, evnt);
14916
15682
  }
14917
15683
  }
14918
- } else if (treeConfig && highlightCurrentRow && currentRow) {
15684
+ } else if (treeConfig && (rowOpts.isCurrent || highlightCurrentRow) && currentRow) {
14919
15685
  // 如果是树形表格当前行回车移动到子节点
14920
15686
  var childrens = currentRow[treeOpts.children];
14921
15687
 
@@ -14940,7 +15706,7 @@ var Methods = {
14940
15706
  // 如果按下了方向键
14941
15707
  if (selected.row && selected.column) {
14942
15708
  _this24.moveSelected(selected.args, isLeftArrow, isUpArrow, isRightArrow, isDwArrow, evnt);
14943
- } else if ((isUpArrow || isDwArrow) && highlightCurrentRow) {
15709
+ } else if ((isUpArrow || isDwArrow) && (rowOpts.isCurrent || highlightCurrentRow)) {
14944
15710
  // 当前行按键上下移动
14945
15711
  _this24.moveCurrentRow(isUpArrow, isDwArrow, evnt);
14946
15712
  }
@@ -14952,7 +15718,7 @@ var Methods = {
14952
15718
  } else if (actived.row || actived.column) {
14953
15719
  _this24.moveTabSelected(actived.args, hasShiftKey, evnt);
14954
15720
  }
14955
- } else if (keyboardConfig && (isDel || (treeConfig && highlightCurrentRow && currentRow ? isBack && keyboardOpts.isArrow : isBack))) {
15721
+ } else if (keyboardConfig && (isDel || (treeConfig && (rowOpts.isCurrent || highlightCurrentRow) && currentRow ? isBack && keyboardOpts.isArrow : isBack))) {
14956
15722
  if (!isEditStatus) {
14957
15723
  var delMethod = keyboardOpts.delMethod,
14958
15724
  backMethod = keyboardOpts.backMethod; // 如果是删除键
@@ -14986,7 +15752,7 @@ var Methods = {
14986
15752
  // 如果按下 del 键,更新表尾数据
14987
15753
  _this24.updateFooter();
14988
15754
  }
14989
- } else if (isBack && keyboardOpts.isArrow && treeConfig && highlightCurrentRow && currentRow) {
15755
+ } else if (isBack && keyboardOpts.isArrow && treeConfig && (rowOpts.isCurrent || highlightCurrentRow) && currentRow) {
14990
15756
  // 如果树形表格回退键关闭当前行返回父节点
14991
15757
  var _XEUtils$findTree = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.findTree(_this24.afterFullData, function (item) {
14992
15758
  return item === currentRow;
@@ -15922,6 +16688,18 @@ var Methods = {
15922
16688
  var reserveSelection = [];
15923
16689
 
15924
16690
  if (checkboxOpts.reserve) {
16691
+ var afterFullIdMaps = {};
16692
+
16693
+ if (treeConfig) {
16694
+ external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.eachTree(afterFullData, function (row) {
16695
+ afterFullIdMaps[methods_getRowid(_this30, row)] = 1;
16696
+ }, treeOpts);
16697
+ } else {
16698
+ afterFullData.forEach(function (row) {
16699
+ afterFullIdMaps[methods_getRowid(_this30, row)] = 1;
16700
+ });
16701
+ }
16702
+
15925
16703
  external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.each(checkboxReserveRowMap, function (oldRow, oldRowid) {
15926
16704
  if (oldRow) {
15927
16705
  if (isFull) {
@@ -15929,18 +16707,8 @@ var Methods = {
15929
16707
  reserveSelection.push(oldRow);
15930
16708
  }
15931
16709
  } else {
15932
- if (treeConfig) {
15933
- if (!external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.findTree(afterFullData, function (row) {
15934
- return methods_getRowid(_this30, row) === oldRowid;
15935
- }, treeOpts)) {
15936
- reserveSelection.push(oldRow);
15937
- }
15938
- } else {
15939
- if (!afterFullData.some(function (row) {
15940
- return methods_getRowid(_this30, row) === oldRowid;
15941
- })) {
15942
- reserveSelection.push(oldRow);
15943
- }
16710
+ if (!afterFullIdMaps[oldRowid]) {
16711
+ reserveSelection.push(oldRow);
15944
16712
  }
15945
16713
  }
15946
16714
  }
@@ -16096,12 +16864,13 @@ var Methods = {
16096
16864
  * @param {Row} row 行对象
16097
16865
  */
16098
16866
  setCurrentRow: function setCurrentRow(row) {
16099
- var $el = this.$el;
16867
+ var $el = this.$el,
16868
+ rowOpts = this.rowOpts;
16100
16869
  this.clearCurrentRow();
16101
16870
  this.clearCurrentColumn();
16102
16871
  this.currentRow = row;
16103
16872
 
16104
- if (this.highlightCurrentRow) {
16873
+ if (rowOpts.isCurrent || this.highlightCurrentRow) {
16105
16874
  if ($el) {
16106
16875
  external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.arrayEach($el.querySelectorAll("[rowid=\"".concat(methods_getRowid(this, row), "\"]")), function (elem) {
16107
16876
  return addClass(elem, 'row--current');
@@ -16162,7 +16931,7 @@ var Methods = {
16162
16931
  * 用于当前行,获取当前行的数据
16163
16932
  */
16164
16933
  getCurrentRecord: function getCurrentRecord() {
16165
- return this.highlightCurrentRow ? this.currentRow : null;
16934
+ return this.rowOpts.isCurrent || this.highlightCurrentRow ? this.currentRow : null;
16166
16935
  },
16167
16936
 
16168
16937
  /**
@@ -16256,7 +17025,7 @@ var Methods = {
16256
17025
  cell: cell
16257
17026
  }, params), evnt);
16258
17027
 
16259
- if (this.highlightCurrentColumn) {
17028
+ if (this.columnOpts.isCurrent || this.highlightCurrentColumn) {
16260
17029
  return this.setCurrentColumn(column);
16261
17030
  }
16262
17031
 
@@ -16268,7 +17037,7 @@ var Methods = {
16268
17037
  }, params), evnt);
16269
17038
  },
16270
17039
  getCurrentColumn: function getCurrentColumn() {
16271
- return this.highlightCurrentColumn ? this.currentColumn : null;
17040
+ return this.columnOpts.isCurrent || this.highlightCurrentColumn ? this.currentColumn : null;
16272
17041
  },
16273
17042
 
16274
17043
  /**
@@ -16333,7 +17102,8 @@ var Methods = {
16333
17102
  treeOpts = this.treeOpts,
16334
17103
  editConfig = this.editConfig,
16335
17104
  editOpts = this.editOpts,
16336
- checkboxOpts = this.checkboxOpts;
17105
+ checkboxOpts = this.checkboxOpts,
17106
+ rowOpts = this.rowOpts;
16337
17107
  var actived = editStore.actived;
16338
17108
  var _params = params,
16339
17109
  row = _params.row,
@@ -16372,7 +17142,7 @@ var Methods = {
16372
17142
  if (!triggerTreeNode) {
16373
17143
  if (!triggerExpandNode) {
16374
17144
  // 如果是高亮行
16375
- if (highlightCurrentRow) {
17145
+ if (rowOpts.isCurrent || highlightCurrentRow) {
16376
17146
  if (!triggerCheckbox && !triggerRadio) {
16377
17147
  this.triggerCurrentRowEvent(evnt, params);
16378
17148
  }
@@ -17230,8 +18000,10 @@ var Methods = {
17230
18000
  treeOpts = this.treeOpts,
17231
18001
  treeFullData = this.treeFullData;
17232
18002
  var fullData = [];
18003
+ var expandMaps = new Map();
17233
18004
  external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.eachTree(treeFullData, function (row, index, items, path, parent) {
17234
- if (!parent || treeExpandeds.indexOf(parent) > -1) {
18005
+ if (!parent || expandMaps.has(parent) && treeExpandeds.indexOf(parent) > -1) {
18006
+ expandMaps.set(row, 1);
17235
18007
  fullData.push(row);
17236
18008
  }
17237
18009
  }, treeOpts);
@@ -19124,7 +19896,9 @@ function handleUupdateResize(_vm) {
19124
19896
  ctxMenuStore = this.ctxMenuStore,
19125
19897
  ctxMenuOpts = this.ctxMenuOpts,
19126
19898
  footerTableData = this.footerTableData,
19127
- hasTip = this.hasTip;
19899
+ hasTip = this.hasTip,
19900
+ columnOpts = this.columnOpts,
19901
+ rowOpts = this.rowOpts;
19128
19902
  var leftList = columnStore.leftList,
19129
19903
  rightList = columnStore.rightList;
19130
19904
  return h('div', {
@@ -19133,8 +19907,8 @@ function handleUupdateResize(_vm) {
19133
19907
  'cell--highlight': highlightCell,
19134
19908
  'cell--selected': mouseConfig && mouseOpts.selected,
19135
19909
  'cell--area': mouseConfig && mouseOpts.area,
19136
- 'row--highlight': highlightHoverRow,
19137
- 'column--highlight': highlightHoverColumn,
19910
+ 'row--highlight': rowOpts.isHover || highlightHoverRow,
19911
+ 'column--highlight': columnOpts.isHover || highlightHoverColumn,
19138
19912
  'is--header': showHeader,
19139
19913
  'is--footer': showFooter,
19140
19914
  'is--group': isGroup,
@@ -20373,6 +21147,68 @@ var Menu = {
20373
21147
 
20374
21148
 
20375
21149
 
21150
+ var mixin_getRowid = UtilTools.getRowid;
21151
+
21152
+ function insertTreeRow(_vm, newRecords, isAppend) {
21153
+ var treeFullData = _vm.treeFullData,
21154
+ afterFullData = _vm.afterFullData,
21155
+ fullDataRowIdData = _vm.fullDataRowIdData,
21156
+ fullAllDataRowIdData = _vm.fullAllDataRowIdData,
21157
+ treeOpts = _vm.treeOpts;
21158
+ var funcName = isAppend ? 'push' : 'unshift';
21159
+ newRecords.forEach(function (item) {
21160
+ var parentRowId = item[treeOpts.parentField];
21161
+ var rowid = mixin_getRowid(_vm, item);
21162
+ var matchObj = parentRowId ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.findTree(treeFullData, function (item) {
21163
+ return parentRowId === item[treeOpts.rowField];
21164
+ }, treeOpts) : null;
21165
+
21166
+ if (matchObj) {
21167
+ var parentRow = matchObj.item;
21168
+ var parentRest = fullAllDataRowIdData[mixin_getRowid(_vm, parentRow)];
21169
+ var parentLevel = parentRest ? parentRest.level : 0;
21170
+ var parentChilds = parentRow[treeOpts.children];
21171
+
21172
+ if (!external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.isArray(parentChilds)) {
21173
+ parentChilds = parentRow[treeOpts.children] = [];
21174
+ }
21175
+
21176
+ parentChilds[funcName](item);
21177
+ var rest = {
21178
+ row: item,
21179
+ rowid: rowid,
21180
+ index: -1,
21181
+ _index: -1,
21182
+ $index: -1,
21183
+ items: parentChilds,
21184
+ parent: parent,
21185
+ level: parentLevel + 1
21186
+ };
21187
+ fullDataRowIdData[rowid] = rest;
21188
+ fullAllDataRowIdData[rowid] = rest;
21189
+ } else {
21190
+ if (false) {}
21191
+
21192
+ afterFullData[funcName](item);
21193
+ treeFullData[funcName](item);
21194
+ var _rest = {
21195
+ row: item,
21196
+ rowid: rowid,
21197
+ index: -1,
21198
+ _index: -1,
21199
+ $index: -1,
21200
+ items: treeFullData,
21201
+ parent: null,
21202
+ level: 0
21203
+ };
21204
+ fullDataRowIdData[rowid] = _rest;
21205
+ fullAllDataRowIdData[rowid] = _rest;
21206
+ }
21207
+ });
21208
+
21209
+ _vm.updateVirtualTreeData();
21210
+ }
21211
+
20376
21212
  /* harmony default export */ var edit_src_mixin = ({
20377
21213
  methods: {
20378
21214
  /**
@@ -20396,13 +21232,18 @@ var Menu = {
20396
21232
  var _this = this,
20397
21233
  _editStore$insertList;
20398
21234
 
20399
- var mergeList = this.mergeList,
21235
+ var treeFullData = this.treeFullData,
21236
+ mergeList = this.mergeList,
20400
21237
  afterFullData = this.afterFullData,
20401
21238
  editStore = this.editStore,
20402
21239
  sYOpts = this.sYOpts,
20403
21240
  scrollYLoad = this.scrollYLoad,
20404
21241
  tableFullData = this.tableFullData,
20405
- treeConfig = this.treeConfig;
21242
+ treeConfig = this.treeConfig,
21243
+ fullDataRowIdData = this.fullDataRowIdData,
21244
+ fullAllDataRowIdData = this.fullAllDataRowIdData,
21245
+ treeOpts = this.treeOpts;
21246
+ var transform = treeOpts.transform;
20406
21247
 
20407
21248
  if (!external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.isArray(records)) {
20408
21249
  records = [records];
@@ -20413,60 +21254,112 @@ var Menu = {
20413
21254
  });
20414
21255
 
20415
21256
  if (!row) {
20416
- afterFullData.unshift.apply(afterFullData, _toConsumableArray(newRecords));
20417
- tableFullData.unshift.apply(tableFullData, _toConsumableArray(newRecords)); // 刷新单元格合并
21257
+ // 如果为虚拟树
21258
+ if (treeConfig && transform) {
21259
+ insertTreeRow(this, newRecords, false);
21260
+ } else {
21261
+ afterFullData.unshift.apply(afterFullData, _toConsumableArray(newRecords));
21262
+ tableFullData.unshift.apply(tableFullData, _toConsumableArray(newRecords)); // 刷新单元格合并
20418
21263
 
20419
- mergeList.forEach(function (mergeItem) {
20420
- var mergeRowIndex = mergeItem.row;
21264
+ mergeList.forEach(function (mergeItem) {
21265
+ var mergeRowIndex = mergeItem.row;
20421
21266
 
20422
- if (mergeRowIndex > 0) {
20423
- mergeItem.row = mergeRowIndex + newRecords.length;
20424
- }
20425
- });
21267
+ if (mergeRowIndex > 0) {
21268
+ mergeItem.row = mergeRowIndex + newRecords.length;
21269
+ }
21270
+ });
21271
+ }
20426
21272
  } else {
20427
21273
  if (row === -1) {
20428
- afterFullData.push.apply(afterFullData, _toConsumableArray(newRecords));
20429
- tableFullData.push.apply(tableFullData, _toConsumableArray(newRecords)); // 刷新单元格合并
21274
+ // 如果为虚拟树
21275
+ if (treeConfig && transform) {
21276
+ insertTreeRow(this, newRecords, true);
21277
+ } else {
21278
+ afterFullData.push.apply(afterFullData, _toConsumableArray(newRecords));
21279
+ tableFullData.push.apply(tableFullData, _toConsumableArray(newRecords)); // 刷新单元格合并
20430
21280
 
20431
- mergeList.forEach(function (mergeItem) {
20432
- var mergeRowIndex = mergeItem.row,
20433
- mergeRowspan = mergeItem.rowspan;
21281
+ mergeList.forEach(function (mergeItem) {
21282
+ var mergeRowIndex = mergeItem.row,
21283
+ mergeRowspan = mergeItem.rowspan;
20434
21284
 
20435
- if (mergeRowIndex + mergeRowspan > afterFullData.length) {
20436
- mergeItem.rowspan = mergeRowspan + newRecords.length;
20437
- }
20438
- });
20439
- } else {
20440
- if (treeConfig) {
20441
- throw new Error(UtilTools.getLog('vxe.error.noTree', ['insert']));
21285
+ if (mergeRowIndex + mergeRowspan > afterFullData.length) {
21286
+ mergeItem.rowspan = mergeRowspan + newRecords.length;
21287
+ }
21288
+ });
20442
21289
  }
21290
+ } else {
21291
+ // 如果为虚拟树
21292
+ if (treeConfig && transform) {
21293
+ var matchObj = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.findTree(treeFullData, function (item) {
21294
+ return row[treeOpts.rowField] === item[treeOpts.rowField];
21295
+ }, treeOpts);
20443
21296
 
20444
- var afIndex = afterFullData.indexOf(row);
21297
+ if (matchObj) {
21298
+ var parentRow = matchObj.parent;
21299
+ var parentChilds = matchObj.items;
21300
+ var parentRest = fullAllDataRowIdData[mixin_getRowid(this, parentRow)];
21301
+ var parentLevel = parentRest ? parentRest.level : 0;
21302
+ newRecords.forEach(function (item, i) {
21303
+ var rowid = mixin_getRowid(_this, item);
20445
21304
 
20446
- if (afIndex === -1) {
20447
- throw new Error(UtilTools.error('vxe.error.unableInsert'));
20448
- }
21305
+ if (false) {}
20449
21306
 
20450
- afterFullData.splice.apply(afterFullData, [afIndex, 0].concat(_toConsumableArray(newRecords)));
20451
- tableFullData.splice.apply(tableFullData, [tableFullData.indexOf(row), 0].concat(_toConsumableArray(newRecords))); // 刷新单元格合并
21307
+ if (parentRow) {
21308
+ item[treeOpts.parentField] = parentRow[treeOpts.rowField];
21309
+ }
20452
21310
 
20453
- mergeList.forEach(function (mergeItem) {
20454
- var mergeRowIndex = mergeItem.row,
20455
- mergeRowspan = mergeItem.rowspan;
21311
+ parentChilds.splice(matchObj.index + i, 0, item);
21312
+ var rest = {
21313
+ row: item,
21314
+ rowid: rowid,
21315
+ index: -1,
21316
+ _index: -1,
21317
+ $index: -1,
21318
+ items: parentChilds,
21319
+ parent: parentRow,
21320
+ level: parentLevel + 1
21321
+ };
21322
+ fullDataRowIdData[rowid] = rest;
21323
+ fullAllDataRowIdData[rowid] = rest;
21324
+ });
21325
+ this.updateVirtualTreeData();
21326
+ } else {
21327
+ if (false) {}
20456
21328
 
20457
- if (mergeRowIndex > afIndex) {
20458
- mergeItem.row = mergeRowIndex + newRecords.length;
20459
- } else if (mergeRowIndex + mergeRowspan > afIndex) {
20460
- mergeItem.rowspan = mergeRowspan + newRecords.length;
21329
+ insertTreeRow(this, newRecords, true);
20461
21330
  }
20462
- });
21331
+ } else {
21332
+ if (treeConfig) {
21333
+ throw new Error(UtilTools.getLog('vxe.error.noTree', ['insert']));
21334
+ }
21335
+
21336
+ var afIndex = afterFullData.indexOf(row);
21337
+
21338
+ if (afIndex === -1) {
21339
+ throw new Error(UtilTools.error('vxe.error.unableInsert'));
21340
+ }
21341
+
21342
+ afterFullData.splice.apply(afterFullData, [afIndex, 0].concat(_toConsumableArray(newRecords)));
21343
+ tableFullData.splice.apply(tableFullData, [tableFullData.indexOf(row), 0].concat(_toConsumableArray(newRecords))); // 刷新单元格合并
21344
+
21345
+ mergeList.forEach(function (mergeItem) {
21346
+ var mergeRowIndex = mergeItem.row,
21347
+ mergeRowspan = mergeItem.rowspan;
21348
+
21349
+ if (mergeRowIndex > afIndex) {
21350
+ mergeItem.row = mergeRowIndex + newRecords.length;
21351
+ } else if (mergeRowIndex + mergeRowspan > afIndex) {
21352
+ mergeItem.rowspan = mergeRowspan + newRecords.length;
21353
+ }
21354
+ });
21355
+ }
20463
21356
  }
20464
21357
  }
20465
21358
 
20466
21359
  (_editStore$insertList = editStore.insertList).unshift.apply(_editStore$insertList, _toConsumableArray(newRecords));
20467
21360
 
20468
21361
  this.scrollYLoad = !treeConfig && sYOpts.gt > -1 && sYOpts.gt < tableFullData.length;
20469
- this.handleTableData();
21362
+ this.handleTableData(transform);
20470
21363
  this.updateFooter();
20471
21364
  this.cacheRowMap();
20472
21365
  this.checkSelectionStatus();
@@ -20498,6 +21391,7 @@ var Menu = {
20498
21391
 
20499
21392
  var afterFullData = this.afterFullData,
20500
21393
  tableFullData = this.tableFullData,
21394
+ treeFullData = this.treeFullData,
20501
21395
  treeConfig = this.treeConfig,
20502
21396
  mergeList = this.mergeList,
20503
21397
  editStore = this.editStore,
@@ -20505,7 +21399,9 @@ var Menu = {
20505
21399
  selection = this.selection,
20506
21400
  isInsertByRow = this.isInsertByRow,
20507
21401
  sYOpts = this.sYOpts,
20508
- scrollYLoad = this.scrollYLoad;
21402
+ scrollYLoad = this.scrollYLoad,
21403
+ treeOpts = this.treeOpts;
21404
+ var transform = treeOpts.transform;
20509
21405
  var actived = editStore.actived,
20510
21406
  removeList = editStore.removeList,
20511
21407
  insertList = editStore.insertList;
@@ -20542,31 +21438,54 @@ var Menu = {
20542
21438
  this.afterFullData = [];
20543
21439
  this.clearMergeCells();
20544
21440
  } else {
20545
- rows.forEach(function (row) {
20546
- var tfIndex = tableFullData.indexOf(row);
21441
+ // 如果为虚拟树
21442
+ if (treeConfig && transform) {
21443
+ rows.forEach(function (row) {
21444
+ var rowid = mixin_getRowid(_this2, row);
21445
+ var matchObj = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.findTree(treeFullData, function (item) {
21446
+ return rowid === mixin_getRowid(_this2, item);
21447
+ }, treeOpts);
20547
21448
 
20548
- if (tfIndex > -1) {
20549
- var rItems = tableFullData.splice(tfIndex, 1);
20550
- rest.push(rItems[0]);
20551
- }
21449
+ if (matchObj) {
21450
+ var rItems = matchObj.items.splice(matchObj.index, 1);
21451
+ rest.push(rItems[0]);
21452
+ }
20552
21453
 
20553
- var afIndex = afterFullData.indexOf(row);
21454
+ var afIndex = afterFullData.indexOf(row);
20554
21455
 
20555
- if (afIndex > -1) {
20556
- // 刷新单元格合并
20557
- mergeList.forEach(function (mergeItem) {
20558
- var mergeRowIndex = mergeItem.row,
20559
- mergeRowspan = mergeItem.rowspan;
21456
+ if (afIndex > -1) {
21457
+ afterFullData.splice(afIndex, 1);
21458
+ }
20560
21459
 
20561
- if (mergeRowIndex > afIndex) {
20562
- mergeItem.row = mergeRowIndex - 1;
20563
- } else if (mergeRowIndex + mergeRowspan > afIndex) {
20564
- mergeItem.rowspan = mergeRowspan - 1;
20565
- }
20566
- });
20567
- afterFullData.splice(afIndex, 1);
20568
- }
20569
- });
21460
+ _this2.updateVirtualTreeData();
21461
+ });
21462
+ } else {
21463
+ rows.forEach(function (row) {
21464
+ var tfIndex = tableFullData.indexOf(row);
21465
+
21466
+ if (tfIndex > -1) {
21467
+ var rItems = tableFullData.splice(tfIndex, 1);
21468
+ rest.push(rItems[0]);
21469
+ }
21470
+
21471
+ var afIndex = afterFullData.indexOf(row);
21472
+
21473
+ if (afIndex > -1) {
21474
+ // 刷新单元格合并
21475
+ mergeList.forEach(function (mergeItem) {
21476
+ var mergeRowIndex = mergeItem.row,
21477
+ mergeRowspan = mergeItem.rowspan;
21478
+
21479
+ if (mergeRowIndex > afIndex) {
21480
+ mergeItem.row = mergeRowIndex - 1;
21481
+ } else if (mergeRowIndex + mergeRowspan > afIndex) {
21482
+ mergeItem.rowspan = mergeRowspan - 1;
21483
+ }
21484
+ });
21485
+ afterFullData.splice(afIndex, 1);
21486
+ }
21487
+ });
21488
+ }
20570
21489
  } // 如果当前行被激活编辑,则清除激活状态
20571
21490
 
20572
21491
 
@@ -20583,7 +21502,7 @@ var Menu = {
20583
21502
  }
20584
21503
  });
20585
21504
  this.scrollYLoad = !treeConfig && sYOpts.gt > -1 && sYOpts.gt < tableFullData.length;
20586
- this.handleTableData();
21505
+ this.handleTableData(transform);
20587
21506
  this.updateFooter();
20588
21507
  this.cacheRowMap();
20589
21508
  this.checkSelectionStatus();
@@ -20660,15 +21579,35 @@ var Menu = {
20660
21579
  * 获取新增的临时数据
20661
21580
  */
20662
21581
  _getInsertRecords: function _getInsertRecords() {
21582
+ var _this6 = this;
21583
+
21584
+ var treeConfig = this.treeConfig,
21585
+ treeFullData = this.treeFullData,
21586
+ tableFullData = this.tableFullData,
21587
+ treeOpts = this.treeOpts;
20663
21588
  var insertList = this.editStore.insertList;
20664
21589
  var insertRecords = [];
20665
21590
 
20666
21591
  if (insertList.length) {
20667
- this.tableFullData.forEach(function (row) {
20668
- if (insertList.indexOf(row) > -1) {
20669
- insertRecords.push(row);
20670
- }
20671
- });
21592
+ // 如果为虚拟树
21593
+ if (treeConfig && treeOpts.transform) {
21594
+ insertList.forEach(function (row) {
21595
+ var rowid = mixin_getRowid(_this6, row);
21596
+ var matchObj = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.findTree(treeFullData, function (item) {
21597
+ return rowid === mixin_getRowid(_this6, item);
21598
+ }, treeOpts);
21599
+
21600
+ if (matchObj) {
21601
+ insertRecords.push(row);
21602
+ }
21603
+ });
21604
+ } else {
21605
+ insertList.forEach(function (row) {
21606
+ if (tableFullData.indexOf(row) > -1) {
21607
+ insertRecords.push(row);
21608
+ }
21609
+ });
21610
+ }
20672
21611
  }
20673
21612
 
20674
21613
  return insertRecords;
@@ -20721,7 +21660,7 @@ var Menu = {
20721
21660
  * 处理激活编辑
20722
21661
  */
20723
21662
  handleActived: function handleActived(params, evnt) {
20724
- var _this6 = this;
21663
+ var _this7 = this;
20725
21664
 
20726
21665
  var editStore = this.editStore,
20727
21666
  editOpts = this.editOpts,
@@ -20758,14 +21697,14 @@ var Menu = {
20758
21697
 
20759
21698
  if (mode === 'row') {
20760
21699
  tableColumn.forEach(function (column) {
20761
- return _this6._getColumnModel(row, column);
21700
+ return _this7._getColumnModel(row, column);
20762
21701
  });
20763
21702
  } else {
20764
21703
  this._getColumnModel(row, column);
20765
21704
  }
20766
21705
 
20767
21706
  this.$nextTick(function () {
20768
- _this6.handleFocus(params, evnt);
21707
+ _this7.handleFocus(params, evnt);
20769
21708
  });
20770
21709
  }
20771
21710
 
@@ -20800,7 +21739,7 @@ var Menu = {
20800
21739
  actived.args = params;
20801
21740
  actived.column = column;
20802
21741
  setTimeout(function () {
20803
- _this6.handleFocus(params, evnt);
21742
+ _this7.handleFocus(params, evnt);
20804
21743
  });
20805
21744
  }
20806
21745
 
@@ -20829,7 +21768,7 @@ var Menu = {
20829
21768
  }
20830
21769
  },
20831
21770
  _syncActivedCell: function _syncActivedCell() {
20832
- var _this7 = this;
21771
+ var _this8 = this;
20833
21772
 
20834
21773
  var tableColumn = this.tableColumn,
20835
21774
  editStore = this.editStore,
@@ -20841,7 +21780,7 @@ var Menu = {
20841
21780
  if (row || column) {
20842
21781
  if (editOpts.mode === 'row') {
20843
21782
  tableColumn.forEach(function (column) {
20844
- return _this7._setColumnModel(row, column);
21783
+ return _this8._setColumnModel(row, column);
20845
21784
  });
20846
21785
  } else {
20847
21786
  this._setColumnModel(row, column);
@@ -20957,26 +21896,26 @@ var Menu = {
20957
21896
  * 激活单元格编辑
20958
21897
  */
20959
21898
  _setActiveCell: function _setActiveCell(row, fieldOrColumn) {
20960
- var _this8 = this;
21899
+ var _this9 = this;
20961
21900
 
20962
21901
  var editConfig = this.editConfig;
20963
21902
  var column = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.isString(fieldOrColumn) ? this.getColumnByField(fieldOrColumn) : fieldOrColumn;
20964
21903
 
20965
21904
  if (row && column && isEnableConf(editConfig) && isEnableConf(column.editRender)) {
20966
21905
  return this.scrollToRow(row, true).then(function () {
20967
- var cell = _this8.getCell(row, column);
21906
+ var cell = _this9.getCell(row, column);
20968
21907
 
20969
21908
  if (cell) {
20970
- _this8.handleActived({
21909
+ _this9.handleActived({
20971
21910
  row: row,
20972
- rowIndex: _this8.getRowIndex(row),
21911
+ rowIndex: _this9.getRowIndex(row),
20973
21912
  column: column,
20974
- columnIndex: _this8.getColumnIndex(column),
21913
+ columnIndex: _this9.getColumnIndex(column),
20975
21914
  cell: cell,
20976
- $table: _this8
21915
+ $table: _this9
20977
21916
  });
20978
21917
 
20979
- _this8.lastCallTime = Date.now();
21918
+ _this9.lastCallTime = Date.now();
20980
21919
  }
20981
21920
  });
20982
21921
  }
@@ -21016,7 +21955,7 @@ var Menu = {
21016
21955
  * 处理选中源
21017
21956
  */
21018
21957
  handleSelected: function handleSelected(params, evnt) {
21019
- var _this9 = this;
21958
+ var _this10 = this;
21020
21959
 
21021
21960
  var mouseConfig = this.mouseConfig,
21022
21961
  mouseOpts = this.mouseOpts,
@@ -21031,31 +21970,31 @@ var Menu = {
21031
21970
  var selectMethod = function selectMethod() {
21032
21971
  if (isMouseSelected && (selected.row !== row || selected.column !== column)) {
21033
21972
  if (actived.row !== row || (editOpts.mode === 'cell' ? actived.column !== column : false)) {
21034
- _this9.clearActived(evnt);
21973
+ _this10.clearActived(evnt);
21035
21974
 
21036
- _this9.clearSelected(evnt);
21975
+ _this10.clearSelected(evnt);
21037
21976
 
21038
- _this9.clearCellAreas(evnt);
21977
+ _this10.clearCellAreas(evnt);
21039
21978
 
21040
- _this9.clearCopyCellArea(evnt);
21979
+ _this10.clearCopyCellArea(evnt);
21041
21980
 
21042
21981
  selected.args = params;
21043
21982
  selected.row = row;
21044
21983
  selected.column = column;
21045
21984
 
21046
21985
  if (isMouseSelected) {
21047
- _this9.addColSdCls();
21986
+ _this10.addColSdCls();
21048
21987
  }
21049
21988
 
21050
- _this9.focus();
21989
+ _this10.focus();
21051
21990
 
21052
21991
  if (evnt) {
21053
- _this9.emitEvent('cell-selected', params, evnt);
21992
+ _this10.emitEvent('cell-selected', params, evnt);
21054
21993
  }
21055
21994
  }
21056
21995
  }
21057
21996
 
21058
- return _this9.$nextTick();
21997
+ return _this10.$nextTick();
21059
21998
  };
21060
21999
 
21061
22000
  return selectMethod();
@@ -22444,12 +23383,20 @@ function getDateQuarter(date) {
22444
23383
  return 4;
22445
23384
  }
22446
23385
 
23386
+ function toFloatValueFixed(inputValue, digitsValue) {
23387
+ if (/^-/.test('' + inputValue)) {
23388
+ 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);
23389
+ }
23390
+
23391
+ 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);
23392
+ }
23393
+
22447
23394
  function getNumberValue(_vm, val) {
22448
23395
  var type = _vm.type,
22449
23396
  exponential = _vm.exponential,
22450
23397
  digitsValue = _vm.digitsValue,
22451
23398
  inpMaxlength = _vm.inpMaxlength;
22452
- var restVal = type === 'float' ? 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(val, digitsValue), digitsValue) : external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.toValueString(val);
23399
+ var restVal = type === 'float' ? toFloatValueFixed(val, digitsValue) : external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.toValueString(val);
22453
23400
 
22454
23401
  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())) {
22455
23402
  return val;
@@ -23893,7 +24840,7 @@ function renderExtraSuffixIcon(h, _vm) {
23893
24840
  this.changeValue();
23894
24841
  } else if (type === 'float') {
23895
24842
  if (inputValue) {
23896
- var validValue = 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);
24843
+ var validValue = toFloatValueFixed(inputValue, digitsValue);
23897
24844
 
23898
24845
  if (inputValue !== validValue) {
23899
24846
  this.emitModel(validValue, {
@@ -29263,7 +30210,7 @@ function validErrorRuleValue(rule, val) {
29263
30210
  var ruleProps = Object.keys(validRest);
29264
30211
  return _this2.$nextTick().then(function () {
29265
30212
  if (ruleProps.length) {
29266
- return Promise.reject(validRest[ruleProps[0]][0]);
30213
+ return validRest[ruleProps[0]][0];
29267
30214
  }
29268
30215
 
29269
30216
  if (cb) {
@@ -29271,14 +30218,14 @@ function validErrorRuleValue(rule, val) {
29271
30218
  }
29272
30219
  });
29273
30220
  }).catch(function (firstErrParams) {
29274
- return new Promise(function (resolve, reject) {
30221
+ return new Promise(function (resolve) {
29275
30222
  var finish = function finish() {
29276
30223
  _this2.$nextTick(function () {
29277
30224
  if (cb) {
29278
30225
  cb(validRest);
29279
30226
  resolve();
29280
30227
  } else {
29281
- reject(validRest);
30228
+ resolve(validRest);
29282
30229
  }
29283
30230
  });
29284
30231
  };
@@ -29796,7 +30743,7 @@ var cellType = 'header';
29796
30743
  showEllipsis = hasEllipsis = true;
29797
30744
  }
29798
30745
 
29799
- if (highlightCurrentColumn || tableListeners['header-cell-click'] || sortOpts.trigger === 'cell') {
30746
+ if (columnOpts.isCurrent || highlightCurrentColumn || tableListeners['header-cell-click'] || sortOpts.trigger === 'cell') {
29800
30747
  thOns.click = function (evnt) {
29801
30748
  return $xetable.triggerHeaderCellClickEvent(evnt, params);
29802
30749
  };
@@ -37153,7 +38100,18 @@ module.exports = NATIVE_SYMBOL
37153
38100
  && typeof Symbol.iterator == 'symbol';
37154
38101
 
37155
38102
 
38103
+ /***/ }),
38104
+
38105
+ /***/ "fea9":
38106
+ /***/ (function(module, exports, __webpack_require__) {
38107
+
38108
+ var global = __webpack_require__("da84");
38109
+
38110
+ module.exports = global.Promise;
38111
+
38112
+
37156
38113
  /***/ })
37157
38114
 
37158
38115
  /******/ });
37159
- });
38116
+ });
38117
+ //# sourceMappingURL=index.umd.js.map