vxe-table 3.3.11-beta.0 → 3.3.13

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.
Files changed (45) hide show
  1. package/helper/vetur/attributes.json +8 -0
  2. package/helper/vetur/tags.json +2 -0
  3. package/lib/form/src/form.js +22 -10
  4. package/lib/form/src/form.min.js +1 -1
  5. package/lib/form/style/style.css +41 -14
  6. package/lib/form/style/style.min.css +1 -1
  7. package/lib/index.css +1 -1
  8. package/lib/index.umd.js +861 -22
  9. package/lib/index.umd.min.js +1 -1
  10. package/lib/modal/src/modal.js +16 -4
  11. package/lib/modal/src/modal.min.js +1 -1
  12. package/lib/modal/style/style.css +2 -2
  13. package/lib/modal/style/style.min.css +1 -1
  14. package/lib/select/src/util.js +5 -1
  15. package/lib/select/src/util.min.js +1 -1
  16. package/lib/select/style/style.css +2 -1
  17. package/lib/select/style/style.min.css +1 -1
  18. package/lib/style.css +1 -1
  19. package/lib/style.min.css +1 -1
  20. package/lib/table/src/body.js +12 -2
  21. package/lib/table/src/body.min.js +1 -1
  22. package/lib/table/src/methods.js +6 -5
  23. package/lib/table/src/methods.min.js +1 -1
  24. package/lib/table/style/style.css +0 -1
  25. package/lib/table/style/style.min.css +1 -1
  26. package/lib/tooltip/style/style.css +1 -1
  27. package/lib/tooltip/style/style.min.css +1 -1
  28. package/lib/v-x-e-table/src/conf.js +1 -0
  29. package/lib/v-x-e-table/src/conf.min.js +1 -1
  30. package/package.json +6 -6
  31. package/packages/form/src/form.js +24 -10
  32. package/packages/modal/src/modal.js +9 -4
  33. package/packages/select/src/util.js +3 -2
  34. package/packages/table/src/body.js +12 -2
  35. package/packages/table/src/methods.js +5 -5
  36. package/packages/v-x-e-table/src/conf.js +1 -0
  37. package/styles/form.scss +38 -18
  38. package/styles/input.scss +4 -4
  39. package/styles/modal.scss +3 -3
  40. package/styles/select.scss +1 -0
  41. package/styles/table.scss +0 -1
  42. package/styles/tooltip.scss +1 -1
  43. package/styles/variable.scss +1 -0
  44. package/types/form.d.ts +5 -0
  45. package/styles/excel.scss +0 -62
package/lib/index.umd.js CHANGED
@@ -687,6 +687,16 @@ module.exports = function (exec, SKIP_CLOSING) {
687
687
  };
688
688
 
689
689
 
690
+ /***/ }),
691
+
692
+ /***/ "1cdc":
693
+ /***/ (function(module, exports, __webpack_require__) {
694
+
695
+ var userAgent = __webpack_require__("342f");
696
+
697
+ module.exports = /(iphone|ipod|ipad).*applewebkit/i.test(userAgent);
698
+
699
+
690
700
  /***/ }),
691
701
 
692
702
  /***/ "1d80":
@@ -1998,6 +2008,120 @@ $({ global: true, forced: !USE_NATIVE_URL, sham: !DESCRIPTORS }, {
1998
2008
  });
1999
2009
 
2000
2010
 
2011
+ /***/ }),
2012
+
2013
+ /***/ "2cf4":
2014
+ /***/ (function(module, exports, __webpack_require__) {
2015
+
2016
+ var global = __webpack_require__("da84");
2017
+ var fails = __webpack_require__("d039");
2018
+ var bind = __webpack_require__("0366");
2019
+ var html = __webpack_require__("1be4");
2020
+ var createElement = __webpack_require__("cc12");
2021
+ var IS_IOS = __webpack_require__("1cdc");
2022
+ var IS_NODE = __webpack_require__("605d");
2023
+
2024
+ var location = global.location;
2025
+ var set = global.setImmediate;
2026
+ var clear = global.clearImmediate;
2027
+ var process = global.process;
2028
+ var MessageChannel = global.MessageChannel;
2029
+ var Dispatch = global.Dispatch;
2030
+ var counter = 0;
2031
+ var queue = {};
2032
+ var ONREADYSTATECHANGE = 'onreadystatechange';
2033
+ var defer, channel, port;
2034
+
2035
+ var run = function (id) {
2036
+ // eslint-disable-next-line no-prototype-builtins -- safe
2037
+ if (queue.hasOwnProperty(id)) {
2038
+ var fn = queue[id];
2039
+ delete queue[id];
2040
+ fn();
2041
+ }
2042
+ };
2043
+
2044
+ var runner = function (id) {
2045
+ return function () {
2046
+ run(id);
2047
+ };
2048
+ };
2049
+
2050
+ var listener = function (event) {
2051
+ run(event.data);
2052
+ };
2053
+
2054
+ var post = function (id) {
2055
+ // old engines have not location.origin
2056
+ global.postMessage(id + '', location.protocol + '//' + location.host);
2057
+ };
2058
+
2059
+ // Node.js 0.9+ & IE10+ has setImmediate, otherwise:
2060
+ if (!set || !clear) {
2061
+ set = function setImmediate(fn) {
2062
+ var args = [];
2063
+ var i = 1;
2064
+ while (arguments.length > i) args.push(arguments[i++]);
2065
+ queue[++counter] = function () {
2066
+ // eslint-disable-next-line no-new-func -- spec requirement
2067
+ (typeof fn == 'function' ? fn : Function(fn)).apply(undefined, args);
2068
+ };
2069
+ defer(counter);
2070
+ return counter;
2071
+ };
2072
+ clear = function clearImmediate(id) {
2073
+ delete queue[id];
2074
+ };
2075
+ // Node.js 0.8-
2076
+ if (IS_NODE) {
2077
+ defer = function (id) {
2078
+ process.nextTick(runner(id));
2079
+ };
2080
+ // Sphere (JS game engine) Dispatch API
2081
+ } else if (Dispatch && Dispatch.now) {
2082
+ defer = function (id) {
2083
+ Dispatch.now(runner(id));
2084
+ };
2085
+ // Browsers with MessageChannel, includes WebWorkers
2086
+ // except iOS - https://github.com/zloirock/core-js/issues/624
2087
+ } else if (MessageChannel && !IS_IOS) {
2088
+ channel = new MessageChannel();
2089
+ port = channel.port2;
2090
+ channel.port1.onmessage = listener;
2091
+ defer = bind(port.postMessage, port, 1);
2092
+ // Browsers with postMessage, skip WebWorkers
2093
+ // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
2094
+ } else if (
2095
+ global.addEventListener &&
2096
+ typeof postMessage == 'function' &&
2097
+ !global.importScripts &&
2098
+ location && location.protocol !== 'file:' &&
2099
+ !fails(post)
2100
+ ) {
2101
+ defer = post;
2102
+ global.addEventListener('message', listener, false);
2103
+ // IE8-
2104
+ } else if (ONREADYSTATECHANGE in createElement('script')) {
2105
+ defer = function (id) {
2106
+ html.appendChild(createElement('script'))[ONREADYSTATECHANGE] = function () {
2107
+ html.removeChild(this);
2108
+ run(id);
2109
+ };
2110
+ };
2111
+ // Rest old browsers
2112
+ } else {
2113
+ defer = function (id) {
2114
+ setTimeout(runner(id), 0);
2115
+ };
2116
+ }
2117
+ }
2118
+
2119
+ module.exports = {
2120
+ set: set,
2121
+ clear: clear
2122
+ };
2123
+
2124
+
2001
2125
  /***/ }),
2002
2126
 
2003
2127
  /***/ "2d00":
@@ -2224,6 +2348,21 @@ module.exports = function (key) {
2224
2348
  };
2225
2349
 
2226
2350
 
2351
+ /***/ }),
2352
+
2353
+ /***/ "44de":
2354
+ /***/ (function(module, exports, __webpack_require__) {
2355
+
2356
+ var global = __webpack_require__("da84");
2357
+
2358
+ module.exports = function (a, b) {
2359
+ var console = global.console;
2360
+ if (console && console.error) {
2361
+ arguments.length === 1 ? console.error(a) : console.error(a, b);
2362
+ }
2363
+ };
2364
+
2365
+
2227
2366
  /***/ }),
2228
2367
 
2229
2368
  /***/ "44e7":
@@ -4876,6 +5015,16 @@ $({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
4876
5015
  });
4877
5016
 
4878
5017
 
5018
+ /***/ }),
5019
+
5020
+ /***/ "a4b4":
5021
+ /***/ (function(module, exports, __webpack_require__) {
5022
+
5023
+ var userAgent = __webpack_require__("342f");
5024
+
5025
+ module.exports = /web0s(?!.*chrome)/i.test(userAgent);
5026
+
5027
+
4879
5028
  /***/ }),
4880
5029
 
4881
5030
  /***/ "a4d3":
@@ -5514,6 +5663,93 @@ if (DESCRIPTORS && !(NAME in FunctionPrototype)) {
5514
5663
  }
5515
5664
 
5516
5665
 
5666
+ /***/ }),
5667
+
5668
+ /***/ "b575":
5669
+ /***/ (function(module, exports, __webpack_require__) {
5670
+
5671
+ var global = __webpack_require__("da84");
5672
+ var getOwnPropertyDescriptor = __webpack_require__("06cf").f;
5673
+ var macrotask = __webpack_require__("2cf4").set;
5674
+ var IS_IOS = __webpack_require__("1cdc");
5675
+ var IS_WEBOS_WEBKIT = __webpack_require__("a4b4");
5676
+ var IS_NODE = __webpack_require__("605d");
5677
+
5678
+ var MutationObserver = global.MutationObserver || global.WebKitMutationObserver;
5679
+ var document = global.document;
5680
+ var process = global.process;
5681
+ var Promise = global.Promise;
5682
+ // Node.js 11 shows ExperimentalWarning on getting `queueMicrotask`
5683
+ var queueMicrotaskDescriptor = getOwnPropertyDescriptor(global, 'queueMicrotask');
5684
+ var queueMicrotask = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value;
5685
+
5686
+ var flush, head, last, notify, toggle, node, promise, then;
5687
+
5688
+ // modern engines have queueMicrotask method
5689
+ if (!queueMicrotask) {
5690
+ flush = function () {
5691
+ var parent, fn;
5692
+ if (IS_NODE && (parent = process.domain)) parent.exit();
5693
+ while (head) {
5694
+ fn = head.fn;
5695
+ head = head.next;
5696
+ try {
5697
+ fn();
5698
+ } catch (error) {
5699
+ if (head) notify();
5700
+ else last = undefined;
5701
+ throw error;
5702
+ }
5703
+ } last = undefined;
5704
+ if (parent) parent.enter();
5705
+ };
5706
+
5707
+ // browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339
5708
+ // also except WebOS Webkit https://github.com/zloirock/core-js/issues/898
5709
+ if (!IS_IOS && !IS_NODE && !IS_WEBOS_WEBKIT && MutationObserver && document) {
5710
+ toggle = true;
5711
+ node = document.createTextNode('');
5712
+ new MutationObserver(flush).observe(node, { characterData: true });
5713
+ notify = function () {
5714
+ node.data = toggle = !toggle;
5715
+ };
5716
+ // environments with maybe non-completely correct, but existent Promise
5717
+ } else if (Promise && Promise.resolve) {
5718
+ // Promise.resolve without an argument throws an error in LG WebOS 2
5719
+ promise = Promise.resolve(undefined);
5720
+ then = promise.then;
5721
+ notify = function () {
5722
+ then.call(promise, flush);
5723
+ };
5724
+ // Node.js without promises
5725
+ } else if (IS_NODE) {
5726
+ notify = function () {
5727
+ process.nextTick(flush);
5728
+ };
5729
+ // for other environments - macrotask based on:
5730
+ // - setImmediate
5731
+ // - MessageChannel
5732
+ // - window.postMessag
5733
+ // - onreadystatechange
5734
+ // - setTimeout
5735
+ } else {
5736
+ notify = function () {
5737
+ // strange IE + webpack dev server bug - use .call(global)
5738
+ macrotask.call(global, flush);
5739
+ };
5740
+ }
5741
+ }
5742
+
5743
+ module.exports = queueMicrotask || function (fn) {
5744
+ var task = { fn: fn, next: undefined };
5745
+ if (last) last.next = task;
5746
+ if (!head) {
5747
+ head = task;
5748
+ notify();
5749
+ } last = task;
5750
+ };
5751
+
5752
+
5517
5753
  /***/ }),
5518
5754
 
5519
5755
  /***/ "b622":
@@ -5971,6 +6207,40 @@ module.exports = function (it) {
5971
6207
  };
5972
6208
 
5973
6209
 
6210
+ /***/ }),
6211
+
6212
+ /***/ "cca6":
6213
+ /***/ (function(module, exports, __webpack_require__) {
6214
+
6215
+ var $ = __webpack_require__("23e7");
6216
+ var assign = __webpack_require__("60da");
6217
+
6218
+ // `Object.assign` method
6219
+ // https://tc39.es/ecma262/#sec-object.assign
6220
+ $({ target: 'Object', stat: true, forced: Object.assign !== assign }, {
6221
+ assign: assign
6222
+ });
6223
+
6224
+
6225
+ /***/ }),
6226
+
6227
+ /***/ "cdf9":
6228
+ /***/ (function(module, exports, __webpack_require__) {
6229
+
6230
+ var anObject = __webpack_require__("825a");
6231
+ var isObject = __webpack_require__("861d");
6232
+ var newPromiseCapability = __webpack_require__("f069");
6233
+
6234
+ module.exports = function (C, x) {
6235
+ anObject(C);
6236
+ if (isObject(x) && x.constructor === C) return x;
6237
+ var promiseCapability = newPromiseCapability.f(C);
6238
+ var resolve = promiseCapability.resolve;
6239
+ resolve(x);
6240
+ return promiseCapability.promise;
6241
+ };
6242
+
6243
+
5974
6244
  /***/ }),
5975
6245
 
5976
6246
  /***/ "ce4e":
@@ -6640,6 +6910,409 @@ var wellKnownSymbol = __webpack_require__("b622");
6640
6910
  exports.f = wellKnownSymbol;
6641
6911
 
6642
6912
 
6913
+ /***/ }),
6914
+
6915
+ /***/ "e667":
6916
+ /***/ (function(module, exports) {
6917
+
6918
+ module.exports = function (exec) {
6919
+ try {
6920
+ return { error: false, value: exec() };
6921
+ } catch (error) {
6922
+ return { error: true, value: error };
6923
+ }
6924
+ };
6925
+
6926
+
6927
+ /***/ }),
6928
+
6929
+ /***/ "e6cf":
6930
+ /***/ (function(module, exports, __webpack_require__) {
6931
+
6932
+ "use strict";
6933
+
6934
+ var $ = __webpack_require__("23e7");
6935
+ var IS_PURE = __webpack_require__("c430");
6936
+ var global = __webpack_require__("da84");
6937
+ var getBuiltIn = __webpack_require__("d066");
6938
+ var NativePromise = __webpack_require__("fea9");
6939
+ var redefine = __webpack_require__("6eeb");
6940
+ var redefineAll = __webpack_require__("e2cc");
6941
+ var setToStringTag = __webpack_require__("d44e");
6942
+ var setSpecies = __webpack_require__("2626");
6943
+ var isObject = __webpack_require__("861d");
6944
+ var aFunction = __webpack_require__("1c0b");
6945
+ var anInstance = __webpack_require__("19aa");
6946
+ var inspectSource = __webpack_require__("8925");
6947
+ var iterate = __webpack_require__("2266");
6948
+ var checkCorrectnessOfIteration = __webpack_require__("1c7e");
6949
+ var speciesConstructor = __webpack_require__("4840");
6950
+ var task = __webpack_require__("2cf4").set;
6951
+ var microtask = __webpack_require__("b575");
6952
+ var promiseResolve = __webpack_require__("cdf9");
6953
+ var hostReportErrors = __webpack_require__("44de");
6954
+ var newPromiseCapabilityModule = __webpack_require__("f069");
6955
+ var perform = __webpack_require__("e667");
6956
+ var InternalStateModule = __webpack_require__("69f3");
6957
+ var isForced = __webpack_require__("94ca");
6958
+ var wellKnownSymbol = __webpack_require__("b622");
6959
+ var IS_NODE = __webpack_require__("605d");
6960
+ var V8_VERSION = __webpack_require__("2d00");
6961
+
6962
+ var SPECIES = wellKnownSymbol('species');
6963
+ var PROMISE = 'Promise';
6964
+ var getInternalState = InternalStateModule.get;
6965
+ var setInternalState = InternalStateModule.set;
6966
+ var getInternalPromiseState = InternalStateModule.getterFor(PROMISE);
6967
+ var PromiseConstructor = NativePromise;
6968
+ var TypeError = global.TypeError;
6969
+ var document = global.document;
6970
+ var process = global.process;
6971
+ var $fetch = getBuiltIn('fetch');
6972
+ var newPromiseCapability = newPromiseCapabilityModule.f;
6973
+ var newGenericPromiseCapability = newPromiseCapability;
6974
+ var DISPATCH_EVENT = !!(document && document.createEvent && global.dispatchEvent);
6975
+ var NATIVE_REJECTION_EVENT = typeof PromiseRejectionEvent == 'function';
6976
+ var UNHANDLED_REJECTION = 'unhandledrejection';
6977
+ var REJECTION_HANDLED = 'rejectionhandled';
6978
+ var PENDING = 0;
6979
+ var FULFILLED = 1;
6980
+ var REJECTED = 2;
6981
+ var HANDLED = 1;
6982
+ var UNHANDLED = 2;
6983
+ var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;
6984
+
6985
+ var FORCED = isForced(PROMISE, function () {
6986
+ var GLOBAL_CORE_JS_PROMISE = inspectSource(PromiseConstructor) !== String(PromiseConstructor);
6987
+ if (!GLOBAL_CORE_JS_PROMISE) {
6988
+ // V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables
6989
+ // https://bugs.chromium.org/p/chromium/issues/detail?id=830565
6990
+ // We can't detect it synchronously, so just check versions
6991
+ if (V8_VERSION === 66) return true;
6992
+ // Unhandled rejections tracking support, NodeJS Promise without it fails @@species test
6993
+ if (!IS_NODE && !NATIVE_REJECTION_EVENT) return true;
6994
+ }
6995
+ // We need Promise#finally in the pure version for preventing prototype pollution
6996
+ if (IS_PURE && !PromiseConstructor.prototype['finally']) return true;
6997
+ // We can't use @@species feature detection in V8 since it causes
6998
+ // deoptimization and performance degradation
6999
+ // https://github.com/zloirock/core-js/issues/679
7000
+ if (V8_VERSION >= 51 && /native code/.test(PromiseConstructor)) return false;
7001
+ // Detect correctness of subclassing with @@species support
7002
+ var promise = PromiseConstructor.resolve(1);
7003
+ var FakePromise = function (exec) {
7004
+ exec(function () { /* empty */ }, function () { /* empty */ });
7005
+ };
7006
+ var constructor = promise.constructor = {};
7007
+ constructor[SPECIES] = FakePromise;
7008
+ return !(promise.then(function () { /* empty */ }) instanceof FakePromise);
7009
+ });
7010
+
7011
+ var INCORRECT_ITERATION = FORCED || !checkCorrectnessOfIteration(function (iterable) {
7012
+ PromiseConstructor.all(iterable)['catch'](function () { /* empty */ });
7013
+ });
7014
+
7015
+ // helpers
7016
+ var isThenable = function (it) {
7017
+ var then;
7018
+ return isObject(it) && typeof (then = it.then) == 'function' ? then : false;
7019
+ };
7020
+
7021
+ var notify = function (state, isReject) {
7022
+ if (state.notified) return;
7023
+ state.notified = true;
7024
+ var chain = state.reactions;
7025
+ microtask(function () {
7026
+ var value = state.value;
7027
+ var ok = state.state == FULFILLED;
7028
+ var index = 0;
7029
+ // variable length - can't use forEach
7030
+ while (chain.length > index) {
7031
+ var reaction = chain[index++];
7032
+ var handler = ok ? reaction.ok : reaction.fail;
7033
+ var resolve = reaction.resolve;
7034
+ var reject = reaction.reject;
7035
+ var domain = reaction.domain;
7036
+ var result, then, exited;
7037
+ try {
7038
+ if (handler) {
7039
+ if (!ok) {
7040
+ if (state.rejection === UNHANDLED) onHandleUnhandled(state);
7041
+ state.rejection = HANDLED;
7042
+ }
7043
+ if (handler === true) result = value;
7044
+ else {
7045
+ if (domain) domain.enter();
7046
+ result = handler(value); // can throw
7047
+ if (domain) {
7048
+ domain.exit();
7049
+ exited = true;
7050
+ }
7051
+ }
7052
+ if (result === reaction.promise) {
7053
+ reject(TypeError('Promise-chain cycle'));
7054
+ } else if (then = isThenable(result)) {
7055
+ then.call(result, resolve, reject);
7056
+ } else resolve(result);
7057
+ } else reject(value);
7058
+ } catch (error) {
7059
+ if (domain && !exited) domain.exit();
7060
+ reject(error);
7061
+ }
7062
+ }
7063
+ state.reactions = [];
7064
+ state.notified = false;
7065
+ if (isReject && !state.rejection) onUnhandled(state);
7066
+ });
7067
+ };
7068
+
7069
+ var dispatchEvent = function (name, promise, reason) {
7070
+ var event, handler;
7071
+ if (DISPATCH_EVENT) {
7072
+ event = document.createEvent('Event');
7073
+ event.promise = promise;
7074
+ event.reason = reason;
7075
+ event.initEvent(name, false, true);
7076
+ global.dispatchEvent(event);
7077
+ } else event = { promise: promise, reason: reason };
7078
+ if (!NATIVE_REJECTION_EVENT && (handler = global['on' + name])) handler(event);
7079
+ else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);
7080
+ };
7081
+
7082
+ var onUnhandled = function (state) {
7083
+ task.call(global, function () {
7084
+ var promise = state.facade;
7085
+ var value = state.value;
7086
+ var IS_UNHANDLED = isUnhandled(state);
7087
+ var result;
7088
+ if (IS_UNHANDLED) {
7089
+ result = perform(function () {
7090
+ if (IS_NODE) {
7091
+ process.emit('unhandledRejection', value, promise);
7092
+ } else dispatchEvent(UNHANDLED_REJECTION, promise, value);
7093
+ });
7094
+ // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should
7095
+ state.rejection = IS_NODE || isUnhandled(state) ? UNHANDLED : HANDLED;
7096
+ if (result.error) throw result.value;
7097
+ }
7098
+ });
7099
+ };
7100
+
7101
+ var isUnhandled = function (state) {
7102
+ return state.rejection !== HANDLED && !state.parent;
7103
+ };
7104
+
7105
+ var onHandleUnhandled = function (state) {
7106
+ task.call(global, function () {
7107
+ var promise = state.facade;
7108
+ if (IS_NODE) {
7109
+ process.emit('rejectionHandled', promise);
7110
+ } else dispatchEvent(REJECTION_HANDLED, promise, state.value);
7111
+ });
7112
+ };
7113
+
7114
+ var bind = function (fn, state, unwrap) {
7115
+ return function (value) {
7116
+ fn(state, value, unwrap);
7117
+ };
7118
+ };
7119
+
7120
+ var internalReject = function (state, value, unwrap) {
7121
+ if (state.done) return;
7122
+ state.done = true;
7123
+ if (unwrap) state = unwrap;
7124
+ state.value = value;
7125
+ state.state = REJECTED;
7126
+ notify(state, true);
7127
+ };
7128
+
7129
+ var internalResolve = function (state, value, unwrap) {
7130
+ if (state.done) return;
7131
+ state.done = true;
7132
+ if (unwrap) state = unwrap;
7133
+ try {
7134
+ if (state.facade === value) throw TypeError("Promise can't be resolved itself");
7135
+ var then = isThenable(value);
7136
+ if (then) {
7137
+ microtask(function () {
7138
+ var wrapper = { done: false };
7139
+ try {
7140
+ then.call(value,
7141
+ bind(internalResolve, wrapper, state),
7142
+ bind(internalReject, wrapper, state)
7143
+ );
7144
+ } catch (error) {
7145
+ internalReject(wrapper, error, state);
7146
+ }
7147
+ });
7148
+ } else {
7149
+ state.value = value;
7150
+ state.state = FULFILLED;
7151
+ notify(state, false);
7152
+ }
7153
+ } catch (error) {
7154
+ internalReject({ done: false }, error, state);
7155
+ }
7156
+ };
7157
+
7158
+ // constructor polyfill
7159
+ if (FORCED) {
7160
+ // 25.4.3.1 Promise(executor)
7161
+ PromiseConstructor = function Promise(executor) {
7162
+ anInstance(this, PromiseConstructor, PROMISE);
7163
+ aFunction(executor);
7164
+ Internal.call(this);
7165
+ var state = getInternalState(this);
7166
+ try {
7167
+ executor(bind(internalResolve, state), bind(internalReject, state));
7168
+ } catch (error) {
7169
+ internalReject(state, error);
7170
+ }
7171
+ };
7172
+ // eslint-disable-next-line no-unused-vars -- required for `.length`
7173
+ Internal = function Promise(executor) {
7174
+ setInternalState(this, {
7175
+ type: PROMISE,
7176
+ done: false,
7177
+ notified: false,
7178
+ parent: false,
7179
+ reactions: [],
7180
+ rejection: false,
7181
+ state: PENDING,
7182
+ value: undefined
7183
+ });
7184
+ };
7185
+ Internal.prototype = redefineAll(PromiseConstructor.prototype, {
7186
+ // `Promise.prototype.then` method
7187
+ // https://tc39.es/ecma262/#sec-promise.prototype.then
7188
+ then: function then(onFulfilled, onRejected) {
7189
+ var state = getInternalPromiseState(this);
7190
+ var reaction = newPromiseCapability(speciesConstructor(this, PromiseConstructor));
7191
+ reaction.ok = typeof onFulfilled == 'function' ? onFulfilled : true;
7192
+ reaction.fail = typeof onRejected == 'function' && onRejected;
7193
+ reaction.domain = IS_NODE ? process.domain : undefined;
7194
+ state.parent = true;
7195
+ state.reactions.push(reaction);
7196
+ if (state.state != PENDING) notify(state, false);
7197
+ return reaction.promise;
7198
+ },
7199
+ // `Promise.prototype.catch` method
7200
+ // https://tc39.es/ecma262/#sec-promise.prototype.catch
7201
+ 'catch': function (onRejected) {
7202
+ return this.then(undefined, onRejected);
7203
+ }
7204
+ });
7205
+ OwnPromiseCapability = function () {
7206
+ var promise = new Internal();
7207
+ var state = getInternalState(promise);
7208
+ this.promise = promise;
7209
+ this.resolve = bind(internalResolve, state);
7210
+ this.reject = bind(internalReject, state);
7211
+ };
7212
+ newPromiseCapabilityModule.f = newPromiseCapability = function (C) {
7213
+ return C === PromiseConstructor || C === PromiseWrapper
7214
+ ? new OwnPromiseCapability(C)
7215
+ : newGenericPromiseCapability(C);
7216
+ };
7217
+
7218
+ if (!IS_PURE && typeof NativePromise == 'function') {
7219
+ nativeThen = NativePromise.prototype.then;
7220
+
7221
+ // wrap native Promise#then for native async functions
7222
+ redefine(NativePromise.prototype, 'then', function then(onFulfilled, onRejected) {
7223
+ var that = this;
7224
+ return new PromiseConstructor(function (resolve, reject) {
7225
+ nativeThen.call(that, resolve, reject);
7226
+ }).then(onFulfilled, onRejected);
7227
+ // https://github.com/zloirock/core-js/issues/640
7228
+ }, { unsafe: true });
7229
+
7230
+ // wrap fetch result
7231
+ if (typeof $fetch == 'function') $({ global: true, enumerable: true, forced: true }, {
7232
+ // eslint-disable-next-line no-unused-vars -- required for `.length`
7233
+ fetch: function fetch(input /* , init */) {
7234
+ return promiseResolve(PromiseConstructor, $fetch.apply(global, arguments));
7235
+ }
7236
+ });
7237
+ }
7238
+ }
7239
+
7240
+ $({ global: true, wrap: true, forced: FORCED }, {
7241
+ Promise: PromiseConstructor
7242
+ });
7243
+
7244
+ setToStringTag(PromiseConstructor, PROMISE, false, true);
7245
+ setSpecies(PROMISE);
7246
+
7247
+ PromiseWrapper = getBuiltIn(PROMISE);
7248
+
7249
+ // statics
7250
+ $({ target: PROMISE, stat: true, forced: FORCED }, {
7251
+ // `Promise.reject` method
7252
+ // https://tc39.es/ecma262/#sec-promise.reject
7253
+ reject: function reject(r) {
7254
+ var capability = newPromiseCapability(this);
7255
+ capability.reject.call(undefined, r);
7256
+ return capability.promise;
7257
+ }
7258
+ });
7259
+
7260
+ $({ target: PROMISE, stat: true, forced: IS_PURE || FORCED }, {
7261
+ // `Promise.resolve` method
7262
+ // https://tc39.es/ecma262/#sec-promise.resolve
7263
+ resolve: function resolve(x) {
7264
+ return promiseResolve(IS_PURE && this === PromiseWrapper ? PromiseConstructor : this, x);
7265
+ }
7266
+ });
7267
+
7268
+ $({ target: PROMISE, stat: true, forced: INCORRECT_ITERATION }, {
7269
+ // `Promise.all` method
7270
+ // https://tc39.es/ecma262/#sec-promise.all
7271
+ all: function all(iterable) {
7272
+ var C = this;
7273
+ var capability = newPromiseCapability(C);
7274
+ var resolve = capability.resolve;
7275
+ var reject = capability.reject;
7276
+ var result = perform(function () {
7277
+ var $promiseResolve = aFunction(C.resolve);
7278
+ var values = [];
7279
+ var counter = 0;
7280
+ var remaining = 1;
7281
+ iterate(iterable, function (promise) {
7282
+ var index = counter++;
7283
+ var alreadyCalled = false;
7284
+ values.push(undefined);
7285
+ remaining++;
7286
+ $promiseResolve.call(C, promise).then(function (value) {
7287
+ if (alreadyCalled) return;
7288
+ alreadyCalled = true;
7289
+ values[index] = value;
7290
+ --remaining || resolve(values);
7291
+ }, reject);
7292
+ });
7293
+ --remaining || resolve(values);
7294
+ });
7295
+ if (result.error) reject(result.value);
7296
+ return capability.promise;
7297
+ },
7298
+ // `Promise.race` method
7299
+ // https://tc39.es/ecma262/#sec-promise.race
7300
+ race: function race(iterable) {
7301
+ var C = this;
7302
+ var capability = newPromiseCapability(C);
7303
+ var reject = capability.reject;
7304
+ var result = perform(function () {
7305
+ var $promiseResolve = aFunction(C.resolve);
7306
+ iterate(iterable, function (promise) {
7307
+ $promiseResolve.call(C, promise).then(capability.resolve, reject);
7308
+ });
7309
+ });
7310
+ if (result.error) reject(result.value);
7311
+ return capability.promise;
7312
+ }
7313
+ });
7314
+
7315
+
6643
7316
  /***/ }),
6644
7317
 
6645
7318
  /***/ "e893":
@@ -6692,6 +7365,32 @@ module.exports = function (it) {
6692
7365
  };
6693
7366
 
6694
7367
 
7368
+ /***/ }),
7369
+
7370
+ /***/ "f069":
7371
+ /***/ (function(module, exports, __webpack_require__) {
7372
+
7373
+ "use strict";
7374
+
7375
+ var aFunction = __webpack_require__("1c0b");
7376
+
7377
+ var PromiseCapability = function (C) {
7378
+ var resolve, reject;
7379
+ this.promise = new C(function ($$resolve, $$reject) {
7380
+ if (resolve !== undefined || reject !== undefined) throw TypeError('Bad Promise constructor');
7381
+ resolve = $$resolve;
7382
+ reject = $$reject;
7383
+ });
7384
+ this.resolve = aFunction(resolve);
7385
+ this.reject = aFunction(reject);
7386
+ };
7387
+
7388
+ // 25.4.1.5 NewPromiseCapability(C)
7389
+ module.exports.f = function (C) {
7390
+ return new PromiseCapability(C);
7391
+ };
7392
+
7393
+
6695
7394
  /***/ }),
6696
7395
 
6697
7396
  /***/ "f0af":
@@ -7284,6 +7983,7 @@ var iconPrefix = 'vxe-icon--';
7284
7983
  showTitleOverflow: true,
7285
7984
  animat: true,
7286
7985
  showClose: true,
7986
+ draggable: true,
7287
7987
  // storage: false,
7288
7988
  storageKey: 'VXE_MODAL_POSITION'
7289
7989
  },
@@ -7341,6 +8041,9 @@ var es_symbol_iterator = __webpack_require__("d28b");
7341
8041
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.iterator.js
7342
8042
  var es_string_iterator = __webpack_require__("3ca3");
7343
8043
 
8044
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.iterator.js
8045
+ var es_array_iterator = __webpack_require__("e260");
8046
+
7344
8047
  // EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom-collections.iterator.js
7345
8048
  var web_dom_collections_iterator = __webpack_require__("ddb0");
7346
8049
 
@@ -7355,6 +8058,7 @@ var es_array_from = __webpack_require__("a630");
7355
8058
 
7356
8059
 
7357
8060
 
8061
+
7358
8062
  function _iterableToArray(iter) {
7359
8063
  if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter);
7360
8064
  }
@@ -7391,6 +8095,9 @@ function _nonIterableSpread() {
7391
8095
  function _toConsumableArray(arr) {
7392
8096
  return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
7393
8097
  }
8098
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.assign.js
8099
+ var es_object_assign = __webpack_require__("cca6");
8100
+
7394
8101
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.fixed.js
7395
8102
  var es_string_fixed = __webpack_require__("c7cd");
7396
8103
 
@@ -7405,6 +8112,7 @@ var es_array_splice = __webpack_require__("a434");
7405
8112
 
7406
8113
 
7407
8114
 
8115
+
7408
8116
  /**
7409
8117
  * 创建数据仓库
7410
8118
  */
@@ -7450,6 +8158,7 @@ var store_Store = /*#__PURE__*/function () {
7450
8158
  /* harmony default export */ var store = (store_Store);
7451
8159
  // CONCATENATED MODULE: ./packages/v-x-e-table/src/formats.js
7452
8160
 
8161
+
7453
8162
  var formats = new store();
7454
8163
 
7455
8164
  if (false) {}
@@ -7466,6 +8175,7 @@ if (false) {}
7466
8175
 
7467
8176
 
7468
8177
 
8178
+
7469
8179
  var zindexIndex = 0;
7470
8180
  var lastZindex = 1;
7471
8181
 
@@ -7746,6 +8456,9 @@ var es_string_match = __webpack_require__("466d");
7746
8456
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
7747
8457
  var es_array_concat = __webpack_require__("99af");
7748
8458
 
8459
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.promise.js
8460
+ var es_promise = __webpack_require__("e6cf");
8461
+
7749
8462
  // CONCATENATED MODULE: ./packages/tools/src/dom.js
7750
8463
 
7751
8464
 
@@ -7756,6 +8469,7 @@ var es_array_concat = __webpack_require__("99af");
7756
8469
 
7757
8470
 
7758
8471
 
8472
+
7759
8473
  var dom_getRowid = utils.getRowid;
7760
8474
  var browse = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.browse();
7761
8475
  var reClsMap = {};
@@ -8342,6 +9056,7 @@ var es_number_to_fixed = __webpack_require__("b680");
8342
9056
 
8343
9057
 
8344
9058
 
9059
+
8345
9060
  var defaultCompProps = {
8346
9061
  transfer: true
8347
9062
  };
@@ -9131,11 +9846,13 @@ var renderer = {
9131
9846
  };
9132
9847
  // CONCATENATED MODULE: ./packages/v-x-e-table/src/commands.js
9133
9848
 
9849
+
9134
9850
  var commands = new store();
9135
9851
 
9136
9852
  if (false) {}
9137
9853
  // CONCATENATED MODULE: ./packages/v-x-e-table/src/menus.js
9138
9854
 
9855
+
9139
9856
  var menus = new store();
9140
9857
 
9141
9858
  if (false) {}
@@ -9525,6 +10242,7 @@ function clearTableAllStatus(_vm) {
9525
10242
 
9526
10243
 
9527
10244
 
10245
+
9528
10246
  var renderType = 'body'; // 滚动、拖动过程中不需要触发
9529
10247
 
9530
10248
  function isOperateMouse($xetable) {
@@ -9570,6 +10288,7 @@ function renderColumn(h, _vm, $xetable, $seq, seq, rowid, fixedType, rowLevel, r
9570
10288
  height = $xetable.height,
9571
10289
  columnKey = $xetable.columnKey,
9572
10290
  overflowX = $xetable.overflowX,
10291
+ sYOpts = $xetable.sYOpts,
9573
10292
  scrollXLoad = $xetable.scrollXLoad,
9574
10293
  scrollYLoad = $xetable.scrollYLoad,
9575
10294
  highlightCurrentRow = $xetable.highlightCurrentRow,
@@ -9602,6 +10321,7 @@ function renderColumn(h, _vm, $xetable, $seq, seq, rowid, fixedType, rowLevel, r
9602
10321
  className = column.className,
9603
10322
  treeNode = column.treeNode;
9604
10323
  var actived = editStore.actived;
10324
+ var rHeight = sYOpts.rHeight;
9605
10325
  var showAllTip = tooltipOpts.showAll || tooltipOpts.enabled;
9606
10326
  var columnIndex = $xetable.getColumnIndex(column);
9607
10327
 
@@ -9774,7 +10494,10 @@ function renderColumn(h, _vm, $xetable, $seq, seq, rowid, fixedType, rowLevel, r
9774
10494
  'c--title': showTitle,
9775
10495
  'c--tooltip': showTooltip,
9776
10496
  'c--ellipsis': showEllipsis
9777
- }]
10497
+ }],
10498
+ style: {
10499
+ maxHeight: hasEllipsis && rHeight ? "".concat(rHeight, "px") : ''
10500
+ }
9778
10501
  }));
9779
10502
  } else {
9780
10503
  // 渲染单元格
@@ -9784,6 +10507,9 @@ function renderColumn(h, _vm, $xetable, $seq, seq, rowid, fixedType, rowLevel, r
9784
10507
  'c--tooltip': showTooltip,
9785
10508
  'c--ellipsis': showEllipsis
9786
10509
  }],
10510
+ style: {
10511
+ maxHeight: hasEllipsis && rHeight ? "".concat(rHeight, "px") : ''
10512
+ },
9787
10513
  attrs: {
9788
10514
  title: showTitle ? $xetable.getCellLabel(row, column) : null
9789
10515
  }
@@ -9805,7 +10531,9 @@ function renderColumn(h, _vm, $xetable, $seq, seq, rowid, fixedType, rowLevel, r
9805
10531
  class: ['vxe-body--column', column.id, (_ref2 = {}, _defineProperty(_ref2, "col--".concat(cellAlign), cellAlign), _defineProperty(_ref2, "col--".concat(type), type), _defineProperty(_ref2, 'col--last', $columnIndex === columns.length - 1), _defineProperty(_ref2, 'col--tree-node', treeNode), _defineProperty(_ref2, 'col--edit', isEdit), _defineProperty(_ref2, 'col--ellipsis', hasEllipsis), _defineProperty(_ref2, 'fixed--hidden', fixedHiddenColumn), _defineProperty(_ref2, 'col--dirty', isDirty), _defineProperty(_ref2, 'col--actived', editConfig && isEdit && actived.row === row && (actived.column === column || editOpts.mode === 'row')), _defineProperty(_ref2, 'col--valid-error', hasValidError), _defineProperty(_ref2, 'col--current', currentColumn === column), _ref2), UtilTools.getClass(className, params), UtilTools.getClass(cellClassName, params)],
9806
10532
  key: columnKey ? column.id : $columnIndex,
9807
10533
  attrs: attrs,
9808
- style: cellStyle ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.isFunction(cellStyle) ? cellStyle(params) : cellStyle : null,
10534
+ style: Object.assign({
10535
+ height: hasEllipsis && rHeight ? "".concat(rHeight, "px") : ''
10536
+ }, cellStyle ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.isFunction(cellStyle) ? cellStyle(params) : cellStyle : null),
9809
10537
  on: tdOns
9810
10538
  }, tdVNs);
9811
10539
  }
@@ -10433,6 +11161,7 @@ var es_string_trim = __webpack_require__("498a");
10433
11161
 
10434
11162
 
10435
11163
 
11164
+
10436
11165
  function renderHelpIcon(h, params) {
10437
11166
  var $table = params.$table,
10438
11167
  column = params.column;
@@ -11315,6 +12044,9 @@ var Cell = {
11315
12044
 
11316
12045
 
11317
12046
 
12047
+
12048
+
12049
+
11318
12050
 
11319
12051
 
11320
12052
 
@@ -11897,8 +12629,7 @@ var Methods = {
11897
12629
  }, {
11898
12630
  children: 'children'
11899
12631
  });
11900
- this.handleColumn(collectColumn);
11901
- return this.$nextTick();
12632
+ return this.handleColumn(collectColumn);
11902
12633
  },
11903
12634
 
11904
12635
  /**
@@ -11932,13 +12663,15 @@ var Methods = {
11932
12663
 
11933
12664
  if (false) {}
11934
12665
 
11935
- this.$nextTick(function () {
12666
+ return this.$nextTick().then(function () {
11936
12667
  if (_this7.$toolbar) {
11937
12668
  _this7.$toolbar.syncUpdate({
11938
12669
  collectColumn: collectColumn,
11939
12670
  $table: _this7
11940
12671
  });
11941
12672
  }
12673
+
12674
+ return _this7.recalculate();
11942
12675
  });
11943
12676
  },
11944
12677
 
@@ -15770,10 +16503,10 @@ var Methods = {
15770
16503
  }
15771
16504
 
15772
16505
  if (!sortOpts.remote) {
15773
- return this.handleTableData(true);
16506
+ this.handleTableData(true);
15774
16507
  }
15775
16508
 
15776
- return this.$nextTick();
16509
+ return this.$nextTick().then(this.updateStyle);
15777
16510
  },
15778
16511
  // 在 v3 中废弃
15779
16512
  getSortColumn: function getSortColumn() {
@@ -17143,6 +17876,8 @@ funcs.forEach(function (name) {
17143
17876
 
17144
17877
 
17145
17878
 
17879
+
17880
+
17146
17881
  /**
17147
17882
  * 渲染浮固定列
17148
17883
  * 分别渲染左边固定列和右边固定列
@@ -18399,6 +19134,7 @@ function handleUupdateResize(_vm) {
18399
19134
 
18400
19135
 
18401
19136
 
19137
+
18402
19138
  var Table = Object.assign(table, {
18403
19139
  install: function install(Vue) {
18404
19140
  if (typeof window !== 'undefined' && window.VXETableMixin) {
@@ -18435,6 +19171,7 @@ var Table = Object.assign(table, {
18435
19171
 
18436
19172
 
18437
19173
 
19174
+
18438
19175
  /* harmony default export */ var panel = ({
18439
19176
  name: 'VxeTableFilter',
18440
19177
  props: {
@@ -18646,6 +19383,7 @@ var Table = Object.assign(table, {
18646
19383
 
18647
19384
 
18648
19385
 
19386
+
18649
19387
  /* harmony default export */ var src_mixin = ({
18650
19388
  methods: {
18651
19389
  /**
@@ -19062,6 +19800,7 @@ var Filter = {
19062
19800
 
19063
19801
 
19064
19802
 
19803
+
19065
19804
  /* harmony default export */ var menu_src_mixin = ({
19066
19805
  methods: {
19067
19806
  /**
@@ -19451,6 +20190,7 @@ var Menu = {
19451
20190
 
19452
20191
 
19453
20192
 
20193
+
19454
20194
  /* harmony default export */ var edit_src_mixin = ({
19455
20195
  methods: {
19456
20196
  /**
@@ -20219,6 +20959,7 @@ function _arrayWithHoles(arr) {
20219
20959
 
20220
20960
 
20221
20961
 
20962
+
20222
20963
  function _iterableToArrayLimit(arr, i) {
20223
20964
  if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return;
20224
20965
  var _arr = [];
@@ -20272,6 +21013,8 @@ function _slicedToArray(arr, i) {
20272
21013
 
20273
21014
 
20274
21015
 
21016
+
21017
+
20275
21018
  var allActivedModals = [];
20276
21019
  var msgQueue = [];
20277
21020
  /* harmony default export */ var modal = ({
@@ -20401,6 +21144,12 @@ var msgQueue = [];
20401
21144
  }
20402
21145
  },
20403
21146
  fullscreen: Boolean,
21147
+ draggable: {
21148
+ type: Boolean,
21149
+ default: function _default() {
21150
+ return conf.modal.draggable;
21151
+ }
21152
+ },
20404
21153
  remember: {
20405
21154
  type: Boolean,
20406
21155
  default: function _default() {
@@ -20546,6 +21295,7 @@ var msgQueue = [];
20546
21295
  showClose = this.showClose,
20547
21296
  showZoom = this.showZoom,
20548
21297
  animat = this.animat,
21298
+ draggable = this.draggable,
20549
21299
  loading = this.loading,
20550
21300
  status = this.status,
20551
21301
  iconStatus = this.iconStatus,
@@ -20567,9 +21317,11 @@ var msgQueue = [];
20567
21317
  var footerSlot = $scopedSlots.footer || slots.footer;
20568
21318
  var headerSlot = $scopedSlots.header || slots.header;
20569
21319
  var titleSlot = $scopedSlots.title || slots.title;
20570
- var headerOns = {
20571
- mousedown: this.mousedownEvent
20572
- };
21320
+ var headerOns = {};
21321
+
21322
+ if (draggable) {
21323
+ headerOns.mousedown = this.mousedownEvent;
21324
+ }
20573
21325
 
20574
21326
  if (showZoom && dblclickZoom && type === 'modal') {
20575
21327
  headerOns.dblclick = this.toggleZoomEvent;
@@ -20591,7 +21343,10 @@ var msgQueue = [];
20591
21343
  },
20592
21344
  ref: 'modalBox'
20593
21345
  }, [this.showHeader ? h('div', {
20594
- class: ['vxe-modal--header', !isMsg && showTitleOverflow ? 'is--ellipsis' : ''],
21346
+ class: ['vxe-modal--header', {
21347
+ 'is--drag': draggable,
21348
+ 'is--ellipsis': !isMsg && showTitleOverflow
21349
+ }],
20595
21350
  on: headerOns
20596
21351
  }, headerSlot ? !inited || destroyOnClose && !visible ? [] : headerSlot.call(this, {
20597
21352
  $modal: this
@@ -21460,6 +22215,7 @@ var es_string_pad_start = __webpack_require__("4d90");
21460
22215
 
21461
22216
 
21462
22217
 
22218
+
21463
22219
  var yearSize = 20;
21464
22220
  var monthSize = 20;
21465
22221
  var quarterSize = 8;
@@ -23990,6 +24746,7 @@ function renderExtraSuffixIcon(h, _vm) {
23990
24746
 
23991
24747
 
23992
24748
 
24749
+
23993
24750
  function isOptionVisible(option) {
23994
24751
  return option.visible !== false;
23995
24752
  }
@@ -24884,6 +25641,7 @@ function select_renderOpts(h, _vm) {
24884
25641
 
24885
25642
 
24886
25643
 
25644
+
24887
25645
  var util_OptionConfig = /*#__PURE__*/function () {
24888
25646
  function OptionConfig($xeselect, _vm) {
24889
25647
  _classCallCheck(this, OptionConfig);
@@ -24921,6 +25679,8 @@ function destroyOption(_vm) {
24921
25679
  optionConfig = _vm.optionConfig;
24922
25680
  var matchObj = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.findTree($xeselect.collectOption, function (option) {
24923
25681
  return option === optionConfig;
25682
+ }, {
25683
+ children: 'options'
24924
25684
  });
24925
25685
 
24926
25686
  if (matchObj) {
@@ -24933,9 +25693,11 @@ function assemOption(_vm) {
24933
25693
  $xeoptgroup = _vm.$xeoptgroup,
24934
25694
  optionConfig = _vm.optionConfig;
24935
25695
  var groupConfig = $xeoptgroup ? $xeoptgroup.optionConfig : null;
24936
- optionConfig.slots = _vm.$scopedSlots;
24937
25696
 
24938
25697
  if (groupConfig) {
25698
+ // 子选项才允许自定义插槽
25699
+ optionConfig.slots = _vm.$slots;
25700
+
24939
25701
  if (!groupConfig.options) {
24940
25702
  groupConfig.options = [];
24941
25703
  }
@@ -25004,6 +25766,7 @@ Object.keys(option_props).forEach(function (name) {
25004
25766
 
25005
25767
 
25006
25768
 
25769
+
25007
25770
  /* harmony default export */ var export_panel = ({
25008
25771
  name: 'VxeExportPanel',
25009
25772
  props: {
@@ -25543,6 +26306,7 @@ Object.keys(option_props).forEach(function (name) {
25543
26306
 
25544
26307
 
25545
26308
 
26309
+
25546
26310
  /* harmony default export */ var import_panel = ({
25547
26311
  name: 'VxeImportPanel',
25548
26312
  props: {
@@ -25747,6 +26511,9 @@ var es_string_repeat = __webpack_require__("38cf");
25747
26511
 
25748
26512
 
25749
26513
 
26514
+
26515
+
26516
+
25750
26517
 
25751
26518
 
25752
26519
 
@@ -27571,6 +28338,7 @@ var convertToRows = function convertToRows(originColumns) {
27571
28338
 
27572
28339
 
27573
28340
 
28341
+
27574
28342
  function print(options) {
27575
28343
  var opts = Object.assign({}, options, {
27576
28344
  type: 'html'
@@ -27609,6 +28377,7 @@ var Export = {
27609
28377
 
27610
28378
 
27611
28379
 
28380
+
27612
28381
  function getTargetOffset(target, container) {
27613
28382
  var offsetTop = 0;
27614
28383
  var offsetLeft = 0;
@@ -28097,6 +28866,9 @@ var Keyboard = {
28097
28866
 
28098
28867
 
28099
28868
 
28869
+
28870
+
28871
+
28100
28872
  /**
28101
28873
  * 校验规则
28102
28874
  */
@@ -28988,6 +29760,7 @@ var cellType = 'header';
28988
29760
  // CONCATENATED MODULE: ./packages/header/index.js
28989
29761
 
28990
29762
 
29763
+
28991
29764
  var Header = Object.assign(header, {
28992
29765
  install: function install(Vue) {
28993
29766
  Vue.component(header.name, header);
@@ -29001,6 +29774,7 @@ var Header = Object.assign(header, {
29001
29774
 
29002
29775
 
29003
29776
 
29777
+
29004
29778
  var footer_cellType = 'footer';
29005
29779
 
29006
29780
  function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
@@ -29349,6 +30123,7 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
29349
30123
  // CONCATENATED MODULE: ./packages/footer/index.js
29350
30124
 
29351
30125
 
30126
+
29352
30127
  var Footer = Object.assign(footer, {
29353
30128
  install: function install(Vue) {
29354
30129
  Vue.component(footer.name, footer);
@@ -29506,6 +30281,7 @@ Object.keys(column_props).forEach(function (name) {
29506
30281
  // CONCATENATED MODULE: ./packages/column/index.js
29507
30282
 
29508
30283
 
30284
+
29509
30285
  var Column = Object.assign(src_column, {
29510
30286
  install: function install(Vue) {
29511
30287
  Vue.component(src_column.name, src_column); // 兼容旧用法
@@ -29529,6 +30305,7 @@ var Column = Object.assign(src_column, {
29529
30305
  // CONCATENATED MODULE: ./packages/colgroup/index.js
29530
30306
 
29531
30307
 
30308
+
29532
30309
  var Colgroup = Object.assign(src_group, {
29533
30310
  install: function install(Vue) {
29534
30311
  Vue.component(src_group.name, src_group); // 兼容旧用法
@@ -29554,6 +30331,8 @@ var Colgroup = Object.assign(src_group, {
29554
30331
 
29555
30332
 
29556
30333
 
30334
+
30335
+
29557
30336
  var grid_methods = {};
29558
30337
  var propKeys = Object.keys(packages_table.props);
29559
30338
 
@@ -30709,6 +31488,7 @@ Object.keys(packages_table.methods).forEach(function (name) {
30709
31488
 
30710
31489
 
30711
31490
 
31491
+
30712
31492
  var Grid = Object.assign(grid, {
30713
31493
  install: function install(Vue) {
30714
31494
  v_x_e_table.Grid = grid;
@@ -30730,6 +31510,8 @@ var Grid = Object.assign(grid, {
30730
31510
 
30731
31511
 
30732
31512
 
31513
+
31514
+
30733
31515
  var renderDropdowns = function renderDropdowns(h, _vm, item, isBtn) {
30734
31516
  var _e = _vm._e;
30735
31517
  var dropdowns = item.dropdowns;
@@ -31501,6 +32283,7 @@ function renderCustoms(h, _vm) {
31501
32283
  // CONCATENATED MODULE: ./packages/toolbar/index.js
31502
32284
 
31503
32285
 
32286
+
31504
32287
  var Toolbar = Object.assign(src_toolbar, {
31505
32288
  install: function install(Vue) {
31506
32289
  Vue.component(src_toolbar.name, src_toolbar);
@@ -31990,6 +32773,7 @@ var Toolbar = Object.assign(src_toolbar, {
31990
32773
  // CONCATENATED MODULE: ./packages/pager/index.js
31991
32774
 
31992
32775
 
32776
+
31993
32777
  var Pager = Object.assign(pager, {
31994
32778
  install: function install(Vue) {
31995
32779
  Vue.component(pager.name, pager);
@@ -31999,6 +32783,7 @@ var Pager = Object.assign(pager, {
31999
32783
  // CONCATENATED MODULE: ./packages/checkbox/index.js
32000
32784
 
32001
32785
 
32786
+
32002
32787
  var Checkbox = Object.assign(src_checkbox, {
32003
32788
  install: function install(Vue) {
32004
32789
  Vue.component(src_checkbox.name, src_checkbox);
@@ -32008,6 +32793,7 @@ var Checkbox = Object.assign(src_checkbox, {
32008
32793
  // CONCATENATED MODULE: ./packages/checkbox/src/group.js
32009
32794
 
32010
32795
 
32796
+
32011
32797
  /* harmony default export */ var checkbox_src_group = ({
32012
32798
  name: 'VxeCheckboxGroup',
32013
32799
  props: {
@@ -32061,6 +32847,7 @@ var Checkbox = Object.assign(src_checkbox, {
32061
32847
  // CONCATENATED MODULE: ./packages/checkbox-group/index.js
32062
32848
 
32063
32849
 
32850
+
32064
32851
  var CheckboxGroup = Object.assign(checkbox_src_group, {
32065
32852
  install: function install(Vue) {
32066
32853
  Vue.component(checkbox_src_group.name, checkbox_src_group);
@@ -32070,6 +32857,7 @@ var CheckboxGroup = Object.assign(checkbox_src_group, {
32070
32857
  // CONCATENATED MODULE: ./packages/radio/index.js
32071
32858
 
32072
32859
 
32860
+
32073
32861
  var Radio = Object.assign(src_radio, {
32074
32862
  install: function install(Vue) {
32075
32863
  Vue.component(src_radio.name, src_radio);
@@ -32123,6 +32911,7 @@ var Radio = Object.assign(src_radio, {
32123
32911
  // CONCATENATED MODULE: ./packages/radio-group/index.js
32124
32912
 
32125
32913
 
32914
+
32126
32915
  var RadioGroup = Object.assign(radio_src_group, {
32127
32916
  install: function install(Vue) {
32128
32917
  Vue.component(radio_src_group.name, radio_src_group);
@@ -32226,6 +33015,7 @@ var RadioGroup = Object.assign(radio_src_group, {
32226
33015
  // CONCATENATED MODULE: ./packages/radio-button/index.js
32227
33016
 
32228
33017
 
33018
+
32229
33019
  var RadioButton = Object.assign(src_button, {
32230
33020
  install: function install(Vue) {
32231
33021
  Vue.component(src_button.name, src_button);
@@ -32235,6 +33025,7 @@ var RadioButton = Object.assign(src_button, {
32235
33025
  // CONCATENATED MODULE: ./packages/input/index.js
32236
33026
 
32237
33027
 
33028
+
32238
33029
  var Input = Object.assign(input, {
32239
33030
  install: function install(Vue) {
32240
33031
  Vue.component(input.name, input);
@@ -32253,6 +33044,7 @@ var Input = Object.assign(input, {
32253
33044
 
32254
33045
 
32255
33046
 
33047
+
32256
33048
  var autoTxtElem;
32257
33049
  /* harmony default export */ var src_textarea = ({
32258
33050
  name: 'VxeTextarea',
@@ -32513,6 +33305,7 @@ var autoTxtElem;
32513
33305
  // CONCATENATED MODULE: ./packages/textarea/index.js
32514
33306
 
32515
33307
 
33308
+
32516
33309
  var Textarea = Object.assign(src_textarea, {
32517
33310
  install: function install(Vue) {
32518
33311
  Vue.component(src_textarea.name, src_textarea);
@@ -32528,6 +33321,7 @@ var Textarea = Object.assign(src_textarea, {
32528
33321
 
32529
33322
 
32530
33323
 
33324
+
32531
33325
  /* harmony default export */ var button_src_button = ({
32532
33326
  name: 'VxeButton',
32533
33327
  mixins: [size],
@@ -32914,6 +33708,7 @@ var Textarea = Object.assign(src_textarea, {
32914
33708
  // CONCATENATED MODULE: ./packages/button/index.js
32915
33709
 
32916
33710
 
33711
+
32917
33712
  var Button = Object.assign(button_src_button, {
32918
33713
  install: function install(Vue) {
32919
33714
  Vue.component(button_src_button.name, button_src_button);
@@ -32928,6 +33723,8 @@ var Button = Object.assign(button_src_button, {
32928
33723
 
32929
33724
 
32930
33725
 
33726
+
33727
+
32931
33728
  /* eslint-disable @typescript-eslint/no-use-before-define */
32932
33729
 
32933
33730
  var ModalClass = null;
@@ -33063,6 +33860,7 @@ var Modal = Object.assign(modal, {
33063
33860
 
33064
33861
 
33065
33862
 
33863
+
33066
33864
  function updateTipStyle(_vm) {
33067
33865
  var wrapperElem = _vm.$el,
33068
33866
  tipTarget = _vm.tipTarget,
@@ -33383,6 +34181,7 @@ function updateTipStyle(_vm) {
33383
34181
 
33384
34182
 
33385
34183
 
34184
+
33386
34185
  var Tooltip = Object.assign(src_tooltip, {
33387
34186
  install: function install(Vue) {
33388
34187
  v_x_e_table._tooltip = 1;
@@ -33399,6 +34198,7 @@ var Tooltip = Object.assign(src_tooltip, {
33399
34198
 
33400
34199
 
33401
34200
 
34201
+
33402
34202
  var util_ItemConfig = /*#__PURE__*/function () {
33403
34203
  function ItemConfig($xeform, item) {
33404
34204
  _classCallCheck(this, ItemConfig);
@@ -33501,6 +34301,10 @@ function assemItem(_vm) {
33501
34301
 
33502
34302
 
33503
34303
 
34304
+
34305
+
34306
+
34307
+
33504
34308
 
33505
34309
 
33506
34310
 
@@ -33617,10 +34421,11 @@ function renderTitle(h, _vm, item) {
33617
34421
  item: item,
33618
34422
  $form: _vm
33619
34423
  };
33620
- var tss = [];
34424
+ var contVNs = [];
34425
+ var titVNs = [];
33621
34426
 
33622
34427
  if (titlePrefix) {
33623
- tss.push(titlePrefix.message ? h('vxe-tooltip', {
34428
+ titVNs.push(titlePrefix.message ? h('vxe-tooltip', {
33624
34429
  props: {
33625
34430
  content: UtilTools.getFuncText(titlePrefix.message),
33626
34431
  enterable: titlePrefix.enterable,
@@ -33629,12 +34434,16 @@ function renderTitle(h, _vm, item) {
33629
34434
  }, [renderPrefixIcon(h, titlePrefix)]) : renderPrefixIcon(h, titlePrefix));
33630
34435
  }
33631
34436
 
33632
- tss.push(h('span', {
34437
+ titVNs.push(h('span', {
33633
34438
  class: 'vxe-form--item-title-label'
33634
34439
  }, compConf && compConf.renderItemTitle ? compConf.renderItemTitle(itemRender, params) : slots && slots.title ? form_callSlot(_vm, slots.title, params, h) : UtilTools.getFuncText(item.title)));
34440
+ contVNs.push(h('div', {
34441
+ class: 'vxe-form--item-title-content'
34442
+ }, titVNs));
34443
+ var fixVNs = [];
33635
34444
 
33636
34445
  if (titleSuffix) {
33637
- tss.push(titleSuffix.message ? h('vxe-tooltip', {
34446
+ fixVNs.push(titleSuffix.message ? h('vxe-tooltip', {
33638
34447
  props: {
33639
34448
  content: UtilTools.getFuncText(titleSuffix.message),
33640
34449
  enterable: titleSuffix.enterable,
@@ -33643,7 +34452,10 @@ function renderTitle(h, _vm, item) {
33643
34452
  }, [form_renderSuffixIcon(h, titleSuffix)]) : form_renderSuffixIcon(h, titleSuffix));
33644
34453
  }
33645
34454
 
33646
- return tss;
34455
+ contVNs.push(h('div', {
34456
+ class: 'vxe-form--item-title-postfix'
34457
+ }, fixVNs));
34458
+ return contVNs;
33647
34459
  }
33648
34460
 
33649
34461
  function renderItems(h, _vm, itemList) {
@@ -33961,7 +34773,7 @@ function renderItems(h, _vm, itemList) {
33961
34773
  evnt.preventDefault();
33962
34774
 
33963
34775
  if (!this.preventSubmit) {
33964
- this.beginValidate().then(function () {
34776
+ this.beginValidate(this.getItems()).then(function () {
33965
34777
  _this3.$emit('submit', {
33966
34778
  data: _this3.data,
33967
34779
  $form: _this3,
@@ -34049,7 +34861,7 @@ function renderItems(h, _vm, itemList) {
34049
34861
  var item = params.item;
34050
34862
  var tooltipStore = this.tooltipStore;
34051
34863
  var $tooltip = this.$refs.tooltip;
34052
- var overflowElem = evnt.currentTarget;
34864
+ var overflowElem = evnt.currentTarget.children[0];
34053
34865
  var content = (overflowElem.textContent || '').trim();
34054
34866
  var isCellOverflow = overflowElem.scrollWidth > overflowElem.clientWidth;
34055
34867
  clearTimeout(this.tooltipTimeout);
@@ -34105,9 +34917,14 @@ function renderItems(h, _vm, itemList) {
34105
34917
  return this.$nextTick();
34106
34918
  },
34107
34919
  validate: function validate(callback) {
34108
- return this.beginValidate('', callback);
34920
+ return this.beginValidate(this.getItems(), '', callback);
34109
34921
  },
34110
- beginValidate: function beginValidate(type, callback) {
34922
+ validateField: function validateField(field, callback) {
34923
+ return this.beginValidate(this.getItems().filter(function (item) {
34924
+ return item.field === field;
34925
+ }), '', callback);
34926
+ },
34927
+ beginValidate: function beginValidate(itemList, type, callback) {
34111
34928
  var _this7 = this;
34112
34929
 
34113
34930
  var data = this.data,
@@ -34116,7 +34933,6 @@ function renderItems(h, _vm, itemList) {
34116
34933
  var validRest = {};
34117
34934
  var validFields = [];
34118
34935
  var itemValids = [];
34119
- var itemList = this.getItems();
34120
34936
  this.clearValidate();
34121
34937
  clearTimeout(this.showErrTime);
34122
34938
 
@@ -34343,6 +35159,7 @@ function renderItems(h, _vm, itemList) {
34343
35159
  // CONCATENATED MODULE: ./packages/form/index.js
34344
35160
 
34345
35161
 
35162
+
34346
35163
  var Form = Object.assign(src_form, {
34347
35164
  install: function install(Vue) {
34348
35165
  Vue.component(src_form.name, src_form);
@@ -34415,6 +35232,7 @@ Object.keys(form_item_props).forEach(function (name) {
34415
35232
  // CONCATENATED MODULE: ./packages/form-item/index.js
34416
35233
 
34417
35234
 
35235
+
34418
35236
  var FormItem = Object.assign(form_item, {
34419
35237
  install: function install(Vue) {
34420
35238
  Vue.component(form_item.name, form_item);
@@ -34438,6 +35256,7 @@ var FormItem = Object.assign(form_item, {
34438
35256
  // CONCATENATED MODULE: ./packages/form-gather/index.js
34439
35257
 
34440
35258
 
35259
+
34441
35260
  var FormGather = Object.assign(form_gather, {
34442
35261
  install: function install(Vue) {
34443
35262
  Vue.component(form_gather.name, form_gather);
@@ -34504,6 +35323,7 @@ Object.keys(optgroup_props).forEach(function (name) {
34504
35323
 
34505
35324
 
34506
35325
 
35326
+
34507
35327
  var Select = Object.assign(src_select, {
34508
35328
  Option: src_option,
34509
35329
  Optgroup: optgroup,
@@ -34517,6 +35337,7 @@ var Select = Object.assign(src_select, {
34517
35337
  // CONCATENATED MODULE: ./packages/optgroup/index.js
34518
35338
 
34519
35339
 
35340
+
34520
35341
  var Optgroup = Object.assign(optgroup, {
34521
35342
  install: function install(Vue) {
34522
35343
  Vue.component(optgroup.name, optgroup);
@@ -34526,6 +35347,7 @@ var Optgroup = Object.assign(optgroup, {
34526
35347
  // CONCATENATED MODULE: ./packages/option/index.js
34527
35348
 
34528
35349
 
35350
+
34529
35351
  var Option = Object.assign(src_option, {
34530
35352
  install: function install(Vue) {
34531
35353
  Vue.component(src_option.name, src_option);
@@ -34680,6 +35502,7 @@ var Option = Object.assign(src_option, {
34680
35502
  // CONCATENATED MODULE: ./packages/switch/index.js
34681
35503
 
34682
35504
 
35505
+
34683
35506
  var Switch = Object.assign(src_switch, {
34684
35507
  install: function install(Vue) {
34685
35508
  Vue.component(src_switch.name, src_switch);
@@ -34695,6 +35518,8 @@ var Switch = Object.assign(src_switch, {
34695
35518
 
34696
35519
 
34697
35520
 
35521
+
35522
+
34698
35523
  /* harmony default export */ var src_list = ({
34699
35524
  name: 'VxeList',
34700
35525
  mixins: [size],
@@ -35061,6 +35886,7 @@ var Switch = Object.assign(src_switch, {
35061
35886
  // CONCATENATED MODULE: ./packages/list/index.js
35062
35887
 
35063
35888
 
35889
+
35064
35890
  var List = Object.assign(src_list, {
35065
35891
  install: function install(Vue) {
35066
35892
  Vue.component(src_list.name, src_list);
@@ -35073,6 +35899,8 @@ var List = Object.assign(src_list, {
35073
35899
 
35074
35900
 
35075
35901
 
35902
+
35903
+
35076
35904
  /* harmony default export */ var pulldown = ({
35077
35905
  name: 'VxePulldown',
35078
35906
  mixins: [size],
@@ -35373,6 +36201,7 @@ var List = Object.assign(src_list, {
35373
36201
  // CONCATENATED MODULE: ./packages/pulldown/index.js
35374
36202
 
35375
36203
 
36204
+
35376
36205
  var Pulldown = Object.assign(pulldown, {
35377
36206
  install: function install(Vue) {
35378
36207
  Vue.component(pulldown.name, pulldown);
@@ -35923,6 +36752,16 @@ module.exports = NATIVE_SYMBOL
35923
36752
  && typeof Symbol.iterator == 'symbol';
35924
36753
 
35925
36754
 
36755
+ /***/ }),
36756
+
36757
+ /***/ "fea9":
36758
+ /***/ (function(module, exports, __webpack_require__) {
36759
+
36760
+ var global = __webpack_require__("da84");
36761
+
36762
+ module.exports = global.Promise;
36763
+
36764
+
35926
36765
  /***/ })
35927
36766
 
35928
36767
  /******/ });