vxe-table 3.4.15 → 3.5.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/lib/button/src/button.js +19 -9
- package/lib/button/src/button.min.js +1 -1
- package/lib/checkbox/src/checkbox.js +2 -2
- package/lib/checkbox/src/checkbox.min.js +1 -1
- package/lib/edit/src/mixin.js +26 -18
- package/lib/edit/src/mixin.min.js +1 -1
- package/lib/export/src/export-panel.js +2 -2
- package/lib/export/src/export-panel.min.js +1 -1
- package/lib/export/src/import-panel.js +2 -2
- package/lib/export/src/import-panel.min.js +1 -1
- package/lib/export/src/mixin.js +26 -24
- package/lib/export/src/mixin.min.js +1 -1
- package/lib/filter/src/mixin.js +4 -4
- package/lib/filter/src/mixin.min.js +1 -1
- package/lib/filter/src/panel.js +2 -2
- package/lib/filter/src/panel.min.js +1 -1
- package/lib/footer/src/footer.js +7 -4
- package/lib/footer/src/footer.min.js +1 -1
- package/lib/form/src/form-gather.js +2 -2
- package/lib/form/src/form-gather.min.js +1 -1
- package/lib/form/src/form-item.js +3 -3
- package/lib/form/src/form-item.min.js +1 -1
- package/lib/form/src/form.js +17 -11
- package/lib/form/src/form.min.js +1 -1
- package/lib/form/src/render.js +5 -5
- package/lib/form/src/render.min.js +1 -1
- package/lib/form/src/util.js +2 -2
- package/lib/form/src/util.min.js +1 -1
- package/lib/grid/src/grid.js +44 -34
- package/lib/grid/src/grid.min.js +1 -1
- package/lib/header/src/header.js +10 -8
- package/lib/header/src/header.min.js +1 -1
- package/lib/index.umd.js +1963 -1083
- package/lib/index.umd.min.js +1 -2
- package/lib/input/src/input.js +30 -18
- package/lib/input/src/input.min.js +1 -1
- package/lib/keyboard/src/mixin.js +12 -8
- package/lib/keyboard/src/mixin.min.js +1 -1
- package/lib/list/src/list.js +7 -5
- package/lib/list/src/list.min.js +1 -1
- package/lib/menu/src/mixin.js +24 -14
- package/lib/menu/src/mixin.min.js +1 -1
- package/lib/menu/src/panel.js +3 -3
- package/lib/menu/src/panel.min.js +1 -1
- package/lib/modal/src/modal.js +24 -12
- package/lib/modal/src/modal.min.js +1 -1
- package/lib/pulldown/src/pulldown.js +16 -12
- package/lib/pulldown/src/pulldown.min.js +1 -1
- package/lib/radio/src/button.js +2 -2
- package/lib/radio/src/button.min.js +1 -1
- package/lib/radio/src/radio.js +2 -2
- package/lib/radio/src/radio.min.js +1 -1
- package/lib/select/src/select.js +26 -16
- package/lib/select/src/select.min.js +1 -1
- package/lib/switch/src/switch.js +4 -4
- package/lib/switch/src/switch.min.js +1 -1
- package/lib/table/src/body.js +34 -33
- package/lib/table/src/body.min.js +1 -1
- package/lib/table/src/cell.js +19 -11
- package/lib/table/src/cell.min.js +1 -1
- package/lib/table/src/column.js +3 -3
- package/lib/table/src/column.min.js +1 -1
- package/lib/table/src/columnInfo.js +201 -0
- package/lib/table/src/columnInfo.min.js +1 -0
- package/lib/table/src/methods.js +85 -85
- package/lib/table/src/methods.min.js +1 -1
- package/lib/table/src/table.js +80 -62
- package/lib/table/src/table.min.js +1 -1
- package/lib/table/src/util.js +38 -3
- package/lib/table/src/util.min.js +1 -1
- package/lib/textarea/src/textarea.js +2 -2
- package/lib/textarea/src/textarea.min.js +1 -1
- package/lib/toolbar/src/toolbar.js +16 -10
- package/lib/toolbar/src/toolbar.min.js +1 -1
- package/lib/tools/{src/dom.js → dom.js} +0 -0
- package/lib/tools/{src/dom.min.js → dom.min.js} +0 -0
- package/lib/tools/{src/event.js → event.js} +3 -6
- package/lib/tools/event.min.js +1 -0
- package/lib/tools/log.js +29 -0
- package/lib/tools/log.min.js +1 -0
- package/lib/tools/{src/resize.js → resize.js} +1 -1
- package/lib/tools/resize.min.js +1 -0
- package/lib/tools/utils.js +155 -0
- package/lib/tools/utils.min.js +1 -0
- package/lib/tooltip/src/tooltip.js +8 -6
- package/lib/tooltip/src/tooltip.min.js +1 -1
- package/lib/v-x-e-table/index.js +7 -4
- package/lib/v-x-e-table/index.min.js +1 -1
- package/lib/v-x-e-table/src/conf.js +3 -1
- package/lib/v-x-e-table/src/interceptor.js +4 -4
- package/lib/v-x-e-table/src/interceptor.min.js +1 -1
- package/lib/v-x-e-table/src/renderer.js +18 -10
- package/lib/v-x-e-table/src/renderer.min.js +1 -1
- package/lib/v-x-e-table/src/store.js +3 -3
- package/lib/v-x-e-table/src/store.min.js +1 -1
- package/lib/validator/src/mixin.js +4 -4
- package/lib/validator/src/mixin.min.js +1 -1
- package/package.json +1 -1
- package/packages/button/src/button.js +4 -2
- package/packages/checkbox/src/checkbox.js +2 -2
- package/packages/edit/src/mixin.js +7 -6
- package/packages/export/src/export-panel.js +1 -1
- package/packages/export/src/import-panel.js +1 -1
- package/packages/export/src/mixin.js +20 -19
- package/packages/filter/src/mixin.js +3 -3
- package/packages/filter/src/panel.js +1 -1
- package/packages/footer/src/footer.js +4 -2
- package/packages/form/src/form-gather.js +2 -2
- package/packages/form/src/form-item.js +2 -2
- package/packages/form/src/form.js +7 -7
- package/packages/form/src/render.js +4 -4
- package/packages/form/src/util.js +2 -2
- package/packages/grid/src/grid.js +22 -20
- package/packages/header/src/header.js +3 -2
- package/packages/input/src/input.js +6 -3
- package/packages/keyboard/src/mixin.js +1 -2
- package/packages/list/src/list.js +3 -2
- package/packages/menu/src/mixin.js +5 -3
- package/packages/menu/src/panel.js +3 -3
- package/packages/modal/src/modal.js +7 -4
- package/packages/pulldown/src/pulldown.js +3 -1
- package/packages/radio/src/button.js +2 -2
- package/packages/radio/src/radio.js +2 -2
- package/packages/select/src/select.js +5 -3
- package/packages/switch/src/switch.js +4 -4
- package/packages/table/src/body.js +23 -22
- package/packages/table/src/cell.js +5 -4
- package/packages/table/src/column.js +1 -1
- package/packages/table/src/columnInfo.js +148 -0
- package/packages/table/src/methods.js +50 -50
- package/packages/table/src/table.js +56 -41
- package/packages/table/src/util.js +19 -1
- package/packages/textarea/src/textarea.js +2 -2
- package/packages/toolbar/src/toolbar.js +7 -4
- package/packages/tools/{src/dom.js → dom.js} +0 -0
- package/packages/tools/{src/event.js → event.js} +1 -3
- package/packages/tools/log.js +16 -0
- package/packages/tools/{src/resize.js → resize.js} +1 -1
- package/packages/tools/utils.js +108 -0
- package/packages/tooltip/src/tooltip.js +2 -1
- package/packages/v-x-e-table/index.js +4 -2
- package/packages/v-x-e-table/src/conf.js +3 -1
- package/packages/v-x-e-table/src/interceptor.js +3 -3
- package/packages/v-x-e-table/src/renderer.js +4 -3
- package/packages/v-x-e-table/src/store.js +2 -2
- package/packages/validator/src/mixin.js +3 -3
- package/types/v-x-e-table/index.d.ts +8 -0
- package/lib/tools/index.js +0 -76
- package/lib/tools/index.min.js +0 -1
- package/lib/tools/src/event.min.js +0 -1
- package/lib/tools/src/resize.min.js +0 -1
- package/lib/tools/src/utils.js +0 -365
- package/lib/tools/src/utils.min.js +0 -1
- package/packages/tools/index.js +0 -14
- package/packages/tools/src/utils.js +0 -272
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":
|
|
@@ -7676,6 +8429,9 @@ var iconPrefix = 'vxe-icon--';
|
|
|
7676
8429
|
// emptyRender: {
|
|
7677
8430
|
// name: ''
|
|
7678
8431
|
// },
|
|
8432
|
+
// rowConfig: {
|
|
8433
|
+
// keyField: '_X_ID' // 行数据的唯一主键字段名
|
|
8434
|
+
// },
|
|
7679
8435
|
radioConfig: {
|
|
7680
8436
|
// trigger: 'default'
|
|
7681
8437
|
strict: true
|
|
@@ -7699,7 +8455,6 @@ var iconPrefix = 'vxe-icon--';
|
|
|
7699
8455
|
// storage: false,
|
|
7700
8456
|
// checkMethod () {}
|
|
7701
8457
|
// },
|
|
7702
|
-
// rowId: '_X_ID', // 行数据的唯一主键字段名
|
|
7703
8458
|
sortConfig: {
|
|
7704
8459
|
// remote: false,
|
|
7705
8460
|
// trigger: 'default',
|
|
@@ -7989,6 +8744,110 @@ var es_string_split = __webpack_require__("1276");
|
|
|
7989
8744
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.join.js
|
|
7990
8745
|
var es_array_join = __webpack_require__("a15b");
|
|
7991
8746
|
|
|
8747
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
|
|
8748
|
+
var es_array_concat = __webpack_require__("99af");
|
|
8749
|
+
|
|
8750
|
+
// CONCATENATED MODULE: ./packages/tools/log.js
|
|
8751
|
+
|
|
8752
|
+
|
|
8753
|
+
function getLog(message, params) {
|
|
8754
|
+
return "[vxe-table v".concat("3.5.0-beta.0", "] ").concat(conf.i18n(message, params));
|
|
8755
|
+
}
|
|
8756
|
+
|
|
8757
|
+
function outLog(type) {
|
|
8758
|
+
return function (message, params) {
|
|
8759
|
+
var msg = getLog(message, params);
|
|
8760
|
+
console[type](msg);
|
|
8761
|
+
return msg;
|
|
8762
|
+
};
|
|
8763
|
+
}
|
|
8764
|
+
|
|
8765
|
+
var warnLog = outLog('warn');
|
|
8766
|
+
var errLog = outLog('error');
|
|
8767
|
+
// CONCATENATED MODULE: ./packages/v-x-e-table/src/interceptor.js
|
|
8768
|
+
|
|
8769
|
+
|
|
8770
|
+
|
|
8771
|
+
|
|
8772
|
+
|
|
8773
|
+
|
|
8774
|
+
|
|
8775
|
+
|
|
8776
|
+
function toType(type) {
|
|
8777
|
+
return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.toValueString(type).replace('_', '').toLowerCase();
|
|
8778
|
+
}
|
|
8779
|
+
|
|
8780
|
+
var eventTypes = 'created,mounted,activated,beforeDestroy,destroyed,event.clearActived,event.clearFilter,event.clearAreas,event.showMenu,event.keydown,event.export,event.import'.split(',').map(toType);
|
|
8781
|
+
var storeMap = {};
|
|
8782
|
+
var interceptor = {
|
|
8783
|
+
mixin: function mixin(map) {
|
|
8784
|
+
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.each(map, function (callback, type) {
|
|
8785
|
+
return interceptor.add(type, callback);
|
|
8786
|
+
});
|
|
8787
|
+
return interceptor;
|
|
8788
|
+
},
|
|
8789
|
+
get: function get(type) {
|
|
8790
|
+
return storeMap[toType(type)] || [];
|
|
8791
|
+
},
|
|
8792
|
+
add: function add(type, callback) {
|
|
8793
|
+
type = toType(type); // 检测类型
|
|
8794
|
+
|
|
8795
|
+
if (false) {}
|
|
8796
|
+
|
|
8797
|
+
if (callback && eventTypes.indexOf(type) > -1) {
|
|
8798
|
+
var eList = storeMap[type];
|
|
8799
|
+
|
|
8800
|
+
if (!eList) {
|
|
8801
|
+
eList = storeMap[type] = [];
|
|
8802
|
+
} // 检测重复
|
|
8803
|
+
|
|
8804
|
+
|
|
8805
|
+
if (false) {}
|
|
8806
|
+
|
|
8807
|
+
eList.push(callback);
|
|
8808
|
+
}
|
|
8809
|
+
|
|
8810
|
+
return interceptor;
|
|
8811
|
+
},
|
|
8812
|
+
delete: function _delete(type, callback) {
|
|
8813
|
+
var eList = storeMap[toType(type)];
|
|
8814
|
+
|
|
8815
|
+
if (eList) {
|
|
8816
|
+
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.remove(eList, function (fn) {
|
|
8817
|
+
return fn === callback;
|
|
8818
|
+
});
|
|
8819
|
+
}
|
|
8820
|
+
|
|
8821
|
+
return interceptor;
|
|
8822
|
+
}
|
|
8823
|
+
};
|
|
8824
|
+
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
8825
|
+
function _defineProperty(obj, key, value) {
|
|
8826
|
+
if (key in obj) {
|
|
8827
|
+
Object.defineProperty(obj, key, {
|
|
8828
|
+
value: value,
|
|
8829
|
+
enumerable: true,
|
|
8830
|
+
configurable: true,
|
|
8831
|
+
writable: true
|
|
8832
|
+
});
|
|
8833
|
+
} else {
|
|
8834
|
+
obj[key] = value;
|
|
8835
|
+
}
|
|
8836
|
+
|
|
8837
|
+
return obj;
|
|
8838
|
+
}
|
|
8839
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.function.name.js
|
|
8840
|
+
var es_function_name = __webpack_require__("b0c0");
|
|
8841
|
+
|
|
8842
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.assign.js
|
|
8843
|
+
var es_object_assign = __webpack_require__("cca6");
|
|
8844
|
+
|
|
8845
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.find.js
|
|
8846
|
+
var es_array_find = __webpack_require__("7db0");
|
|
8847
|
+
|
|
8848
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.number.to-fixed.js
|
|
8849
|
+
var es_number_to_fixed = __webpack_require__("b680");
|
|
8850
|
+
|
|
7992
8851
|
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
|
7993
8852
|
function _arrayLikeToArray(arr, len) {
|
|
7994
8853
|
if (len == null || len > arr.length) len = arr.length;
|
|
@@ -8016,6 +8875,9 @@ var es_object_to_string = __webpack_require__("d3b7");
|
|
|
8016
8875
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.symbol.iterator.js
|
|
8017
8876
|
var es_symbol_iterator = __webpack_require__("d28b");
|
|
8018
8877
|
|
|
8878
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.iterator.js
|
|
8879
|
+
var es_array_iterator = __webpack_require__("e260");
|
|
8880
|
+
|
|
8019
8881
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.iterator.js
|
|
8020
8882
|
var es_string_iterator = __webpack_require__("3ca3");
|
|
8021
8883
|
|
|
@@ -8033,15 +8895,13 @@ var es_array_from = __webpack_require__("a630");
|
|
|
8033
8895
|
|
|
8034
8896
|
|
|
8035
8897
|
|
|
8898
|
+
|
|
8036
8899
|
function _iterableToArray(iter) {
|
|
8037
8900
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
8038
8901
|
}
|
|
8039
8902
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.slice.js
|
|
8040
8903
|
var es_array_slice = __webpack_require__("fb6a");
|
|
8041
8904
|
|
|
8042
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.function.name.js
|
|
8043
|
-
var es_function_name = __webpack_require__("b0c0");
|
|
8044
|
-
|
|
8045
8905
|
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
|
8046
8906
|
|
|
8047
8907
|
|
|
@@ -8069,74 +8929,13 @@ function _nonIterableSpread() {
|
|
|
8069
8929
|
function _toConsumableArray(arr) {
|
|
8070
8930
|
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
8071
8931
|
}
|
|
8072
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.fixed.js
|
|
8073
|
-
var es_string_fixed = __webpack_require__("c7cd");
|
|
8074
|
-
|
|
8075
8932
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom-collections.for-each.js
|
|
8076
8933
|
var web_dom_collections_for_each = __webpack_require__("159b");
|
|
8077
8934
|
|
|
8078
8935
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.splice.js
|
|
8079
8936
|
var es_array_splice = __webpack_require__("a434");
|
|
8080
8937
|
|
|
8081
|
-
// CONCATENATED MODULE: ./packages/
|
|
8082
|
-
|
|
8083
|
-
|
|
8084
|
-
|
|
8085
|
-
|
|
8086
|
-
/**
|
|
8087
|
-
* 创建数据仓库
|
|
8088
|
-
*/
|
|
8089
|
-
|
|
8090
|
-
var store_Store = /*#__PURE__*/function () {
|
|
8091
|
-
function Store() {
|
|
8092
|
-
_classCallCheck(this, Store);
|
|
8093
|
-
|
|
8094
|
-
this.store = {};
|
|
8095
|
-
}
|
|
8096
|
-
|
|
8097
|
-
_createClass(Store, [{
|
|
8098
|
-
key: "mixin",
|
|
8099
|
-
value: function mixin(map) {
|
|
8100
|
-
Object.assign(this.store, map);
|
|
8101
|
-
return Store;
|
|
8102
|
-
}
|
|
8103
|
-
}, {
|
|
8104
|
-
key: "get",
|
|
8105
|
-
value: function get(name) {
|
|
8106
|
-
return this.store[name];
|
|
8107
|
-
}
|
|
8108
|
-
}, {
|
|
8109
|
-
key: "add",
|
|
8110
|
-
value: function add(name, render) {
|
|
8111
|
-
// 检测是否覆盖
|
|
8112
|
-
if (false) {}
|
|
8113
|
-
|
|
8114
|
-
this.store[name] = render;
|
|
8115
|
-
return Store;
|
|
8116
|
-
}
|
|
8117
|
-
}, {
|
|
8118
|
-
key: "delete",
|
|
8119
|
-
value: function _delete(name) {
|
|
8120
|
-
delete this.store[name];
|
|
8121
|
-
return Store;
|
|
8122
|
-
}
|
|
8123
|
-
}]);
|
|
8124
|
-
|
|
8125
|
-
return Store;
|
|
8126
|
-
}();
|
|
8127
|
-
|
|
8128
|
-
/* harmony default export */ var store = (store_Store);
|
|
8129
|
-
// CONCATENATED MODULE: ./packages/v-x-e-table/src/formats.js
|
|
8130
|
-
|
|
8131
|
-
var formats = new store();
|
|
8132
|
-
|
|
8133
|
-
if (false) {}
|
|
8134
|
-
// CONCATENATED MODULE: ./packages/tools/src/utils.js
|
|
8135
|
-
|
|
8136
|
-
|
|
8137
|
-
|
|
8138
|
-
|
|
8139
|
-
|
|
8938
|
+
// CONCATENATED MODULE: ./packages/tools/utils.js
|
|
8140
8939
|
|
|
8141
8940
|
|
|
8142
8941
|
|
|
@@ -8146,159 +8945,32 @@ if (false) {}
|
|
|
8146
8945
|
|
|
8147
8946
|
var zindexIndex = 0;
|
|
8148
8947
|
var lastZindex = 1;
|
|
8149
|
-
|
|
8150
|
-
var utils_ColumnInfo = /*#__PURE__*/function () {
|
|
8151
|
-
/* eslint-disable @typescript-eslint/no-use-before-define */
|
|
8152
|
-
function ColumnInfo($xetable, _vm) {
|
|
8153
|
-
var _ref = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {},
|
|
8154
|
-
renderHeader = _ref.renderHeader,
|
|
8155
|
-
renderCell = _ref.renderCell,
|
|
8156
|
-
renderFooter = _ref.renderFooter,
|
|
8157
|
-
renderData = _ref.renderData;
|
|
8158
|
-
|
|
8159
|
-
_classCallCheck(this, ColumnInfo);
|
|
8160
|
-
|
|
8161
|
-
var $xegrid = $xetable.$xegrid;
|
|
8162
|
-
var proxyOpts = $xegrid ? $xegrid.proxyOpts : null;
|
|
8163
|
-
var formatter = _vm.formatter;
|
|
8164
|
-
var visible = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.isBoolean(_vm.visible) ? _vm.visible : true;
|
|
8165
|
-
|
|
8166
|
-
if (false) { var _globalFunc, globalFunc, types; }
|
|
8167
|
-
|
|
8168
|
-
Object.assign(this, {
|
|
8169
|
-
// 基本属性
|
|
8170
|
-
type: _vm.type,
|
|
8171
|
-
property: _vm.field,
|
|
8172
|
-
field: _vm.field,
|
|
8173
|
-
title: _vm.title,
|
|
8174
|
-
width: _vm.width,
|
|
8175
|
-
minWidth: _vm.minWidth,
|
|
8176
|
-
resizable: _vm.resizable,
|
|
8177
|
-
fixed: _vm.fixed,
|
|
8178
|
-
align: _vm.align,
|
|
8179
|
-
headerAlign: _vm.headerAlign,
|
|
8180
|
-
footerAlign: _vm.footerAlign,
|
|
8181
|
-
showOverflow: _vm.showOverflow,
|
|
8182
|
-
showHeaderOverflow: _vm.showHeaderOverflow,
|
|
8183
|
-
showFooterOverflow: _vm.showFooterOverflow,
|
|
8184
|
-
className: _vm.className,
|
|
8185
|
-
headerClassName: _vm.headerClassName,
|
|
8186
|
-
footerClassName: _vm.footerClassName,
|
|
8187
|
-
formatter: formatter,
|
|
8188
|
-
sortable: _vm.sortable,
|
|
8189
|
-
sortBy: _vm.sortBy,
|
|
8190
|
-
sortType: _vm.sortType,
|
|
8191
|
-
sortMethod: _vm.sortMethod,
|
|
8192
|
-
remoteSort: _vm.remoteSort,
|
|
8193
|
-
filters: UtilTools.getFilters(_vm.filters),
|
|
8194
|
-
filterMultiple: external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.isBoolean(_vm.filterMultiple) ? _vm.filterMultiple : true,
|
|
8195
|
-
filterMethod: _vm.filterMethod,
|
|
8196
|
-
filterResetMethod: _vm.filterResetMethod,
|
|
8197
|
-
filterRecoverMethod: _vm.filterRecoverMethod,
|
|
8198
|
-
filterRender: _vm.filterRender,
|
|
8199
|
-
treeNode: _vm.treeNode,
|
|
8200
|
-
cellType: _vm.cellType,
|
|
8201
|
-
cellRender: _vm.cellRender,
|
|
8202
|
-
editRender: _vm.editRender,
|
|
8203
|
-
contentRender: _vm.contentRender,
|
|
8204
|
-
exportMethod: _vm.exportMethod,
|
|
8205
|
-
footerExportMethod: _vm.footerExportMethod,
|
|
8206
|
-
titleHelp: _vm.titleHelp,
|
|
8207
|
-
// 自定义参数
|
|
8208
|
-
params: _vm.params,
|
|
8209
|
-
// 渲染属性
|
|
8210
|
-
id: _vm.colId || external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.uniqueId('col_'),
|
|
8211
|
-
parentId: null,
|
|
8212
|
-
visible: visible,
|
|
8213
|
-
// 内部属性(一旦被使用,将导致不可升级版本)
|
|
8214
|
-
halfVisible: false,
|
|
8215
|
-
defaultVisible: visible,
|
|
8216
|
-
checked: false,
|
|
8217
|
-
halfChecked: false,
|
|
8218
|
-
disabled: false,
|
|
8219
|
-
level: 1,
|
|
8220
|
-
rowSpan: 1,
|
|
8221
|
-
colSpan: 1,
|
|
8222
|
-
order: null,
|
|
8223
|
-
sortTime: 0,
|
|
8224
|
-
renderWidth: 0,
|
|
8225
|
-
renderHeight: 0,
|
|
8226
|
-
resizeWidth: 0,
|
|
8227
|
-
renderLeft: 0,
|
|
8228
|
-
renderArgs: [],
|
|
8229
|
-
// 渲染参数可用于扩展
|
|
8230
|
-
model: {},
|
|
8231
|
-
renderHeader: renderHeader || _vm.renderHeader,
|
|
8232
|
-
renderCell: renderCell || _vm.renderCell,
|
|
8233
|
-
renderFooter: renderFooter || _vm.renderFooter,
|
|
8234
|
-
renderData: renderData,
|
|
8235
|
-
// 单元格插槽,只对 grid 有效
|
|
8236
|
-
slots: _vm.slots
|
|
8237
|
-
});
|
|
8238
|
-
|
|
8239
|
-
if (proxyOpts && proxyOpts.beforeColumn) {
|
|
8240
|
-
proxyOpts.beforeColumn({
|
|
8241
|
-
$grid: $xegrid,
|
|
8242
|
-
column: this
|
|
8243
|
-
});
|
|
8244
|
-
}
|
|
8245
|
-
}
|
|
8246
|
-
|
|
8247
|
-
_createClass(ColumnInfo, [{
|
|
8248
|
-
key: "getTitle",
|
|
8249
|
-
value: function getTitle() {
|
|
8250
|
-
return UtilTools.getFuncText(this.title || (this.type === 'seq' ? conf.i18n('vxe.table.seqTitle') : ''));
|
|
8251
|
-
}
|
|
8252
|
-
}, {
|
|
8253
|
-
key: "getKey",
|
|
8254
|
-
value: function getKey() {
|
|
8255
|
-
return this.property || (this.type ? "type=".concat(this.type) : null);
|
|
8256
|
-
}
|
|
8257
|
-
}, {
|
|
8258
|
-
key: "update",
|
|
8259
|
-
value: function update(name, value) {
|
|
8260
|
-
// 不支持双向的属性
|
|
8261
|
-
if (name !== 'filters') {
|
|
8262
|
-
if (name === 'field') {
|
|
8263
|
-
this.property = value;
|
|
8264
|
-
} else {
|
|
8265
|
-
this[name] = value;
|
|
8266
|
-
}
|
|
8267
|
-
}
|
|
8268
|
-
}
|
|
8269
|
-
}]);
|
|
8270
|
-
|
|
8271
|
-
return ColumnInfo;
|
|
8272
|
-
}();
|
|
8273
|
-
|
|
8274
8948
|
function isEnableConf(conf) {
|
|
8275
8949
|
return conf && conf.enabled !== false;
|
|
8276
8950
|
}
|
|
8277
|
-
|
|
8278
|
-
function outLog(type) {
|
|
8279
|
-
return function (message, params) {
|
|
8280
|
-
var msg = UtilTools.getLog(message, params);
|
|
8281
|
-
console[type](msg);
|
|
8282
|
-
return msg;
|
|
8283
|
-
};
|
|
8284
|
-
}
|
|
8285
8951
|
/**
|
|
8286
8952
|
* 判断值为:'' | null | undefined 时都属于空值
|
|
8287
8953
|
*/
|
|
8288
8954
|
|
|
8289
|
-
|
|
8290
8955
|
function eqEmptyValue(cellValue) {
|
|
8291
8956
|
return cellValue === '' || external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.eqNull(cellValue);
|
|
8292
8957
|
}
|
|
8958
|
+
function getFuncText(content) {
|
|
8959
|
+
return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.isFunction(content) ? content() : conf.translate ? conf.translate(content) : content;
|
|
8960
|
+
} // 行主键 key
|
|
8961
|
+
|
|
8962
|
+
function getRowkey($xetable) {
|
|
8963
|
+
return $xetable.rowOpts.keyField || $xetable.rowId || '_X_ID';
|
|
8964
|
+
} // 获取所有的列,排除分组
|
|
8965
|
+
|
|
8966
|
+
function getColumnList(columns) {
|
|
8967
|
+
var result = [];
|
|
8968
|
+
columns.forEach(function (column) {
|
|
8969
|
+
result.push.apply(result, _toConsumableArray(column.children && column.children.length ? getColumnList(column.children) : [column]));
|
|
8970
|
+
});
|
|
8971
|
+
return result;
|
|
8972
|
+
}
|
|
8293
8973
|
var UtilTools = {
|
|
8294
|
-
warn: outLog('warn'),
|
|
8295
|
-
error: outLog('error'),
|
|
8296
|
-
getLog: function getLog(message, args) {
|
|
8297
|
-
return "[vxe-table] ".concat(conf.i18n(message, args));
|
|
8298
|
-
},
|
|
8299
|
-
getFuncText: function getFuncText(content) {
|
|
8300
|
-
return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.isFunction(content) ? content() : conf.translate ? conf.translate(content) : content;
|
|
8301
|
-
},
|
|
8302
8974
|
nextZIndex: function nextZIndex() {
|
|
8303
8975
|
lastZindex = conf.zIndex + zindexIndex++;
|
|
8304
8976
|
return lastZindex;
|
|
@@ -8306,47 +8978,16 @@ var UtilTools = {
|
|
|
8306
8978
|
getLastZIndex: function getLastZIndex() {
|
|
8307
8979
|
return lastZindex;
|
|
8308
8980
|
},
|
|
8309
|
-
|
|
8310
|
-
getRowkey: function getRowkey($xetable) {
|
|
8311
|
-
return $xetable.rowId || '_X_ID';
|
|
8312
|
-
},
|
|
8981
|
+
getRowkey: getRowkey,
|
|
8313
8982
|
// 行主键 value
|
|
8314
8983
|
getRowid: function getRowid($xetable, row) {
|
|
8315
|
-
var
|
|
8316
|
-
return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.eqNull(
|
|
8317
|
-
},
|
|
8318
|
-
// 获取所有的列,排除分组
|
|
8319
|
-
getColumnList: function getColumnList(columns) {
|
|
8320
|
-
var result = [];
|
|
8321
|
-
columns.forEach(function (column) {
|
|
8322
|
-
result.push.apply(result, _toConsumableArray(column.children && column.children.length ? UtilTools.getColumnList(column.children) : [column]));
|
|
8323
|
-
});
|
|
8324
|
-
return result;
|
|
8984
|
+
var rowid = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.get(row, getRowkey($xetable));
|
|
8985
|
+
return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.eqNull(rowid) ? '' : encodeURIComponent(rowid);
|
|
8325
8986
|
},
|
|
8987
|
+
getColumnList: getColumnList,
|
|
8326
8988
|
getClass: function getClass(property, params) {
|
|
8327
8989
|
return property ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.isFunction(property) ? property(params) : property : '';
|
|
8328
8990
|
},
|
|
8329
|
-
getFilters: function getFilters(filters) {
|
|
8330
|
-
if (filters && external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.isArray(filters)) {
|
|
8331
|
-
return filters.map(function (_ref2) {
|
|
8332
|
-
var label = _ref2.label,
|
|
8333
|
-
value = _ref2.value,
|
|
8334
|
-
data = _ref2.data,
|
|
8335
|
-
resetValue = _ref2.resetValue,
|
|
8336
|
-
checked = _ref2.checked;
|
|
8337
|
-
return {
|
|
8338
|
-
label: label,
|
|
8339
|
-
value: value,
|
|
8340
|
-
data: data,
|
|
8341
|
-
resetValue: resetValue,
|
|
8342
|
-
checked: !!checked,
|
|
8343
|
-
_checked: !!checked
|
|
8344
|
-
};
|
|
8345
|
-
});
|
|
8346
|
-
}
|
|
8347
|
-
|
|
8348
|
-
return filters;
|
|
8349
|
-
},
|
|
8350
8991
|
formatText: function formatText(value, placeholder) {
|
|
8351
8992
|
return '' + (value === '' || value === null || value === undefined ? placeholder ? conf.emptyCell : '' : value);
|
|
8352
8993
|
},
|
|
@@ -8356,12 +8997,6 @@ var UtilTools = {
|
|
|
8356
8997
|
setCellValue: function setCellValue(row, column, value) {
|
|
8357
8998
|
return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.set(row, column.property, value);
|
|
8358
8999
|
},
|
|
8359
|
-
isColumn: function isColumn(column) {
|
|
8360
|
-
return column instanceof utils_ColumnInfo;
|
|
8361
|
-
},
|
|
8362
|
-
getColumnConfig: function getColumnConfig($xetable, _vm, options) {
|
|
8363
|
-
return UtilTools.isColumn(_vm) ? _vm : new utils_ColumnInfo($xetable, _vm, options);
|
|
8364
|
-
},
|
|
8365
9000
|
// 组装列配置
|
|
8366
9001
|
assemColumn: function assemColumn(_vm) {
|
|
8367
9002
|
var $el = _vm.$el,
|
|
@@ -8413,606 +9048,9 @@ var UtilTools = {
|
|
|
8413
9048
|
}
|
|
8414
9049
|
};
|
|
8415
9050
|
/* harmony default export */ var utils = (UtilTools);
|
|
8416
|
-
//
|
|
8417
|
-
var es_regexp_constructor = __webpack_require__("4d63");
|
|
8418
|
-
|
|
8419
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.to-string.js
|
|
8420
|
-
var es_regexp_to_string = __webpack_require__("25f0");
|
|
8421
|
-
|
|
8422
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.match.js
|
|
8423
|
-
var es_string_match = __webpack_require__("466d");
|
|
8424
|
-
|
|
8425
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
|
|
8426
|
-
var es_array_concat = __webpack_require__("99af");
|
|
8427
|
-
|
|
8428
|
-
// CONCATENATED MODULE: ./packages/tools/src/dom.js
|
|
8429
|
-
|
|
8430
|
-
|
|
8431
|
-
|
|
8432
|
-
|
|
8433
|
-
|
|
8434
|
-
|
|
8435
|
-
|
|
8436
|
-
|
|
8437
|
-
|
|
8438
|
-
var dom_getRowid = utils.getRowid;
|
|
8439
|
-
var browse = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.browse();
|
|
8440
|
-
var reClsMap = {};
|
|
8441
|
-
|
|
8442
|
-
function getClsRE(cls) {
|
|
8443
|
-
if (!reClsMap[cls]) {
|
|
8444
|
-
reClsMap[cls] = new RegExp("(?:^|\\s)".concat(cls, "(?!\\S)"), 'g');
|
|
8445
|
-
}
|
|
8446
|
-
|
|
8447
|
-
return reClsMap[cls];
|
|
8448
|
-
}
|
|
8449
|
-
|
|
8450
|
-
function getNodeOffset(elem, container, rest) {
|
|
8451
|
-
if (elem) {
|
|
8452
|
-
var parentElem = elem.parentNode;
|
|
8453
|
-
rest.top += elem.offsetTop;
|
|
8454
|
-
rest.left += elem.offsetLeft;
|
|
8455
|
-
|
|
8456
|
-
if (parentElem && parentElem !== document.documentElement && parentElem !== document.body) {
|
|
8457
|
-
rest.top -= parentElem.scrollTop;
|
|
8458
|
-
rest.left -= parentElem.scrollLeft;
|
|
8459
|
-
}
|
|
8460
|
-
|
|
8461
|
-
if (container && (elem === container || elem.offsetParent === container) ? 0 : elem.offsetParent) {
|
|
8462
|
-
return getNodeOffset(elem.offsetParent, container, rest);
|
|
8463
|
-
}
|
|
8464
|
-
}
|
|
8465
|
-
|
|
8466
|
-
return rest;
|
|
8467
|
-
}
|
|
8468
|
-
|
|
8469
|
-
function isScale(val) {
|
|
8470
|
-
return val && /^\d+%$/.test(val);
|
|
8471
|
-
}
|
|
8472
|
-
|
|
8473
|
-
function hasClass(elem, cls) {
|
|
8474
|
-
return elem && elem.className && elem.className.match && elem.className.match(getClsRE(cls));
|
|
8475
|
-
}
|
|
8476
|
-
|
|
8477
|
-
function removeClass(elem, cls) {
|
|
8478
|
-
if (elem && hasClass(elem, cls)) {
|
|
8479
|
-
elem.className = elem.className.replace(getClsRE(cls), '');
|
|
8480
|
-
}
|
|
8481
|
-
}
|
|
8482
|
-
|
|
8483
|
-
function getDomNode() {
|
|
8484
|
-
var documentElement = document.documentElement;
|
|
8485
|
-
var bodyElem = document.body;
|
|
8486
|
-
return {
|
|
8487
|
-
scrollTop: documentElement.scrollTop || bodyElem.scrollTop,
|
|
8488
|
-
scrollLeft: documentElement.scrollLeft || bodyElem.scrollLeft,
|
|
8489
|
-
visibleHeight: documentElement.clientHeight || bodyElem.clientHeight,
|
|
8490
|
-
visibleWidth: documentElement.clientWidth || bodyElem.clientWidth
|
|
8491
|
-
};
|
|
8492
|
-
}
|
|
8493
|
-
|
|
8494
|
-
function getOffsetHeight(elem) {
|
|
8495
|
-
return elem ? elem.offsetHeight : 0;
|
|
8496
|
-
}
|
|
8497
|
-
function getPaddingTopBottomSize(elem) {
|
|
8498
|
-
if (elem) {
|
|
8499
|
-
var computedStyle = getComputedStyle(elem);
|
|
8500
|
-
var paddingTop = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.toNumber(computedStyle.paddingTop);
|
|
8501
|
-
var paddingBottom = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.toNumber(computedStyle.paddingBottom);
|
|
8502
|
-
return paddingTop + paddingBottom;
|
|
8503
|
-
}
|
|
8504
|
-
|
|
8505
|
-
return 0;
|
|
8506
|
-
}
|
|
8507
|
-
function setScrollTop(elem, scrollTop) {
|
|
8508
|
-
if (elem) {
|
|
8509
|
-
elem.scrollTop = scrollTop;
|
|
8510
|
-
}
|
|
8511
|
-
}
|
|
8512
|
-
function setScrollLeft(elem, scrollLeft) {
|
|
8513
|
-
if (elem) {
|
|
8514
|
-
elem.scrollLeft = scrollLeft;
|
|
8515
|
-
}
|
|
8516
|
-
} // export function setScrollLeftAndTop (elem, scrollLeft, scrollTop) {
|
|
8517
|
-
// if (elem) {
|
|
8518
|
-
// elem.scrollLeft = scrollLeft
|
|
8519
|
-
// elem.scrollTop = scrollTop
|
|
8520
|
-
// }
|
|
8521
|
-
// }
|
|
8522
|
-
|
|
8523
|
-
function isNodeElement(elem) {
|
|
8524
|
-
return elem && elem.nodeType === 1;
|
|
8525
|
-
}
|
|
8526
|
-
|
|
8527
|
-
var DomTools = {
|
|
8528
|
-
browse: browse,
|
|
8529
|
-
isPx: function isPx(val) {
|
|
8530
|
-
return val && /^\d+(px)?$/.test(val);
|
|
8531
|
-
},
|
|
8532
|
-
isScale: isScale,
|
|
8533
|
-
hasClass: hasClass,
|
|
8534
|
-
removeClass: removeClass,
|
|
8535
|
-
addClass: function addClass(elem, cls) {
|
|
8536
|
-
if (elem && !hasClass(elem, cls)) {
|
|
8537
|
-
removeClass(elem, cls);
|
|
8538
|
-
elem.className = "".concat(elem.className, " ").concat(cls);
|
|
8539
|
-
}
|
|
8540
|
-
},
|
|
8541
|
-
updateCellTitle: function updateCellTitle(overflowElem, column) {
|
|
8542
|
-
var content = column.type === 'html' ? overflowElem.innerText : overflowElem.textContent;
|
|
8543
|
-
|
|
8544
|
-
if (overflowElem.getAttribute('title') !== content) {
|
|
8545
|
-
overflowElem.setAttribute('title', content);
|
|
8546
|
-
}
|
|
8547
|
-
},
|
|
8548
|
-
rowToVisible: function rowToVisible($xetable, row) {
|
|
8549
|
-
var tableBody = $xetable.$refs.tableBody;
|
|
8550
|
-
var bodyElem = tableBody ? tableBody.$el : null;
|
|
8551
|
-
|
|
8552
|
-
if (bodyElem) {
|
|
8553
|
-
var trElem = bodyElem.querySelector("[rowid=\"".concat(dom_getRowid($xetable, row), "\"]"));
|
|
8554
|
-
|
|
8555
|
-
if (trElem) {
|
|
8556
|
-
var bodyHeight = bodyElem.clientHeight;
|
|
8557
|
-
var bodySrcollTop = bodyElem.scrollTop;
|
|
8558
|
-
var trOffsetTop = trElem.offsetTop + (trElem.offsetParent ? trElem.offsetParent.offsetTop : 0);
|
|
8559
|
-
var trHeight = trElem.clientHeight; // 检测行是否在可视区中
|
|
8560
|
-
|
|
8561
|
-
if (trOffsetTop < bodySrcollTop || trOffsetTop > bodySrcollTop + bodyHeight) {
|
|
8562
|
-
// 向上定位
|
|
8563
|
-
return $xetable.scrollTo(null, trOffsetTop);
|
|
8564
|
-
} else if (trOffsetTop + trHeight >= bodyHeight + bodySrcollTop) {
|
|
8565
|
-
// 向下定位
|
|
8566
|
-
return $xetable.scrollTo(null, bodySrcollTop + trHeight);
|
|
8567
|
-
}
|
|
8568
|
-
} else {
|
|
8569
|
-
// 如果是虚拟渲染跨行滚动
|
|
8570
|
-
if ($xetable.scrollYLoad) {
|
|
8571
|
-
return $xetable.scrollTo(null, ($xetable.afterFullData.indexOf(row) - 1) * $xetable.scrollYStore.rowHeight);
|
|
8572
|
-
}
|
|
8573
|
-
}
|
|
8574
|
-
}
|
|
8575
|
-
|
|
8576
|
-
return Promise.resolve();
|
|
8577
|
-
},
|
|
8578
|
-
colToVisible: function colToVisible($xetable, column) {
|
|
8579
|
-
var tableBody = $xetable.$refs.tableBody;
|
|
8580
|
-
var bodyElem = tableBody ? tableBody.$el : null;
|
|
8581
|
-
|
|
8582
|
-
if (bodyElem) {
|
|
8583
|
-
var tdElem = bodyElem.querySelector(".".concat(column.id));
|
|
8584
|
-
|
|
8585
|
-
if (tdElem) {
|
|
8586
|
-
var bodyWidth = bodyElem.clientWidth;
|
|
8587
|
-
var bodySrcollLeft = bodyElem.scrollLeft;
|
|
8588
|
-
var tdOffsetLeft = tdElem.offsetLeft + (tdElem.offsetParent ? tdElem.offsetParent.offsetLeft : 0);
|
|
8589
|
-
var tdWidth = tdElem.clientWidth; // 检测行是否在可视区中
|
|
8590
|
-
|
|
8591
|
-
if (tdOffsetLeft < bodySrcollLeft || tdOffsetLeft > bodySrcollLeft + bodyWidth) {
|
|
8592
|
-
// 向左定位
|
|
8593
|
-
return $xetable.scrollTo(tdOffsetLeft);
|
|
8594
|
-
} else if (tdOffsetLeft + tdWidth >= bodyWidth + bodySrcollLeft) {
|
|
8595
|
-
// 向右定位
|
|
8596
|
-
return $xetable.scrollTo(bodySrcollLeft + tdWidth);
|
|
8597
|
-
}
|
|
8598
|
-
} else {
|
|
8599
|
-
// 如果是虚拟渲染跨行滚动
|
|
8600
|
-
if ($xetable.scrollXLoad) {
|
|
8601
|
-
var visibleColumn = $xetable.visibleColumn;
|
|
8602
|
-
var scrollLeft = 0;
|
|
8603
|
-
|
|
8604
|
-
for (var index = 0; index < visibleColumn.length; index++) {
|
|
8605
|
-
if (visibleColumn[index] === column) {
|
|
8606
|
-
break;
|
|
8607
|
-
}
|
|
8608
|
-
|
|
8609
|
-
scrollLeft += visibleColumn[index].renderWidth;
|
|
8610
|
-
}
|
|
8611
|
-
|
|
8612
|
-
return $xetable.scrollTo(scrollLeft);
|
|
8613
|
-
}
|
|
8614
|
-
}
|
|
8615
|
-
}
|
|
8616
|
-
|
|
8617
|
-
return Promise.resolve();
|
|
8618
|
-
},
|
|
8619
|
-
getDomNode: getDomNode,
|
|
8620
|
-
|
|
8621
|
-
/**
|
|
8622
|
-
* 检查触发源是否属于目标节点
|
|
8623
|
-
*/
|
|
8624
|
-
getEventTargetNode: function getEventTargetNode(evnt, container, queryCls, queryMethod) {
|
|
8625
|
-
var targetElem;
|
|
8626
|
-
var target = evnt.target;
|
|
8627
|
-
|
|
8628
|
-
while (target && target.nodeType && target !== document) {
|
|
8629
|
-
if (queryCls && hasClass(target, queryCls) && (!queryMethod || queryMethod(target))) {
|
|
8630
|
-
targetElem = target;
|
|
8631
|
-
} else if (target === container) {
|
|
8632
|
-
return {
|
|
8633
|
-
flag: queryCls ? !!targetElem : true,
|
|
8634
|
-
container: container,
|
|
8635
|
-
targetElem: targetElem
|
|
8636
|
-
};
|
|
8637
|
-
}
|
|
8638
|
-
|
|
8639
|
-
target = target.parentNode;
|
|
8640
|
-
}
|
|
8641
|
-
|
|
8642
|
-
return {
|
|
8643
|
-
flag: false
|
|
8644
|
-
};
|
|
8645
|
-
},
|
|
8646
|
-
|
|
8647
|
-
/**
|
|
8648
|
-
* 获取元素相对于 document 的位置
|
|
8649
|
-
*/
|
|
8650
|
-
getOffsetPos: function getOffsetPos(elem, container) {
|
|
8651
|
-
return getNodeOffset(elem, container, {
|
|
8652
|
-
left: 0,
|
|
8653
|
-
top: 0
|
|
8654
|
-
});
|
|
8655
|
-
},
|
|
8656
|
-
getAbsolutePos: function getAbsolutePos(elem) {
|
|
8657
|
-
var bounding = elem.getBoundingClientRect();
|
|
8658
|
-
var boundingTop = bounding.top;
|
|
8659
|
-
var boundingLeft = bounding.left;
|
|
8660
|
-
|
|
8661
|
-
var _getDomNode = getDomNode(),
|
|
8662
|
-
scrollTop = _getDomNode.scrollTop,
|
|
8663
|
-
scrollLeft = _getDomNode.scrollLeft,
|
|
8664
|
-
visibleHeight = _getDomNode.visibleHeight,
|
|
8665
|
-
visibleWidth = _getDomNode.visibleWidth;
|
|
8666
|
-
|
|
8667
|
-
return {
|
|
8668
|
-
boundingTop: boundingTop,
|
|
8669
|
-
top: scrollTop + boundingTop,
|
|
8670
|
-
boundingLeft: boundingLeft,
|
|
8671
|
-
left: scrollLeft + boundingLeft,
|
|
8672
|
-
visibleHeight: visibleHeight,
|
|
8673
|
-
visibleWidth: visibleWidth
|
|
8674
|
-
};
|
|
8675
|
-
},
|
|
8676
|
-
scrollToView: function scrollToView(elem) {
|
|
8677
|
-
var scrollIntoViewIfNeeded = 'scrollIntoViewIfNeeded';
|
|
8678
|
-
var scrollIntoView = 'scrollIntoView';
|
|
8679
|
-
|
|
8680
|
-
if (elem) {
|
|
8681
|
-
if (elem[scrollIntoViewIfNeeded]) {
|
|
8682
|
-
elem[scrollIntoViewIfNeeded]();
|
|
8683
|
-
} else if (elem[scrollIntoView]) {
|
|
8684
|
-
elem[scrollIntoView]();
|
|
8685
|
-
}
|
|
8686
|
-
}
|
|
8687
|
-
},
|
|
8688
|
-
triggerEvent: function triggerEvent(targetElem, type) {
|
|
8689
|
-
if (targetElem) {
|
|
8690
|
-
targetElem.dispatchEvent(new Event(type));
|
|
8691
|
-
}
|
|
8692
|
-
},
|
|
8693
|
-
calcHeight: function calcHeight($xetable, key) {
|
|
8694
|
-
var val = $xetable[key];
|
|
8695
|
-
var num = 0;
|
|
8696
|
-
|
|
8697
|
-
if (val) {
|
|
8698
|
-
if (val === 'auto') {
|
|
8699
|
-
num = $xetable.parentHeight;
|
|
8700
|
-
} else {
|
|
8701
|
-
var excludeHeight = $xetable.getExcludeHeight();
|
|
8702
|
-
|
|
8703
|
-
if (isScale(val)) {
|
|
8704
|
-
num = Math.floor((external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.toInteger(val) || 1) / 100 * $xetable.parentHeight);
|
|
8705
|
-
} else {
|
|
8706
|
-
num = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.toNumber(val);
|
|
8707
|
-
}
|
|
8708
|
-
|
|
8709
|
-
num = Math.max(40, num - excludeHeight);
|
|
8710
|
-
}
|
|
8711
|
-
}
|
|
8712
|
-
|
|
8713
|
-
return num;
|
|
8714
|
-
},
|
|
8715
|
-
isNodeElement: isNodeElement
|
|
8716
|
-
};
|
|
8717
|
-
/* harmony default export */ var dom = (DomTools);
|
|
8718
|
-
// CONCATENATED MODULE: ./packages/tools/src/event.js
|
|
8719
|
-
|
|
8720
|
-
|
|
8721
|
-
var EVENT_KEYS = {
|
|
8722
|
-
F2: 'F2',
|
|
8723
|
-
ESCAPE: 'Escape',
|
|
8724
|
-
ENTER: 'Enter',
|
|
8725
|
-
TAB: 'Tab',
|
|
8726
|
-
DELETE: 'Delete',
|
|
8727
|
-
BACKSPACE: 'Backspace',
|
|
8728
|
-
SPACEBAR: ' ',
|
|
8729
|
-
CONTEXT_MENU: 'ContextMenu',
|
|
8730
|
-
ARROW_UP: 'ArrowUp',
|
|
8731
|
-
ARROW_DOWN: 'ArrowDown',
|
|
8732
|
-
ARROW_LEFT: 'ArrowLeft',
|
|
8733
|
-
ARROW_RIGHT: 'ArrowRight',
|
|
8734
|
-
PAGE_UP: 'PageUp',
|
|
8735
|
-
PAGE_DOWN: 'PageDown'
|
|
8736
|
-
};
|
|
8737
|
-
var convertEventKeys = {
|
|
8738
|
-
' ': 'Spacebar',
|
|
8739
|
-
Apps: EVENT_KEYS.CONTEXT_MENU,
|
|
8740
|
-
Del: EVENT_KEYS.DELETE,
|
|
8741
|
-
Up: EVENT_KEYS.ARROW_UP,
|
|
8742
|
-
Down: EVENT_KEYS.ARROW_DOWN,
|
|
8743
|
-
Left: EVENT_KEYS.ARROW_LEFT,
|
|
8744
|
-
Right: EVENT_KEYS.ARROW_RIGHT
|
|
8745
|
-
}; // 监听全局事件
|
|
8746
|
-
|
|
8747
|
-
var wheelName = browse.firefox ? 'DOMMouseScroll' : 'mousewheel';
|
|
8748
|
-
var eventStore = [];
|
|
8749
|
-
var hasEventKey = function hasEventKey(evnt, targetKey) {
|
|
8750
|
-
var key = evnt.key;
|
|
8751
|
-
targetKey = targetKey.toLowerCase();
|
|
8752
|
-
return key ? targetKey === key.toLowerCase() || !!(convertEventKeys[key] && convertEventKeys[key].toLowerCase() === targetKey) : false;
|
|
8753
|
-
};
|
|
8754
|
-
var GlobalEvent = {
|
|
8755
|
-
on: function on(comp, type, cb) {
|
|
8756
|
-
if (cb) {
|
|
8757
|
-
eventStore.push({
|
|
8758
|
-
comp: comp,
|
|
8759
|
-
type: type,
|
|
8760
|
-
cb: cb
|
|
8761
|
-
});
|
|
8762
|
-
}
|
|
8763
|
-
},
|
|
8764
|
-
off: function off(comp, type) {
|
|
8765
|
-
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.remove(eventStore, function (item) {
|
|
8766
|
-
return item.comp === comp && item.type === type;
|
|
8767
|
-
});
|
|
8768
|
-
},
|
|
8769
|
-
trigger: function trigger(evnt) {
|
|
8770
|
-
var isWheel = evnt.type === wheelName;
|
|
8771
|
-
eventStore.forEach(function (_ref) {
|
|
8772
|
-
var comp = _ref.comp,
|
|
8773
|
-
type = _ref.type,
|
|
8774
|
-
cb = _ref.cb;
|
|
8775
|
-
|
|
8776
|
-
// 如果被取消冒泡,不再执行
|
|
8777
|
-
if (!evnt.cancelBubble) {
|
|
8778
|
-
if (type === evnt.type || isWheel && type === 'mousewheel') {
|
|
8779
|
-
cb.call(comp, evnt);
|
|
8780
|
-
}
|
|
8781
|
-
}
|
|
8782
|
-
});
|
|
8783
|
-
},
|
|
8784
|
-
eqKeypad: function eqKeypad(evnt, keyVal) {
|
|
8785
|
-
var key = evnt.key;
|
|
8786
|
-
|
|
8787
|
-
if (keyVal.toLowerCase() === key.toLowerCase()) {
|
|
8788
|
-
return true;
|
|
8789
|
-
}
|
|
8790
|
-
|
|
8791
|
-
return false;
|
|
8792
|
-
}
|
|
8793
|
-
};
|
|
8794
|
-
|
|
8795
|
-
if (browse.isDoc) {
|
|
8796
|
-
if (!browse.msie) {
|
|
8797
|
-
document.addEventListener('copy', GlobalEvent.trigger, false);
|
|
8798
|
-
document.addEventListener('cut', GlobalEvent.trigger, false);
|
|
8799
|
-
document.addEventListener('paste', GlobalEvent.trigger, false);
|
|
8800
|
-
}
|
|
8801
|
-
|
|
8802
|
-
document.addEventListener('keydown', GlobalEvent.trigger, false);
|
|
8803
|
-
document.addEventListener('contextmenu', GlobalEvent.trigger, false);
|
|
8804
|
-
window.addEventListener('mousedown', GlobalEvent.trigger, false);
|
|
8805
|
-
window.addEventListener('blur', GlobalEvent.trigger, false);
|
|
8806
|
-
window.addEventListener('resize', GlobalEvent.trigger, false);
|
|
8807
|
-
window.addEventListener(wheelName, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.throttle(GlobalEvent.trigger, 100, {
|
|
8808
|
-
leading: true,
|
|
8809
|
-
trailing: false
|
|
8810
|
-
}), false);
|
|
8811
|
-
}
|
|
8812
|
-
|
|
8813
|
-
/* harmony default export */ var src_event = (GlobalEvent);
|
|
8814
|
-
// CONCATENATED MODULE: ./packages/tools/src/resize.js
|
|
8815
|
-
|
|
8816
|
-
|
|
8817
|
-
|
|
8818
|
-
|
|
8819
|
-
|
|
8820
|
-
/**
|
|
8821
|
-
* 监听 resize 事件
|
|
8822
|
-
* 如果项目中已使用了 resize-observer-polyfill,那么只需要将方法定义全局,该组件就会自动使用
|
|
8823
|
-
*/
|
|
8824
|
-
|
|
8825
|
-
var resizeTimeout;
|
|
8826
|
-
var resize_eventStore = [];
|
|
8827
|
-
var defaultInterval = 500;
|
|
8828
|
-
|
|
8829
|
-
function eventHandle() {
|
|
8830
|
-
if (resize_eventStore.length) {
|
|
8831
|
-
resize_eventStore.forEach(function (item) {
|
|
8832
|
-
item.tarList.forEach(function (observer) {
|
|
8833
|
-
var target = observer.target,
|
|
8834
|
-
width = observer.width,
|
|
8835
|
-
heighe = observer.heighe;
|
|
8836
|
-
var clientWidth = target.clientWidth;
|
|
8837
|
-
var clientHeight = target.clientHeight;
|
|
8838
|
-
var rWidth = clientWidth && width !== clientWidth;
|
|
8839
|
-
var rHeight = clientHeight && heighe !== clientHeight;
|
|
8840
|
-
|
|
8841
|
-
if (rWidth || rHeight) {
|
|
8842
|
-
observer.width = clientWidth;
|
|
8843
|
-
observer.heighe = clientHeight;
|
|
8844
|
-
setTimeout(item.callback);
|
|
8845
|
-
}
|
|
8846
|
-
});
|
|
8847
|
-
});
|
|
8848
|
-
/* eslint-disable @typescript-eslint/no-use-before-define */
|
|
8849
|
-
|
|
8850
|
-
eventListener();
|
|
8851
|
-
}
|
|
8852
|
-
}
|
|
8853
|
-
|
|
8854
|
-
function eventListener() {
|
|
8855
|
-
clearTimeout(resizeTimeout);
|
|
8856
|
-
resizeTimeout = setTimeout(eventHandle, conf.resizeInterval || defaultInterval);
|
|
8857
|
-
}
|
|
8858
|
-
|
|
8859
|
-
var resize_ResizeObserverPolyfill = /*#__PURE__*/function () {
|
|
8860
|
-
function ResizeObserverPolyfill(callback) {
|
|
8861
|
-
_classCallCheck(this, ResizeObserverPolyfill);
|
|
8862
|
-
|
|
8863
|
-
this.tarList = [];
|
|
8864
|
-
this.callback = callback;
|
|
8865
|
-
}
|
|
8866
|
-
|
|
8867
|
-
_createClass(ResizeObserverPolyfill, [{
|
|
8868
|
-
key: "observe",
|
|
8869
|
-
value: function observe(target) {
|
|
8870
|
-
var _this = this;
|
|
8871
|
-
|
|
8872
|
-
if (target) {
|
|
8873
|
-
if (!this.tarList.some(function (observer) {
|
|
8874
|
-
return observer.target === target;
|
|
8875
|
-
})) {
|
|
8876
|
-
this.tarList.push({
|
|
8877
|
-
target: target,
|
|
8878
|
-
width: target.clientWidth,
|
|
8879
|
-
heighe: target.clientHeight
|
|
8880
|
-
});
|
|
8881
|
-
}
|
|
8882
|
-
|
|
8883
|
-
if (!resize_eventStore.length) {
|
|
8884
|
-
eventListener();
|
|
8885
|
-
}
|
|
8886
|
-
|
|
8887
|
-
if (!resize_eventStore.some(function (item) {
|
|
8888
|
-
return item === _this;
|
|
8889
|
-
})) {
|
|
8890
|
-
resize_eventStore.push(this);
|
|
8891
|
-
}
|
|
8892
|
-
}
|
|
8893
|
-
}
|
|
8894
|
-
}, {
|
|
8895
|
-
key: "unobserve",
|
|
8896
|
-
value: function unobserve(target) {
|
|
8897
|
-
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.remove(resize_eventStore, function (item) {
|
|
8898
|
-
return item.tarList.some(function (observer) {
|
|
8899
|
-
return observer.target === target;
|
|
8900
|
-
});
|
|
8901
|
-
});
|
|
8902
|
-
}
|
|
8903
|
-
}, {
|
|
8904
|
-
key: "disconnect",
|
|
8905
|
-
value: function disconnect() {
|
|
8906
|
-
var _this2 = this;
|
|
8907
|
-
|
|
8908
|
-
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.remove(resize_eventStore, function (item) {
|
|
8909
|
-
return item === _this2;
|
|
8910
|
-
});
|
|
8911
|
-
}
|
|
8912
|
-
}]);
|
|
8913
|
-
|
|
8914
|
-
return ResizeObserverPolyfill;
|
|
8915
|
-
}();
|
|
8916
|
-
|
|
8917
|
-
function createResizeEvent(callback) {
|
|
8918
|
-
if (window.ResizeObserver) {
|
|
8919
|
-
return new window.ResizeObserver(callback);
|
|
8920
|
-
}
|
|
8921
|
-
|
|
8922
|
-
return new resize_ResizeObserverPolyfill(callback);
|
|
8923
|
-
}
|
|
8924
|
-
// CONCATENATED MODULE: ./packages/tools/index.js
|
|
8925
|
-
|
|
8926
|
-
|
|
8927
|
-
|
|
8928
|
-
|
|
8929
|
-
|
|
8930
|
-
|
|
8931
|
-
|
|
8932
|
-
/* harmony default export */ var packages_tools = ({
|
|
8933
|
-
UtilTools: utils,
|
|
8934
|
-
DomTools: dom,
|
|
8935
|
-
GlobalEvent: src_event
|
|
8936
|
-
});
|
|
8937
|
-
// CONCATENATED MODULE: ./packages/v-x-e-table/src/interceptor.js
|
|
8938
|
-
|
|
8939
|
-
|
|
8940
|
-
|
|
8941
|
-
|
|
8942
|
-
|
|
8943
|
-
|
|
8944
|
-
|
|
8945
|
-
|
|
8946
|
-
function toType(type) {
|
|
8947
|
-
return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.toValueString(type).replace('_', '').toLowerCase();
|
|
8948
|
-
}
|
|
8949
|
-
|
|
8950
|
-
var eventTypes = 'created,mounted,activated,beforeDestroy,destroyed,event.clearActived,event.clearFilter,event.clearAreas,event.showMenu,event.keydown,event.export,event.import'.split(',').map(toType);
|
|
8951
|
-
var storeMap = {};
|
|
8952
|
-
var interceptor = {
|
|
8953
|
-
mixin: function mixin(map) {
|
|
8954
|
-
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.each(map, function (callback, type) {
|
|
8955
|
-
return interceptor.add(type, callback);
|
|
8956
|
-
});
|
|
8957
|
-
return interceptor;
|
|
8958
|
-
},
|
|
8959
|
-
get: function get(type) {
|
|
8960
|
-
return storeMap[toType(type)] || [];
|
|
8961
|
-
},
|
|
8962
|
-
add: function add(type, callback) {
|
|
8963
|
-
type = toType(type); // 检测类型
|
|
8964
|
-
|
|
8965
|
-
if (false) {}
|
|
8966
|
-
|
|
8967
|
-
if (callback && eventTypes.indexOf(type) > -1) {
|
|
8968
|
-
var eList = storeMap[type];
|
|
8969
|
-
|
|
8970
|
-
if (!eList) {
|
|
8971
|
-
eList = storeMap[type] = [];
|
|
8972
|
-
} // 检测重复
|
|
8973
|
-
|
|
8974
|
-
|
|
8975
|
-
if (false) {}
|
|
8976
|
-
|
|
8977
|
-
eList.push(callback);
|
|
8978
|
-
}
|
|
8979
|
-
|
|
8980
|
-
return interceptor;
|
|
8981
|
-
},
|
|
8982
|
-
delete: function _delete(type, callback) {
|
|
8983
|
-
var eList = storeMap[toType(type)];
|
|
8984
|
-
|
|
8985
|
-
if (eList) {
|
|
8986
|
-
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.remove(eList, function (fn) {
|
|
8987
|
-
return fn === callback;
|
|
8988
|
-
});
|
|
8989
|
-
}
|
|
8990
|
-
|
|
8991
|
-
return interceptor;
|
|
8992
|
-
}
|
|
8993
|
-
};
|
|
8994
|
-
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
8995
|
-
function _defineProperty(obj, key, value) {
|
|
8996
|
-
if (key in obj) {
|
|
8997
|
-
Object.defineProperty(obj, key, {
|
|
8998
|
-
value: value,
|
|
8999
|
-
enumerable: true,
|
|
9000
|
-
configurable: true,
|
|
9001
|
-
writable: true
|
|
9002
|
-
});
|
|
9003
|
-
} else {
|
|
9004
|
-
obj[key] = value;
|
|
9005
|
-
}
|
|
9006
|
-
|
|
9007
|
-
return obj;
|
|
9008
|
-
}
|
|
9009
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.find.js
|
|
9010
|
-
var es_array_find = __webpack_require__("7db0");
|
|
9051
|
+
// CONCATENATED MODULE: ./packages/v-x-e-table/src/renderer.js
|
|
9011
9052
|
|
|
9012
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.number.to-fixed.js
|
|
9013
|
-
var es_number_to_fixed = __webpack_require__("b680");
|
|
9014
9053
|
|
|
9015
|
-
// CONCATENATED MODULE: ./packages/v-x-e-table/src/renderer.js
|
|
9016
9054
|
|
|
9017
9055
|
|
|
9018
9056
|
|
|
@@ -9139,7 +9177,7 @@ function getCellLabelVNs(h, renderOpts, params, cellLabel) {
|
|
|
9139
9177
|
class: 'vxe-cell--label'
|
|
9140
9178
|
}, placeholder && isEmptyValue(cellLabel) ? [h('span', {
|
|
9141
9179
|
class: 'vxe-cell--placeholder'
|
|
9142
|
-
},
|
|
9180
|
+
}, utils.formatText(getFuncText(placeholder), 1))] : utils.formatText(cellLabel, 1))];
|
|
9143
9181
|
}
|
|
9144
9182
|
|
|
9145
9183
|
function getNativeOns(renderOpts, params) {
|
|
@@ -9216,7 +9254,7 @@ function getEditOns(renderOpts, params) {
|
|
|
9216
9254
|
return getOns(renderOpts, params, function (cellValue) {
|
|
9217
9255
|
// 处理 model 值双向绑定
|
|
9218
9256
|
if (isImmediate) {
|
|
9219
|
-
|
|
9257
|
+
utils.setCellValue(row, column, cellValue);
|
|
9220
9258
|
} else {
|
|
9221
9259
|
model.update = true;
|
|
9222
9260
|
model.value = cellValue;
|
|
@@ -9263,7 +9301,7 @@ function getNativeEditOns(renderOpts, params) {
|
|
|
9263
9301
|
var cellValue = evnt.target.value;
|
|
9264
9302
|
|
|
9265
9303
|
if (isImmediateCell(renderOpts, params)) {
|
|
9266
|
-
|
|
9304
|
+
utils.setCellValue(row, column, cellValue);
|
|
9267
9305
|
} else {
|
|
9268
9306
|
model.update = true;
|
|
9269
9307
|
model.value = cellValue;
|
|
@@ -9308,7 +9346,7 @@ function nativeEditRender(h, renderOpts, params) {
|
|
|
9308
9346
|
column = params.column;
|
|
9309
9347
|
var name = renderOpts.name;
|
|
9310
9348
|
var attrs = getNativeAttrs(renderOpts);
|
|
9311
|
-
var cellValue = isImmediateCell(renderOpts, params) ?
|
|
9349
|
+
var cellValue = isImmediateCell(renderOpts, params) ? utils.getCellValue(row, column) : column.model.value;
|
|
9312
9350
|
return [h(name, {
|
|
9313
9351
|
class: "vxe-default-".concat(name),
|
|
9314
9352
|
attrs: attrs,
|
|
@@ -9322,7 +9360,7 @@ function nativeEditRender(h, renderOpts, params) {
|
|
|
9322
9360
|
function defaultEditRender(h, renderOpts, params) {
|
|
9323
9361
|
var row = params.row,
|
|
9324
9362
|
column = params.column;
|
|
9325
|
-
var cellValue =
|
|
9363
|
+
var cellValue = utils.getCellValue(row, column);
|
|
9326
9364
|
return [h(getDefaultComponentName(renderOpts), {
|
|
9327
9365
|
props: getCellEditProps(renderOpts, params, cellValue),
|
|
9328
9366
|
on: getEditOns(renderOpts, params),
|
|
@@ -9372,7 +9410,7 @@ function renderNativeOptions(h, options, renderOpts, params) {
|
|
|
9372
9410
|
var labelProp = optionProps.label || 'label';
|
|
9373
9411
|
var valueProp = optionProps.value || 'value';
|
|
9374
9412
|
var disabledProp = optionProps.disabled || 'disabled';
|
|
9375
|
-
var cellValue = isImmediateCell(renderOpts, params) ?
|
|
9413
|
+
var cellValue = isImmediateCell(renderOpts, params) ? utils.getCellValue(row, column) : column.model.value;
|
|
9376
9414
|
return options.map(function (option, oIndex) {
|
|
9377
9415
|
return h('option', {
|
|
9378
9416
|
key: oIndex,
|
|
@@ -9443,7 +9481,7 @@ function defaultSelectEditRender(h, renderOpts, params) {
|
|
|
9443
9481
|
optionProps = renderOpts.optionProps,
|
|
9444
9482
|
optionGroups = renderOpts.optionGroups,
|
|
9445
9483
|
optionGroupProps = renderOpts.optionGroupProps;
|
|
9446
|
-
var cellValue =
|
|
9484
|
+
var cellValue = utils.getCellValue(row, column);
|
|
9447
9485
|
return [h(getDefaultComponentName(renderOpts), {
|
|
9448
9486
|
props: getCellEditProps(renderOpts, params, cellValue, {
|
|
9449
9487
|
options: options,
|
|
@@ -9577,7 +9615,7 @@ function handleExportSelectMethod(params) {
|
|
|
9577
9615
|
var row = params.row,
|
|
9578
9616
|
column = params.column,
|
|
9579
9617
|
options = params.options;
|
|
9580
|
-
return options.original ?
|
|
9618
|
+
return options.original ? utils.getCellValue(row, column) : getSelectCellValue(column.editRender || column.cellRender, params);
|
|
9581
9619
|
}
|
|
9582
9620
|
/**
|
|
9583
9621
|
* 渲染表单-项中
|
|
@@ -9795,32 +9833,89 @@ var renderer = {
|
|
|
9795
9833
|
if (name && options) {
|
|
9796
9834
|
var renders = renderMap[name];
|
|
9797
9835
|
|
|
9798
|
-
if (renders) {
|
|
9799
|
-
// 检测是否覆盖
|
|
9800
|
-
if (false) {}
|
|
9836
|
+
if (renders) {
|
|
9837
|
+
// 检测是否覆盖
|
|
9838
|
+
if (false) {}
|
|
9839
|
+
|
|
9840
|
+
Object.assign(renders, options);
|
|
9841
|
+
} else {
|
|
9842
|
+
renderMap[name] = options;
|
|
9843
|
+
}
|
|
9844
|
+
}
|
|
9845
|
+
|
|
9846
|
+
return renderer;
|
|
9847
|
+
},
|
|
9848
|
+
delete: function _delete(name) {
|
|
9849
|
+
delete renderMap[name];
|
|
9850
|
+
return renderer;
|
|
9851
|
+
}
|
|
9852
|
+
};
|
|
9853
|
+
// CONCATENATED MODULE: ./packages/v-x-e-table/src/store.js
|
|
9854
|
+
|
|
9855
|
+
|
|
9856
|
+
|
|
9857
|
+
|
|
9858
|
+
|
|
9859
|
+
/**
|
|
9860
|
+
* 创建数据仓库
|
|
9861
|
+
*/
|
|
9862
|
+
|
|
9863
|
+
var store_Store = /*#__PURE__*/function () {
|
|
9864
|
+
function Store() {
|
|
9865
|
+
_classCallCheck(this, Store);
|
|
9866
|
+
|
|
9867
|
+
this.store = {};
|
|
9868
|
+
}
|
|
9801
9869
|
|
|
9802
|
-
|
|
9803
|
-
|
|
9804
|
-
|
|
9805
|
-
|
|
9870
|
+
_createClass(Store, [{
|
|
9871
|
+
key: "mixin",
|
|
9872
|
+
value: function mixin(map) {
|
|
9873
|
+
Object.assign(this.store, map);
|
|
9874
|
+
return Store;
|
|
9875
|
+
}
|
|
9876
|
+
}, {
|
|
9877
|
+
key: "get",
|
|
9878
|
+
value: function get(name) {
|
|
9879
|
+
return this.store[name];
|
|
9806
9880
|
}
|
|
9881
|
+
}, {
|
|
9882
|
+
key: "add",
|
|
9883
|
+
value: function add(name, render) {
|
|
9884
|
+
// 检测是否覆盖
|
|
9885
|
+
if (false) {}
|
|
9807
9886
|
|
|
9808
|
-
|
|
9809
|
-
|
|
9810
|
-
|
|
9811
|
-
|
|
9812
|
-
|
|
9813
|
-
|
|
9814
|
-
|
|
9887
|
+
this.store[name] = render;
|
|
9888
|
+
return Store;
|
|
9889
|
+
}
|
|
9890
|
+
}, {
|
|
9891
|
+
key: "delete",
|
|
9892
|
+
value: function _delete(name) {
|
|
9893
|
+
delete this.store[name];
|
|
9894
|
+
return Store;
|
|
9895
|
+
}
|
|
9896
|
+
}]);
|
|
9897
|
+
|
|
9898
|
+
return Store;
|
|
9899
|
+
}();
|
|
9900
|
+
|
|
9901
|
+
/* harmony default export */ var store = (store_Store);
|
|
9815
9902
|
// CONCATENATED MODULE: ./packages/v-x-e-table/src/commands.js
|
|
9816
9903
|
|
|
9904
|
+
|
|
9817
9905
|
var commands = new store();
|
|
9818
9906
|
|
|
9819
9907
|
if (false) {}
|
|
9820
9908
|
// CONCATENATED MODULE: ./packages/v-x-e-table/src/menus.js
|
|
9821
9909
|
|
|
9910
|
+
|
|
9822
9911
|
var menus = new store();
|
|
9823
9912
|
|
|
9913
|
+
if (false) {}
|
|
9914
|
+
// CONCATENATED MODULE: ./packages/v-x-e-table/src/formats.js
|
|
9915
|
+
|
|
9916
|
+
|
|
9917
|
+
var formats = new store();
|
|
9918
|
+
|
|
9824
9919
|
if (false) {}
|
|
9825
9920
|
// CONCATENATED MODULE: ./packages/v-x-e-table/src/setup.js
|
|
9826
9921
|
|
|
@@ -9844,6 +9939,7 @@ function setup(options) {
|
|
|
9844
9939
|
|
|
9845
9940
|
|
|
9846
9941
|
|
|
9942
|
+
|
|
9847
9943
|
var installedPlugins = [];
|
|
9848
9944
|
function use(Plugin, options) {
|
|
9849
9945
|
/* eslint-disable @typescript-eslint/no-use-before-define */
|
|
@@ -9934,6 +10030,7 @@ function _t(key, args) {
|
|
|
9934
10030
|
var v = 'v3';
|
|
9935
10031
|
var VXETable = {
|
|
9936
10032
|
v: v,
|
|
10033
|
+
version: "3.5.0-beta.0",
|
|
9937
10034
|
reg: reg,
|
|
9938
10035
|
use: use,
|
|
9939
10036
|
setup: setup,
|
|
@@ -9974,6 +10071,448 @@ var es_array_includes = __webpack_require__("caad");
|
|
|
9974
10071
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.includes.js
|
|
9975
10072
|
var es_string_includes = __webpack_require__("2532");
|
|
9976
10073
|
|
|
10074
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.fixed.js
|
|
10075
|
+
var es_string_fixed = __webpack_require__("c7cd");
|
|
10076
|
+
|
|
10077
|
+
// CONCATENATED MODULE: ./packages/table/src/columnInfo.js
|
|
10078
|
+
|
|
10079
|
+
|
|
10080
|
+
|
|
10081
|
+
|
|
10082
|
+
|
|
10083
|
+
|
|
10084
|
+
|
|
10085
|
+
|
|
10086
|
+
|
|
10087
|
+
|
|
10088
|
+
|
|
10089
|
+
var columnInfo_ColumnInfo = /*#__PURE__*/function () {
|
|
10090
|
+
/* eslint-disable @typescript-eslint/no-use-before-define */
|
|
10091
|
+
function ColumnInfo($xetable, _vm) {
|
|
10092
|
+
var _ref = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {},
|
|
10093
|
+
renderHeader = _ref.renderHeader,
|
|
10094
|
+
renderCell = _ref.renderCell,
|
|
10095
|
+
renderFooter = _ref.renderFooter,
|
|
10096
|
+
renderData = _ref.renderData;
|
|
10097
|
+
|
|
10098
|
+
_classCallCheck(this, ColumnInfo);
|
|
10099
|
+
|
|
10100
|
+
var $xegrid = $xetable.$xegrid;
|
|
10101
|
+
var proxyOpts = $xegrid ? $xegrid.proxyOpts : null;
|
|
10102
|
+
var formatter = _vm.formatter;
|
|
10103
|
+
var visible = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.isBoolean(_vm.visible) ? _vm.visible : true;
|
|
10104
|
+
|
|
10105
|
+
if (false) { var _globalFunc, globalFunc, types; }
|
|
10106
|
+
|
|
10107
|
+
Object.assign(this, {
|
|
10108
|
+
// 基本属性
|
|
10109
|
+
type: _vm.type,
|
|
10110
|
+
property: _vm.field,
|
|
10111
|
+
field: _vm.field,
|
|
10112
|
+
title: _vm.title,
|
|
10113
|
+
width: _vm.width,
|
|
10114
|
+
minWidth: _vm.minWidth,
|
|
10115
|
+
resizable: _vm.resizable,
|
|
10116
|
+
fixed: _vm.fixed,
|
|
10117
|
+
align: _vm.align,
|
|
10118
|
+
headerAlign: _vm.headerAlign,
|
|
10119
|
+
footerAlign: _vm.footerAlign,
|
|
10120
|
+
showOverflow: _vm.showOverflow,
|
|
10121
|
+
showHeaderOverflow: _vm.showHeaderOverflow,
|
|
10122
|
+
showFooterOverflow: _vm.showFooterOverflow,
|
|
10123
|
+
className: _vm.className,
|
|
10124
|
+
headerClassName: _vm.headerClassName,
|
|
10125
|
+
footerClassName: _vm.footerClassName,
|
|
10126
|
+
formatter: formatter,
|
|
10127
|
+
sortable: _vm.sortable,
|
|
10128
|
+
sortBy: _vm.sortBy,
|
|
10129
|
+
sortType: _vm.sortType,
|
|
10130
|
+
sortMethod: _vm.sortMethod,
|
|
10131
|
+
remoteSort: _vm.remoteSort,
|
|
10132
|
+
filters: toFilters(_vm.filters),
|
|
10133
|
+
filterMultiple: external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.isBoolean(_vm.filterMultiple) ? _vm.filterMultiple : true,
|
|
10134
|
+
filterMethod: _vm.filterMethod,
|
|
10135
|
+
filterResetMethod: _vm.filterResetMethod,
|
|
10136
|
+
filterRecoverMethod: _vm.filterRecoverMethod,
|
|
10137
|
+
filterRender: _vm.filterRender,
|
|
10138
|
+
treeNode: _vm.treeNode,
|
|
10139
|
+
cellType: _vm.cellType,
|
|
10140
|
+
cellRender: _vm.cellRender,
|
|
10141
|
+
editRender: _vm.editRender,
|
|
10142
|
+
contentRender: _vm.contentRender,
|
|
10143
|
+
exportMethod: _vm.exportMethod,
|
|
10144
|
+
footerExportMethod: _vm.footerExportMethod,
|
|
10145
|
+
titleHelp: _vm.titleHelp,
|
|
10146
|
+
// 自定义参数
|
|
10147
|
+
params: _vm.params,
|
|
10148
|
+
// 渲染属性
|
|
10149
|
+
id: _vm.colId || external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.uniqueId('col_'),
|
|
10150
|
+
parentId: null,
|
|
10151
|
+
visible: visible,
|
|
10152
|
+
// 内部属性(一旦被使用,将导致不可升级版本)
|
|
10153
|
+
halfVisible: false,
|
|
10154
|
+
defaultVisible: visible,
|
|
10155
|
+
checked: false,
|
|
10156
|
+
halfChecked: false,
|
|
10157
|
+
disabled: false,
|
|
10158
|
+
level: 1,
|
|
10159
|
+
rowSpan: 1,
|
|
10160
|
+
colSpan: 1,
|
|
10161
|
+
order: null,
|
|
10162
|
+
sortTime: 0,
|
|
10163
|
+
renderWidth: 0,
|
|
10164
|
+
renderHeight: 0,
|
|
10165
|
+
resizeWidth: 0,
|
|
10166
|
+
renderLeft: 0,
|
|
10167
|
+
renderArgs: [],
|
|
10168
|
+
// 渲染参数可用于扩展
|
|
10169
|
+
model: {},
|
|
10170
|
+
renderHeader: renderHeader || _vm.renderHeader,
|
|
10171
|
+
renderCell: renderCell || _vm.renderCell,
|
|
10172
|
+
renderFooter: renderFooter || _vm.renderFooter,
|
|
10173
|
+
renderData: renderData,
|
|
10174
|
+
// 单元格插槽,只对 grid 有效
|
|
10175
|
+
slots: _vm.slots
|
|
10176
|
+
});
|
|
10177
|
+
|
|
10178
|
+
if (proxyOpts && proxyOpts.beforeColumn) {
|
|
10179
|
+
proxyOpts.beforeColumn({
|
|
10180
|
+
$grid: $xegrid,
|
|
10181
|
+
column: this
|
|
10182
|
+
});
|
|
10183
|
+
}
|
|
10184
|
+
}
|
|
10185
|
+
|
|
10186
|
+
_createClass(ColumnInfo, [{
|
|
10187
|
+
key: "getTitle",
|
|
10188
|
+
value: function getTitle() {
|
|
10189
|
+
return getFuncText(this.title || (this.type === 'seq' ? conf.i18n('vxe.table.seqTitle') : ''));
|
|
10190
|
+
}
|
|
10191
|
+
}, {
|
|
10192
|
+
key: "getKey",
|
|
10193
|
+
value: function getKey() {
|
|
10194
|
+
return this.property || (this.type ? "type=".concat(this.type) : null);
|
|
10195
|
+
}
|
|
10196
|
+
}, {
|
|
10197
|
+
key: "update",
|
|
10198
|
+
value: function update(name, value) {
|
|
10199
|
+
// 不支持双向的属性
|
|
10200
|
+
if (name !== 'filters') {
|
|
10201
|
+
if (name === 'field') {
|
|
10202
|
+
// 兼容旧属性
|
|
10203
|
+
this.property = value;
|
|
10204
|
+
}
|
|
10205
|
+
|
|
10206
|
+
this[name] = value;
|
|
10207
|
+
}
|
|
10208
|
+
}
|
|
10209
|
+
}]);
|
|
10210
|
+
|
|
10211
|
+
return ColumnInfo;
|
|
10212
|
+
}();
|
|
10213
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.constructor.js
|
|
10214
|
+
var es_regexp_constructor = __webpack_require__("4d63");
|
|
10215
|
+
|
|
10216
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.to-string.js
|
|
10217
|
+
var es_regexp_to_string = __webpack_require__("25f0");
|
|
10218
|
+
|
|
10219
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.match.js
|
|
10220
|
+
var es_string_match = __webpack_require__("466d");
|
|
10221
|
+
|
|
10222
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.promise.js
|
|
10223
|
+
var es_promise = __webpack_require__("e6cf");
|
|
10224
|
+
|
|
10225
|
+
// CONCATENATED MODULE: ./packages/tools/dom.js
|
|
10226
|
+
|
|
10227
|
+
|
|
10228
|
+
|
|
10229
|
+
|
|
10230
|
+
|
|
10231
|
+
|
|
10232
|
+
|
|
10233
|
+
|
|
10234
|
+
|
|
10235
|
+
|
|
10236
|
+
var dom_getRowid = utils.getRowid;
|
|
10237
|
+
var browse = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.browse();
|
|
10238
|
+
var reClsMap = {};
|
|
10239
|
+
|
|
10240
|
+
function getClsRE(cls) {
|
|
10241
|
+
if (!reClsMap[cls]) {
|
|
10242
|
+
reClsMap[cls] = new RegExp("(?:^|\\s)".concat(cls, "(?!\\S)"), 'g');
|
|
10243
|
+
}
|
|
10244
|
+
|
|
10245
|
+
return reClsMap[cls];
|
|
10246
|
+
}
|
|
10247
|
+
|
|
10248
|
+
function getNodeOffset(elem, container, rest) {
|
|
10249
|
+
if (elem) {
|
|
10250
|
+
var parentElem = elem.parentNode;
|
|
10251
|
+
rest.top += elem.offsetTop;
|
|
10252
|
+
rest.left += elem.offsetLeft;
|
|
10253
|
+
|
|
10254
|
+
if (parentElem && parentElem !== document.documentElement && parentElem !== document.body) {
|
|
10255
|
+
rest.top -= parentElem.scrollTop;
|
|
10256
|
+
rest.left -= parentElem.scrollLeft;
|
|
10257
|
+
}
|
|
10258
|
+
|
|
10259
|
+
if (container && (elem === container || elem.offsetParent === container) ? 0 : elem.offsetParent) {
|
|
10260
|
+
return getNodeOffset(elem.offsetParent, container, rest);
|
|
10261
|
+
}
|
|
10262
|
+
}
|
|
10263
|
+
|
|
10264
|
+
return rest;
|
|
10265
|
+
}
|
|
10266
|
+
|
|
10267
|
+
function isScale(val) {
|
|
10268
|
+
return val && /^\d+%$/.test(val);
|
|
10269
|
+
}
|
|
10270
|
+
|
|
10271
|
+
function hasClass(elem, cls) {
|
|
10272
|
+
return elem && elem.className && elem.className.match && elem.className.match(getClsRE(cls));
|
|
10273
|
+
}
|
|
10274
|
+
|
|
10275
|
+
function removeClass(elem, cls) {
|
|
10276
|
+
if (elem && hasClass(elem, cls)) {
|
|
10277
|
+
elem.className = elem.className.replace(getClsRE(cls), '');
|
|
10278
|
+
}
|
|
10279
|
+
}
|
|
10280
|
+
|
|
10281
|
+
function getDomNode() {
|
|
10282
|
+
var documentElement = document.documentElement;
|
|
10283
|
+
var bodyElem = document.body;
|
|
10284
|
+
return {
|
|
10285
|
+
scrollTop: documentElement.scrollTop || bodyElem.scrollTop,
|
|
10286
|
+
scrollLeft: documentElement.scrollLeft || bodyElem.scrollLeft,
|
|
10287
|
+
visibleHeight: documentElement.clientHeight || bodyElem.clientHeight,
|
|
10288
|
+
visibleWidth: documentElement.clientWidth || bodyElem.clientWidth
|
|
10289
|
+
};
|
|
10290
|
+
}
|
|
10291
|
+
|
|
10292
|
+
function getOffsetHeight(elem) {
|
|
10293
|
+
return elem ? elem.offsetHeight : 0;
|
|
10294
|
+
}
|
|
10295
|
+
function getPaddingTopBottomSize(elem) {
|
|
10296
|
+
if (elem) {
|
|
10297
|
+
var computedStyle = getComputedStyle(elem);
|
|
10298
|
+
var paddingTop = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.toNumber(computedStyle.paddingTop);
|
|
10299
|
+
var paddingBottom = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.toNumber(computedStyle.paddingBottom);
|
|
10300
|
+
return paddingTop + paddingBottom;
|
|
10301
|
+
}
|
|
10302
|
+
|
|
10303
|
+
return 0;
|
|
10304
|
+
}
|
|
10305
|
+
function setScrollTop(elem, scrollTop) {
|
|
10306
|
+
if (elem) {
|
|
10307
|
+
elem.scrollTop = scrollTop;
|
|
10308
|
+
}
|
|
10309
|
+
}
|
|
10310
|
+
function setScrollLeft(elem, scrollLeft) {
|
|
10311
|
+
if (elem) {
|
|
10312
|
+
elem.scrollLeft = scrollLeft;
|
|
10313
|
+
}
|
|
10314
|
+
} // export function setScrollLeftAndTop (elem, scrollLeft, scrollTop) {
|
|
10315
|
+
// if (elem) {
|
|
10316
|
+
// elem.scrollLeft = scrollLeft
|
|
10317
|
+
// elem.scrollTop = scrollTop
|
|
10318
|
+
// }
|
|
10319
|
+
// }
|
|
10320
|
+
|
|
10321
|
+
function isNodeElement(elem) {
|
|
10322
|
+
return elem && elem.nodeType === 1;
|
|
10323
|
+
}
|
|
10324
|
+
|
|
10325
|
+
var DomTools = {
|
|
10326
|
+
browse: browse,
|
|
10327
|
+
isPx: function isPx(val) {
|
|
10328
|
+
return val && /^\d+(px)?$/.test(val);
|
|
10329
|
+
},
|
|
10330
|
+
isScale: isScale,
|
|
10331
|
+
hasClass: hasClass,
|
|
10332
|
+
removeClass: removeClass,
|
|
10333
|
+
addClass: function addClass(elem, cls) {
|
|
10334
|
+
if (elem && !hasClass(elem, cls)) {
|
|
10335
|
+
removeClass(elem, cls);
|
|
10336
|
+
elem.className = "".concat(elem.className, " ").concat(cls);
|
|
10337
|
+
}
|
|
10338
|
+
},
|
|
10339
|
+
updateCellTitle: function updateCellTitle(overflowElem, column) {
|
|
10340
|
+
var content = column.type === 'html' ? overflowElem.innerText : overflowElem.textContent;
|
|
10341
|
+
|
|
10342
|
+
if (overflowElem.getAttribute('title') !== content) {
|
|
10343
|
+
overflowElem.setAttribute('title', content);
|
|
10344
|
+
}
|
|
10345
|
+
},
|
|
10346
|
+
rowToVisible: function rowToVisible($xetable, row) {
|
|
10347
|
+
var tableBody = $xetable.$refs.tableBody;
|
|
10348
|
+
var bodyElem = tableBody ? tableBody.$el : null;
|
|
10349
|
+
|
|
10350
|
+
if (bodyElem) {
|
|
10351
|
+
var trElem = bodyElem.querySelector("[rowid=\"".concat(dom_getRowid($xetable, row), "\"]"));
|
|
10352
|
+
|
|
10353
|
+
if (trElem) {
|
|
10354
|
+
var bodyHeight = bodyElem.clientHeight;
|
|
10355
|
+
var bodySrcollTop = bodyElem.scrollTop;
|
|
10356
|
+
var trOffsetTop = trElem.offsetTop + (trElem.offsetParent ? trElem.offsetParent.offsetTop : 0);
|
|
10357
|
+
var trHeight = trElem.clientHeight; // 检测行是否在可视区中
|
|
10358
|
+
|
|
10359
|
+
if (trOffsetTop < bodySrcollTop || trOffsetTop > bodySrcollTop + bodyHeight) {
|
|
10360
|
+
// 向上定位
|
|
10361
|
+
return $xetable.scrollTo(null, trOffsetTop);
|
|
10362
|
+
} else if (trOffsetTop + trHeight >= bodyHeight + bodySrcollTop) {
|
|
10363
|
+
// 向下定位
|
|
10364
|
+
return $xetable.scrollTo(null, bodySrcollTop + trHeight);
|
|
10365
|
+
}
|
|
10366
|
+
} else {
|
|
10367
|
+
// 如果是虚拟渲染跨行滚动
|
|
10368
|
+
if ($xetable.scrollYLoad) {
|
|
10369
|
+
return $xetable.scrollTo(null, ($xetable.afterFullData.indexOf(row) - 1) * $xetable.scrollYStore.rowHeight);
|
|
10370
|
+
}
|
|
10371
|
+
}
|
|
10372
|
+
}
|
|
10373
|
+
|
|
10374
|
+
return Promise.resolve();
|
|
10375
|
+
},
|
|
10376
|
+
colToVisible: function colToVisible($xetable, column) {
|
|
10377
|
+
var tableBody = $xetable.$refs.tableBody;
|
|
10378
|
+
var bodyElem = tableBody ? tableBody.$el : null;
|
|
10379
|
+
|
|
10380
|
+
if (bodyElem) {
|
|
10381
|
+
var tdElem = bodyElem.querySelector(".".concat(column.id));
|
|
10382
|
+
|
|
10383
|
+
if (tdElem) {
|
|
10384
|
+
var bodyWidth = bodyElem.clientWidth;
|
|
10385
|
+
var bodySrcollLeft = bodyElem.scrollLeft;
|
|
10386
|
+
var tdOffsetLeft = tdElem.offsetLeft + (tdElem.offsetParent ? tdElem.offsetParent.offsetLeft : 0);
|
|
10387
|
+
var tdWidth = tdElem.clientWidth; // 检测行是否在可视区中
|
|
10388
|
+
|
|
10389
|
+
if (tdOffsetLeft < bodySrcollLeft || tdOffsetLeft > bodySrcollLeft + bodyWidth) {
|
|
10390
|
+
// 向左定位
|
|
10391
|
+
return $xetable.scrollTo(tdOffsetLeft);
|
|
10392
|
+
} else if (tdOffsetLeft + tdWidth >= bodyWidth + bodySrcollLeft) {
|
|
10393
|
+
// 向右定位
|
|
10394
|
+
return $xetable.scrollTo(bodySrcollLeft + tdWidth);
|
|
10395
|
+
}
|
|
10396
|
+
} else {
|
|
10397
|
+
// 如果是虚拟渲染跨行滚动
|
|
10398
|
+
if ($xetable.scrollXLoad) {
|
|
10399
|
+
var visibleColumn = $xetable.visibleColumn;
|
|
10400
|
+
var scrollLeft = 0;
|
|
10401
|
+
|
|
10402
|
+
for (var index = 0; index < visibleColumn.length; index++) {
|
|
10403
|
+
if (visibleColumn[index] === column) {
|
|
10404
|
+
break;
|
|
10405
|
+
}
|
|
10406
|
+
|
|
10407
|
+
scrollLeft += visibleColumn[index].renderWidth;
|
|
10408
|
+
}
|
|
10409
|
+
|
|
10410
|
+
return $xetable.scrollTo(scrollLeft);
|
|
10411
|
+
}
|
|
10412
|
+
}
|
|
10413
|
+
}
|
|
10414
|
+
|
|
10415
|
+
return Promise.resolve();
|
|
10416
|
+
},
|
|
10417
|
+
getDomNode: getDomNode,
|
|
10418
|
+
|
|
10419
|
+
/**
|
|
10420
|
+
* 检查触发源是否属于目标节点
|
|
10421
|
+
*/
|
|
10422
|
+
getEventTargetNode: function getEventTargetNode(evnt, container, queryCls, queryMethod) {
|
|
10423
|
+
var targetElem;
|
|
10424
|
+
var target = evnt.target;
|
|
10425
|
+
|
|
10426
|
+
while (target && target.nodeType && target !== document) {
|
|
10427
|
+
if (queryCls && hasClass(target, queryCls) && (!queryMethod || queryMethod(target))) {
|
|
10428
|
+
targetElem = target;
|
|
10429
|
+
} else if (target === container) {
|
|
10430
|
+
return {
|
|
10431
|
+
flag: queryCls ? !!targetElem : true,
|
|
10432
|
+
container: container,
|
|
10433
|
+
targetElem: targetElem
|
|
10434
|
+
};
|
|
10435
|
+
}
|
|
10436
|
+
|
|
10437
|
+
target = target.parentNode;
|
|
10438
|
+
}
|
|
10439
|
+
|
|
10440
|
+
return {
|
|
10441
|
+
flag: false
|
|
10442
|
+
};
|
|
10443
|
+
},
|
|
10444
|
+
|
|
10445
|
+
/**
|
|
10446
|
+
* 获取元素相对于 document 的位置
|
|
10447
|
+
*/
|
|
10448
|
+
getOffsetPos: function getOffsetPos(elem, container) {
|
|
10449
|
+
return getNodeOffset(elem, container, {
|
|
10450
|
+
left: 0,
|
|
10451
|
+
top: 0
|
|
10452
|
+
});
|
|
10453
|
+
},
|
|
10454
|
+
getAbsolutePos: function getAbsolutePos(elem) {
|
|
10455
|
+
var bounding = elem.getBoundingClientRect();
|
|
10456
|
+
var boundingTop = bounding.top;
|
|
10457
|
+
var boundingLeft = bounding.left;
|
|
10458
|
+
|
|
10459
|
+
var _getDomNode = getDomNode(),
|
|
10460
|
+
scrollTop = _getDomNode.scrollTop,
|
|
10461
|
+
scrollLeft = _getDomNode.scrollLeft,
|
|
10462
|
+
visibleHeight = _getDomNode.visibleHeight,
|
|
10463
|
+
visibleWidth = _getDomNode.visibleWidth;
|
|
10464
|
+
|
|
10465
|
+
return {
|
|
10466
|
+
boundingTop: boundingTop,
|
|
10467
|
+
top: scrollTop + boundingTop,
|
|
10468
|
+
boundingLeft: boundingLeft,
|
|
10469
|
+
left: scrollLeft + boundingLeft,
|
|
10470
|
+
visibleHeight: visibleHeight,
|
|
10471
|
+
visibleWidth: visibleWidth
|
|
10472
|
+
};
|
|
10473
|
+
},
|
|
10474
|
+
scrollToView: function scrollToView(elem) {
|
|
10475
|
+
var scrollIntoViewIfNeeded = 'scrollIntoViewIfNeeded';
|
|
10476
|
+
var scrollIntoView = 'scrollIntoView';
|
|
10477
|
+
|
|
10478
|
+
if (elem) {
|
|
10479
|
+
if (elem[scrollIntoViewIfNeeded]) {
|
|
10480
|
+
elem[scrollIntoViewIfNeeded]();
|
|
10481
|
+
} else if (elem[scrollIntoView]) {
|
|
10482
|
+
elem[scrollIntoView]();
|
|
10483
|
+
}
|
|
10484
|
+
}
|
|
10485
|
+
},
|
|
10486
|
+
triggerEvent: function triggerEvent(targetElem, type) {
|
|
10487
|
+
if (targetElem) {
|
|
10488
|
+
targetElem.dispatchEvent(new Event(type));
|
|
10489
|
+
}
|
|
10490
|
+
},
|
|
10491
|
+
calcHeight: function calcHeight($xetable, key) {
|
|
10492
|
+
var val = $xetable[key];
|
|
10493
|
+
var num = 0;
|
|
10494
|
+
|
|
10495
|
+
if (val) {
|
|
10496
|
+
if (val === 'auto') {
|
|
10497
|
+
num = $xetable.parentHeight;
|
|
10498
|
+
} else {
|
|
10499
|
+
var excludeHeight = $xetable.getExcludeHeight();
|
|
10500
|
+
|
|
10501
|
+
if (isScale(val)) {
|
|
10502
|
+
num = Math.floor((external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.toInteger(val) || 1) / 100 * $xetable.parentHeight);
|
|
10503
|
+
} else {
|
|
10504
|
+
num = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.toNumber(val);
|
|
10505
|
+
}
|
|
10506
|
+
|
|
10507
|
+
num = Math.max(40, num - excludeHeight);
|
|
10508
|
+
}
|
|
10509
|
+
}
|
|
10510
|
+
|
|
10511
|
+
return num;
|
|
10512
|
+
},
|
|
10513
|
+
isNodeElement: isNodeElement
|
|
10514
|
+
};
|
|
10515
|
+
/* harmony default export */ var dom = (DomTools);
|
|
9977
10516
|
// CONCATENATED MODULE: ./packages/table/src/util.js
|
|
9978
10517
|
|
|
9979
10518
|
|
|
@@ -9981,6 +10520,7 @@ var es_string_includes = __webpack_require__("2532");
|
|
|
9981
10520
|
|
|
9982
10521
|
|
|
9983
10522
|
|
|
10523
|
+
|
|
9984
10524
|
var lineOffsetSizes = {
|
|
9985
10525
|
mini: 3,
|
|
9986
10526
|
small: 2,
|
|
@@ -10047,6 +10587,27 @@ function queryCellElement(cell, selector) {
|
|
|
10047
10587
|
return cell.querySelector('.vxe-cell' + selector);
|
|
10048
10588
|
}
|
|
10049
10589
|
|
|
10590
|
+
function toFilters(filters) {
|
|
10591
|
+
if (filters && external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.isArray(filters)) {
|
|
10592
|
+
return filters.map(function (_ref) {
|
|
10593
|
+
var label = _ref.label,
|
|
10594
|
+
value = _ref.value,
|
|
10595
|
+
data = _ref.data,
|
|
10596
|
+
resetValue = _ref.resetValue,
|
|
10597
|
+
checked = _ref.checked;
|
|
10598
|
+
return {
|
|
10599
|
+
label: label,
|
|
10600
|
+
value: value,
|
|
10601
|
+
data: data,
|
|
10602
|
+
resetValue: resetValue,
|
|
10603
|
+
checked: !!checked,
|
|
10604
|
+
_checked: !!checked
|
|
10605
|
+
};
|
|
10606
|
+
});
|
|
10607
|
+
}
|
|
10608
|
+
|
|
10609
|
+
return filters;
|
|
10610
|
+
}
|
|
10050
10611
|
function getColMinWidth(params) {
|
|
10051
10612
|
var $table = params.$table,
|
|
10052
10613
|
column = params.column,
|
|
@@ -10090,11 +10651,11 @@ function getColMinWidth(params) {
|
|
|
10090
10651
|
var bodyElem = tableBody ? tableBody.$el : null;
|
|
10091
10652
|
|
|
10092
10653
|
if (bodyElem) {
|
|
10093
|
-
if (
|
|
10654
|
+
if (dom.isScale(colMinWidth)) {
|
|
10094
10655
|
var bodyWidth = bodyElem.clientWidth - 1;
|
|
10095
10656
|
var meanWidth = bodyWidth / 100;
|
|
10096
10657
|
return Math.max(mWidth, Math.floor(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.toInteger(colMinWidth) * meanWidth));
|
|
10097
|
-
} else if (
|
|
10658
|
+
} else if (dom.isPx(colMinWidth)) {
|
|
10098
10659
|
return Math.max(mWidth, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.toInteger(colMinWidth));
|
|
10099
10660
|
}
|
|
10100
10661
|
}
|
|
@@ -10206,6 +10767,12 @@ function clearTableAllStatus(_vm) {
|
|
|
10206
10767
|
|
|
10207
10768
|
return clearTableDefaultStatus(_vm);
|
|
10208
10769
|
}
|
|
10770
|
+
function isColumnInfo(column) {
|
|
10771
|
+
return column instanceof columnInfo_ColumnInfo;
|
|
10772
|
+
}
|
|
10773
|
+
function getColumnConfig($xetable, _vm, options) {
|
|
10774
|
+
return isColumnInfo(_vm) ? _vm : new columnInfo_ColumnInfo($xetable, _vm, options);
|
|
10775
|
+
}
|
|
10209
10776
|
// CONCATENATED MODULE: ./packages/table/src/body.js
|
|
10210
10777
|
|
|
10211
10778
|
|
|
@@ -10220,6 +10787,7 @@ function clearTableAllStatus(_vm) {
|
|
|
10220
10787
|
|
|
10221
10788
|
|
|
10222
10789
|
|
|
10790
|
+
|
|
10223
10791
|
var renderType = 'body'; // 滚动、拖动过程中不需要触发
|
|
10224
10792
|
|
|
10225
10793
|
function isOperateMouse($xetable) {
|
|
@@ -10234,7 +10802,7 @@ function renderLine(h, _vm, $xetable, params) {
|
|
|
10234
10802
|
fullAllDataRowIdData = $xetable.fullAllDataRowIdData;
|
|
10235
10803
|
var slots = column.slots,
|
|
10236
10804
|
treeNode = column.treeNode;
|
|
10237
|
-
var rowid =
|
|
10805
|
+
var rowid = utils.getRowid($xetable, row);
|
|
10238
10806
|
var rest = fullAllDataRowIdData[rowid];
|
|
10239
10807
|
var rLevel = 0;
|
|
10240
10808
|
var rIndex = 0;
|
|
@@ -10303,7 +10871,8 @@ function renderColumn(h, _vm, $xetable, seq, rowid, fixedType, rowLevel, row, ro
|
|
|
10303
10871
|
editStore = $xetable.editStore,
|
|
10304
10872
|
validStore = $xetable.validStore,
|
|
10305
10873
|
tooltipConfig = $xetable.tooltipConfig,
|
|
10306
|
-
rowOpts = $xetable.rowOpts
|
|
10874
|
+
rowOpts = $xetable.rowOpts,
|
|
10875
|
+
columnOpts = $xetable.columnOpts;
|
|
10307
10876
|
var type = column.type,
|
|
10308
10877
|
cellRender = column.cellRender,
|
|
10309
10878
|
editRender = column.editRender,
|
|
@@ -10370,7 +10939,7 @@ function renderColumn(h, _vm, $xetable, seq, rowid, fixedType, rowLevel, row, ro
|
|
|
10370
10939
|
}
|
|
10371
10940
|
|
|
10372
10941
|
if (showTitle) {
|
|
10373
|
-
|
|
10942
|
+
dom.updateCellTitle(evnt.currentTarget, column);
|
|
10374
10943
|
} else if (showTooltip || showAllTip) {
|
|
10375
10944
|
// 如果配置了显示 tooltip
|
|
10376
10945
|
$xetable.triggerBodyTooltipEvent(evnt, params);
|
|
@@ -10519,8 +11088,8 @@ function renderColumn(h, _vm, $xetable, seq, rowid, fixedType, rowLevel, row, ro
|
|
|
10519
11088
|
}
|
|
10520
11089
|
|
|
10521
11090
|
return h('td', {
|
|
10522
|
-
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),
|
|
10523
|
-
key: columnKey ? column.id : $columnIndex,
|
|
11091
|
+
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), utils.getClass(className, params), utils.getClass(cellClassName, params)],
|
|
11092
|
+
key: columnKey || columnOpts.useKey ? column.id : $columnIndex,
|
|
10524
11093
|
attrs: attrs,
|
|
10525
11094
|
style: Object.assign({
|
|
10526
11095
|
height: hasEllipsis && (scrollYRHeight || rowHeight) ? "".concat(scrollYRHeight || rowHeight, "px") : ''
|
|
@@ -10581,7 +11150,7 @@ function renderRows(h, _vm, $xetable, fixedType, tableData, tableColumn) {
|
|
|
10581
11150
|
};
|
|
10582
11151
|
}
|
|
10583
11152
|
|
|
10584
|
-
var rowid =
|
|
11153
|
+
var rowid = utils.getRowid($xetable, row);
|
|
10585
11154
|
var rest = fullAllDataRowIdData[rowid];
|
|
10586
11155
|
var rowLevel = rest ? rest.level : 0;
|
|
10587
11156
|
var seq = rest ? rest.seq : -1;
|
|
@@ -10614,7 +11183,7 @@ function renderRows(h, _vm, $xetable, fixedType, tableData, tableColumn) {
|
|
|
10614
11183
|
rowid: rowid
|
|
10615
11184
|
},
|
|
10616
11185
|
style: rowStyle ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.isFunction(rowStyle) ? rowStyle(params) : rowStyle : null,
|
|
10617
|
-
key: rowKey || treeConfig ? rowid : $rowIndex,
|
|
11186
|
+
key: rowKey || rowOpts.useKey || treeConfig ? rowid : $rowIndex,
|
|
10618
11187
|
on: trOn
|
|
10619
11188
|
}, tableColumn.map(function (column, $columnIndex) {
|
|
10620
11189
|
return renderColumn(h, _vm, $xetable, seq, rowid, fixedType, rowLevel, row, rowIndex, $rowIndex, _rowIndex, column, $columnIndex, tableColumn, tableData);
|
|
@@ -10693,31 +11262,25 @@ function syncBodyScroll(_vm, fixedType, scrollTop, elem1, elem2) {
|
|
|
10693
11262
|
|
|
10694
11263
|
clearTimeout(scrollProcessTimeout);
|
|
10695
11264
|
scrollProcessTimeout = setTimeout(function () {
|
|
10696
|
-
|
|
10697
|
-
|
|
10698
|
-
|
|
10699
|
-
|
|
10700
|
-
var bodyElem = tableBody.$el;
|
|
10701
|
-
var leftElem = leftBody ? leftBody.$el : null;
|
|
10702
|
-
var rightElem = rightBody ? rightBody.$el : null;
|
|
11265
|
+
// const { tableBody, leftBody, rightBody } = _vm.$refs
|
|
11266
|
+
// const bodyElem = tableBody.$el
|
|
11267
|
+
// const leftElem = leftBody ? leftBody.$el : null
|
|
11268
|
+
// const rightElem = rightBody ? rightBody.$el : null
|
|
10703
11269
|
restoreScrollListener(elem1);
|
|
10704
11270
|
restoreScrollListener(elem2); // 检查滚动条是的同步
|
|
10705
|
-
|
|
10706
|
-
|
|
10707
|
-
|
|
10708
|
-
|
|
10709
|
-
|
|
10710
|
-
|
|
10711
|
-
|
|
10712
|
-
|
|
10713
|
-
|
|
10714
|
-
|
|
10715
|
-
|
|
10716
|
-
|
|
10717
|
-
|
|
10718
|
-
setScrollTop(bodyElem, targetTop);
|
|
10719
|
-
setScrollTop(leftElem, targetTop);
|
|
10720
|
-
setScrollTop(rightElem, targetTop);
|
|
11271
|
+
// let targetTop = bodyElem.scrollTop
|
|
11272
|
+
// if (fixedType === 'left') {
|
|
11273
|
+
// if (leftElem) {
|
|
11274
|
+
// targetTop = leftElem.scrollTop
|
|
11275
|
+
// }
|
|
11276
|
+
// } else if (fixedType === 'right') {
|
|
11277
|
+
// if (rightElem) {
|
|
11278
|
+
// targetTop = rightElem.scrollTop
|
|
11279
|
+
// }
|
|
11280
|
+
// }
|
|
11281
|
+
// setScrollTop(bodyElem, targetTop)
|
|
11282
|
+
// setScrollTop(leftElem, targetTop)
|
|
11283
|
+
// setScrollTop(rightElem, targetTop)
|
|
10721
11284
|
}, 300);
|
|
10722
11285
|
}
|
|
10723
11286
|
}
|
|
@@ -11140,6 +11703,210 @@ function syncBodyScroll(_vm, fixedType, scrollTop, elem1, elem2) {
|
|
|
11140
11703
|
}
|
|
11141
11704
|
}
|
|
11142
11705
|
});
|
|
11706
|
+
// CONCATENATED MODULE: ./packages/tools/resize.js
|
|
11707
|
+
|
|
11708
|
+
|
|
11709
|
+
|
|
11710
|
+
|
|
11711
|
+
|
|
11712
|
+
/**
|
|
11713
|
+
* 监听 resize 事件
|
|
11714
|
+
* 如果项目中已使用了 resize-observer-polyfill,那么只需要将方法定义全局,该组件就会自动使用
|
|
11715
|
+
*/
|
|
11716
|
+
|
|
11717
|
+
var resizeTimeout;
|
|
11718
|
+
var eventStore = [];
|
|
11719
|
+
var defaultInterval = 500;
|
|
11720
|
+
|
|
11721
|
+
function eventHandle() {
|
|
11722
|
+
if (eventStore.length) {
|
|
11723
|
+
eventStore.forEach(function (item) {
|
|
11724
|
+
item.tarList.forEach(function (observer) {
|
|
11725
|
+
var target = observer.target,
|
|
11726
|
+
width = observer.width,
|
|
11727
|
+
heighe = observer.heighe;
|
|
11728
|
+
var clientWidth = target.clientWidth;
|
|
11729
|
+
var clientHeight = target.clientHeight;
|
|
11730
|
+
var rWidth = clientWidth && width !== clientWidth;
|
|
11731
|
+
var rHeight = clientHeight && heighe !== clientHeight;
|
|
11732
|
+
|
|
11733
|
+
if (rWidth || rHeight) {
|
|
11734
|
+
observer.width = clientWidth;
|
|
11735
|
+
observer.heighe = clientHeight;
|
|
11736
|
+
setTimeout(item.callback);
|
|
11737
|
+
}
|
|
11738
|
+
});
|
|
11739
|
+
});
|
|
11740
|
+
/* eslint-disable @typescript-eslint/no-use-before-define */
|
|
11741
|
+
|
|
11742
|
+
eventListener();
|
|
11743
|
+
}
|
|
11744
|
+
}
|
|
11745
|
+
|
|
11746
|
+
function eventListener() {
|
|
11747
|
+
clearTimeout(resizeTimeout);
|
|
11748
|
+
resizeTimeout = setTimeout(eventHandle, conf.resizeInterval || defaultInterval);
|
|
11749
|
+
}
|
|
11750
|
+
|
|
11751
|
+
var resize_ResizeObserverPolyfill = /*#__PURE__*/function () {
|
|
11752
|
+
function ResizeObserverPolyfill(callback) {
|
|
11753
|
+
_classCallCheck(this, ResizeObserverPolyfill);
|
|
11754
|
+
|
|
11755
|
+
this.tarList = [];
|
|
11756
|
+
this.callback = callback;
|
|
11757
|
+
}
|
|
11758
|
+
|
|
11759
|
+
_createClass(ResizeObserverPolyfill, [{
|
|
11760
|
+
key: "observe",
|
|
11761
|
+
value: function observe(target) {
|
|
11762
|
+
var _this = this;
|
|
11763
|
+
|
|
11764
|
+
if (target) {
|
|
11765
|
+
if (!this.tarList.some(function (observer) {
|
|
11766
|
+
return observer.target === target;
|
|
11767
|
+
})) {
|
|
11768
|
+
this.tarList.push({
|
|
11769
|
+
target: target,
|
|
11770
|
+
width: target.clientWidth,
|
|
11771
|
+
heighe: target.clientHeight
|
|
11772
|
+
});
|
|
11773
|
+
}
|
|
11774
|
+
|
|
11775
|
+
if (!eventStore.length) {
|
|
11776
|
+
eventListener();
|
|
11777
|
+
}
|
|
11778
|
+
|
|
11779
|
+
if (!eventStore.some(function (item) {
|
|
11780
|
+
return item === _this;
|
|
11781
|
+
})) {
|
|
11782
|
+
eventStore.push(this);
|
|
11783
|
+
}
|
|
11784
|
+
}
|
|
11785
|
+
}
|
|
11786
|
+
}, {
|
|
11787
|
+
key: "unobserve",
|
|
11788
|
+
value: function unobserve(target) {
|
|
11789
|
+
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.remove(eventStore, function (item) {
|
|
11790
|
+
return item.tarList.some(function (observer) {
|
|
11791
|
+
return observer.target === target;
|
|
11792
|
+
});
|
|
11793
|
+
});
|
|
11794
|
+
}
|
|
11795
|
+
}, {
|
|
11796
|
+
key: "disconnect",
|
|
11797
|
+
value: function disconnect() {
|
|
11798
|
+
var _this2 = this;
|
|
11799
|
+
|
|
11800
|
+
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.remove(eventStore, function (item) {
|
|
11801
|
+
return item === _this2;
|
|
11802
|
+
});
|
|
11803
|
+
}
|
|
11804
|
+
}]);
|
|
11805
|
+
|
|
11806
|
+
return ResizeObserverPolyfill;
|
|
11807
|
+
}();
|
|
11808
|
+
|
|
11809
|
+
function createResizeEvent(callback) {
|
|
11810
|
+
if (window.ResizeObserver) {
|
|
11811
|
+
return new window.ResizeObserver(callback);
|
|
11812
|
+
}
|
|
11813
|
+
|
|
11814
|
+
return new resize_ResizeObserverPolyfill(callback);
|
|
11815
|
+
}
|
|
11816
|
+
// CONCATENATED MODULE: ./packages/tools/event.js
|
|
11817
|
+
|
|
11818
|
+
|
|
11819
|
+
var EVENT_KEYS = {
|
|
11820
|
+
F2: 'F2',
|
|
11821
|
+
ESCAPE: 'Escape',
|
|
11822
|
+
ENTER: 'Enter',
|
|
11823
|
+
TAB: 'Tab',
|
|
11824
|
+
DELETE: 'Delete',
|
|
11825
|
+
BACKSPACE: 'Backspace',
|
|
11826
|
+
SPACEBAR: ' ',
|
|
11827
|
+
CONTEXT_MENU: 'ContextMenu',
|
|
11828
|
+
ARROW_UP: 'ArrowUp',
|
|
11829
|
+
ARROW_DOWN: 'ArrowDown',
|
|
11830
|
+
ARROW_LEFT: 'ArrowLeft',
|
|
11831
|
+
ARROW_RIGHT: 'ArrowRight',
|
|
11832
|
+
PAGE_UP: 'PageUp',
|
|
11833
|
+
PAGE_DOWN: 'PageDown'
|
|
11834
|
+
};
|
|
11835
|
+
var convertEventKeys = {
|
|
11836
|
+
' ': 'Spacebar',
|
|
11837
|
+
Apps: EVENT_KEYS.CONTEXT_MENU,
|
|
11838
|
+
Del: EVENT_KEYS.DELETE,
|
|
11839
|
+
Up: EVENT_KEYS.ARROW_UP,
|
|
11840
|
+
Down: EVENT_KEYS.ARROW_DOWN,
|
|
11841
|
+
Left: EVENT_KEYS.ARROW_LEFT,
|
|
11842
|
+
Right: EVENT_KEYS.ARROW_RIGHT
|
|
11843
|
+
}; // 监听全局事件
|
|
11844
|
+
|
|
11845
|
+
var wheelName = browse.firefox ? 'DOMMouseScroll' : 'mousewheel';
|
|
11846
|
+
var event_eventStore = [];
|
|
11847
|
+
var hasEventKey = function hasEventKey(evnt, targetKey) {
|
|
11848
|
+
var key = evnt.key;
|
|
11849
|
+
targetKey = targetKey.toLowerCase();
|
|
11850
|
+
return key ? targetKey === key.toLowerCase() || !!(convertEventKeys[key] && convertEventKeys[key].toLowerCase() === targetKey) : false;
|
|
11851
|
+
};
|
|
11852
|
+
var GlobalEvent = {
|
|
11853
|
+
on: function on(comp, type, cb) {
|
|
11854
|
+
if (cb) {
|
|
11855
|
+
event_eventStore.push({
|
|
11856
|
+
comp: comp,
|
|
11857
|
+
type: type,
|
|
11858
|
+
cb: cb
|
|
11859
|
+
});
|
|
11860
|
+
}
|
|
11861
|
+
},
|
|
11862
|
+
off: function off(comp, type) {
|
|
11863
|
+
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.remove(event_eventStore, function (item) {
|
|
11864
|
+
return item.comp === comp && item.type === type;
|
|
11865
|
+
});
|
|
11866
|
+
},
|
|
11867
|
+
trigger: function trigger(evnt) {
|
|
11868
|
+
var isWheel = evnt.type === wheelName;
|
|
11869
|
+
event_eventStore.forEach(function (_ref) {
|
|
11870
|
+
var comp = _ref.comp,
|
|
11871
|
+
type = _ref.type,
|
|
11872
|
+
cb = _ref.cb;
|
|
11873
|
+
|
|
11874
|
+
// 如果被取消冒泡,不再执行
|
|
11875
|
+
if (!evnt.cancelBubble) {
|
|
11876
|
+
if (type === evnt.type || isWheel && type === 'mousewheel') {
|
|
11877
|
+
cb.call(comp, evnt);
|
|
11878
|
+
}
|
|
11879
|
+
}
|
|
11880
|
+
});
|
|
11881
|
+
},
|
|
11882
|
+
eqKeypad: function eqKeypad(evnt, keyVal) {
|
|
11883
|
+
var key = evnt.key;
|
|
11884
|
+
|
|
11885
|
+
if (keyVal.toLowerCase() === key.toLowerCase()) {
|
|
11886
|
+
return true;
|
|
11887
|
+
}
|
|
11888
|
+
|
|
11889
|
+
return false;
|
|
11890
|
+
}
|
|
11891
|
+
};
|
|
11892
|
+
|
|
11893
|
+
if (browse.isDoc) {
|
|
11894
|
+
if (!browse.msie) {
|
|
11895
|
+
document.addEventListener('copy', GlobalEvent.trigger, false);
|
|
11896
|
+
document.addEventListener('cut', GlobalEvent.trigger, false);
|
|
11897
|
+
document.addEventListener('paste', GlobalEvent.trigger, false);
|
|
11898
|
+
}
|
|
11899
|
+
|
|
11900
|
+
document.addEventListener('keydown', GlobalEvent.trigger, false);
|
|
11901
|
+
document.addEventListener('contextmenu', GlobalEvent.trigger, false);
|
|
11902
|
+
window.addEventListener('mousedown', GlobalEvent.trigger, false);
|
|
11903
|
+
window.addEventListener('blur', GlobalEvent.trigger, false);
|
|
11904
|
+
window.addEventListener('resize', GlobalEvent.trigger, false);
|
|
11905
|
+
window.addEventListener(wheelName, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.throttle(GlobalEvent.trigger, 100, {
|
|
11906
|
+
leading: true,
|
|
11907
|
+
trailing: false
|
|
11908
|
+
}), false);
|
|
11909
|
+
}
|
|
11143
11910
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.keys.js
|
|
11144
11911
|
var es_object_keys = __webpack_require__("b64b");
|
|
11145
11912
|
|
|
@@ -11211,6 +11978,8 @@ var es_array_sort = __webpack_require__("4e82");
|
|
|
11211
11978
|
|
|
11212
11979
|
|
|
11213
11980
|
|
|
11981
|
+
|
|
11982
|
+
|
|
11214
11983
|
function renderHelpIcon(h, params) {
|
|
11215
11984
|
var $table = params.$table,
|
|
11216
11985
|
column = params.column;
|
|
@@ -11248,7 +12017,7 @@ function renderTitleContent(h, params, content) {
|
|
|
11248
12017
|
}
|
|
11249
12018
|
|
|
11250
12019
|
if (showTitle) {
|
|
11251
|
-
|
|
12020
|
+
dom.updateCellTitle(evnt.currentTarget, column);
|
|
11252
12021
|
} else if (showTooltip || showAllTip) {
|
|
11253
12022
|
$table.triggerHeaderTooltipEvent(evnt, params);
|
|
11254
12023
|
}
|
|
@@ -11301,14 +12070,14 @@ function getFooterContent(h, params) {
|
|
|
11301
12070
|
}
|
|
11302
12071
|
}
|
|
11303
12072
|
|
|
11304
|
-
return [
|
|
12073
|
+
return [utils.formatText(items[_columnIndex], 1)];
|
|
11305
12074
|
}
|
|
11306
12075
|
|
|
11307
12076
|
function getDefaultCellLabel(params) {
|
|
11308
12077
|
var $table = params.$table,
|
|
11309
12078
|
row = params.row,
|
|
11310
12079
|
column = params.column;
|
|
11311
|
-
return
|
|
12080
|
+
return utils.formatText($table.getCellLabel(row, column), 1);
|
|
11312
12081
|
}
|
|
11313
12082
|
|
|
11314
12083
|
var Cell = {
|
|
@@ -11376,7 +12145,7 @@ var Cell = {
|
|
|
11376
12145
|
|
|
11377
12146
|
}
|
|
11378
12147
|
|
|
11379
|
-
return
|
|
12148
|
+
return getColumnConfig($xetable, _vm, renMaps);
|
|
11380
12149
|
},
|
|
11381
12150
|
|
|
11382
12151
|
/**
|
|
@@ -11402,7 +12171,7 @@ var Cell = {
|
|
|
11402
12171
|
}
|
|
11403
12172
|
}
|
|
11404
12173
|
|
|
11405
|
-
return renderTitleContent(h, params,
|
|
12174
|
+
return renderTitleContent(h, params, utils.formatText(column.getTitle(), 1));
|
|
11406
12175
|
},
|
|
11407
12176
|
renderDefaultHeader: function renderDefaultHeader(h, params) {
|
|
11408
12177
|
return renderHelpIcon(h, params).concat(Cell.renderHeaderTitle(h, params));
|
|
@@ -11438,7 +12207,7 @@ var Cell = {
|
|
|
11438
12207
|
}, editRender && eqEmptyValue(cellValue) ? [// 如果设置占位符
|
|
11439
12208
|
h('span', {
|
|
11440
12209
|
class: 'vxe-cell--placeholder'
|
|
11441
|
-
},
|
|
12210
|
+
}, utils.formatText(getFuncText(cellPlaceholder), 1))] : utils.formatText(cellValue, 1))];
|
|
11442
12211
|
},
|
|
11443
12212
|
renderTreeCell: function renderTreeCell(h, params) {
|
|
11444
12213
|
return Cell.renderTreeIcon(h, params, Cell.renderDefaultCell.call(this, h, params));
|
|
@@ -11520,7 +12289,7 @@ var Cell = {
|
|
|
11520
12289
|
var $table = params.$table,
|
|
11521
12290
|
column = params.column;
|
|
11522
12291
|
var slots = column.slots;
|
|
11523
|
-
return renderTitleContent(h, params, slots && slots.header ? $table.callSlot(slots.header, params, h) :
|
|
12292
|
+
return renderTitleContent(h, params, slots && slots.header ? $table.callSlot(slots.header, params, h) : utils.formatText(column.getTitle(), 1));
|
|
11524
12293
|
},
|
|
11525
12294
|
renderSeqCell: function renderSeqCell(h, params) {
|
|
11526
12295
|
var $table = params.$table,
|
|
@@ -11535,7 +12304,7 @@ var Cell = {
|
|
|
11535
12304
|
|
|
11536
12305
|
var seq = params.seq;
|
|
11537
12306
|
var seqMethod = seqOpts.seqMethod;
|
|
11538
|
-
return [
|
|
12307
|
+
return [utils.formatText(seqMethod ? seqMethod(params) : treeConfig ? seq : (seqOpts.startIndex || 0) + seq, 1)];
|
|
11539
12308
|
},
|
|
11540
12309
|
renderTreeIndexCell: function renderTreeIndexCell(h, params) {
|
|
11541
12310
|
return Cell.renderTreeIcon(h, params, Cell.renderSeqCell(h, params));
|
|
@@ -11552,7 +12321,7 @@ var Cell = {
|
|
|
11552
12321
|
var titleSlot = slots ? slots.title : null;
|
|
11553
12322
|
return renderTitleContent(h, params, headerSlot ? $table.callSlot(headerSlot, params, h) : [h('span', {
|
|
11554
12323
|
class: 'vxe-radio--label'
|
|
11555
|
-
}, titleSlot ? $table.callSlot(titleSlot, params, h) :
|
|
12324
|
+
}, titleSlot ? $table.callSlot(titleSlot, params, h) : utils.formatText(column.getTitle(), 1))]);
|
|
11556
12325
|
},
|
|
11557
12326
|
renderRadioCell: function renderRadioCell(h, params) {
|
|
11558
12327
|
var $table = params.$table,
|
|
@@ -12155,17 +12924,20 @@ var Cell = {
|
|
|
12155
12924
|
|
|
12156
12925
|
|
|
12157
12926
|
|
|
12158
|
-
|
|
12159
|
-
|
|
12160
|
-
|
|
12161
|
-
|
|
12162
|
-
|
|
12163
|
-
|
|
12164
|
-
|
|
12165
|
-
|
|
12166
|
-
|
|
12167
|
-
|
|
12168
|
-
|
|
12927
|
+
|
|
12928
|
+
|
|
12929
|
+
|
|
12930
|
+
var methods_getRowid = utils.getRowid,
|
|
12931
|
+
methods_getRowkey = utils.getRowkey,
|
|
12932
|
+
methods_setCellValue = utils.setCellValue,
|
|
12933
|
+
hasChildrenList = utils.hasChildrenList,
|
|
12934
|
+
methods_getColumnList = utils.getColumnList;
|
|
12935
|
+
var methods_calcHeight = dom.calcHeight,
|
|
12936
|
+
methods_hasClass = dom.hasClass,
|
|
12937
|
+
addClass = dom.addClass,
|
|
12938
|
+
methods_removeClass = dom.removeClass,
|
|
12939
|
+
getEventTargetNode = dom.getEventTargetNode,
|
|
12940
|
+
methods_isNodeElement = dom.isNodeElement;
|
|
12169
12941
|
var isWebkit = browse['-webkit'] && !browse.edge;
|
|
12170
12942
|
var debounceScrollYDuration = browse.msie ? 80 : 20;
|
|
12171
12943
|
var resizableStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_WIDTH';
|
|
@@ -12337,7 +13109,7 @@ function setMerges(_vm, merges, mList, rowList) {
|
|
|
12337
13109
|
visibleColumn = _vm.visibleColumn;
|
|
12338
13110
|
|
|
12339
13111
|
if (treeConfig) {
|
|
12340
|
-
throw new Error(
|
|
13112
|
+
throw new Error(utils.getLog('vxe.error.noTree', ['merge-footer-items']));
|
|
12341
13113
|
}
|
|
12342
13114
|
|
|
12343
13115
|
if (!external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.isArray(merges)) {
|
|
@@ -12401,7 +13173,7 @@ function removeMerges(_vm, merges, mList, rowList) {
|
|
|
12401
13173
|
visibleColumn = _vm.visibleColumn;
|
|
12402
13174
|
|
|
12403
13175
|
if (treeConfig) {
|
|
12404
|
-
throw new Error(
|
|
13176
|
+
throw new Error(utils.getLog('vxe.error.noTree', ['merge-cells']));
|
|
12405
13177
|
}
|
|
12406
13178
|
|
|
12407
13179
|
if (!external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.isArray(merges)) {
|
|
@@ -12869,7 +13641,7 @@ var Methods = {
|
|
|
12869
13641
|
tableFullTreeData = this.tableFullTreeData;
|
|
12870
13642
|
var fullDataRowIdData = this.fullDataRowIdData,
|
|
12871
13643
|
fullAllDataRowIdData = this.fullAllDataRowIdData;
|
|
12872
|
-
var rowkey =
|
|
13644
|
+
var rowkey = methods_getRowkey(this);
|
|
12873
13645
|
var isLazy = treeConfig && treeOpts.lazy;
|
|
12874
13646
|
|
|
12875
13647
|
var handleCache = function handleCache(row, index, items, path, parent, nodes) {
|
|
@@ -13046,7 +13818,7 @@ var Methods = {
|
|
|
13046
13818
|
}
|
|
13047
13819
|
|
|
13048
13820
|
if (fullColumnIdData[colid]) {
|
|
13049
|
-
|
|
13821
|
+
errLog('vxe.error.colRepet', ['colId', colid]);
|
|
13050
13822
|
}
|
|
13051
13823
|
|
|
13052
13824
|
fullColumnIdData[colid] = rest;
|
|
@@ -13229,7 +14001,7 @@ var Methods = {
|
|
|
13229
14001
|
treeConfig = this.treeConfig,
|
|
13230
14002
|
treeOpts = this.treeOpts,
|
|
13231
14003
|
expandOpts = this.expandOpts;
|
|
13232
|
-
var rowkey =
|
|
14004
|
+
var rowkey = methods_getRowkey(this);
|
|
13233
14005
|
this.tableFullColumn.forEach(function (column) {
|
|
13234
14006
|
var property = column.property,
|
|
13235
14007
|
editRender = column.editRender;
|
|
@@ -13349,7 +14121,7 @@ var Methods = {
|
|
|
13349
14121
|
var rowIndex = _this15.getRowIndex(row);
|
|
13350
14122
|
|
|
13351
14123
|
if (treeConfig && rowIndex === -1) {
|
|
13352
|
-
throw new Error(
|
|
14124
|
+
throw new Error(utils.getLog('vxe.error.noTree', ['revertData']));
|
|
13353
14125
|
}
|
|
13354
14126
|
|
|
13355
14127
|
var oRow = tableSourceData[rowIndex];
|
|
@@ -13679,7 +14451,7 @@ var Methods = {
|
|
|
13679
14451
|
var compConf = filterRender ? v_x_e_table.renderer.get(filterRender.name) : null;
|
|
13680
14452
|
var compFilterMethod = compConf && compConf.renderFilter ? compConf.filterMethod : null;
|
|
13681
14453
|
var defaultFilterMethod = compConf ? compConf.defaultFilterMethod : null;
|
|
13682
|
-
var cellValue =
|
|
14454
|
+
var cellValue = utils.getCellValue(row, column);
|
|
13683
14455
|
|
|
13684
14456
|
if (filterMethod) {
|
|
13685
14457
|
return itemList.some(function (item) {
|
|
@@ -14082,7 +14854,7 @@ var Methods = {
|
|
|
14082
14854
|
var customMap = {};
|
|
14083
14855
|
|
|
14084
14856
|
if (!id) {
|
|
14085
|
-
|
|
14857
|
+
errLog('vxe.error.reqProp', ['id']);
|
|
14086
14858
|
return;
|
|
14087
14859
|
}
|
|
14088
14860
|
|
|
@@ -14170,7 +14942,7 @@ var Methods = {
|
|
|
14170
14942
|
var colShows = [];
|
|
14171
14943
|
|
|
14172
14944
|
if (!id) {
|
|
14173
|
-
|
|
14945
|
+
errLog('vxe.error.reqProp', ['id']);
|
|
14174
14946
|
return;
|
|
14175
14947
|
}
|
|
14176
14948
|
|
|
@@ -14211,7 +14983,7 @@ var Methods = {
|
|
|
14211
14983
|
var columnWidthStorage;
|
|
14212
14984
|
|
|
14213
14985
|
if (!id) {
|
|
14214
|
-
|
|
14986
|
+
errLog('vxe.error.reqProp', ['id']);
|
|
14215
14987
|
return;
|
|
14216
14988
|
}
|
|
14217
14989
|
|
|
@@ -14275,7 +15047,7 @@ var Methods = {
|
|
|
14275
15047
|
}
|
|
14276
15048
|
|
|
14277
15049
|
if (parent && column.fixed !== parent.fixed) {
|
|
14278
|
-
|
|
15050
|
+
errLog('vxe.error.groupFixed');
|
|
14279
15051
|
}
|
|
14280
15052
|
|
|
14281
15053
|
if (isColGroup) {
|
|
@@ -14391,13 +15163,13 @@ var Methods = {
|
|
|
14391
15163
|
if (column.visible) {
|
|
14392
15164
|
if (column.resizeWidth) {
|
|
14393
15165
|
resizeList.push(column);
|
|
14394
|
-
} else if (
|
|
15166
|
+
} else if (dom.isPx(column.width)) {
|
|
14395
15167
|
pxList.push(column);
|
|
14396
|
-
} else if (
|
|
15168
|
+
} else if (dom.isScale(column.width)) {
|
|
14397
15169
|
scaleList.push(column);
|
|
14398
|
-
} else if (
|
|
15170
|
+
} else if (dom.isPx(column.minWidth)) {
|
|
14399
15171
|
pxMinList.push(column);
|
|
14400
|
-
} else if (
|
|
15172
|
+
} else if (dom.isScale(column.minWidth)) {
|
|
14401
15173
|
scaleMinList.push(column);
|
|
14402
15174
|
} else {
|
|
14403
15175
|
autoList.push(column);
|
|
@@ -14950,11 +15722,11 @@ var Methods = {
|
|
|
14950
15722
|
|
|
14951
15723
|
if (bodyElem) {
|
|
14952
15724
|
if (leftContainer) {
|
|
14953
|
-
|
|
15725
|
+
dom[bodyElem.scrollLeft > 0 ? 'addClass' : 'removeClass'](leftContainer, 'scrolling--middle');
|
|
14954
15726
|
}
|
|
14955
15727
|
|
|
14956
15728
|
if (rightContainer) {
|
|
14957
|
-
|
|
15729
|
+
dom[bodyElem.clientWidth < bodyElem.scrollWidth - Math.ceil(bodyElem.scrollLeft) ? 'addClass' : 'removeClass'](rightContainer, 'scrolling--middle');
|
|
14958
15730
|
}
|
|
14959
15731
|
}
|
|
14960
15732
|
},
|
|
@@ -15529,7 +16301,7 @@ var Methods = {
|
|
|
15529
16301
|
var $refs = this.$refs,
|
|
15530
16302
|
tooltipStore = this.tooltipStore;
|
|
15531
16303
|
var $tooltip = $refs.tooltip;
|
|
15532
|
-
var content =
|
|
16304
|
+
var content = getFuncText(titleHelp.content || titleHelp.message);
|
|
15533
16305
|
this.handleTargetEnterEvent(true);
|
|
15534
16306
|
tooltipStore.visible = true;
|
|
15535
16307
|
|
|
@@ -15635,7 +16407,7 @@ var Methods = {
|
|
|
15635
16407
|
});
|
|
15636
16408
|
|
|
15637
16409
|
if (tooltip) {
|
|
15638
|
-
tooltip.open(isCellOverflow ? overflowElem : tipElem || overflowElem,
|
|
16410
|
+
tooltip.open(isCellOverflow ? overflowElem : tipElem || overflowElem, utils.formatText(content));
|
|
15639
16411
|
}
|
|
15640
16412
|
}
|
|
15641
16413
|
|
|
@@ -15695,7 +16467,7 @@ var Methods = {
|
|
|
15695
16467
|
return !this.isAllSelected && this.isIndeterminate;
|
|
15696
16468
|
},
|
|
15697
16469
|
isCheckboxIndeterminate: function isCheckboxIndeterminate() {
|
|
15698
|
-
|
|
16470
|
+
warnLog('vxe.error.delFunc', ['isCheckboxIndeterminate', 'isAllCheckboxIndeterminate']);
|
|
15699
16471
|
return this.isAllCheckboxIndeterminate();
|
|
15700
16472
|
},
|
|
15701
16473
|
|
|
@@ -16282,7 +17054,7 @@ var Methods = {
|
|
|
16282
17054
|
return radioReserveRow;
|
|
16283
17055
|
}
|
|
16284
17056
|
} else {
|
|
16285
|
-
var rowkey =
|
|
17057
|
+
var rowkey = methods_getRowkey(this);
|
|
16286
17058
|
|
|
16287
17059
|
if (treeConfig) {
|
|
16288
17060
|
var matchObj = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.findTree(afterFullData, function (row) {
|
|
@@ -16454,7 +17226,7 @@ var Methods = {
|
|
|
16454
17226
|
}
|
|
16455
17227
|
|
|
16456
17228
|
if (reserve) {
|
|
16457
|
-
var rowkey =
|
|
17229
|
+
var rowkey = methods_getRowkey(this);
|
|
16458
17230
|
this.radioReserveRow = _defineProperty({}, rowkey, rowid);
|
|
16459
17231
|
}
|
|
16460
17232
|
}
|
|
@@ -16596,7 +17368,7 @@ var Methods = {
|
|
|
16596
17368
|
}
|
|
16597
17369
|
} else {
|
|
16598
17370
|
if (treeConfig) {
|
|
16599
|
-
var rowkey =
|
|
17371
|
+
var rowkey = methods_getRowkey(this);
|
|
16600
17372
|
var matchObj = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.findTree(afterFullData, function (row) {
|
|
16601
17373
|
return rowid === external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.get(row, rowkey);
|
|
16602
17374
|
}, treeOpts);
|
|
@@ -17488,7 +18260,7 @@ var Methods = {
|
|
|
17488
18260
|
this.setAllTreeExpand(true);
|
|
17489
18261
|
} else if (expandRowKeys) {
|
|
17490
18262
|
var defExpandeds = [];
|
|
17491
|
-
var rowkey =
|
|
18263
|
+
var rowkey = methods_getRowkey(this);
|
|
17492
18264
|
expandRowKeys.forEach(function (rowid) {
|
|
17493
18265
|
var matchObj = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.findTree(tableFullData, function (item) {
|
|
17494
18266
|
return rowid === external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.get(item, rowkey);
|
|
@@ -18073,7 +18845,7 @@ var Methods = {
|
|
|
18073
18845
|
if (this.treeConfig) {
|
|
18074
18846
|
rest.push(this.scrollToTreeRow(row));
|
|
18075
18847
|
} else {
|
|
18076
|
-
rest.push(
|
|
18848
|
+
rest.push(dom.rowToVisible(this, row));
|
|
18077
18849
|
}
|
|
18078
18850
|
}
|
|
18079
18851
|
|
|
@@ -18092,7 +18864,7 @@ var Methods = {
|
|
|
18092
18864
|
var column = handleFieldOrColumn(this, fieldOrColumn);
|
|
18093
18865
|
|
|
18094
18866
|
if (column && this.fullColumnMap.has(column)) {
|
|
18095
|
-
return
|
|
18867
|
+
return dom.colToVisible(this, column);
|
|
18096
18868
|
}
|
|
18097
18869
|
|
|
18098
18870
|
return this.$nextTick();
|
|
@@ -18127,7 +18899,7 @@ var Methods = {
|
|
|
18127
18899
|
}
|
|
18128
18900
|
|
|
18129
18901
|
return Promise.all(rests).then(function () {
|
|
18130
|
-
return
|
|
18902
|
+
return dom.rowToVisible(_this51, row);
|
|
18131
18903
|
});
|
|
18132
18904
|
},
|
|
18133
18905
|
|
|
@@ -18245,7 +19017,7 @@ var Methods = {
|
|
|
18245
19017
|
var _this53 = this;
|
|
18246
19018
|
|
|
18247
19019
|
if (this.spanMethod) {
|
|
18248
|
-
|
|
19020
|
+
errLog('vxe.error.errConflicts', ['merge-cells', 'span-method']);
|
|
18249
19021
|
}
|
|
18250
19022
|
|
|
18251
19023
|
setMerges(this, merges, this.mergeList, this.afterFullData);
|
|
@@ -18262,7 +19034,7 @@ var Methods = {
|
|
|
18262
19034
|
var _this54 = this;
|
|
18263
19035
|
|
|
18264
19036
|
if (this.spanMethod) {
|
|
18265
|
-
|
|
19037
|
+
errLog('vxe.error.errConflicts', ['merge-cells', 'span-method']);
|
|
18266
19038
|
}
|
|
18267
19039
|
|
|
18268
19040
|
var rest = removeMerges(this, merges, this.mergeList, this.afterFullData);
|
|
@@ -18294,7 +19066,7 @@ var Methods = {
|
|
|
18294
19066
|
var _this55 = this;
|
|
18295
19067
|
|
|
18296
19068
|
if (this.footerSpanMethod) {
|
|
18297
|
-
|
|
19069
|
+
errLog('vxe.error.errConflicts', ['merge-footer-items', 'footer-span-method']);
|
|
18298
19070
|
}
|
|
18299
19071
|
|
|
18300
19072
|
setMerges(this, merges, this.mergeFooterList, null);
|
|
@@ -18306,7 +19078,7 @@ var Methods = {
|
|
|
18306
19078
|
var _this56 = this;
|
|
18307
19079
|
|
|
18308
19080
|
if (this.footerSpanMethod) {
|
|
18309
|
-
|
|
19081
|
+
errLog('vxe.error.errConflicts', ['merge-footer-items', 'footer-span-method']);
|
|
18310
19082
|
}
|
|
18311
19083
|
|
|
18312
19084
|
var rest = removeMerges(this, merges, this.mergeFooterList, null);
|
|
@@ -18334,8 +19106,8 @@ var Methods = {
|
|
|
18334
19106
|
updateZindex: function updateZindex() {
|
|
18335
19107
|
if (this.zIndex) {
|
|
18336
19108
|
this.tZindex = this.zIndex;
|
|
18337
|
-
} else if (this.tZindex <
|
|
18338
|
-
this.tZindex =
|
|
19109
|
+
} else if (this.tZindex < utils.getLastZIndex()) {
|
|
19110
|
+
this.tZindex = utils.nextZIndex();
|
|
18339
19111
|
}
|
|
18340
19112
|
},
|
|
18341
19113
|
updateCellAreas: function updateCellAreas() {
|
|
@@ -18367,7 +19139,7 @@ var Methods = {
|
|
|
18367
19139
|
});
|
|
18368
19140
|
this.$toolbar = $toolbar;
|
|
18369
19141
|
} else {
|
|
18370
|
-
|
|
19142
|
+
errLog('vxe.error.barUnableLink');
|
|
18371
19143
|
}
|
|
18372
19144
|
|
|
18373
19145
|
return this.$nextTick();
|
|
@@ -18389,7 +19161,7 @@ var Methods = {
|
|
|
18389
19161
|
},
|
|
18390
19162
|
getCellLabel: function getCellLabel(row, column) {
|
|
18391
19163
|
var formatter = column.formatter;
|
|
18392
|
-
var cellValue =
|
|
19164
|
+
var cellValue = utils.getCellValue(row, column);
|
|
18393
19165
|
var cellLabel = cellValue;
|
|
18394
19166
|
|
|
18395
19167
|
if (formatter) {
|
|
@@ -18476,6 +19248,11 @@ funcs.forEach(function (name) {
|
|
|
18476
19248
|
|
|
18477
19249
|
|
|
18478
19250
|
|
|
19251
|
+
|
|
19252
|
+
|
|
19253
|
+
|
|
19254
|
+
|
|
19255
|
+
|
|
18479
19256
|
|
|
18480
19257
|
|
|
18481
19258
|
|
|
@@ -18550,7 +19327,7 @@ function renderEmptyContenet(h, _vm) {
|
|
|
18550
19327
|
if (renderEmpty) {
|
|
18551
19328
|
emptyContent = renderEmpty.call(_vm, h, emptyOpts, params);
|
|
18552
19329
|
} else {
|
|
18553
|
-
emptyContent =
|
|
19330
|
+
emptyContent = getFuncText(_vm.emptyText) || conf.i18n('vxe.table.emptyText');
|
|
18554
19331
|
}
|
|
18555
19332
|
}
|
|
18556
19333
|
|
|
@@ -18577,7 +19354,7 @@ function handleUupdateResize(_vm) {
|
|
|
18577
19354
|
height: [Number, String],
|
|
18578
19355
|
// 表格的最大高度
|
|
18579
19356
|
maxHeight: [Number, String],
|
|
18580
|
-
//
|
|
19357
|
+
// (即将废弃)所有列是否允许拖动列宽调整大小
|
|
18581
19358
|
resizable: {
|
|
18582
19359
|
type: Boolean,
|
|
18583
19360
|
default: function _default() {
|
|
@@ -18738,9 +19515,11 @@ function handleUupdateResize(_vm) {
|
|
|
18738
19515
|
},
|
|
18739
19516
|
|
|
18740
19517
|
/** 高级属性 */
|
|
18741
|
-
//
|
|
19518
|
+
// (即将废弃)columnKey 已废弃,被 column-config.useKey 替换
|
|
18742
19519
|
columnKey: Boolean,
|
|
19520
|
+
// (即将废弃)rowKey 已废弃,被 row-config.useKey 替换
|
|
18743
19521
|
rowKey: Boolean,
|
|
19522
|
+
// (即将废弃)rowId 已废弃,被 row-config.keyField 替换
|
|
18744
19523
|
rowId: {
|
|
18745
19524
|
type: String,
|
|
18746
19525
|
default: function _default() {
|
|
@@ -18832,6 +19611,7 @@ function handleUupdateResize(_vm) {
|
|
|
18832
19611
|
return conf.table.animat;
|
|
18833
19612
|
}
|
|
18834
19613
|
},
|
|
19614
|
+
// (可能会被废弃的参数,不要使用)
|
|
18835
19615
|
delayHover: {
|
|
18836
19616
|
type: Number,
|
|
18837
19617
|
default: function _default() {
|
|
@@ -19288,7 +20068,7 @@ function handleUupdateResize(_vm) {
|
|
|
19288
20068
|
}
|
|
19289
20069
|
|
|
19290
20070
|
if ((_this.scrollXLoad || _this.scrollYLoad) && _this.expandColumn) {
|
|
19291
|
-
|
|
20071
|
+
warnLog('vxe.error.scrollErrProp', ['column.type=expand']);
|
|
19292
20072
|
}
|
|
19293
20073
|
|
|
19294
20074
|
_this.recalculate();
|
|
@@ -19420,7 +20200,8 @@ function handleUupdateResize(_vm) {
|
|
|
19420
20200
|
editOpts = _Object$assign.editOpts,
|
|
19421
20201
|
treeOpts = _Object$assign.treeOpts,
|
|
19422
20202
|
treeConfig = _Object$assign.treeConfig,
|
|
19423
|
-
showOverflow = _Object$assign.showOverflow
|
|
20203
|
+
showOverflow = _Object$assign.showOverflow,
|
|
20204
|
+
rowOpts = _Object$assign.rowOpts;
|
|
19424
20205
|
|
|
19425
20206
|
if (false) { var exportConfig, exportOpts, importConfig, importOpts; }
|
|
19426
20207
|
|
|
@@ -19743,6 +20524,7 @@ function handleUupdateResize(_vm) {
|
|
|
19743
20524
|
|
|
19744
20525
|
|
|
19745
20526
|
|
|
20527
|
+
|
|
19746
20528
|
var Table = Object.assign(table, {
|
|
19747
20529
|
install: function install(Vue) {
|
|
19748
20530
|
if (typeof window !== 'undefined' && window.VXETableMixin) {
|
|
@@ -19779,6 +20561,7 @@ var Table = Object.assign(table, {
|
|
|
19779
20561
|
|
|
19780
20562
|
|
|
19781
20563
|
|
|
20564
|
+
|
|
19782
20565
|
/* harmony default export */ var panel = ({
|
|
19783
20566
|
name: 'VxeTableFilter',
|
|
19784
20567
|
props: {
|
|
@@ -19886,7 +20669,7 @@ var Table = Object.assign(table, {
|
|
|
19886
20669
|
class: 'vxe-checkbox--icon vxe-checkbox--indeterminate-icon'
|
|
19887
20670
|
})] : []).concat([h('span', {
|
|
19888
20671
|
class: 'vxe-checkbox--label'
|
|
19889
|
-
},
|
|
20672
|
+
}, utils.formatText(item.label, 1))]));
|
|
19890
20673
|
}))];
|
|
19891
20674
|
},
|
|
19892
20675
|
renderFooter: function renderFooter(h) {
|
|
@@ -19990,6 +20773,7 @@ var Table = Object.assign(table, {
|
|
|
19990
20773
|
|
|
19991
20774
|
|
|
19992
20775
|
|
|
20776
|
+
|
|
19993
20777
|
/* harmony default export */ var src_mixin = ({
|
|
19994
20778
|
methods: {
|
|
19995
20779
|
/**
|
|
@@ -20007,7 +20791,7 @@ var Table = Object.assign(table, {
|
|
|
20007
20791
|
|
|
20008
20792
|
if (headerWrapperElem) {
|
|
20009
20793
|
var filterBtnElem = headerWrapperElem.querySelector(".vxe-header--column.".concat(column.id, " .vxe-filter--btn"));
|
|
20010
|
-
|
|
20794
|
+
dom.triggerEvent(filterBtnElem, 'click');
|
|
20011
20795
|
}
|
|
20012
20796
|
});
|
|
20013
20797
|
}
|
|
@@ -20024,7 +20808,7 @@ var Table = Object.assign(table, {
|
|
|
20024
20808
|
var column = handleFieldOrColumn(this, fieldOrColumn);
|
|
20025
20809
|
|
|
20026
20810
|
if (column && column.filters && options) {
|
|
20027
|
-
column.filters =
|
|
20811
|
+
column.filters = toFilters(options);
|
|
20028
20812
|
}
|
|
20029
20813
|
|
|
20030
20814
|
return this.$nextTick();
|
|
@@ -20064,7 +20848,7 @@ var Table = Object.assign(table, {
|
|
|
20064
20848
|
var compConf = filterRender ? v_x_e_table.renderer.get(filterRender.name) : null;
|
|
20065
20849
|
var filterRecoverMethod = column.filterRecoverMethod || (compConf ? compConf.filterRecoverMethod : null);
|
|
20066
20850
|
|
|
20067
|
-
var _DomTools$getDomNode =
|
|
20851
|
+
var _DomTools$getDomNode = dom.getDomNode(),
|
|
20068
20852
|
visibleWidth = _DomTools$getDomNode.visibleWidth;
|
|
20069
20853
|
|
|
20070
20854
|
Object.assign(filterStore, {
|
|
@@ -20405,7 +21189,7 @@ var Filter = {
|
|
|
20405
21189
|
class: ['vxe-context-menu--link-prefix', item.prefixIcon]
|
|
20406
21190
|
}), h('span', {
|
|
20407
21191
|
class: 'vxe-context-menu--link-content'
|
|
20408
|
-
},
|
|
21192
|
+
}, getFuncText(item.name)), h('i', {
|
|
20409
21193
|
class: ['vxe-context-menu--link-suffix', hasChildMenus ? item.suffixIcon || 'suffix--haschild' : item.suffixIcon]
|
|
20410
21194
|
})]), hasChildMenus ? h('ul', {
|
|
20411
21195
|
class: ['vxe-table--context-menu-clild-wrapper', {
|
|
@@ -20435,7 +21219,7 @@ var Filter = {
|
|
|
20435
21219
|
class: ['vxe-context-menu--link-prefix', child.prefixIcon]
|
|
20436
21220
|
}), h('span', {
|
|
20437
21221
|
class: 'vxe-context-menu--link-content'
|
|
20438
|
-
},
|
|
21222
|
+
}, getFuncText(child.name))])]);
|
|
20439
21223
|
})) : null]);
|
|
20440
21224
|
}));
|
|
20441
21225
|
}));
|
|
@@ -20446,6 +21230,9 @@ var Filter = {
|
|
|
20446
21230
|
|
|
20447
21231
|
|
|
20448
21232
|
|
|
21233
|
+
|
|
21234
|
+
|
|
21235
|
+
|
|
20449
21236
|
/* harmony default export */ var menu_src_mixin = ({
|
|
20450
21237
|
methods: {
|
|
20451
21238
|
/**
|
|
@@ -20468,7 +21255,7 @@ var Filter = {
|
|
|
20468
21255
|
});
|
|
20469
21256
|
|
|
20470
21257
|
if (keyCode === operKey) {
|
|
20471
|
-
if (operRest &&
|
|
21258
|
+
if (operRest && utils.hasChildrenList(ctxMenuStore.selected)) {
|
|
20472
21259
|
ctxMenuStore.showChild = true;
|
|
20473
21260
|
} else {
|
|
20474
21261
|
ctxMenuStore.showChild = false;
|
|
@@ -20514,7 +21301,7 @@ var Filter = {
|
|
|
20514
21301
|
var layoutList = ['header', 'body', 'footer'];
|
|
20515
21302
|
|
|
20516
21303
|
if (isEnableConf(menuConfig) || contextMenu) {
|
|
20517
|
-
if (ctxMenuStore.visible && $refs.ctxWrapper &&
|
|
21304
|
+
if (ctxMenuStore.visible && $refs.ctxWrapper && dom.getEventTargetNode(evnt, $refs.ctxWrapper.$el).flag) {
|
|
20518
21305
|
evnt.preventDefault();
|
|
20519
21306
|
return;
|
|
20520
21307
|
}
|
|
@@ -20553,7 +21340,7 @@ var Filter = {
|
|
|
20553
21340
|
|
|
20554
21341
|
for (var index = 0; index < layoutList.length; index++) {
|
|
20555
21342
|
var layout = layoutList[index];
|
|
20556
|
-
var columnTargetNode =
|
|
21343
|
+
var columnTargetNode = dom.getEventTargetNode(evnt, this.$el, "vxe-".concat(layout, "--column"), function (target) {
|
|
20557
21344
|
// target=td|th,直接向上找 table 去匹配即可
|
|
20558
21345
|
return target.parentNode.parentNode.parentNode.getAttribute('xid') === tId;
|
|
20559
21346
|
});
|
|
@@ -20593,7 +21380,7 @@ var Filter = {
|
|
|
20593
21380
|
}
|
|
20594
21381
|
|
|
20595
21382
|
return;
|
|
20596
|
-
} else if (
|
|
21383
|
+
} else if (dom.getEventTargetNode(evnt, this.$el, "vxe-table--".concat(layout, "-wrapper"), function (target) {
|
|
20597
21384
|
return target.getAttribute('xid') === tId;
|
|
20598
21385
|
}).flag) {
|
|
20599
21386
|
if (ctxMenuOpts.trigger === 'cell') {
|
|
@@ -20607,7 +21394,7 @@ var Filter = {
|
|
|
20607
21394
|
}
|
|
20608
21395
|
}
|
|
20609
21396
|
|
|
20610
|
-
if ($refs.filterWrapper && !
|
|
21397
|
+
if ($refs.filterWrapper && !dom.getEventTargetNode(evnt, $refs.filterWrapper.$el).flag) {
|
|
20611
21398
|
this.closeFilter();
|
|
20612
21399
|
}
|
|
20613
21400
|
|
|
@@ -20640,7 +21427,7 @@ var Filter = {
|
|
|
20640
21427
|
|
|
20641
21428
|
_this.updateZindex();
|
|
20642
21429
|
|
|
20643
|
-
var _DomTools$getDomNode =
|
|
21430
|
+
var _DomTools$getDomNode = dom.getDomNode(),
|
|
20644
21431
|
scrollTop = _DomTools$getDomNode.scrollTop,
|
|
20645
21432
|
scrollLeft = _DomTools$getDomNode.scrollLeft,
|
|
20646
21433
|
visibleHeight = _DomTools$getDomNode.visibleHeight,
|
|
@@ -20669,7 +21456,7 @@ var Filter = {
|
|
|
20669
21456
|
var clientHeight = ctxElem.clientHeight;
|
|
20670
21457
|
var clientWidth = ctxElem.clientWidth;
|
|
20671
21458
|
|
|
20672
|
-
var _DomTools$getAbsolute =
|
|
21459
|
+
var _DomTools$getAbsolute = dom.getAbsolutePos(ctxElem),
|
|
20673
21460
|
boundingTop = _DomTools$getAbsolute.boundingTop,
|
|
20674
21461
|
boundingLeft = _DomTools$getAbsolute.boundingLeft;
|
|
20675
21462
|
|
|
@@ -20694,7 +21481,7 @@ var Filter = {
|
|
|
20694
21481
|
_this.scrollToRow(row, column).then(function () {
|
|
20695
21482
|
var cell = _this.getCell(row, column);
|
|
20696
21483
|
|
|
20697
|
-
var _DomTools$getAbsolute2 =
|
|
21484
|
+
var _DomTools$getAbsolute2 = dom.getAbsolutePos(cell),
|
|
20698
21485
|
boundingTop = _DomTools$getAbsolute2.boundingTop,
|
|
20699
21486
|
boundingLeft = _DomTools$getAbsolute2.boundingLeft;
|
|
20700
21487
|
|
|
@@ -20723,14 +21510,14 @@ var Filter = {
|
|
|
20723
21510
|
ctxMenuStore.selectChild = child;
|
|
20724
21511
|
|
|
20725
21512
|
if (!child) {
|
|
20726
|
-
ctxMenuStore.showChild =
|
|
21513
|
+
ctxMenuStore.showChild = utils.hasChildrenList(item);
|
|
20727
21514
|
|
|
20728
21515
|
if (ctxMenuStore.showChild) {
|
|
20729
21516
|
this.$nextTick(function () {
|
|
20730
21517
|
var childWrapperElem = menuElem.nextElementSibling;
|
|
20731
21518
|
|
|
20732
21519
|
if (childWrapperElem) {
|
|
20733
|
-
var _DomTools$getAbsolute3 =
|
|
21520
|
+
var _DomTools$getAbsolute3 = dom.getAbsolutePos(menuElem),
|
|
20734
21521
|
boundingTop = _DomTools$getAbsolute3.boundingTop,
|
|
20735
21522
|
boundingLeft = _DomTools$getAbsolute3.boundingLeft,
|
|
20736
21523
|
visibleHeight = _DomTools$getAbsolute3.visibleHeight,
|
|
@@ -20836,7 +21623,9 @@ var Menu = {
|
|
|
20836
21623
|
|
|
20837
21624
|
|
|
20838
21625
|
|
|
20839
|
-
|
|
21626
|
+
|
|
21627
|
+
|
|
21628
|
+
var mixin_getRowid = utils.getRowid;
|
|
20840
21629
|
|
|
20841
21630
|
function insertTreeRow(_vm, newRecords, isAppend) {
|
|
20842
21631
|
var tableFullTreeData = _vm.tableFullTreeData,
|
|
@@ -21027,7 +21816,7 @@ function insertTreeRow(_vm, newRecords, isAppend) {
|
|
|
21027
21816
|
}
|
|
21028
21817
|
} else {
|
|
21029
21818
|
if (treeConfig) {
|
|
21030
|
-
throw new Error(
|
|
21819
|
+
throw new Error(utils.getLog('vxe.error.noTree', ['insert']));
|
|
21031
21820
|
}
|
|
21032
21821
|
|
|
21033
21822
|
var afIndex = -1; // 如果是可视索引
|
|
@@ -21041,7 +21830,7 @@ function insertTreeRow(_vm, newRecords, isAppend) {
|
|
|
21041
21830
|
}
|
|
21042
21831
|
|
|
21043
21832
|
if (afIndex === -1) {
|
|
21044
|
-
throw new Error(
|
|
21833
|
+
throw new Error(errLog('vxe.error.unableInsert'));
|
|
21045
21834
|
}
|
|
21046
21835
|
|
|
21047
21836
|
afterFullData.splice.apply(afterFullData, [afIndex, 0].concat(_toConsumableArray(newRecords)));
|
|
@@ -21440,7 +22229,7 @@ function insertTreeRow(_vm, newRecords, isAppend) {
|
|
|
21440
22229
|
var oldModel = oldColumn.model;
|
|
21441
22230
|
|
|
21442
22231
|
if (oldModel.update) {
|
|
21443
|
-
|
|
22232
|
+
utils.setCellValue(row, oldColumn, oldModel.value);
|
|
21444
22233
|
}
|
|
21445
22234
|
|
|
21446
22235
|
this.clearValidate();
|
|
@@ -21464,7 +22253,7 @@ function insertTreeRow(_vm, newRecords, isAppend) {
|
|
|
21464
22253
|
editRender = column.editRender;
|
|
21465
22254
|
|
|
21466
22255
|
if (editRender) {
|
|
21467
|
-
model.value =
|
|
22256
|
+
model.value = utils.getCellValue(row, column);
|
|
21468
22257
|
model.update = false;
|
|
21469
22258
|
}
|
|
21470
22259
|
},
|
|
@@ -21473,7 +22262,7 @@ function insertTreeRow(_vm, newRecords, isAppend) {
|
|
|
21473
22262
|
editRender = column.editRender;
|
|
21474
22263
|
|
|
21475
22264
|
if (editRender && model.update) {
|
|
21476
|
-
|
|
22265
|
+
utils.setCellValue(row, column, model.value);
|
|
21477
22266
|
model.update = false;
|
|
21478
22267
|
model.value = null;
|
|
21479
22268
|
}
|
|
@@ -21742,7 +22531,7 @@ function insertTreeRow(_vm, newRecords, isAppend) {
|
|
|
21742
22531
|
|
|
21743
22532
|
if (headerElem) {
|
|
21744
22533
|
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.arrayEach(headerElem.querySelectorAll('.col--title-selected'), function (elem) {
|
|
21745
|
-
return
|
|
22534
|
+
return dom.removeClass(elem, 'col--title-selected');
|
|
21746
22535
|
});
|
|
21747
22536
|
}
|
|
21748
22537
|
},
|
|
@@ -21750,7 +22539,7 @@ function insertTreeRow(_vm, newRecords, isAppend) {
|
|
|
21750
22539
|
var cell = this.$el.querySelector('.col--selected');
|
|
21751
22540
|
|
|
21752
22541
|
if (cell) {
|
|
21753
|
-
|
|
22542
|
+
dom.removeClass(cell, 'col--selected');
|
|
21754
22543
|
}
|
|
21755
22544
|
},
|
|
21756
22545
|
addColSdCls: function addColSdCls() {
|
|
@@ -21763,7 +22552,7 @@ function insertTreeRow(_vm, newRecords, isAppend) {
|
|
|
21763
22552
|
var cell = this.getCell(row, column);
|
|
21764
22553
|
|
|
21765
22554
|
if (cell) {
|
|
21766
|
-
|
|
22555
|
+
dom.addClass(cell, 'col--selected');
|
|
21767
22556
|
}
|
|
21768
22557
|
}
|
|
21769
22558
|
}
|
|
@@ -21791,6 +22580,7 @@ function _arrayWithHoles(arr) {
|
|
|
21791
22580
|
|
|
21792
22581
|
|
|
21793
22582
|
|
|
22583
|
+
|
|
21794
22584
|
function _iterableToArrayLimit(arr, i) {
|
|
21795
22585
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
21796
22586
|
|
|
@@ -21847,6 +22637,11 @@ function _slicedToArray(arr, i) {
|
|
|
21847
22637
|
|
|
21848
22638
|
|
|
21849
22639
|
|
|
22640
|
+
|
|
22641
|
+
|
|
22642
|
+
|
|
22643
|
+
|
|
22644
|
+
|
|
21850
22645
|
var allActivedModals = [];
|
|
21851
22646
|
var msgQueue = [];
|
|
21852
22647
|
/* harmony default export */ var modal = ({
|
|
@@ -22068,7 +22863,7 @@ var msgQueue = [];
|
|
|
22068
22863
|
},
|
|
22069
22864
|
created: function created() {
|
|
22070
22865
|
if (this.storage && !this.id) {
|
|
22071
|
-
|
|
22866
|
+
errLog('vxe.error.reqProp', ['modal.id']);
|
|
22072
22867
|
}
|
|
22073
22868
|
},
|
|
22074
22869
|
mounted: function mounted() {
|
|
@@ -22186,7 +22981,7 @@ var msgQueue = [];
|
|
|
22186
22981
|
$modal: this
|
|
22187
22982
|
}, h) : h('span', {
|
|
22188
22983
|
class: 'vxe-modal--title'
|
|
22189
|
-
}, title ?
|
|
22984
|
+
}, title ? getFuncText(title) : conf.i18n('vxe.alert.title')), showZoom ? h('i', {
|
|
22190
22985
|
class: ['vxe-modal--zoom-btn', 'trigger--btn', zoomLocat ? conf.icon.MODAL_ZOOM_OUT : conf.icon.MODAL_ZOOM_IN],
|
|
22191
22986
|
attrs: {
|
|
22192
22987
|
title: conf.i18n("vxe.modal.zoom".concat(zoomLocat ? 'Out' : 'In'))
|
|
@@ -22212,7 +23007,7 @@ var msgQueue = [];
|
|
|
22212
23007
|
class: 'vxe-modal--content'
|
|
22213
23008
|
}, defaultSlot ? !inited || destroyOnClose && !visible ? [] : defaultSlot.call(this, {
|
|
22214
23009
|
$modal: this
|
|
22215
|
-
}, h) :
|
|
23010
|
+
}, h) : getFuncText(content)), !isMsg ? h('div', {
|
|
22216
23011
|
class: ['vxe-loading', {
|
|
22217
23012
|
'is--visible': loading
|
|
22218
23013
|
}]
|
|
@@ -22270,8 +23065,8 @@ var msgQueue = [];
|
|
|
22270
23065
|
|
|
22271
23066
|
if (zIndex) {
|
|
22272
23067
|
this.modalZindex = zIndex;
|
|
22273
|
-
} else if (modalZindex <
|
|
22274
|
-
this.modalZindex =
|
|
23068
|
+
} else if (modalZindex < utils.getLastZIndex()) {
|
|
23069
|
+
this.modalZindex = utils.nextZIndex();
|
|
22275
23070
|
}
|
|
22276
23071
|
},
|
|
22277
23072
|
closeEvent: function closeEvent(evnt) {
|
|
@@ -22575,7 +23370,7 @@ var msgQueue = [];
|
|
|
22575
23370
|
|
|
22576
23371
|
var modalBoxElem = _this7.getBox();
|
|
22577
23372
|
|
|
22578
|
-
var _DomTools$getDomNode =
|
|
23373
|
+
var _DomTools$getDomNode = dom.getDomNode(),
|
|
22579
23374
|
visibleHeight = _DomTools$getDomNode.visibleHeight,
|
|
22580
23375
|
visibleWidth = _DomTools$getDomNode.visibleWidth;
|
|
22581
23376
|
|
|
@@ -22691,14 +23486,14 @@ var msgQueue = [];
|
|
|
22691
23486
|
zoomLocat = this.zoomLocat;
|
|
22692
23487
|
var modalBoxElem = this.getBox();
|
|
22693
23488
|
|
|
22694
|
-
if (!zoomLocat && evnt.button === 0 && !
|
|
23489
|
+
if (!zoomLocat && evnt.button === 0 && !dom.getEventTargetNode(evnt, modalBoxElem, 'trigger--btn').flag) {
|
|
22695
23490
|
evnt.preventDefault();
|
|
22696
23491
|
var domMousemove = document.onmousemove;
|
|
22697
23492
|
var domMouseup = document.onmouseup;
|
|
22698
23493
|
var disX = evnt.clientX - modalBoxElem.offsetLeft;
|
|
22699
23494
|
var disY = evnt.clientY - modalBoxElem.offsetTop;
|
|
22700
23495
|
|
|
22701
|
-
var _DomTools$getDomNode2 =
|
|
23496
|
+
var _DomTools$getDomNode2 = dom.getDomNode(),
|
|
22702
23497
|
visibleHeight = _DomTools$getDomNode2.visibleHeight,
|
|
22703
23498
|
visibleWidth = _DomTools$getDomNode2.visibleWidth;
|
|
22704
23499
|
|
|
@@ -22756,7 +23551,7 @@ var msgQueue = [];
|
|
|
22756
23551
|
remember = this.remember,
|
|
22757
23552
|
storage = this.storage;
|
|
22758
23553
|
|
|
22759
|
-
var _DomTools$getDomNode3 =
|
|
23554
|
+
var _DomTools$getDomNode3 = dom.getDomNode(),
|
|
22760
23555
|
visibleHeight = _DomTools$getDomNode3.visibleHeight,
|
|
22761
23556
|
visibleWidth = _DomTools$getDomNode3.visibleWidth;
|
|
22762
23557
|
|
|
@@ -23106,6 +23901,10 @@ function toFloatValueFixed(inputValue, digitsValue) {
|
|
|
23106
23901
|
|
|
23107
23902
|
|
|
23108
23903
|
|
|
23904
|
+
|
|
23905
|
+
|
|
23906
|
+
|
|
23907
|
+
|
|
23109
23908
|
|
|
23110
23909
|
var yearSize = 20;
|
|
23111
23910
|
var monthSize = 20;
|
|
@@ -24214,7 +25013,7 @@ function renderExtraSuffixIcon(h, _vm) {
|
|
|
24214
25013
|
var placeholder = this.placeholder;
|
|
24215
25014
|
|
|
24216
25015
|
if (placeholder) {
|
|
24217
|
-
return
|
|
25016
|
+
return getFuncText(placeholder);
|
|
24218
25017
|
}
|
|
24219
25018
|
|
|
24220
25019
|
return '';
|
|
@@ -24279,7 +25078,7 @@ function renderExtraSuffixIcon(h, _vm) {
|
|
|
24279
25078
|
},
|
|
24280
25079
|
mounted: function mounted() {
|
|
24281
25080
|
if (this.dateConfig) {
|
|
24282
|
-
|
|
25081
|
+
warnLog('vxe.error.removeProp', ['date-config']);
|
|
24283
25082
|
}
|
|
24284
25083
|
|
|
24285
25084
|
if (this.isDatePickerType) {
|
|
@@ -24528,7 +25327,7 @@ function renderExtraSuffixIcon(h, _vm) {
|
|
|
24528
25327
|
inputValue = this.inputValue;
|
|
24529
25328
|
|
|
24530
25329
|
if (!disabled) {
|
|
24531
|
-
if (
|
|
25330
|
+
if (dom.hasClass(evnt.currentTarget, 'is--clear')) {
|
|
24532
25331
|
this.emitModel('', evnt);
|
|
24533
25332
|
this.clearValueEvent(evnt, '');
|
|
24534
25333
|
} else {
|
|
@@ -24761,7 +25560,7 @@ function renderExtraSuffixIcon(h, _vm) {
|
|
|
24761
25560
|
this.numberStopDown();
|
|
24762
25561
|
|
|
24763
25562
|
if (evnt.button === 0) {
|
|
24764
|
-
var isPrevNumber =
|
|
25563
|
+
var isPrevNumber = dom.hasClass(evnt.currentTarget, 'is--prev');
|
|
24765
25564
|
|
|
24766
25565
|
if (isPrevNumber) {
|
|
24767
25566
|
this.numberPrevEvent(evnt);
|
|
@@ -25254,8 +26053,8 @@ function renderExtraSuffixIcon(h, _vm) {
|
|
|
25254
26053
|
// 日期
|
|
25255
26054
|
// 弹出面板
|
|
25256
26055
|
updateZindex: function updateZindex() {
|
|
25257
|
-
if (this.panelIndex <
|
|
25258
|
-
this.panelIndex =
|
|
26056
|
+
if (this.panelIndex < utils.getLastZIndex()) {
|
|
26057
|
+
this.panelIndex = utils.nextZIndex();
|
|
25259
26058
|
}
|
|
25260
26059
|
},
|
|
25261
26060
|
showPanel: function showPanel() {
|
|
@@ -25310,7 +26109,7 @@ function renderExtraSuffixIcon(h, _vm) {
|
|
|
25310
26109
|
zIndex: panelIndex
|
|
25311
26110
|
};
|
|
25312
26111
|
|
|
25313
|
-
var _DomTools$getAbsolute =
|
|
26112
|
+
var _DomTools$getAbsolute = dom.getAbsolutePos(targetElem),
|
|
25314
26113
|
boundingTop = _DomTools$getAbsolute.boundingTop,
|
|
25315
26114
|
boundingLeft = _DomTools$getAbsolute.boundingLeft,
|
|
25316
26115
|
visibleHeight = _DomTools$getAbsolute.visibleHeight,
|
|
@@ -25386,7 +26185,7 @@ function renderExtraSuffixIcon(h, _vm) {
|
|
|
25386
26185
|
isActivated = this.isActivated;
|
|
25387
26186
|
|
|
25388
26187
|
if (!disabled && isActivated) {
|
|
25389
|
-
this.isActivated =
|
|
26188
|
+
this.isActivated = dom.getEventTargetNode(evnt, $el).flag || dom.getEventTargetNode(evnt, $refs.panel).flag;
|
|
25390
26189
|
|
|
25391
26190
|
if (!this.isActivated) {
|
|
25392
26191
|
// 如果是日期类型
|
|
@@ -25477,7 +26276,7 @@ function renderExtraSuffixIcon(h, _vm) {
|
|
|
25477
26276
|
|
|
25478
26277
|
if (!disabled) {
|
|
25479
26278
|
if (visiblePanel) {
|
|
25480
|
-
if (
|
|
26279
|
+
if (dom.getEventTargetNode(evnt, $refs.panel).flag) {
|
|
25481
26280
|
this.updatePlacement();
|
|
25482
26281
|
} else {
|
|
25483
26282
|
this.hidePanel();
|
|
@@ -25586,7 +26385,7 @@ function renderExtraSuffixIcon(h, _vm) {
|
|
|
25586
26385
|
class: 'vxe-checkbox--icon'
|
|
25587
26386
|
}), h('span', {
|
|
25588
26387
|
class: 'vxe-checkbox--label'
|
|
25589
|
-
}, $scopedSlots.default ? $scopedSlots.default.call(this, {}) : [
|
|
26388
|
+
}, $scopedSlots.default ? $scopedSlots.default.call(this, {}) : [getFuncText(content)])]);
|
|
25590
26389
|
},
|
|
25591
26390
|
methods: {
|
|
25592
26391
|
changeEvent: function changeEvent(evnt) {
|
|
@@ -25632,6 +26431,9 @@ function renderExtraSuffixIcon(h, _vm) {
|
|
|
25632
26431
|
|
|
25633
26432
|
|
|
25634
26433
|
|
|
26434
|
+
|
|
26435
|
+
|
|
26436
|
+
|
|
25635
26437
|
function isOptionVisible(option) {
|
|
25636
26438
|
return option.visible !== false;
|
|
25637
26439
|
}
|
|
@@ -25819,7 +26621,7 @@ function renderOption(h, _vm, list, group) {
|
|
|
25819
26621
|
}, defaultSlot ? _vm.callSlot(defaultSlot, {
|
|
25820
26622
|
option: option,
|
|
25821
26623
|
$select: _vm
|
|
25822
|
-
}, h) :
|
|
26624
|
+
}, h) : utils.formatText(getFuncText(option[labelField]))) : null;
|
|
25823
26625
|
});
|
|
25824
26626
|
}
|
|
25825
26627
|
function renderOptgroup(h, _vm) {
|
|
@@ -25845,7 +26647,7 @@ function renderOptgroup(h, _vm) {
|
|
|
25845
26647
|
}, defaultSlot ? _vm.callSlot(defaultSlot, {
|
|
25846
26648
|
option: group,
|
|
25847
26649
|
$select: _vm
|
|
25848
|
-
}, h) :
|
|
26650
|
+
}, h) : getFuncText(group[groupLabelField])), h('div', {
|
|
25849
26651
|
class: 'vxe-optgroup--wrapper'
|
|
25850
26652
|
}, renderOption(h, _vm, group[groupOptionsField], group))]);
|
|
25851
26653
|
});
|
|
@@ -26249,7 +27051,7 @@ function select_renderOpts(h, _vm) {
|
|
|
26249
27051
|
|
|
26250
27052
|
if (!disabled) {
|
|
26251
27053
|
if (visiblePanel) {
|
|
26252
|
-
if (
|
|
27054
|
+
if (dom.getEventTargetNode(evnt, $refs.panel).flag) {
|
|
26253
27055
|
this.updatePlacement();
|
|
26254
27056
|
} else {
|
|
26255
27057
|
this.hideOptionPanel();
|
|
@@ -26264,7 +27066,7 @@ function select_renderOpts(h, _vm) {
|
|
|
26264
27066
|
visiblePanel = this.visiblePanel;
|
|
26265
27067
|
|
|
26266
27068
|
if (!disabled) {
|
|
26267
|
-
this.isActivated =
|
|
27069
|
+
this.isActivated = dom.getEventTargetNode(evnt, $el).flag || dom.getEventTargetNode(evnt, $refs.panel).flag;
|
|
26268
27070
|
|
|
26269
27071
|
if (visiblePanel && !this.isActivated) {
|
|
26270
27072
|
this.hideOptionPanel();
|
|
@@ -26330,8 +27132,8 @@ function select_renderOpts(h, _vm) {
|
|
|
26330
27132
|
this.hideOptionPanel();
|
|
26331
27133
|
},
|
|
26332
27134
|
updateZindex: function updateZindex() {
|
|
26333
|
-
if (this.panelIndex <
|
|
26334
|
-
this.panelIndex =
|
|
27135
|
+
if (this.panelIndex < utils.getLastZIndex()) {
|
|
27136
|
+
this.panelIndex = utils.nextZIndex();
|
|
26335
27137
|
}
|
|
26336
27138
|
},
|
|
26337
27139
|
focusEvent: function focusEvent() {
|
|
@@ -26442,7 +27244,7 @@ function select_renderOpts(h, _vm) {
|
|
|
26442
27244
|
zIndex: panelIndex
|
|
26443
27245
|
};
|
|
26444
27246
|
|
|
26445
|
-
var _DomTools$getAbsolute =
|
|
27247
|
+
var _DomTools$getAbsolute = dom.getAbsolutePos(targetElem),
|
|
26446
27248
|
boundingTop = _DomTools$getAbsolute.boundingTop,
|
|
26447
27249
|
boundingLeft = _DomTools$getAbsolute.boundingLeft,
|
|
26448
27250
|
visibleHeight = _DomTools$getAbsolute.visibleHeight,
|
|
@@ -26526,6 +27328,7 @@ function select_renderOpts(h, _vm) {
|
|
|
26526
27328
|
|
|
26527
27329
|
|
|
26528
27330
|
|
|
27331
|
+
|
|
26529
27332
|
var util_OptionConfig = /*#__PURE__*/function () {
|
|
26530
27333
|
function OptionConfig($xeselect, _vm) {
|
|
26531
27334
|
_classCallCheck(this, OptionConfig);
|
|
@@ -26650,6 +27453,7 @@ Object.keys(option_props).forEach(function (name) {
|
|
|
26650
27453
|
|
|
26651
27454
|
|
|
26652
27455
|
|
|
27456
|
+
|
|
26653
27457
|
/* harmony default export */ var export_panel = ({
|
|
26654
27458
|
name: 'VxeExportPanel',
|
|
26655
27459
|
props: {
|
|
@@ -26711,7 +27515,7 @@ Object.keys(option_props).forEach(function (name) {
|
|
|
26711
27515
|
var isHeader = defaultOptions.isHeader;
|
|
26712
27516
|
var cols = [];
|
|
26713
27517
|
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.eachTree(storeData.columns, function (column) {
|
|
26714
|
-
var colTitle =
|
|
27518
|
+
var colTitle = utils.formatText(column.getTitle(), 1);
|
|
26715
27519
|
var isColGroup = column.children && column.children.length;
|
|
26716
27520
|
cols.push(h('li', {
|
|
26717
27521
|
class: ['vxe-export--panel-column-option', "level--".concat(column.level), {
|
|
@@ -27150,7 +27954,7 @@ Object.keys(option_props).forEach(function (name) {
|
|
|
27150
27954
|
class: 'vxe-radio--icon'
|
|
27151
27955
|
}), h('span', {
|
|
27152
27956
|
class: 'vxe-radio--label'
|
|
27153
|
-
}, $scopedSlots.default ? $scopedSlots.default.call(this, {}) : [
|
|
27957
|
+
}, $scopedSlots.default ? $scopedSlots.default.call(this, {}) : [getFuncText(content)])]);
|
|
27154
27958
|
},
|
|
27155
27959
|
methods: {
|
|
27156
27960
|
handleValue: function handleValue(label, evnt) {
|
|
@@ -27197,6 +28001,7 @@ Object.keys(option_props).forEach(function (name) {
|
|
|
27197
28001
|
|
|
27198
28002
|
|
|
27199
28003
|
|
|
28004
|
+
|
|
27200
28005
|
/* harmony default export */ var import_panel = ({
|
|
27201
28006
|
name: 'VxeImportPanel',
|
|
27202
28007
|
props: {
|
|
@@ -27336,7 +28141,7 @@ Object.keys(option_props).forEach(function (name) {
|
|
|
27336
28141
|
var $xetable = this.$parent;
|
|
27337
28142
|
$xetable.readFile(this.defaultOptions).then(function (params) {
|
|
27338
28143
|
var file = params.file;
|
|
27339
|
-
Object.assign(_this.storeData,
|
|
28144
|
+
Object.assign(_this.storeData, utils.parseFile(file), {
|
|
27340
28145
|
file: file
|
|
27341
28146
|
});
|
|
27342
28147
|
}).catch(function (e) {
|
|
@@ -27411,7 +28216,11 @@ var es_string_repeat = __webpack_require__("38cf");
|
|
|
27411
28216
|
|
|
27412
28217
|
|
|
27413
28218
|
|
|
27414
|
-
|
|
28219
|
+
|
|
28220
|
+
|
|
28221
|
+
|
|
28222
|
+
|
|
28223
|
+
var mixin_formatText = utils.formatText; // 默认导出或打印的 HTML 样式
|
|
27415
28224
|
|
|
27416
28225
|
var defaultHtmlStyle = 'body{margin:0;color:#333333;font-size:14px;font-family:"Microsoft YaHei",微软雅黑,"MicrosoftJhengHei",华文细黑,STHeiti,MingLiu}body *{-webkit-box-sizing:border-box;box-sizing:border-box}.vxe-table{border-collapse:collapse;text-align:left;border-spacing:0}.vxe-table:not(.is--print){table-layout:fixed}.vxe-table,.vxe-table th,.vxe-table td,.vxe-table td{border-color:#D0D0D0;border-style:solid;border-width:0}.vxe-table.is--print{width:100%}.border--default,.border--full,.border--outer{border-top-width:1px}.border--default,.border--full,.border--outer{border-left-width:1px}.border--outer,.border--default th,.border--default td,.border--full th,.border--full td,.border--outer th,.border--inner th,.border--inner td{border-bottom-width:1px}.border--default,.border--outer,.border--full th,.border--full td{border-right-width:1px}.border--default th,.border--full th,.border--outer th{background-color:#f8f8f9}.vxe-table td>div,.vxe-table th>div{padding:.5em .4em}.col--center{text-align:center}.col--right{text-align:right}.vxe-table:not(.is--print) .col--ellipsis>div{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-break:break-all}.vxe-table--tree-node{text-align:left}.vxe-table--tree-node-wrapper{position:relative}.vxe-table--tree-icon-wrapper{position:absolute;top:50%;width:1em;height:1em;text-align:center;-webkit-transform:translateY(-50%);transform:translateY(-50%);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer}.vxe-table--tree-unfold-icon,.vxe-table--tree-fold-icon{position:absolute;width:0;height:0;border-style:solid;border-width:.5em;border-right-color:transparent;border-bottom-color:transparent}.vxe-table--tree-unfold-icon{left:.3em;top:0;border-left-color:#939599;border-top-color:transparent}.vxe-table--tree-fold-icon{left:0;top:.3em;border-left-color:transparent;border-top-color:#939599}.vxe-table--tree-cell{display:block;padding-left:1.5em}.vxe-table input[type="checkbox"]{margin:0}.vxe-table input[type="checkbox"],.vxe-table input[type="radio"],.vxe-table input[type="checkbox"]+span,.vxe-table input[type="radio"]+span{vertical-align:middle;padding-left:0.4em}';
|
|
27417
28226
|
var htmlCellElem; // 导入
|
|
@@ -27556,7 +28365,7 @@ function getLabelData($xetable, opts, columns, datas) {
|
|
|
27556
28365
|
|
|
27557
28366
|
default:
|
|
27558
28367
|
if (opts.original) {
|
|
27559
|
-
cellValue =
|
|
28368
|
+
cellValue = utils.getCellValue(row, column);
|
|
27560
28369
|
} else {
|
|
27561
28370
|
cellValue = $xetable.getCellLabel(row, column);
|
|
27562
28371
|
|
|
@@ -27632,7 +28441,7 @@ function getLabelData($xetable, opts, columns, datas) {
|
|
|
27632
28441
|
|
|
27633
28442
|
default:
|
|
27634
28443
|
if (opts.original) {
|
|
27635
|
-
cellValue =
|
|
28444
|
+
cellValue = utils.getCellValue(row, column);
|
|
27636
28445
|
} else {
|
|
27637
28446
|
cellValue = $xetable.getCellLabel(row, column);
|
|
27638
28447
|
|
|
@@ -28121,7 +28930,7 @@ function saveLocalFile(options) {
|
|
|
28121
28930
|
return Promise.resolve();
|
|
28122
28931
|
}
|
|
28123
28932
|
|
|
28124
|
-
return Promise.reject(new Error(
|
|
28933
|
+
return Promise.reject(new Error(utils.getLog('vxe.error.notExp')));
|
|
28125
28934
|
}
|
|
28126
28935
|
|
|
28127
28936
|
function downloadFile($xetable, opts, content) {
|
|
@@ -28485,7 +29294,7 @@ function handleFileImport($xetable, file, opts) {
|
|
|
28485
29294
|
var importMethod = opts.importMethod,
|
|
28486
29295
|
afterImportMethod = opts.afterImportMethod;
|
|
28487
29296
|
|
|
28488
|
-
var _UtilTools$parseFile =
|
|
29297
|
+
var _UtilTools$parseFile = utils.parseFile(file),
|
|
28489
29298
|
type = _UtilTools$parseFile.type,
|
|
28490
29299
|
filename = _UtilTools$parseFile.filename; // 检查类型,如果为自定义导出,则不需要校验类型
|
|
28491
29300
|
|
|
@@ -28560,7 +29369,7 @@ function handleFileImport($xetable, file, opts) {
|
|
|
28560
29369
|
var reader = new FileReader();
|
|
28561
29370
|
|
|
28562
29371
|
reader.onerror = function () {
|
|
28563
|
-
|
|
29372
|
+
errLog('vxe.error.notType', [type]);
|
|
28564
29373
|
|
|
28565
29374
|
_importReject({
|
|
28566
29375
|
status: false
|
|
@@ -28637,7 +29446,7 @@ function readLocalFile() {
|
|
|
28637
29446
|
|
|
28638
29447
|
if (!isAllType) {
|
|
28639
29448
|
for (var fIndex = 0; fIndex < files.length; fIndex++) {
|
|
28640
|
-
var _UtilTools$parseFile2 =
|
|
29449
|
+
var _UtilTools$parseFile2 = utils.parseFile(files[fIndex]),
|
|
28641
29450
|
type = _UtilTools$parseFile2.type;
|
|
28642
29451
|
|
|
28643
29452
|
if (!external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.includes(types, type)) {
|
|
@@ -28780,7 +29589,7 @@ function handleExportAndPrint($xetable, options, isPrint) {
|
|
|
28780
29589
|
|
|
28781
29590
|
if (isColGroup || defaultFilterExportColumn(column)) {
|
|
28782
29591
|
column.checked = columns ? columns.some(function (item) {
|
|
28783
|
-
if (
|
|
29592
|
+
if (isColumnInfo(item)) {
|
|
28784
29593
|
return column === item;
|
|
28785
29594
|
} else if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.isString(item)) {
|
|
28786
29595
|
return column.field === item;
|
|
@@ -28965,7 +29774,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
28965
29774
|
var targetColumn;
|
|
28966
29775
|
|
|
28967
29776
|
if (item) {
|
|
28968
|
-
if (
|
|
29777
|
+
if (isColumnInfo(item)) {
|
|
28969
29778
|
targetColumn = item;
|
|
28970
29779
|
} else if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.isString(item)) {
|
|
28971
29780
|
targetColumn = _this.getColumnByField(item);
|
|
@@ -28995,7 +29804,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
28995
29804
|
children: 'childNodes',
|
|
28996
29805
|
mapChildren: '_children'
|
|
28997
29806
|
}), function (column, index) {
|
|
28998
|
-
return
|
|
29807
|
+
return isColumnInfo(column) && (!columnFilterMethod || columnFilterMethod({
|
|
28999
29808
|
column: column,
|
|
29000
29809
|
$columnIndex: index
|
|
29001
29810
|
}));
|
|
@@ -29219,7 +30028,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
29219
30028
|
}
|
|
29220
30029
|
|
|
29221
30030
|
if (!this.importConfig) {
|
|
29222
|
-
|
|
30031
|
+
errLog('vxe.error.reqProp', ['import-config']);
|
|
29223
30032
|
} // 处理类型
|
|
29224
30033
|
|
|
29225
30034
|
|
|
@@ -29270,6 +30079,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
29270
30079
|
|
|
29271
30080
|
|
|
29272
30081
|
|
|
30082
|
+
|
|
29273
30083
|
function print(options) {
|
|
29274
30084
|
var opts = Object.assign({}, options, {
|
|
29275
30085
|
type: 'html'
|
|
@@ -29311,7 +30121,7 @@ var Export = {
|
|
|
29311
30121
|
function getTargetOffset(target, container) {
|
|
29312
30122
|
var offsetTop = 0;
|
|
29313
30123
|
var offsetLeft = 0;
|
|
29314
|
-
var triggerCheckboxLabel = !browse.firefox &&
|
|
30124
|
+
var triggerCheckboxLabel = !browse.firefox && dom.hasClass(target, 'vxe-checkbox--label');
|
|
29315
30125
|
|
|
29316
30126
|
if (triggerCheckboxLabel) {
|
|
29317
30127
|
var checkboxLabelStyle = getComputedStyle(target);
|
|
@@ -29539,8 +30349,8 @@ function getCheckboxRangeRows(_vm, params, targetTrElem, moveRange) {
|
|
|
29539
30349
|
|
|
29540
30350
|
if (mouseConfig && mouseOpts.area && this.handleHeaderCellAreaEvent) {
|
|
29541
30351
|
var cell = evnt.currentTarget;
|
|
29542
|
-
var triggerSort =
|
|
29543
|
-
var triggerFilter =
|
|
30352
|
+
var triggerSort = dom.getEventTargetNode(evnt, cell, 'vxe-cell--sort').flag;
|
|
30353
|
+
var triggerFilter = dom.getEventTargetNode(evnt, cell, 'vxe-cell--filter').flag;
|
|
29544
30354
|
this.handleHeaderCellAreaEvent(evnt, Object.assign({
|
|
29545
30355
|
cell: cell,
|
|
29546
30356
|
triggerSort: triggerSort,
|
|
@@ -29723,14 +30533,14 @@ function getCheckboxRangeRows(_vm, params, targetTrElem, moveRange) {
|
|
|
29723
30533
|
}, 50);
|
|
29724
30534
|
};
|
|
29725
30535
|
|
|
29726
|
-
|
|
30536
|
+
dom.addClass($el, 'drag--range');
|
|
29727
30537
|
|
|
29728
30538
|
document.onmousemove = function (evnt) {
|
|
29729
30539
|
evnt.preventDefault();
|
|
29730
30540
|
evnt.stopPropagation();
|
|
29731
30541
|
var clientY = evnt.clientY;
|
|
29732
30542
|
|
|
29733
|
-
var _DomTools$getAbsolute =
|
|
30543
|
+
var _DomTools$getAbsolute = dom.getAbsolutePos(bodyWrapperElem),
|
|
29734
30544
|
boundingTop = _DomTools$getAbsolute.boundingTop; // 如果超过可视区,触发滚动
|
|
29735
30545
|
|
|
29736
30546
|
|
|
@@ -29757,7 +30567,7 @@ function getCheckboxRangeRows(_vm, params, targetTrElem, moveRange) {
|
|
|
29757
30567
|
|
|
29758
30568
|
document.onmouseup = function (evnt) {
|
|
29759
30569
|
stopMouseScroll();
|
|
29760
|
-
|
|
30570
|
+
dom.removeClass($el, 'drag--range');
|
|
29761
30571
|
checkboxRangeElem.removeAttribute('style');
|
|
29762
30572
|
document.onmousemove = domMousemove;
|
|
29763
30573
|
document.onmouseup = domMouseup;
|
|
@@ -29797,6 +30607,9 @@ var Keyboard = {
|
|
|
29797
30607
|
|
|
29798
30608
|
|
|
29799
30609
|
|
|
30610
|
+
|
|
30611
|
+
|
|
30612
|
+
|
|
29800
30613
|
/**
|
|
29801
30614
|
* 校验规则
|
|
29802
30615
|
*/
|
|
@@ -29826,7 +30639,7 @@ var mixin_Rule = /*#__PURE__*/function () {
|
|
|
29826
30639
|
_createClass(Rule, [{
|
|
29827
30640
|
key: "content",
|
|
29828
30641
|
get: function get() {
|
|
29829
|
-
return
|
|
30642
|
+
return getFuncText(this.$options.content || this.$options.message);
|
|
29830
30643
|
}
|
|
29831
30644
|
}, {
|
|
29832
30645
|
key: "message",
|
|
@@ -30023,7 +30836,7 @@ function validErrorRuleValue(rule, val) {
|
|
|
30023
30836
|
|
|
30024
30837
|
var posAndFinish = function posAndFinish() {
|
|
30025
30838
|
firstErrParams.cell = _this2.getCell(firstErrParams.row, firstErrParams.column);
|
|
30026
|
-
|
|
30839
|
+
dom.scrollToView(firstErrParams.cell);
|
|
30027
30840
|
|
|
30028
30841
|
_this2.handleValidError(firstErrParams).then(finish);
|
|
30029
30842
|
};
|
|
@@ -30359,6 +31172,7 @@ var util_convertToRows = function convertToRows(originColumns) {
|
|
|
30359
31172
|
|
|
30360
31173
|
|
|
30361
31174
|
|
|
31175
|
+
|
|
30362
31176
|
var cellType = 'header';
|
|
30363
31177
|
/* harmony default export */ var header = ({
|
|
30364
31178
|
name: 'VxeTableHeader',
|
|
@@ -30567,7 +31381,7 @@ var cellType = 'header';
|
|
|
30567
31381
|
}
|
|
30568
31382
|
|
|
30569
31383
|
return h('th', {
|
|
30570
|
-
class: ['vxe-header--column', column.id, (_ref = {}, _defineProperty(_ref, "col--".concat(headAlign), headAlign), _defineProperty(_ref, "col--".concat(type), type), _defineProperty(_ref, 'col--last', $columnIndex === cols.length - 1), _defineProperty(_ref, 'col--fixed', column.fixed), _defineProperty(_ref, 'col--group', isColGroup), _defineProperty(_ref, 'col--ellipsis', hasEllipsis), _defineProperty(_ref, 'fixed--hidden', fixedHiddenColumn), _defineProperty(_ref, 'is--sortable', column.sortable), _defineProperty(_ref, 'col--filter', !!column.filters), _defineProperty(_ref, 'is--filter-active', hasFilter), _defineProperty(_ref, 'col--current', currentColumn === column), _ref),
|
|
31384
|
+
class: ['vxe-header--column', column.id, (_ref = {}, _defineProperty(_ref, "col--".concat(headAlign), headAlign), _defineProperty(_ref, "col--".concat(type), type), _defineProperty(_ref, 'col--last', $columnIndex === cols.length - 1), _defineProperty(_ref, 'col--fixed', column.fixed), _defineProperty(_ref, 'col--group', isColGroup), _defineProperty(_ref, 'col--ellipsis', hasEllipsis), _defineProperty(_ref, 'fixed--hidden', fixedHiddenColumn), _defineProperty(_ref, 'is--sortable', column.sortable), _defineProperty(_ref, 'col--filter', !!column.filters), _defineProperty(_ref, 'is--filter-active', hasFilter), _defineProperty(_ref, 'col--current', currentColumn === column), _ref), utils.getClass(headerClassName, params), utils.getClass(headerCellClassName, params)],
|
|
30571
31385
|
attrs: {
|
|
30572
31386
|
colid: column.id,
|
|
30573
31387
|
colspan: column.colSpan > 1 ? column.colSpan : null,
|
|
@@ -30575,7 +31389,7 @@ var cellType = 'header';
|
|
|
30575
31389
|
},
|
|
30576
31390
|
style: headerCellStyle ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.isFunction(headerCellStyle) ? headerCellStyle(params) : headerCellStyle : null,
|
|
30577
31391
|
on: thOns,
|
|
30578
|
-
key: columnKey || isColGroup ? column.id : $columnIndex
|
|
31392
|
+
key: columnKey || columnOpts.useKey || isColGroup ? column.id : $columnIndex
|
|
30579
31393
|
}, [h('div', {
|
|
30580
31394
|
class: ['vxe-cell', {
|
|
30581
31395
|
'c--title': showTitle,
|
|
@@ -30628,7 +31442,7 @@ var cellType = 'header';
|
|
|
30628
31442
|
var cell = params.cell = dragBtnElem.parentNode;
|
|
30629
31443
|
var dragLeft = 0;
|
|
30630
31444
|
var tableBodyElem = tableBody.$el;
|
|
30631
|
-
var pos =
|
|
31445
|
+
var pos = dom.getOffsetPos(dragBtnElem, $el);
|
|
30632
31446
|
var dragBtnWidth = dragBtnElem.clientWidth;
|
|
30633
31447
|
var dragBtnOffsetWidth = Math.floor(dragBtnWidth / 2);
|
|
30634
31448
|
var minInterval = getColMinWidth(params) - dragBtnOffsetWidth; // 列之间的最小间距
|
|
@@ -30647,9 +31461,9 @@ var cellType = 'header';
|
|
|
30647
31461
|
var tempCellElem = cell[siblingProp];
|
|
30648
31462
|
|
|
30649
31463
|
while (tempCellElem) {
|
|
30650
|
-
if (
|
|
31464
|
+
if (dom.hasClass(tempCellElem, 'fixed--hidden')) {
|
|
30651
31465
|
break;
|
|
30652
|
-
} else if (!
|
|
31466
|
+
} else if (!dom.hasClass(tempCellElem, 'col--group')) {
|
|
30653
31467
|
fixedOffsetWidth += tempCellElem.offsetWidth;
|
|
30654
31468
|
}
|
|
30655
31469
|
|
|
@@ -30685,7 +31499,7 @@ var cellType = 'header';
|
|
|
30685
31499
|
};
|
|
30686
31500
|
|
|
30687
31501
|
$xetable._isResize = true;
|
|
30688
|
-
|
|
31502
|
+
dom.addClass($xetable.$el, 'drag--resize');
|
|
30689
31503
|
resizeBarElem.style.display = 'block';
|
|
30690
31504
|
document.onmousemove = updateEvent;
|
|
30691
31505
|
|
|
@@ -30702,7 +31516,7 @@ var cellType = 'header';
|
|
|
30702
31516
|
$xetable.updateCellAreas();
|
|
30703
31517
|
$xetable.emitEvent('resizable-change', params, evnt);
|
|
30704
31518
|
});
|
|
30705
|
-
|
|
31519
|
+
dom.removeClass($xetable.$el, 'drag--resize');
|
|
30706
31520
|
};
|
|
30707
31521
|
|
|
30708
31522
|
updateEvent(evnt);
|
|
@@ -30713,6 +31527,7 @@ var cellType = 'header';
|
|
|
30713
31527
|
// CONCATENATED MODULE: ./packages/header/index.js
|
|
30714
31528
|
|
|
30715
31529
|
|
|
31530
|
+
|
|
30716
31531
|
var Header = Object.assign(header, {
|
|
30717
31532
|
install: function install(Vue) {
|
|
30718
31533
|
Vue.component(header.name, header);
|
|
@@ -30726,6 +31541,8 @@ var Header = Object.assign(header, {
|
|
|
30726
31541
|
|
|
30727
31542
|
|
|
30728
31543
|
|
|
31544
|
+
|
|
31545
|
+
|
|
30729
31546
|
var footer_cellType = 'footer';
|
|
30730
31547
|
|
|
30731
31548
|
function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
@@ -30806,6 +31623,7 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
30806
31623
|
allAlign = $xetable.align,
|
|
30807
31624
|
scrollXLoad = $xetable.scrollXLoad,
|
|
30808
31625
|
columnKey = $xetable.columnKey,
|
|
31626
|
+
columnOpts = $xetable.columnOpts,
|
|
30809
31627
|
allColumnFooterOverflow = $xetable.showFooterOverflow,
|
|
30810
31628
|
currentColumn = $xetable.currentColumn,
|
|
30811
31629
|
overflowX = $xetable.overflowX,
|
|
@@ -30940,7 +31758,7 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
30940
31758
|
if (showTitle || showTooltip || showAllTip) {
|
|
30941
31759
|
tfOns.mouseenter = function (evnt) {
|
|
30942
31760
|
if (showTitle) {
|
|
30943
|
-
|
|
31761
|
+
dom.updateCellTitle(evnt.currentTarget, column);
|
|
30944
31762
|
} else if (showTooltip || showAllTip) {
|
|
30945
31763
|
$xetable.triggerFooterTooltipEvent(evnt, params);
|
|
30946
31764
|
}
|
|
@@ -31013,11 +31831,11 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
31013
31831
|
}
|
|
31014
31832
|
|
|
31015
31833
|
return h('td', {
|
|
31016
|
-
class: ['vxe-footer--column', column.id, (_ref2 = {}, _defineProperty(_ref2, "col--".concat(footAlign), footAlign), _defineProperty(_ref2, "col--".concat(type), type), _defineProperty(_ref2, 'col--last', $columnIndex === tableColumn.length - 1), _defineProperty(_ref2, 'fixed--hidden', fixedHiddenColumn), _defineProperty(_ref2, 'col--ellipsis', hasEllipsis), _defineProperty(_ref2, 'col--current', currentColumn === column), _ref2),
|
|
31834
|
+
class: ['vxe-footer--column', column.id, (_ref2 = {}, _defineProperty(_ref2, "col--".concat(footAlign), footAlign), _defineProperty(_ref2, "col--".concat(type), type), _defineProperty(_ref2, 'col--last', $columnIndex === tableColumn.length - 1), _defineProperty(_ref2, 'fixed--hidden', fixedHiddenColumn), _defineProperty(_ref2, 'col--ellipsis', hasEllipsis), _defineProperty(_ref2, 'col--current', currentColumn === column), _ref2), utils.getClass(footerClassName, params), utils.getClass(footerCellClassName, params)],
|
|
31017
31835
|
attrs: attrs,
|
|
31018
31836
|
style: footerCellStyle ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.isFunction(footerCellStyle) ? footerCellStyle(params) : footerCellStyle : null,
|
|
31019
31837
|
on: tfOns,
|
|
31020
|
-
key: columnKey ? column.id : $columnIndex
|
|
31838
|
+
key: columnKey || columnOpts.useKey ? column.id : $columnIndex
|
|
31021
31839
|
}, [h('div', {
|
|
31022
31840
|
class: ['vxe-cell', {
|
|
31023
31841
|
'c--title': showTitle,
|
|
@@ -31085,6 +31903,7 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
31085
31903
|
// CONCATENATED MODULE: ./packages/footer/index.js
|
|
31086
31904
|
|
|
31087
31905
|
|
|
31906
|
+
|
|
31088
31907
|
var Footer = Object.assign(footer, {
|
|
31089
31908
|
install: function install(Vue) {
|
|
31090
31909
|
Vue.component(footer.name, footer);
|
|
@@ -31229,10 +32048,10 @@ Object.keys(column_props).forEach(function (name) {
|
|
|
31229
32048
|
this.columnConfig = this.createColumn(this.$xetable, this);
|
|
31230
32049
|
},
|
|
31231
32050
|
mounted: function mounted() {
|
|
31232
|
-
|
|
32051
|
+
utils.assemColumn(this);
|
|
31233
32052
|
},
|
|
31234
32053
|
destroyed: function destroyed() {
|
|
31235
|
-
|
|
32054
|
+
utils.destroyColumn(this);
|
|
31236
32055
|
},
|
|
31237
32056
|
render: function render(h) {
|
|
31238
32057
|
return h('div', this.$slots.default);
|
|
@@ -31242,6 +32061,7 @@ Object.keys(column_props).forEach(function (name) {
|
|
|
31242
32061
|
// CONCATENATED MODULE: ./packages/column/index.js
|
|
31243
32062
|
|
|
31244
32063
|
|
|
32064
|
+
|
|
31245
32065
|
var Column = Object.assign(src_column, {
|
|
31246
32066
|
install: function install(Vue) {
|
|
31247
32067
|
Vue.component(src_column.name, src_column); // 兼容旧用法
|
|
@@ -31265,6 +32085,7 @@ var Column = Object.assign(src_column, {
|
|
|
31265
32085
|
// CONCATENATED MODULE: ./packages/colgroup/index.js
|
|
31266
32086
|
|
|
31267
32087
|
|
|
32088
|
+
|
|
31268
32089
|
var Colgroup = Object.assign(src_group, {
|
|
31269
32090
|
install: function install(Vue) {
|
|
31270
32091
|
Vue.component(src_group.name, src_group); // 兼容旧用法
|
|
@@ -31290,6 +32111,10 @@ var Colgroup = Object.assign(src_group, {
|
|
|
31290
32111
|
|
|
31291
32112
|
|
|
31292
32113
|
|
|
32114
|
+
|
|
32115
|
+
|
|
32116
|
+
|
|
32117
|
+
|
|
31293
32118
|
|
|
31294
32119
|
var grid_methods = {};
|
|
31295
32120
|
var propKeys = Object.keys(packages_table.props);
|
|
@@ -31597,7 +32422,7 @@ Object.keys(packages_table.methods).forEach(function (name) {
|
|
|
31597
32422
|
proxyConfig = this.proxyConfig;
|
|
31598
32423
|
|
|
31599
32424
|
if (proxyConfig && (data || proxyOpts.form && formOpts.data)) {
|
|
31600
|
-
|
|
32425
|
+
errLog('vxe.error.errConflicts', ['grid.data', 'grid.proxy-config']);
|
|
31601
32426
|
}
|
|
31602
32427
|
|
|
31603
32428
|
if (false) {}
|
|
@@ -31713,7 +32538,7 @@ Object.keys(packages_table.methods).forEach(function (name) {
|
|
|
31713
32538
|
getParentHeight: function getParentHeight() {
|
|
31714
32539
|
var $el = this.$el,
|
|
31715
32540
|
isZMax = this.isZMax;
|
|
31716
|
-
return (isZMax ?
|
|
32541
|
+
return (isZMax ? dom.getDomNode().visibleHeight : external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.toNumber(getComputedStyle($el.parentNode).height)) - this.getExcludeHeight();
|
|
31717
32542
|
},
|
|
31718
32543
|
|
|
31719
32544
|
/**
|
|
@@ -32465,8 +33290,8 @@ Object.keys(packages_table.methods).forEach(function (name) {
|
|
|
32465
33290
|
if (isMax ? !isZMax : isZMax) {
|
|
32466
33291
|
this.isZMax = !isZMax;
|
|
32467
33292
|
|
|
32468
|
-
if (this.tZindex <
|
|
32469
|
-
this.tZindex =
|
|
33293
|
+
if (this.tZindex < utils.getLastZIndex()) {
|
|
33294
|
+
this.tZindex = utils.nextZIndex();
|
|
32470
33295
|
}
|
|
32471
33296
|
}
|
|
32472
33297
|
|
|
@@ -32500,6 +33325,7 @@ Object.keys(packages_table.methods).forEach(function (name) {
|
|
|
32500
33325
|
|
|
32501
33326
|
|
|
32502
33327
|
|
|
33328
|
+
|
|
32503
33329
|
var Grid = Object.assign(grid, {
|
|
32504
33330
|
install: function install(Vue) {
|
|
32505
33331
|
v_x_e_table.Grid = grid;
|
|
@@ -32521,6 +33347,11 @@ var Grid = Object.assign(grid, {
|
|
|
32521
33347
|
|
|
32522
33348
|
|
|
32523
33349
|
|
|
33350
|
+
|
|
33351
|
+
|
|
33352
|
+
|
|
33353
|
+
|
|
33354
|
+
|
|
32524
33355
|
var renderDropdowns = function renderDropdowns(h, _vm, item, isBtn) {
|
|
32525
33356
|
var _e = _vm._e;
|
|
32526
33357
|
var dropdowns = item.dropdowns;
|
|
@@ -32715,7 +33546,7 @@ function renderCustoms(h, _vm) {
|
|
|
32715
33546
|
}
|
|
32716
33547
|
|
|
32717
33548
|
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.eachTree(columns, function (column) {
|
|
32718
|
-
var colTitle =
|
|
33549
|
+
var colTitle = utils.formatText(column.getTitle(), 1);
|
|
32719
33550
|
var colKey = column.getKey();
|
|
32720
33551
|
var isColGroup = column.children && column.children.length;
|
|
32721
33552
|
var isDisabled = checkMethod ? !checkMethod({
|
|
@@ -32889,7 +33720,7 @@ function renderCustoms(h, _vm) {
|
|
|
32889
33720
|
var $xetable = _this.fintTable();
|
|
32890
33721
|
|
|
32891
33722
|
if (refresh && !_this.$xegrid && !refreshOpts.query) {
|
|
32892
|
-
|
|
33723
|
+
warnLog('vxe.error.notFunc', ['query']);
|
|
32893
33724
|
}
|
|
32894
33725
|
|
|
32895
33726
|
if ($xetable) {
|
|
@@ -33007,7 +33838,7 @@ function renderCustoms(h, _vm) {
|
|
|
33007
33838
|
return true;
|
|
33008
33839
|
}
|
|
33009
33840
|
|
|
33010
|
-
|
|
33841
|
+
errLog('vxe.error.barUnableLink');
|
|
33011
33842
|
},
|
|
33012
33843
|
showCustom: function showCustom() {
|
|
33013
33844
|
this.customStore.visible = true;
|
|
@@ -33146,7 +33977,7 @@ function renderCustoms(h, _vm) {
|
|
|
33146
33977
|
this.checkCustomStatus();
|
|
33147
33978
|
},
|
|
33148
33979
|
handleGlobalMousedownEvent: function handleGlobalMousedownEvent(evnt) {
|
|
33149
|
-
if (!
|
|
33980
|
+
if (!dom.getEventTargetNode(evnt, this.$refs.customWrapper).flag) {
|
|
33150
33981
|
this.customColseEvent(evnt);
|
|
33151
33982
|
}
|
|
33152
33983
|
},
|
|
@@ -33292,6 +34123,7 @@ function renderCustoms(h, _vm) {
|
|
|
33292
34123
|
// CONCATENATED MODULE: ./packages/toolbar/index.js
|
|
33293
34124
|
|
|
33294
34125
|
|
|
34126
|
+
|
|
33295
34127
|
var Toolbar = Object.assign(src_toolbar, {
|
|
33296
34128
|
install: function install(Vue) {
|
|
33297
34129
|
Vue.component(src_toolbar.name, src_toolbar);
|
|
@@ -33795,6 +34627,7 @@ var Toolbar = Object.assign(src_toolbar, {
|
|
|
33795
34627
|
// CONCATENATED MODULE: ./packages/pager/index.js
|
|
33796
34628
|
|
|
33797
34629
|
|
|
34630
|
+
|
|
33798
34631
|
var Pager = Object.assign(pager, {
|
|
33799
34632
|
install: function install(Vue) {
|
|
33800
34633
|
Vue.component(pager.name, pager);
|
|
@@ -33804,6 +34637,7 @@ var Pager = Object.assign(pager, {
|
|
|
33804
34637
|
// CONCATENATED MODULE: ./packages/checkbox/index.js
|
|
33805
34638
|
|
|
33806
34639
|
|
|
34640
|
+
|
|
33807
34641
|
var Checkbox = Object.assign(src_checkbox, {
|
|
33808
34642
|
install: function install(Vue) {
|
|
33809
34643
|
Vue.component(src_checkbox.name, src_checkbox);
|
|
@@ -33813,6 +34647,7 @@ var Checkbox = Object.assign(src_checkbox, {
|
|
|
33813
34647
|
// CONCATENATED MODULE: ./packages/checkbox/src/group.js
|
|
33814
34648
|
|
|
33815
34649
|
|
|
34650
|
+
|
|
33816
34651
|
/* harmony default export */ var checkbox_src_group = ({
|
|
33817
34652
|
name: 'VxeCheckboxGroup',
|
|
33818
34653
|
props: {
|
|
@@ -33866,6 +34701,7 @@ var Checkbox = Object.assign(src_checkbox, {
|
|
|
33866
34701
|
// CONCATENATED MODULE: ./packages/checkbox-group/index.js
|
|
33867
34702
|
|
|
33868
34703
|
|
|
34704
|
+
|
|
33869
34705
|
var CheckboxGroup = Object.assign(checkbox_src_group, {
|
|
33870
34706
|
install: function install(Vue) {
|
|
33871
34707
|
Vue.component(checkbox_src_group.name, checkbox_src_group);
|
|
@@ -33875,6 +34711,7 @@ var CheckboxGroup = Object.assign(checkbox_src_group, {
|
|
|
33875
34711
|
// CONCATENATED MODULE: ./packages/radio/index.js
|
|
33876
34712
|
|
|
33877
34713
|
|
|
34714
|
+
|
|
33878
34715
|
var Radio = Object.assign(src_radio, {
|
|
33879
34716
|
install: function install(Vue) {
|
|
33880
34717
|
Vue.component(src_radio.name, src_radio);
|
|
@@ -33934,6 +34771,7 @@ var Radio = Object.assign(src_radio, {
|
|
|
33934
34771
|
// CONCATENATED MODULE: ./packages/radio-group/index.js
|
|
33935
34772
|
|
|
33936
34773
|
|
|
34774
|
+
|
|
33937
34775
|
var RadioGroup = Object.assign(radio_src_group, {
|
|
33938
34776
|
install: function install(Vue) {
|
|
33939
34777
|
Vue.component(radio_src_group.name, radio_src_group);
|
|
@@ -34021,7 +34859,7 @@ var RadioGroup = Object.assign(radio_src_group, {
|
|
|
34021
34859
|
}
|
|
34022
34860
|
}), h('span', {
|
|
34023
34861
|
class: 'vxe-radio--label'
|
|
34024
|
-
}, $scopedSlots.default ? $scopedSlots.default.call(this, {}) : [
|
|
34862
|
+
}, $scopedSlots.default ? $scopedSlots.default.call(this, {}) : [getFuncText(content)])]);
|
|
34025
34863
|
},
|
|
34026
34864
|
methods: {
|
|
34027
34865
|
handleValue: function handleValue(label, evnt) {
|
|
@@ -34061,6 +34899,7 @@ var RadioGroup = Object.assign(radio_src_group, {
|
|
|
34061
34899
|
// CONCATENATED MODULE: ./packages/radio-button/index.js
|
|
34062
34900
|
|
|
34063
34901
|
|
|
34902
|
+
|
|
34064
34903
|
var RadioButton = Object.assign(src_button, {
|
|
34065
34904
|
install: function install(Vue) {
|
|
34066
34905
|
Vue.component(src_button.name, src_button);
|
|
@@ -34070,6 +34909,7 @@ var RadioButton = Object.assign(src_button, {
|
|
|
34070
34909
|
// CONCATENATED MODULE: ./packages/input/index.js
|
|
34071
34910
|
|
|
34072
34911
|
|
|
34912
|
+
|
|
34073
34913
|
var Input = Object.assign(input, {
|
|
34074
34914
|
install: function install(Vue) {
|
|
34075
34915
|
Vue.component(input.name, input);
|
|
@@ -34088,6 +34928,7 @@ var Input = Object.assign(input, {
|
|
|
34088
34928
|
|
|
34089
34929
|
|
|
34090
34930
|
|
|
34931
|
+
|
|
34091
34932
|
var autoTxtElem;
|
|
34092
34933
|
/* harmony default export */ var src_textarea = ({
|
|
34093
34934
|
name: 'VxeTextarea',
|
|
@@ -34211,7 +35052,7 @@ var autoTxtElem;
|
|
|
34211
35052
|
};
|
|
34212
35053
|
|
|
34213
35054
|
if (placeholder) {
|
|
34214
|
-
attrs.placeholder =
|
|
35055
|
+
attrs.placeholder = getFuncText(placeholder);
|
|
34215
35056
|
}
|
|
34216
35057
|
|
|
34217
35058
|
return h('div', {
|
|
@@ -34356,6 +35197,7 @@ var autoTxtElem;
|
|
|
34356
35197
|
// CONCATENATED MODULE: ./packages/textarea/index.js
|
|
34357
35198
|
|
|
34358
35199
|
|
|
35200
|
+
|
|
34359
35201
|
var Textarea = Object.assign(src_textarea, {
|
|
34360
35202
|
install: function install(Vue) {
|
|
34361
35203
|
Vue.component(src_textarea.name, src_textarea);
|
|
@@ -34371,6 +35213,9 @@ var Textarea = Object.assign(src_textarea, {
|
|
|
34371
35213
|
|
|
34372
35214
|
|
|
34373
35215
|
|
|
35216
|
+
|
|
35217
|
+
|
|
35218
|
+
|
|
34374
35219
|
/* harmony default export */ var button_src_button = ({
|
|
34375
35220
|
name: 'VxeButton',
|
|
34376
35221
|
mixins: [size],
|
|
@@ -34537,19 +35382,19 @@ var Textarea = Object.assign(src_textarea, {
|
|
|
34537
35382
|
} else if (content) {
|
|
34538
35383
|
contents.push(h('span', {
|
|
34539
35384
|
class: 'vxe-button--content'
|
|
34540
|
-
}, [
|
|
35385
|
+
}, [getFuncText(content)]));
|
|
34541
35386
|
}
|
|
34542
35387
|
|
|
34543
35388
|
return contents;
|
|
34544
35389
|
},
|
|
34545
35390
|
handleGlobalMousewheelEvent: function handleGlobalMousewheelEvent(evnt) {
|
|
34546
|
-
if (this.showPanel && !
|
|
35391
|
+
if (this.showPanel && !dom.getEventTargetNode(evnt, this.$refs.panel).flag) {
|
|
34547
35392
|
this.closePanel();
|
|
34548
35393
|
}
|
|
34549
35394
|
},
|
|
34550
35395
|
updateZindex: function updateZindex() {
|
|
34551
|
-
if (this.panelIndex <
|
|
34552
|
-
this.panelIndex =
|
|
35396
|
+
if (this.panelIndex < utils.getLastZIndex()) {
|
|
35397
|
+
this.panelIndex = utils.nextZIndex();
|
|
34553
35398
|
}
|
|
34554
35399
|
},
|
|
34555
35400
|
mousedownDropdownEvent: function mousedownDropdownEvent(evnt) {
|
|
@@ -34565,7 +35410,7 @@ var Textarea = Object.assign(src_textarea, {
|
|
|
34565
35410
|
var dropdownElem = evnt.currentTarget;
|
|
34566
35411
|
var panelElem = this.$refs.panel;
|
|
34567
35412
|
|
|
34568
|
-
var _DomTools$getEventTar =
|
|
35413
|
+
var _DomTools$getEventTar = dom.getEventTargetNode(evnt, dropdownElem, 'vxe-button'),
|
|
34569
35414
|
flag = _DomTools$getEventTar.flag,
|
|
34570
35415
|
targetElem = _DomTools$getEventTar.targetElem;
|
|
34571
35416
|
|
|
@@ -34677,7 +35522,7 @@ var Textarea = Object.assign(src_textarea, {
|
|
|
34677
35522
|
zIndex: panelIndex
|
|
34678
35523
|
};
|
|
34679
35524
|
|
|
34680
|
-
var _DomTools$getAbsolute =
|
|
35525
|
+
var _DomTools$getAbsolute = dom.getAbsolutePos(targetElem),
|
|
34681
35526
|
top = _DomTools$getAbsolute.top,
|
|
34682
35527
|
left = _DomTools$getAbsolute.left,
|
|
34683
35528
|
boundingTop = _DomTools$getAbsolute.boundingTop,
|
|
@@ -34758,6 +35603,7 @@ var Textarea = Object.assign(src_textarea, {
|
|
|
34758
35603
|
// CONCATENATED MODULE: ./packages/button/index.js
|
|
34759
35604
|
|
|
34760
35605
|
|
|
35606
|
+
|
|
34761
35607
|
var Button = Object.assign(button_src_button, {
|
|
34762
35608
|
install: function install(Vue) {
|
|
34763
35609
|
Vue.component(button_src_button.name, button_src_button);
|
|
@@ -34772,6 +35618,8 @@ var Button = Object.assign(button_src_button, {
|
|
|
34772
35618
|
|
|
34773
35619
|
|
|
34774
35620
|
|
|
35621
|
+
|
|
35622
|
+
|
|
34775
35623
|
/* eslint-disable @typescript-eslint/no-use-before-define */
|
|
34776
35624
|
|
|
34777
35625
|
var ModalClass = null;
|
|
@@ -34907,18 +35755,20 @@ var Modal = Object.assign(modal, {
|
|
|
34907
35755
|
|
|
34908
35756
|
|
|
34909
35757
|
|
|
35758
|
+
|
|
35759
|
+
|
|
34910
35760
|
function updateTipStyle(_vm) {
|
|
34911
35761
|
var wrapperElem = _vm.$el,
|
|
34912
35762
|
tipTarget = _vm.tipTarget,
|
|
34913
35763
|
tipStore = _vm.tipStore;
|
|
34914
35764
|
|
|
34915
35765
|
if (tipTarget) {
|
|
34916
|
-
var _DomTools$getDomNode =
|
|
35766
|
+
var _DomTools$getDomNode = dom.getDomNode(),
|
|
34917
35767
|
scrollTop = _DomTools$getDomNode.scrollTop,
|
|
34918
35768
|
scrollLeft = _DomTools$getDomNode.scrollLeft,
|
|
34919
35769
|
visibleWidth = _DomTools$getDomNode.visibleWidth;
|
|
34920
35770
|
|
|
34921
|
-
var _DomTools$getAbsolute =
|
|
35771
|
+
var _DomTools$getAbsolute = dom.getAbsolutePos(tipTarget),
|
|
34922
35772
|
top = _DomTools$getAbsolute.top,
|
|
34923
35773
|
left = _DomTools$getAbsolute.left;
|
|
34924
35774
|
|
|
@@ -35061,7 +35911,7 @@ function showTip(_vm) {
|
|
|
35061
35911
|
var parentNode = $el.parentNode;
|
|
35062
35912
|
var target;
|
|
35063
35913
|
this.message = content;
|
|
35064
|
-
this.tipZindex =
|
|
35914
|
+
this.tipZindex = utils.nextZIndex();
|
|
35065
35915
|
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.arrayEach($el.children, function (elem, index) {
|
|
35066
35916
|
if (index > 1) {
|
|
35067
35917
|
parentNode.insertBefore(elem, $el);
|
|
@@ -35165,8 +36015,8 @@ function showTip(_vm) {
|
|
|
35165
36015
|
}
|
|
35166
36016
|
},
|
|
35167
36017
|
updateZindex: function updateZindex() {
|
|
35168
|
-
if (this.tipZindex <
|
|
35169
|
-
this.tipZindex =
|
|
36018
|
+
if (this.tipZindex < utils.getLastZIndex()) {
|
|
36019
|
+
this.tipZindex = utils.nextZIndex();
|
|
35170
36020
|
}
|
|
35171
36021
|
},
|
|
35172
36022
|
toVisible: function toVisible(target, message) {
|
|
@@ -35264,6 +36114,7 @@ function showTip(_vm) {
|
|
|
35264
36114
|
|
|
35265
36115
|
|
|
35266
36116
|
|
|
36117
|
+
|
|
35267
36118
|
var Tooltip = Object.assign(src_tooltip, {
|
|
35268
36119
|
install: function install(Vue) {
|
|
35269
36120
|
v_x_e_table._tooltip = 1;
|
|
@@ -35280,6 +36131,7 @@ var Tooltip = Object.assign(src_tooltip, {
|
|
|
35280
36131
|
|
|
35281
36132
|
|
|
35282
36133
|
|
|
36134
|
+
|
|
35283
36135
|
var util_ItemConfig = /*#__PURE__*/function () {
|
|
35284
36136
|
function ItemConfig($xeform, item) {
|
|
35285
36137
|
_classCallCheck(this, ItemConfig);
|
|
@@ -35409,7 +36261,7 @@ function renderTitle(h, _vm, item) {
|
|
|
35409
36261
|
if (titlePrefix) {
|
|
35410
36262
|
titVNs.push(titlePrefix.content || titlePrefix.message ? h('vxe-tooltip', {
|
|
35411
36263
|
props: {
|
|
35412
|
-
content:
|
|
36264
|
+
content: getFuncText(titlePrefix.content || titlePrefix.message),
|
|
35413
36265
|
enterable: titlePrefix.enterable,
|
|
35414
36266
|
theme: titlePrefix.theme
|
|
35415
36267
|
}
|
|
@@ -35418,7 +36270,7 @@ function renderTitle(h, _vm, item) {
|
|
|
35418
36270
|
|
|
35419
36271
|
titVNs.push(h('span', {
|
|
35420
36272
|
class: 'vxe-form--item-title-label'
|
|
35421
|
-
}, compConf && compConf.renderItemTitle ? compConf.renderItemTitle(itemRender, params) : slots && slots.title ? _vm.callSlot(slots.title, params, h) :
|
|
36273
|
+
}, compConf && compConf.renderItemTitle ? compConf.renderItemTitle(itemRender, params) : slots && slots.title ? _vm.callSlot(slots.title, params, h) : getFuncText(item.title)));
|
|
35422
36274
|
contVNs.push(h('div', {
|
|
35423
36275
|
class: 'vxe-form--item-title-content'
|
|
35424
36276
|
}, titVNs));
|
|
@@ -35427,7 +36279,7 @@ function renderTitle(h, _vm, item) {
|
|
|
35427
36279
|
if (titleSuffix) {
|
|
35428
36280
|
fixVNs.push(titleSuffix.content || titleSuffix.message ? h('vxe-tooltip', {
|
|
35429
36281
|
props: {
|
|
35430
|
-
content:
|
|
36282
|
+
content: getFuncText(titleSuffix.content || titleSuffix.message),
|
|
35431
36283
|
enterable: titleSuffix.enterable,
|
|
35432
36284
|
theme: titleSuffix.theme
|
|
35433
36285
|
}
|
|
@@ -35462,6 +36314,9 @@ function renderTitle(h, _vm, item) {
|
|
|
35462
36314
|
|
|
35463
36315
|
|
|
35464
36316
|
|
|
36317
|
+
|
|
36318
|
+
|
|
36319
|
+
|
|
35465
36320
|
|
|
35466
36321
|
|
|
35467
36322
|
|
|
@@ -35486,7 +36341,7 @@ var form_Rule = /*#__PURE__*/function () {
|
|
|
35486
36341
|
_createClass(Rule, [{
|
|
35487
36342
|
key: "content",
|
|
35488
36343
|
get: function get() {
|
|
35489
|
-
return
|
|
36344
|
+
return getFuncText(this.$options.content || this.$options.message);
|
|
35490
36345
|
}
|
|
35491
36346
|
}, {
|
|
35492
36347
|
key: "message",
|
|
@@ -35642,7 +36497,7 @@ function renderItems(h, _vm, itemList) {
|
|
|
35642
36497
|
width: isNaN(titleWidth) ? titleWidth : "".concat(titleWidth, "px")
|
|
35643
36498
|
} : null,
|
|
35644
36499
|
attrs: {
|
|
35645
|
-
title: showTitle ?
|
|
36500
|
+
title: showTitle ? getFuncText(title) : null
|
|
35646
36501
|
},
|
|
35647
36502
|
on: ons
|
|
35648
36503
|
}, renderTitle(h, _vm, item)) : null, h('div', {
|
|
@@ -36244,7 +37099,7 @@ function renderItems(h, _vm, itemList) {
|
|
|
36244
37099
|
var inputElem; // 定位到第一个
|
|
36245
37100
|
|
|
36246
37101
|
if (!index) {
|
|
36247
|
-
|
|
37102
|
+
dom.scrollToView($el.querySelector(".".concat(item.id)));
|
|
36248
37103
|
} // 如果指定了聚焦 class
|
|
36249
37104
|
|
|
36250
37105
|
|
|
@@ -36302,6 +37157,7 @@ function renderItems(h, _vm, itemList) {
|
|
|
36302
37157
|
// CONCATENATED MODULE: ./packages/form/index.js
|
|
36303
37158
|
|
|
36304
37159
|
|
|
37160
|
+
|
|
36305
37161
|
var Form = Object.assign(src_form, {
|
|
36306
37162
|
install: function install(Vue) {
|
|
36307
37163
|
Vue.component(src_form.name, src_form);
|
|
@@ -36440,7 +37296,7 @@ var form_item_renderItem = function renderItem(h, _vm, item, slots) {
|
|
|
36440
37296
|
width: isNaN(titleWidth) ? titleWidth : "".concat(titleWidth, "px")
|
|
36441
37297
|
} : null,
|
|
36442
37298
|
attrs: {
|
|
36443
|
-
title: showTitle ?
|
|
37299
|
+
title: showTitle ? getFuncText(title) : null
|
|
36444
37300
|
},
|
|
36445
37301
|
on: ons
|
|
36446
37302
|
}, renderTitle(h, _vm, item)) : null, h('div', {
|
|
@@ -36496,6 +37352,7 @@ var form_item_renderItem = function renderItem(h, _vm, item, slots) {
|
|
|
36496
37352
|
// CONCATENATED MODULE: ./packages/form-item/index.js
|
|
36497
37353
|
|
|
36498
37354
|
|
|
37355
|
+
|
|
36499
37356
|
var FormItem = Object.assign(form_item, {
|
|
36500
37357
|
install: function install(Vue) {
|
|
36501
37358
|
Vue.component(form_item.name, form_item);
|
|
@@ -36525,6 +37382,7 @@ var FormItem = Object.assign(form_item, {
|
|
|
36525
37382
|
// CONCATENATED MODULE: ./packages/form-gather/index.js
|
|
36526
37383
|
|
|
36527
37384
|
|
|
37385
|
+
|
|
36528
37386
|
var FormGather = Object.assign(form_gather, {
|
|
36529
37387
|
install: function install(Vue) {
|
|
36530
37388
|
Vue.component(form_gather.name, form_gather);
|
|
@@ -36591,6 +37449,7 @@ Object.keys(optgroup_props).forEach(function (name) {
|
|
|
36591
37449
|
|
|
36592
37450
|
|
|
36593
37451
|
|
|
37452
|
+
|
|
36594
37453
|
var Select = Object.assign(src_select, {
|
|
36595
37454
|
Option: src_option,
|
|
36596
37455
|
Optgroup: optgroup,
|
|
@@ -36604,6 +37463,7 @@ var Select = Object.assign(src_select, {
|
|
|
36604
37463
|
// CONCATENATED MODULE: ./packages/optgroup/index.js
|
|
36605
37464
|
|
|
36606
37465
|
|
|
37466
|
+
|
|
36607
37467
|
var Optgroup = Object.assign(optgroup, {
|
|
36608
37468
|
install: function install(Vue) {
|
|
36609
37469
|
Vue.component(optgroup.name, optgroup);
|
|
@@ -36613,6 +37473,7 @@ var Optgroup = Object.assign(optgroup, {
|
|
|
36613
37473
|
// CONCATENATED MODULE: ./packages/option/index.js
|
|
36614
37474
|
|
|
36615
37475
|
|
|
37476
|
+
|
|
36616
37477
|
var Option = Object.assign(src_option, {
|
|
36617
37478
|
install: function install(Vue) {
|
|
36618
37479
|
Vue.component(src_option.name, src_option);
|
|
@@ -36664,10 +37525,10 @@ var Option = Object.assign(src_option, {
|
|
|
36664
37525
|
return this.value === this.openValue;
|
|
36665
37526
|
},
|
|
36666
37527
|
onShowLabel: function onShowLabel() {
|
|
36667
|
-
return
|
|
37528
|
+
return getFuncText(this.openLabel);
|
|
36668
37529
|
},
|
|
36669
37530
|
offShowLabel: function offShowLabel() {
|
|
36670
|
-
return
|
|
37531
|
+
return getFuncText(this.closeLabel);
|
|
36671
37532
|
},
|
|
36672
37533
|
styles: function styles() {
|
|
36673
37534
|
return browse.msie && this.isChecked ? {
|
|
@@ -36767,6 +37628,7 @@ var Option = Object.assign(src_option, {
|
|
|
36767
37628
|
// CONCATENATED MODULE: ./packages/switch/index.js
|
|
36768
37629
|
|
|
36769
37630
|
|
|
37631
|
+
|
|
36770
37632
|
var Switch = Object.assign(src_switch, {
|
|
36771
37633
|
install: function install(Vue) {
|
|
36772
37634
|
Vue.component(src_switch.name, src_switch);
|
|
@@ -36782,6 +37644,9 @@ var Switch = Object.assign(src_switch, {
|
|
|
36782
37644
|
|
|
36783
37645
|
|
|
36784
37646
|
|
|
37647
|
+
|
|
37648
|
+
|
|
37649
|
+
|
|
36785
37650
|
/* harmony default export */ var src_list = ({
|
|
36786
37651
|
name: 'VxeList',
|
|
36787
37652
|
mixins: [size],
|
|
@@ -37148,6 +38013,7 @@ var Switch = Object.assign(src_switch, {
|
|
|
37148
38013
|
// CONCATENATED MODULE: ./packages/list/index.js
|
|
37149
38014
|
|
|
37150
38015
|
|
|
38016
|
+
|
|
37151
38017
|
var List = Object.assign(src_list, {
|
|
37152
38018
|
install: function install(Vue) {
|
|
37153
38019
|
Vue.component(src_list.name, src_list);
|
|
@@ -37160,6 +38026,10 @@ var List = Object.assign(src_list, {
|
|
|
37160
38026
|
|
|
37161
38027
|
|
|
37162
38028
|
|
|
38029
|
+
|
|
38030
|
+
|
|
38031
|
+
|
|
38032
|
+
|
|
37163
38033
|
/* harmony default export */ var pulldown = ({
|
|
37164
38034
|
name: 'VxePulldown',
|
|
37165
38035
|
mixins: [size],
|
|
@@ -37258,7 +38128,7 @@ var List = Object.assign(src_list, {
|
|
|
37258
38128
|
|
|
37259
38129
|
if (!disabled) {
|
|
37260
38130
|
if (visiblePanel) {
|
|
37261
|
-
if (
|
|
38131
|
+
if (dom.getEventTargetNode(evnt, $refs.panel).flag) {
|
|
37262
38132
|
this.updatePlacement();
|
|
37263
38133
|
} else {
|
|
37264
38134
|
this.hidePanel();
|
|
@@ -37276,7 +38146,7 @@ var List = Object.assign(src_list, {
|
|
|
37276
38146
|
visiblePanel = this.visiblePanel;
|
|
37277
38147
|
|
|
37278
38148
|
if (!disabled) {
|
|
37279
|
-
this.isActivated =
|
|
38149
|
+
this.isActivated = dom.getEventTargetNode(evnt, $el).flag || dom.getEventTargetNode(evnt, $refs.panel).flag;
|
|
37280
38150
|
|
|
37281
38151
|
if (visiblePanel && !this.isActivated) {
|
|
37282
38152
|
this.hidePanel();
|
|
@@ -37296,8 +38166,8 @@ var List = Object.assign(src_list, {
|
|
|
37296
38166
|
}
|
|
37297
38167
|
},
|
|
37298
38168
|
updateZindex: function updateZindex() {
|
|
37299
|
-
if (this.panelIndex <
|
|
37300
|
-
this.panelIndex =
|
|
38169
|
+
if (this.panelIndex < utils.getLastZIndex()) {
|
|
38170
|
+
this.panelIndex = utils.nextZIndex();
|
|
37301
38171
|
}
|
|
37302
38172
|
},
|
|
37303
38173
|
isPanelVisible: function isPanelVisible() {
|
|
@@ -37400,7 +38270,7 @@ var List = Object.assign(src_list, {
|
|
|
37400
38270
|
zIndex: panelIndex
|
|
37401
38271
|
};
|
|
37402
38272
|
|
|
37403
|
-
var _DomTools$getAbsolute =
|
|
38273
|
+
var _DomTools$getAbsolute = dom.getAbsolutePos(targetElem),
|
|
37404
38274
|
boundingTop = _DomTools$getAbsolute.boundingTop,
|
|
37405
38275
|
boundingLeft = _DomTools$getAbsolute.boundingLeft,
|
|
37406
38276
|
visibleHeight = _DomTools$getAbsolute.visibleHeight,
|
|
@@ -37473,6 +38343,7 @@ var List = Object.assign(src_list, {
|
|
|
37473
38343
|
// CONCATENATED MODULE: ./packages/pulldown/index.js
|
|
37474
38344
|
|
|
37475
38345
|
|
|
38346
|
+
|
|
37476
38347
|
var Pulldown = Object.assign(pulldown, {
|
|
37477
38348
|
install: function install(Vue) {
|
|
37478
38349
|
Vue.component(pulldown.name, pulldown);
|
|
@@ -38041,8 +38912,17 @@ module.exports = NATIVE_SYMBOL
|
|
|
38041
38912
|
&& typeof Symbol.iterator == 'symbol';
|
|
38042
38913
|
|
|
38043
38914
|
|
|
38915
|
+
/***/ }),
|
|
38916
|
+
|
|
38917
|
+
/***/ "fea9":
|
|
38918
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
38919
|
+
|
|
38920
|
+
var global = __webpack_require__("da84");
|
|
38921
|
+
|
|
38922
|
+
module.exports = global.Promise;
|
|
38923
|
+
|
|
38924
|
+
|
|
38044
38925
|
/***/ })
|
|
38045
38926
|
|
|
38046
38927
|
/******/ });
|
|
38047
|
-
});
|
|
38048
|
-
//# sourceMappingURL=index.umd.js.map
|
|
38928
|
+
});
|