bkui-vue 2.0.1 → 2.0.2-beta.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/dist/index.cjs.js +23 -23
  2. package/dist/index.esm.js +5684 -5650
  3. package/dist/index.umd.js +27 -27
  4. package/dist/style.css +1 -1
  5. package/dist/style.variable.css +1 -1
  6. package/lib/cascader/index.js +1669 -181
  7. package/lib/color-picker/index.js +1613 -170
  8. package/lib/components.d.ts +1 -2
  9. package/lib/components.js +1 -2
  10. package/lib/date-picker/date-picker.css +220 -4
  11. package/lib/date-picker/date-picker.less +5 -5
  12. package/lib/date-picker/date-picker.variable.css +237 -21
  13. package/lib/date-picker/index.js +1882 -470
  14. package/lib/directives/index.js +228 -111
  15. package/lib/form/index.js +1570 -162
  16. package/lib/image/index.js +1468 -164
  17. package/lib/index.d.ts +0 -1
  18. package/lib/index.js +1 -2
  19. package/lib/input/index.js +1301 -13
  20. package/lib/pop-confirm/index.d.ts +16 -2
  21. package/lib/pop-confirm/index.js +13 -5
  22. package/lib/pop-confirm/pop-confirm.d.ts +5 -1
  23. package/lib/popover/index.js +1356 -68
  24. package/lib/search-select/index.js +1329 -108
  25. package/lib/select/index.js +1237 -16
  26. package/lib/slider/index.js +2 -1
  27. package/lib/tab/index.js +1277 -10
  28. package/lib/table/index.js +1346 -125
  29. package/lib/tag-input/index.js +1278 -16
  30. package/lib/tree/index.d.ts +4 -0
  31. package/lib/tree/index.js +47 -23
  32. package/lib/tree/props.d.ts +1 -0
  33. package/lib/tree/tree.css +18 -0
  34. package/lib/tree/tree.d.ts +2 -0
  35. package/lib/tree/tree.less +24 -0
  36. package/lib/tree/tree.variable.css +18 -0
  37. package/lib/tree/use-node-action.d.ts +1 -1
  38. package/package.json +1 -1
  39. package/lib/plugin-popover/index.d.ts +0 -27
  40. package/lib/plugin-popover/index.js +0 -65
  41. package/lib/plugins/index.d.ts +0 -1
  42. package/lib/plugins/index.js +0 -64
@@ -7,12 +7,14 @@ import "../checkbox/checkbox.less";
7
7
  import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__ from "../config-provider";
8
8
  import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__ from "../icon";
9
9
  import * as __WEBPACK_EXTERNAL_MODULE_lodash_isEqual_ce045a54__ from "lodash/isEqual";
10
- import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_directives_45d4776f__ from "../directives";
10
+ import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_popover_9b03f19d__ from "../popover";
11
+ import * as __WEBPACK_EXTERNAL_MODULE__popperjs_core_a5c7319c__ from "@popperjs/core";
12
+ import * as __WEBPACK_EXTERNAL_MODULE__loading_4d683b23__ from "../loading";
13
+ import * as __WEBPACK_EXTERNAL_MODULE__overflow_title_f9bafa47__ from "../overflow-title";
11
14
  import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_input_d525237e__ from "../input";
12
15
  import "../input/input.less";
13
16
  import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_loading_dcf0e69a__ from "../loading";
14
17
  import "../loading/loading.less";
15
- import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_popover_9b03f19d__ from "../popover";
16
18
  import "../popover/popover.less";
17
19
  import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_virtual_render_927587a8__ from "../virtual-render";
18
20
  import "../virtual-render/virtual-render.less";
@@ -23,6 +25,611 @@ import "../tag/tag.less";
23
25
  import * as __WEBPACK_EXTERNAL_MODULE_lodash_debounce_3540babe__ from "lodash/debounce";
24
26
  /******/ var __webpack_modules__ = ({
25
27
 
28
+ /***/ 2439:
29
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
30
+
31
+ module.exports = __webpack_require__(2527);
32
+
33
+
34
+ /***/ }),
35
+
36
+ /***/ 7430:
37
+ /***/ ((module) => {
38
+
39
+ /**
40
+ * Copyright (c) 2015, Facebook, Inc.
41
+ * All rights reserved.
42
+ *
43
+ * This source code is licensed under the BSD-style license found in the
44
+ * LICENSE file in the root directory of this source tree. An additional grant
45
+ * of patent rights can be found in the PATENTS file in the same directory.
46
+ *
47
+ * @providesModule ExecutionEnvironment
48
+ */
49
+
50
+ /*jslint evil: true */
51
+
52
+
53
+
54
+ var canUseDOM = !!(
55
+ typeof window !== 'undefined' &&
56
+ window.document &&
57
+ window.document.createElement
58
+ );
59
+
60
+ /**
61
+ * Simple, lightweight module assisting with the detection and context of
62
+ * Worker. Helps avoid circular dependencies and allows code to reason about
63
+ * whether or not they are in a Worker, even if they never include the main
64
+ * `ReactWorker` dependency.
65
+ */
66
+ var ExecutionEnvironment = {
67
+
68
+ canUseDOM: canUseDOM,
69
+
70
+ canUseWorkers: typeof Worker !== 'undefined',
71
+
72
+ canUseEventListeners:
73
+ canUseDOM && !!(window.addEventListener || window.attachEvent),
74
+
75
+ canUseViewport: canUseDOM && !!window.screen,
76
+
77
+ isInWorker: !canUseDOM // For now, this is true - might change in the future.
78
+
79
+ };
80
+
81
+ module.exports = ExecutionEnvironment;
82
+
83
+
84
+ /***/ }),
85
+
86
+ /***/ 6377:
87
+ /***/ ((module) => {
88
+
89
+ /**
90
+ * Copyright 2004-present Facebook. All Rights Reserved.
91
+ *
92
+ * @providesModule UserAgent_DEPRECATED
93
+ */
94
+
95
+ /**
96
+ * Provides entirely client-side User Agent and OS detection. You should prefer
97
+ * the non-deprecated UserAgent module when possible, which exposes our
98
+ * authoritative server-side PHP-based detection to the client.
99
+ *
100
+ * Usage is straightforward:
101
+ *
102
+ * if (UserAgent_DEPRECATED.ie()) {
103
+ * // IE
104
+ * }
105
+ *
106
+ * You can also do version checks:
107
+ *
108
+ * if (UserAgent_DEPRECATED.ie() >= 7) {
109
+ * // IE7 or better
110
+ * }
111
+ *
112
+ * The browser functions will return NaN if the browser does not match, so
113
+ * you can also do version compares the other way:
114
+ *
115
+ * if (UserAgent_DEPRECATED.ie() < 7) {
116
+ * // IE6 or worse
117
+ * }
118
+ *
119
+ * Note that the version is a float and may include a minor version number,
120
+ * so you should always use range operators to perform comparisons, not
121
+ * strict equality.
122
+ *
123
+ * **Note:** You should **strongly** prefer capability detection to browser
124
+ * version detection where it's reasonable:
125
+ *
126
+ * http://www.quirksmode.org/js/support.html
127
+ *
128
+ * Further, we have a large number of mature wrapper functions and classes
129
+ * which abstract away many browser irregularities. Check the documentation,
130
+ * grep for things, or ask on javascript@lists.facebook.com before writing yet
131
+ * another copy of "event || window.event".
132
+ *
133
+ */
134
+
135
+ var _populated = false;
136
+
137
+ // Browsers
138
+ var _ie, _firefox, _opera, _webkit, _chrome;
139
+
140
+ // Actual IE browser for compatibility mode
141
+ var _ie_real_version;
142
+
143
+ // Platforms
144
+ var _osx, _windows, _linux, _android;
145
+
146
+ // Architectures
147
+ var _win64;
148
+
149
+ // Devices
150
+ var _iphone, _ipad, _native;
151
+
152
+ var _mobile;
153
+
154
+ function _populate() {
155
+ if (_populated) {
156
+ return;
157
+ }
158
+
159
+ _populated = true;
160
+
161
+ // To work around buggy JS libraries that can't handle multi-digit
162
+ // version numbers, Opera 10's user agent string claims it's Opera
163
+ // 9, then later includes a Version/X.Y field:
164
+ //
165
+ // Opera/9.80 (foo) Presto/2.2.15 Version/10.10
166
+ var uas = navigator.userAgent;
167
+ var agent = /(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(uas);
168
+ var os = /(Mac OS X)|(Windows)|(Linux)/.exec(uas);
169
+
170
+ _iphone = /\b(iPhone|iP[ao]d)/.exec(uas);
171
+ _ipad = /\b(iP[ao]d)/.exec(uas);
172
+ _android = /Android/i.exec(uas);
173
+ _native = /FBAN\/\w+;/i.exec(uas);
174
+ _mobile = /Mobile/i.exec(uas);
175
+
176
+ // Note that the IE team blog would have you believe you should be checking
177
+ // for 'Win64; x64'. But MSDN then reveals that you can actually be coming
178
+ // from either x64 or ia64; so ultimately, you should just check for Win64
179
+ // as in indicator of whether you're in 64-bit IE. 32-bit IE on 64-bit
180
+ // Windows will send 'WOW64' instead.
181
+ _win64 = !!(/Win64/.exec(uas));
182
+
183
+ if (agent) {
184
+ _ie = agent[1] ? parseFloat(agent[1]) : (
185
+ agent[5] ? parseFloat(agent[5]) : NaN);
186
+ // IE compatibility mode
187
+ if (_ie && document && document.documentMode) {
188
+ _ie = document.documentMode;
189
+ }
190
+ // grab the "true" ie version from the trident token if available
191
+ var trident = /(?:Trident\/(\d+.\d+))/.exec(uas);
192
+ _ie_real_version = trident ? parseFloat(trident[1]) + 4 : _ie;
193
+
194
+ _firefox = agent[2] ? parseFloat(agent[2]) : NaN;
195
+ _opera = agent[3] ? parseFloat(agent[3]) : NaN;
196
+ _webkit = agent[4] ? parseFloat(agent[4]) : NaN;
197
+ if (_webkit) {
198
+ // We do not add the regexp to the above test, because it will always
199
+ // match 'safari' only since 'AppleWebKit' appears before 'Chrome' in
200
+ // the userAgent string.
201
+ agent = /(?:Chrome\/(\d+\.\d+))/.exec(uas);
202
+ _chrome = agent && agent[1] ? parseFloat(agent[1]) : NaN;
203
+ } else {
204
+ _chrome = NaN;
205
+ }
206
+ } else {
207
+ _ie = _firefox = _opera = _chrome = _webkit = NaN;
208
+ }
209
+
210
+ if (os) {
211
+ if (os[1]) {
212
+ // Detect OS X version. If no version number matches, set _osx to true.
213
+ // Version examples: 10, 10_6_1, 10.7
214
+ // Parses version number as a float, taking only first two sets of
215
+ // digits. If only one set of digits is found, returns just the major
216
+ // version number.
217
+ var ver = /(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(uas);
218
+
219
+ _osx = ver ? parseFloat(ver[1].replace('_', '.')) : true;
220
+ } else {
221
+ _osx = false;
222
+ }
223
+ _windows = !!os[2];
224
+ _linux = !!os[3];
225
+ } else {
226
+ _osx = _windows = _linux = false;
227
+ }
228
+ }
229
+
230
+ var UserAgent_DEPRECATED = {
231
+
232
+ /**
233
+ * Check if the UA is Internet Explorer.
234
+ *
235
+ *
236
+ * @return float|NaN Version number (if match) or NaN.
237
+ */
238
+ ie: function() {
239
+ return _populate() || _ie;
240
+ },
241
+
242
+ /**
243
+ * Check if we're in Internet Explorer compatibility mode.
244
+ *
245
+ * @return bool true if in compatibility mode, false if
246
+ * not compatibility mode or not ie
247
+ */
248
+ ieCompatibilityMode: function() {
249
+ return _populate() || (_ie_real_version > _ie);
250
+ },
251
+
252
+
253
+ /**
254
+ * Whether the browser is 64-bit IE. Really, this is kind of weak sauce; we
255
+ * only need this because Skype can't handle 64-bit IE yet. We need to remove
256
+ * this when we don't need it -- tracked by #601957.
257
+ */
258
+ ie64: function() {
259
+ return UserAgent_DEPRECATED.ie() && _win64;
260
+ },
261
+
262
+ /**
263
+ * Check if the UA is Firefox.
264
+ *
265
+ *
266
+ * @return float|NaN Version number (if match) or NaN.
267
+ */
268
+ firefox: function() {
269
+ return _populate() || _firefox;
270
+ },
271
+
272
+
273
+ /**
274
+ * Check if the UA is Opera.
275
+ *
276
+ *
277
+ * @return float|NaN Version number (if match) or NaN.
278
+ */
279
+ opera: function() {
280
+ return _populate() || _opera;
281
+ },
282
+
283
+
284
+ /**
285
+ * Check if the UA is WebKit.
286
+ *
287
+ *
288
+ * @return float|NaN Version number (if match) or NaN.
289
+ */
290
+ webkit: function() {
291
+ return _populate() || _webkit;
292
+ },
293
+
294
+ /**
295
+ * For Push
296
+ * WILL BE REMOVED VERY SOON. Use UserAgent_DEPRECATED.webkit
297
+ */
298
+ safari: function() {
299
+ return UserAgent_DEPRECATED.webkit();
300
+ },
301
+
302
+ /**
303
+ * Check if the UA is a Chrome browser.
304
+ *
305
+ *
306
+ * @return float|NaN Version number (if match) or NaN.
307
+ */
308
+ chrome : function() {
309
+ return _populate() || _chrome;
310
+ },
311
+
312
+
313
+ /**
314
+ * Check if the user is running Windows.
315
+ *
316
+ * @return bool `true' if the user's OS is Windows.
317
+ */
318
+ windows: function() {
319
+ return _populate() || _windows;
320
+ },
321
+
322
+
323
+ /**
324
+ * Check if the user is running Mac OS X.
325
+ *
326
+ * @return float|bool Returns a float if a version number is detected,
327
+ * otherwise true/false.
328
+ */
329
+ osx: function() {
330
+ return _populate() || _osx;
331
+ },
332
+
333
+ /**
334
+ * Check if the user is running Linux.
335
+ *
336
+ * @return bool `true' if the user's OS is some flavor of Linux.
337
+ */
338
+ linux: function() {
339
+ return _populate() || _linux;
340
+ },
341
+
342
+ /**
343
+ * Check if the user is running on an iPhone or iPod platform.
344
+ *
345
+ * @return bool `true' if the user is running some flavor of the
346
+ * iPhone OS.
347
+ */
348
+ iphone: function() {
349
+ return _populate() || _iphone;
350
+ },
351
+
352
+ mobile: function() {
353
+ return _populate() || (_iphone || _ipad || _android || _mobile);
354
+ },
355
+
356
+ nativeApp: function() {
357
+ // webviews inside of the native apps
358
+ return _populate() || _native;
359
+ },
360
+
361
+ android: function() {
362
+ return _populate() || _android;
363
+ },
364
+
365
+ ipad: function() {
366
+ return _populate() || _ipad;
367
+ }
368
+ };
369
+
370
+ module.exports = UserAgent_DEPRECATED;
371
+
372
+
373
+ /***/ }),
374
+
375
+ /***/ 3541:
376
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
377
+
378
+ /**
379
+ * Copyright 2013-2015, Facebook, Inc.
380
+ * All rights reserved.
381
+ *
382
+ * This source code is licensed under the BSD-style license found in the
383
+ * LICENSE file in the root directory of this source tree. An additional grant
384
+ * of patent rights can be found in the PATENTS file in the same directory.
385
+ *
386
+ * @providesModule isEventSupported
387
+ */
388
+
389
+
390
+
391
+ var ExecutionEnvironment = __webpack_require__(7430);
392
+
393
+ var useHasFeature;
394
+ if (ExecutionEnvironment.canUseDOM) {
395
+ useHasFeature =
396
+ document.implementation &&
397
+ document.implementation.hasFeature &&
398
+ // always returns true in newer browsers as per the standard.
399
+ // @see http://dom.spec.whatwg.org/#dom-domimplementation-hasfeature
400
+ document.implementation.hasFeature('', '') !== true;
401
+ }
402
+
403
+ /**
404
+ * Checks if an event is supported in the current execution environment.
405
+ *
406
+ * NOTE: This will not work correctly for non-generic events such as `change`,
407
+ * `reset`, `load`, `error`, and `select`.
408
+ *
409
+ * Borrows from Modernizr.
410
+ *
411
+ * @param {string} eventNameSuffix Event name, e.g. "click".
412
+ * @param {?boolean} capture Check if the capture phase is supported.
413
+ * @return {boolean} True if the event is supported.
414
+ * @internal
415
+ * @license Modernizr 3.0.0pre (Custom Build) | MIT
416
+ */
417
+ function isEventSupported(eventNameSuffix, capture) {
418
+ if (!ExecutionEnvironment.canUseDOM ||
419
+ capture && !('addEventListener' in document)) {
420
+ return false;
421
+ }
422
+
423
+ var eventName = 'on' + eventNameSuffix;
424
+ var isSupported = eventName in document;
425
+
426
+ if (!isSupported) {
427
+ var element = document.createElement('div');
428
+ element.setAttribute(eventName, 'return;');
429
+ isSupported = typeof element[eventName] === 'function';
430
+ }
431
+
432
+ if (!isSupported && useHasFeature && eventNameSuffix === 'wheel') {
433
+ // This is the only way to test support for the `wheel` event in IE9+.
434
+ isSupported = document.implementation.hasFeature('Events.wheel', '3.0');
435
+ }
436
+
437
+ return isSupported;
438
+ }
439
+
440
+ module.exports = isEventSupported;
441
+
442
+
443
+ /***/ }),
444
+
445
+ /***/ 2527:
446
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
447
+
448
+ /**
449
+ * Copyright (c) 2015, Facebook, Inc.
450
+ * All rights reserved.
451
+ *
452
+ * This source code is licensed under the BSD-style license found in the
453
+ * LICENSE file in the root directory of this source tree. An additional grant
454
+ * of patent rights can be found in the PATENTS file in the same directory.
455
+ *
456
+ * @providesModule normalizeWheel
457
+ * @typechecks
458
+ */
459
+
460
+
461
+
462
+ var UserAgent_DEPRECATED = __webpack_require__(6377);
463
+
464
+ var isEventSupported = __webpack_require__(3541);
465
+
466
+
467
+ // Reasonable defaults
468
+ var PIXEL_STEP = 10;
469
+ var LINE_HEIGHT = 40;
470
+ var PAGE_HEIGHT = 800;
471
+
472
+ /**
473
+ * Mouse wheel (and 2-finger trackpad) support on the web sucks. It is
474
+ * complicated, thus this doc is long and (hopefully) detailed enough to answer
475
+ * your questions.
476
+ *
477
+ * If you need to react to the mouse wheel in a predictable way, this code is
478
+ * like your bestest friend. * hugs *
479
+ *
480
+ * As of today, there are 4 DOM event types you can listen to:
481
+ *
482
+ * 'wheel' -- Chrome(31+), FF(17+), IE(9+)
483
+ * 'mousewheel' -- Chrome, IE(6+), Opera, Safari
484
+ * 'MozMousePixelScroll' -- FF(3.5 only!) (2010-2013) -- don't bother!
485
+ * 'DOMMouseScroll' -- FF(0.9.7+) since 2003
486
+ *
487
+ * So what to do? The is the best:
488
+ *
489
+ * normalizeWheel.getEventType();
490
+ *
491
+ * In your event callback, use this code to get sane interpretation of the
492
+ * deltas. This code will return an object with properties:
493
+ *
494
+ * spinX -- normalized spin speed (use for zoom) - x plane
495
+ * spinY -- " - y plane
496
+ * pixelX -- normalized distance (to pixels) - x plane
497
+ * pixelY -- " - y plane
498
+ *
499
+ * Wheel values are provided by the browser assuming you are using the wheel to
500
+ * scroll a web page by a number of lines or pixels (or pages). Values can vary
501
+ * significantly on different platforms and browsers, forgetting that you can
502
+ * scroll at different speeds. Some devices (like trackpads) emit more events
503
+ * at smaller increments with fine granularity, and some emit massive jumps with
504
+ * linear speed or acceleration.
505
+ *
506
+ * This code does its best to normalize the deltas for you:
507
+ *
508
+ * - spin is trying to normalize how far the wheel was spun (or trackpad
509
+ * dragged). This is super useful for zoom support where you want to
510
+ * throw away the chunky scroll steps on the PC and make those equal to
511
+ * the slow and smooth tiny steps on the Mac. Key data: This code tries to
512
+ * resolve a single slow step on a wheel to 1.
513
+ *
514
+ * - pixel is normalizing the desired scroll delta in pixel units. You'll
515
+ * get the crazy differences between browsers, but at least it'll be in
516
+ * pixels!
517
+ *
518
+ * - positive value indicates scrolling DOWN/RIGHT, negative UP/LEFT. This
519
+ * should translate to positive value zooming IN, negative zooming OUT.
520
+ * This matches the newer 'wheel' event.
521
+ *
522
+ * Why are there spinX, spinY (or pixels)?
523
+ *
524
+ * - spinX is a 2-finger side drag on the trackpad, and a shift + wheel turn
525
+ * with a mouse. It results in side-scrolling in the browser by default.
526
+ *
527
+ * - spinY is what you expect -- it's the classic axis of a mouse wheel.
528
+ *
529
+ * - I dropped spinZ/pixelZ. It is supported by the DOM 3 'wheel' event and
530
+ * probably is by browsers in conjunction with fancy 3D controllers .. but
531
+ * you know.
532
+ *
533
+ * Implementation info:
534
+ *
535
+ * Examples of 'wheel' event if you scroll slowly (down) by one step with an
536
+ * average mouse:
537
+ *
538
+ * OS X + Chrome (mouse) - 4 pixel delta (wheelDelta -120)
539
+ * OS X + Safari (mouse) - N/A pixel delta (wheelDelta -12)
540
+ * OS X + Firefox (mouse) - 0.1 line delta (wheelDelta N/A)
541
+ * Win8 + Chrome (mouse) - 100 pixel delta (wheelDelta -120)
542
+ * Win8 + Firefox (mouse) - 3 line delta (wheelDelta -120)
543
+ *
544
+ * On the trackpad:
545
+ *
546
+ * OS X + Chrome (trackpad) - 2 pixel delta (wheelDelta -6)
547
+ * OS X + Firefox (trackpad) - 1 pixel delta (wheelDelta N/A)
548
+ *
549
+ * On other/older browsers.. it's more complicated as there can be multiple and
550
+ * also missing delta values.
551
+ *
552
+ * The 'wheel' event is more standard:
553
+ *
554
+ * http://www.w3.org/TR/DOM-Level-3-Events/#events-wheelevents
555
+ *
556
+ * The basics is that it includes a unit, deltaMode (pixels, lines, pages), and
557
+ * deltaX, deltaY and deltaZ. Some browsers provide other values to maintain
558
+ * backward compatibility with older events. Those other values help us
559
+ * better normalize spin speed. Example of what the browsers provide:
560
+ *
561
+ * | event.wheelDelta | event.detail
562
+ * ------------------+------------------+--------------
563
+ * Safari v5/OS X | -120 | 0
564
+ * Safari v5/Win7 | -120 | 0
565
+ * Chrome v17/OS X | -120 | 0
566
+ * Chrome v17/Win7 | -120 | 0
567
+ * IE9/Win7 | -120 | undefined
568
+ * Firefox v4/OS X | undefined | 1
569
+ * Firefox v4/Win7 | undefined | 3
570
+ *
571
+ */
572
+ function normalizeWheel(/*object*/ event) /*object*/ {
573
+ var sX = 0, sY = 0, // spinX, spinY
574
+ pX = 0, pY = 0; // pixelX, pixelY
575
+
576
+ // Legacy
577
+ if ('detail' in event) { sY = event.detail; }
578
+ if ('wheelDelta' in event) { sY = -event.wheelDelta / 120; }
579
+ if ('wheelDeltaY' in event) { sY = -event.wheelDeltaY / 120; }
580
+ if ('wheelDeltaX' in event) { sX = -event.wheelDeltaX / 120; }
581
+
582
+ // side scrolling on FF with DOMMouseScroll
583
+ if ( 'axis' in event && event.axis === event.HORIZONTAL_AXIS ) {
584
+ sX = sY;
585
+ sY = 0;
586
+ }
587
+
588
+ pX = sX * PIXEL_STEP;
589
+ pY = sY * PIXEL_STEP;
590
+
591
+ if ('deltaY' in event) { pY = event.deltaY; }
592
+ if ('deltaX' in event) { pX = event.deltaX; }
593
+
594
+ if ((pX || pY) && event.deltaMode) {
595
+ if (event.deltaMode == 1) { // delta in LINE units
596
+ pX *= LINE_HEIGHT;
597
+ pY *= LINE_HEIGHT;
598
+ } else { // delta in PAGE units
599
+ pX *= PAGE_HEIGHT;
600
+ pY *= PAGE_HEIGHT;
601
+ }
602
+ }
603
+
604
+ // Fall-back if spin cannot be determined
605
+ if (pX && !sX) { sX = (pX < 1) ? -1 : 1; }
606
+ if (pY && !sY) { sY = (pY < 1) ? -1 : 1; }
607
+
608
+ return { spinX : sX,
609
+ spinY : sY,
610
+ pixelX : pX,
611
+ pixelY : pY };
612
+ }
613
+
614
+
615
+ /**
616
+ * The best combination if you prefer spinX + spinY normalization. It favors
617
+ * the older DOMMouseScroll for Firefox, as FF does not include wheelDelta with
618
+ * 'wheel' event, making spin speed determination impossible.
619
+ */
620
+ normalizeWheel.getEventType = function() /*string*/ {
621
+ return (UserAgent_DEPRECATED.firefox())
622
+ ? 'DOMMouseScroll'
623
+ : (isEventSupported('wheel'))
624
+ ? 'wheel'
625
+ : 'mousewheel';
626
+ };
627
+
628
+ module.exports = normalizeWheel;
629
+
630
+
631
+ /***/ }),
632
+
26
633
  /***/ 7609:
27
634
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
28
635
 
@@ -444,7 +1051,7 @@ __webpack_require__.d(__webpack_exports__, {
444
1051
  ;// CONCATENATED MODULE: external "../shared"
445
1052
  var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
446
1053
  var y = x => () => x
447
- const shared_namespaceObject = x({ ["InputBehaviorType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.InputBehaviorType, ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes, ["RenderType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.RenderType, ["SelectedType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.SelectedType, ["SelectedTypeEnum"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.SelectedTypeEnum, ["SizeEnum"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.SizeEnum, ["TagThemeType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.TagThemeType, ["classes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.classes, ["observerResize"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.observerResize, ["useFormItem"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.useFormItem, ["withInstallProps"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstallProps });
1054
+ const shared_namespaceObject = x({ ["InputBehaviorType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.InputBehaviorType, ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes, ["RenderType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.RenderType, ["SelectedType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.SelectedType, ["SelectedTypeEnum"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.SelectedTypeEnum, ["SizeEnum"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.SizeEnum, ["TagThemeType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.TagThemeType, ["bkZIndexManager"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.bkZIndexManager, ["classes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.classes, ["observerResize"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.observerResize, ["resolveClassName"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.resolveClassName, ["useFormItem"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.useFormItem, ["withInstallProps"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstallProps });
448
1055
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
449
1056
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
450
1057
  try {
@@ -482,7 +1089,7 @@ var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
482
1089
  ;// CONCATENATED MODULE: external "vue"
483
1090
  var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
484
1091
  var external_vue_y = x => () => x
485
- const external_vue_namespaceObject = external_vue_x({ ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createTextVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["customRef"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.customRef, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["getCurrentInstance"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.getCurrentInstance, ["inject"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.inject, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps, ["onBeforeMount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeMount, ["onBeforeUnmount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["provide"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.provide, ["reactive"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.reactive, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["resolveDirective"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.resolveDirective, ["toRef"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRef, ["toRefs"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRefs, ["vModelText"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.vModelText, ["vShow"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.vShow, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives });
1092
+ const external_vue_namespaceObject = external_vue_x({ ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createTextVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["customRef"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.customRef, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["getCurrentInstance"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.getCurrentInstance, ["h"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.h, ["inject"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.inject, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["onBeforeMount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeMount, ["onBeforeUnmount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["provide"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.provide, ["reactive"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.reactive, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["render"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.render, ["resolveDirective"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.resolveDirective, ["toRef"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRef, ["toRefs"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRefs, ["vModelText"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.vModelText, ["vShow"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.vShow, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives });
486
1093
  ;// CONCATENATED MODULE: ../../packages/select/src/common.ts
487
1094
 
488
1095
 
@@ -1063,10 +1670,628 @@ function optionGroup_objectSpread(e) { for (var r = 1; r < arguments.length; r++
1063
1670
  }, [(_this$$slots$default = (_this$$slots = this.$slots)["default"]) === null || _this$$slots$default === void 0 ? void 0 : _this$$slots$default.call(_this$$slots)]), [[external_vue_namespaceObject.vShow, !this.groupCollapse]])]), [[external_vue_namespaceObject.vShow, this.visible]]);
1064
1671
  }
1065
1672
  }));
1066
- ;// CONCATENATED MODULE: external "../directives"
1067
- var directives_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
1068
- var directives_y = x => () => x
1069
- const directives_namespaceObject = directives_x({ ["bkTooltips"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_directives_45d4776f__.bkTooltips, ["clickoutside"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_directives_45d4776f__.clickoutside });
1673
+ ;// CONCATENATED MODULE: ../../packages/directives/src/clickoutside.ts
1674
+ function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = clickoutside_unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
1675
+ function clickoutside_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return clickoutside_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return clickoutside_arrayLikeToArray(o, minLen); }
1676
+ function clickoutside_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
1677
+ /*
1678
+ * Tencent is pleased to support the open source community by making
1679
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1680
+ *
1681
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1682
+ *
1683
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1684
+ *
1685
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
1686
+ *
1687
+ * ---------------------------------------------------
1688
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
1689
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
1690
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
1691
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
1692
+ *
1693
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
1694
+ * the Software.
1695
+ *
1696
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
1697
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1698
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
1699
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
1700
+ * IN THE SOFTWARE.
1701
+ */
1702
+ var isElement = function isElement(e) {
1703
+ if (typeof Element === 'undefined') return false;
1704
+ return e instanceof Element;
1705
+ };
1706
+ var nodeList = new Map();
1707
+ var startClick;
1708
+ document.addEventListener('mousedown', function (e) {
1709
+ return startClick = e;
1710
+ });
1711
+ document.addEventListener('mouseup', function (e) {
1712
+ var _iterator = _createForOfIteratorHelper(nodeList.values()),
1713
+ _step;
1714
+ try {
1715
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
1716
+ var handlers = _step.value;
1717
+ var _iterator2 = _createForOfIteratorHelper(handlers),
1718
+ _step2;
1719
+ try {
1720
+ for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
1721
+ var documentHandler = _step2.value.documentHandler;
1722
+ documentHandler(e, startClick);
1723
+ }
1724
+ } catch (err) {
1725
+ _iterator2.e(err);
1726
+ } finally {
1727
+ _iterator2.f();
1728
+ }
1729
+ }
1730
+ } catch (err) {
1731
+ _iterator.e(err);
1732
+ } finally {
1733
+ _iterator.f();
1734
+ }
1735
+ });
1736
+ function createDocumentHandler(el, binding) {
1737
+ var excludes = [];
1738
+ if (Array.isArray(binding.arg)) {
1739
+ excludes = binding.arg;
1740
+ } else if (isElement(binding.arg)) {
1741
+ excludes.push(binding.arg);
1742
+ }
1743
+ return function (mouseup, mousedown) {
1744
+ var popperRef = binding.instance.popperRef;
1745
+ var mouseUpTarget = mouseup.target;
1746
+ var mouseDownTarget = mousedown === null || mousedown === void 0 ? void 0 : mousedown.target;
1747
+ var isBound = !binding || !binding.instance;
1748
+ var isTargetExists = !mouseUpTarget || !mouseDownTarget;
1749
+ var isContainedByEl = el.contains(mouseUpTarget) || el.contains(mouseDownTarget);
1750
+ var isSelf = el === mouseUpTarget;
1751
+ var isTargetExcluded = excludes.length && excludes.some(function (item) {
1752
+ return item === null || item === void 0 ? void 0 : item.contains(mouseUpTarget);
1753
+ }) || excludes.length && excludes.includes(mouseDownTarget);
1754
+ var isContainedByPopper = popperRef && (popperRef.contains(mouseUpTarget) || popperRef.contains(mouseDownTarget));
1755
+ if (isBound || isTargetExists || isContainedByEl || isSelf || isTargetExcluded || isContainedByPopper) {
1756
+ return;
1757
+ }
1758
+ binding.value(mouseup, mousedown);
1759
+ };
1760
+ }
1761
+ var ClickOutside = {
1762
+ beforeMount: function beforeMount(el, binding) {
1763
+ if (!nodeList.has(el)) {
1764
+ nodeList.set(el, []);
1765
+ }
1766
+ nodeList.get(el).push({
1767
+ documentHandler: createDocumentHandler(el, binding),
1768
+ bindingFn: binding.value
1769
+ });
1770
+ },
1771
+ updated: function updated(el, binding) {
1772
+ if (!nodeList.has(el)) {
1773
+ nodeList.set(el, []);
1774
+ }
1775
+ var handlers = nodeList.get(el);
1776
+ var oldHandlerIndex = handlers.findIndex(function (item) {
1777
+ return item.bindingFn === binding.oldValue;
1778
+ });
1779
+ var newHandler = {
1780
+ documentHandler: createDocumentHandler(el, binding),
1781
+ bindingFn: binding.value
1782
+ };
1783
+ if (oldHandlerIndex >= 0) {
1784
+ // replace the old handler to the new handler
1785
+ handlers.splice(oldHandlerIndex, 1, newHandler);
1786
+ } else {
1787
+ handlers.push(newHandler);
1788
+ }
1789
+ },
1790
+ unmounted: function unmounted(el) {
1791
+ // remove all listeners when a component unmounted
1792
+ nodeList["delete"](el);
1793
+ }
1794
+ };
1795
+ ClickOutside.install = function (app) {
1796
+ app.directive('bkTooltips', ClickOutside);
1797
+ };
1798
+ /* harmony default export */ const clickoutside = (ClickOutside);
1799
+ ;// CONCATENATED MODULE: external "../popover"
1800
+ var popover_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
1801
+ var popover_y = x => () => x
1802
+ const popover_namespaceObject = popover_x({ ["$bkPopover"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_popover_9b03f19d__.$bkPopover, ["default"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_popover_9b03f19d__["default"] });
1803
+ ;// CONCATENATED MODULE: ../../packages/directives/src/ellipsis.ts
1804
+
1805
+ /*
1806
+ * Tencent is pleased to support the open source community by making
1807
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1808
+ *
1809
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1810
+ *
1811
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1812
+ *
1813
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
1814
+ *
1815
+ * ---------------------------------------------------
1816
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
1817
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
1818
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
1819
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
1820
+ *
1821
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
1822
+ * the Software.
1823
+ *
1824
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
1825
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1826
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
1827
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
1828
+ * IN THE SOFTWARE.
1829
+ */
1830
+
1831
+ var resolveOptions = function resolveOptions(el, binding) {
1832
+ var options = {
1833
+ content: '',
1834
+ target: el
1835
+ };
1836
+ if (_typeof(binding) === 'object') {
1837
+ Object.assign(options, binding);
1838
+ if (Object.prototype.hasOwnProperty.call(binding, 'popoverOption')) {
1839
+ Object.assign(options, binding.popoverOption);
1840
+ }
1841
+ } else {
1842
+ options.content = binding;
1843
+ }
1844
+ return options;
1845
+ };
1846
+ var createInstance = function createInstance(el, binding) {
1847
+ var instance = null;
1848
+ var createTimer = null;
1849
+ var hidePopTimer = null;
1850
+ var options = resolveOptions(el, binding);
1851
+ var disabled = options.disabled;
1852
+ if (disabled || instance) {
1853
+ return;
1854
+ }
1855
+ var handleContentEnter = function handleContentEnter() {
1856
+ hidePopTimer && clearTimeout(hidePopTimer);
1857
+ hidePopTimer = null;
1858
+ };
1859
+ var handleContentLeave = function handleContentLeave() {
1860
+ var _instance, _instance2;
1861
+ if (createTimer) {
1862
+ clearTimeout(createTimer);
1863
+ }
1864
+ (_instance = instance) === null || _instance === void 0 || _instance.hide();
1865
+ (_instance2 = instance) === null || _instance2 === void 0 || _instance2.close();
1866
+ instance = null;
1867
+ };
1868
+ var handleMouseEnter = function handleMouseEnter() {
1869
+ handleContentLeave();
1870
+ createTimer && clearTimeout(createTimer);
1871
+ createTimer = setTimeout(function () {
1872
+ var targetOptions = resolveOptions(el, binding);
1873
+ targetOptions.isShow = true;
1874
+ targetOptions.content = typeof targetOptions.content === 'function' ? targetOptions.content() : targetOptions.content || el.innerText;
1875
+ targetOptions.allowHtml = true;
1876
+ Object.assign(targetOptions, {
1877
+ onContentMouseenter: handleContentEnter,
1878
+ onContentMouseleave: handleContentLeave
1879
+ });
1880
+ instance = (0,popover_namespaceObject.$bkPopover)(targetOptions);
1881
+ }, 300);
1882
+ };
1883
+ var handleMouseLeave = function handleMouseLeave() {
1884
+ hidePopTimer = setTimeout(function () {
1885
+ var _instance3, _instance4;
1886
+ if (createTimer) {
1887
+ clearTimeout(createTimer);
1888
+ }
1889
+ (_instance3 = instance) === null || _instance3 === void 0 || _instance3.hide();
1890
+ (_instance4 = instance) === null || _instance4 === void 0 || _instance4.close();
1891
+ instance = null;
1892
+ }, 120);
1893
+ };
1894
+ el.addEventListener('mouseenter', handleMouseEnter);
1895
+ el.addEventListener('mouseleave', handleMouseLeave);
1896
+ var destroyInstance = function destroyInstance(element) {
1897
+ var _ref, _ref2;
1898
+ handleMouseLeave();
1899
+ (_ref = element !== null && element !== void 0 ? element : el) === null || _ref === void 0 || _ref.removeEventListener('mouseenter', handleMouseEnter);
1900
+ (_ref2 = element !== null && element !== void 0 ? element : el) === null || _ref2 === void 0 || _ref2.removeEventListener('mouseleave', handleMouseLeave);
1901
+ };
1902
+ return {
1903
+ destroyInstance: destroyInstance,
1904
+ instance: instance
1905
+ };
1906
+ };
1907
+ var ellipsis = {
1908
+ mounted: function mounted(el, binding) {
1909
+ createInstance(el, binding);
1910
+ }
1911
+ };
1912
+ /* harmony default export */ const src_ellipsis = ((/* unused pure expression or super */ null && (ellipsis)));
1913
+ // EXTERNAL MODULE: ../../node_modules/normalize-wheel/index.js
1914
+ var normalize_wheel = __webpack_require__(2439);
1915
+ var normalize_wheel_default = /*#__PURE__*/__webpack_require__.n(normalize_wheel);
1916
+ ;// CONCATENATED MODULE: ../../packages/directives/src/mousewheel.ts
1917
+ /*
1918
+ * Tencent is pleased to support the open source community by making
1919
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1920
+ *
1921
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1922
+ *
1923
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1924
+ *
1925
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
1926
+ *
1927
+ * ---------------------------------------------------
1928
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
1929
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
1930
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
1931
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
1932
+ *
1933
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
1934
+ * the Software.
1935
+ *
1936
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
1937
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1938
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
1939
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
1940
+ * IN THE SOFTWARE.
1941
+ */
1942
+
1943
+ var isFirefox = typeof navigator !== 'undefined' && navigator.userAgent.toLowerCase().indexOf('firefox') > -1;
1944
+ var mousewheelHandler = function mousewheelHandler(element, callback) {
1945
+ if (element !== null && element !== void 0 && element.addEventListener) {
1946
+ element.addEventListener(isFirefox ? 'DOMMouseScroll' : 'mousewheel', function (e) {
1947
+ var normalized = normalize_wheel_default()(e);
1948
+ callback === null || callback === void 0 || callback.apply(this, [e, normalized]);
1949
+ });
1950
+ }
1951
+ };
1952
+ var mousewheel = {
1953
+ beforeMount: function beforeMount(el, binding) {
1954
+ mousewheelHandler(el, binding.value);
1955
+ }
1956
+ };
1957
+ /* harmony default export */ const src_mousewheel = ((/* unused pure expression or super */ null && (mousewheel)));
1958
+ ;// CONCATENATED MODULE: external "@popperjs/core"
1959
+ var core_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
1960
+ var core_y = x => () => x
1961
+ const core_namespaceObject = core_x({ ["createPopper"]: () => __WEBPACK_EXTERNAL_MODULE__popperjs_core_a5c7319c__.createPopper });
1962
+ ;// CONCATENATED MODULE: ../../packages/directives/src/tooltips.ts
1963
+
1964
+
1965
+
1966
+ function tooltips_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
1967
+ function tooltips_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? tooltips_ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : tooltips_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
1968
+ /*
1969
+ * Tencent is pleased to support the open source community by making
1970
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1971
+ *
1972
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1973
+ *
1974
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1975
+ *
1976
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
1977
+ *
1978
+ * ---------------------------------------------------
1979
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
1980
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
1981
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
1982
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
1983
+ *
1984
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
1985
+ * the Software.
1986
+ *
1987
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
1988
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1989
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
1990
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
1991
+ * IN THE SOFTWARE.
1992
+ */
1993
+
1994
+
1995
+
1996
+ var tooltips_nodeList = new WeakMap();
1997
+ var tooltips = {
1998
+ beforeMount: function beforeMount(el, binding) {
1999
+ var opts = getOpts(binding);
2000
+ var trigger = opts.trigger,
2001
+ showOnInit = opts.showOnInit;
2002
+ var popper = renderContent(opts);
2003
+ var delayTimeout = null;
2004
+ if (showOnInit) {
2005
+ (0,external_vue_namespaceObject.nextTick)(function () {
2006
+ show(el);
2007
+ });
2008
+ }
2009
+ if (trigger === 'hover') {
2010
+ var hideTimeout = null;
2011
+ el.addEventListener('mouseenter', function () {
2012
+ delayTimeout = setTimeout(function () {
2013
+ show(el);
2014
+ clearTimeout(hideTimeout);
2015
+ clearTimeout(delayTimeout);
2016
+ }, opts.delay);
2017
+ });
2018
+ popper.addEventListener('mouseenter', function () {
2019
+ clearTimeout(hideTimeout);
2020
+ });
2021
+ el.addEventListener('mouseleave', function () {
2022
+ clearTimeout(delayTimeout);
2023
+ hideTimeout = setTimeout(function () {
2024
+ hide(el);
2025
+ }, 100);
2026
+ });
2027
+ el.addEventListener('click', function () {
2028
+ hide(el);
2029
+ });
2030
+ popper.addEventListener('mouseleave', function () {
2031
+ clearTimeout(delayTimeout);
2032
+ hideTimeout = setTimeout(function () {
2033
+ hide(el);
2034
+ }, 100);
2035
+ });
2036
+ } else if (trigger === 'click') {
2037
+ document.body.addEventListener('click', function (event) {
2038
+ if (el.contains(event.target) && !popper.hasAttribute('data-show')) {
2039
+ delayTimeout = setTimeout(function () {
2040
+ show(el);
2041
+ clearTimeout(delayTimeout);
2042
+ }, opts.delay);
2043
+ } else if (popper.hasAttribute('data-show')) {
2044
+ hide(el);
2045
+ }
2046
+ });
2047
+ }
2048
+ tooltips_nodeList.set(el, {
2049
+ opts: opts,
2050
+ popper: popper,
2051
+ popperInstance: null
2052
+ });
2053
+ },
2054
+ updated: function updated(el, binding) {
2055
+ if (tooltips_nodeList.get(el)) {
2056
+ tooltips_nodeList.get(el).opts = getOpts(binding);
2057
+ }
2058
+ },
2059
+ unmounted: function unmounted(el) {
2060
+ hide(el);
2061
+ tooltips_nodeList["delete"](el);
2062
+ }
2063
+ };
2064
+ /**
2065
+ * 初始化配置
2066
+ * @returns tooltips配置
2067
+ */
2068
+ function initOptions() {
2069
+ var defaultOpts = {
2070
+ arrow: true,
2071
+ disabled: false,
2072
+ trigger: 'hover',
2073
+ theme: 'dark',
2074
+ content: '',
2075
+ showOnInit: false,
2076
+ placement: 'top',
2077
+ distance: 8,
2078
+ extCls: '',
2079
+ sameWidth: false,
2080
+ delay: 0,
2081
+ onShow: function onShow() {},
2082
+ onHide: function onHide() {}
2083
+ };
2084
+ return defaultOpts;
2085
+ }
2086
+ /**
2087
+ * 获取配置
2088
+ * @returns tooltips配置
2089
+ */
2090
+ function getOpts(binding) {
2091
+ var opts = initOptions();
2092
+ if (_typeof(binding.value) === 'object') {
2093
+ Object.assign(opts, binding.value);
2094
+ } else {
2095
+ opts.content = binding.value;
2096
+ }
2097
+ return opts;
2098
+ }
2099
+ /**
2100
+ * 创建tooltips DOM
2101
+ * @param opts
2102
+ * @returns
2103
+ */
2104
+ function renderContext(value, content) {
2105
+ if (typeof value === 'string') {
2106
+ content.innerText = value;
2107
+ } else {
2108
+ // 如果 content 是 Vue 组件的实例,则挂载它
2109
+ var container = document.createElement('div');
2110
+ var vnode = (0,external_vue_namespaceObject.h)(value);
2111
+ (0,external_vue_namespaceObject.render)(vnode, container);
2112
+ content.innerHTML = container.innerHTML;
2113
+ }
2114
+ }
2115
+ function renderContent(opts) {
2116
+ var value = opts.content,
2117
+ hasArrow = opts.arrow,
2118
+ theme = opts.theme,
2119
+ extCls = opts.extCls;
2120
+ var isLight = theme === 'light';
2121
+ var zIndex = shared_namespaceObject.bkZIndexManager.getPopperIndex();
2122
+ var content = document.createElement('div');
2123
+ var prefix = document.documentElement.style.getPropertyValue('--bk-prefix') || 'bk';
2124
+ content.className = "".concat((0,shared_namespaceObject.resolveClassName)('popper', prefix), " ").concat(isLight ? 'light' : 'dark', " ").concat(extCls);
2125
+ content.innerText = value;
2126
+ content.style.zIndex = String(zIndex);
2127
+ renderContext(value, content);
2128
+ if (hasArrow) {
2129
+ var arrow = renderArrow();
2130
+ content.appendChild(arrow);
2131
+ }
2132
+ return content;
2133
+ }
2134
+ /**
2135
+ * 渲染箭头dom
2136
+ * @returns arrow DOM
2137
+ */
2138
+ function renderArrow() {
2139
+ var arrow = document.createElement('div');
2140
+ var prefix = document.documentElement.style.getPropertyValue('--bk-prefix') || 'bk';
2141
+ arrow.className = (0,shared_namespaceObject.resolveClassName)('popper-arrow', prefix);
2142
+ arrow.setAttribute('data-popper-arrow', '');
2143
+ return arrow;
2144
+ }
2145
+ /**
2146
+ * 创建popper实例
2147
+ * @param el
2148
+ * @param popper
2149
+ * @returns popper实例
2150
+ */
2151
+ function createPopperInstance(el, popper) {
2152
+ var _nodeList$get = tooltips_nodeList.get(el),
2153
+ opts = _nodeList$get.opts;
2154
+ var placement = opts.placement,
2155
+ distance = opts.distance,
2156
+ sameWidth = opts.sameWidth;
2157
+ var popperInstance = (0,core_namespaceObject.createPopper)(el, popper, {
2158
+ placement: placement,
2159
+ modifiers: [{
2160
+ name: 'offset',
2161
+ options: {
2162
+ offset: [0, distance]
2163
+ }
2164
+ }, {
2165
+ name: 'arrow',
2166
+ options: {
2167
+ padding: 5
2168
+ }
2169
+ }].concat(_toConsumableArray(sameWidth ? [{
2170
+ name: 'sameWidth',
2171
+ enabled: true,
2172
+ phase: 'beforeWrite',
2173
+ requires: ['computeStyles'],
2174
+ fn: function fn(_ref) {
2175
+ var state = _ref.state;
2176
+ state.styles.popper.width = "".concat(state.rects.reference.width, "px");
2177
+ },
2178
+ effect: function effect(_ref2) {
2179
+ var state = _ref2.state;
2180
+ state.elements.popper.style.overflowWrap = 'break-word';
2181
+ state.elements.popper.style.width = "".concat(state.elements.reference.offsetWidth, "px");
2182
+ }
2183
+ }] : []))
2184
+ });
2185
+ return popperInstance;
2186
+ }
2187
+ /**
2188
+ * 显示
2189
+ * @param el
2190
+ */
2191
+ function show(el) {
2192
+ var _nodeList$get2 = tooltips_nodeList.get(el),
2193
+ popper = _nodeList$get2.popper,
2194
+ opts = _nodeList$get2.opts;
2195
+ var disabled = opts.disabled,
2196
+ content = opts.content,
2197
+ hasArrow = opts.arrow,
2198
+ onShow = opts.onShow,
2199
+ boundary = opts.boundary,
2200
+ _opts$modifiers = opts.modifiers,
2201
+ modifiers = _opts$modifiers === void 0 ? [] : _opts$modifiers;
2202
+ if (disabled) return;
2203
+ renderContext(content, popper);
2204
+ if (hasArrow) {
2205
+ var arrow = renderArrow();
2206
+ popper.appendChild(arrow);
2207
+ }
2208
+ var container = document.body;
2209
+ if (boundary) {
2210
+ if (boundary === 'parent') {
2211
+ container = el.parentElement;
2212
+ } else if (boundary instanceof HTMLElement) {
2213
+ container = boundary;
2214
+ }
2215
+ }
2216
+ container.appendChild(popper);
2217
+ var popperInstance = createPopperInstance(el, popper);
2218
+ onShow();
2219
+ // Make the tooltip visible
2220
+ popper.setAttribute('data-show', '');
2221
+ // Enable the event listeners
2222
+ popperInstance.setOptions(function (options) {
2223
+ return tooltips_objectSpread(tooltips_objectSpread({}, options), {}, {
2224
+ modifiers: [].concat(_toConsumableArray(options.modifiers), _toConsumableArray(modifiers), [{
2225
+ name: 'eventListeners',
2226
+ enabled: true
2227
+ }])
2228
+ });
2229
+ });
2230
+ // Update its position
2231
+ popperInstance.forceUpdate();
2232
+ tooltips_nodeList.get(el).popperInstance = popperInstance;
2233
+ }
2234
+ /**
2235
+ * 隐藏
2236
+ * @param el
2237
+ */
2238
+ function hide(el) {
2239
+ if (!tooltips_nodeList.get(el)) return;
2240
+ var _nodeList$get3 = tooltips_nodeList.get(el),
2241
+ popper = _nodeList$get3.popper,
2242
+ popperInstance = _nodeList$get3.popperInstance,
2243
+ opts = _nodeList$get3.opts;
2244
+ var onHide = opts.onHide;
2245
+ if (popper && document.body.contains(popper)) {
2246
+ var _popper$parentNode;
2247
+ popper.removeAttribute('data-show');
2248
+ popperInstance === null || popperInstance === void 0 || popperInstance.destroy();
2249
+ popper === null || popper === void 0 || (_popper$parentNode = popper.parentNode) === null || _popper$parentNode === void 0 || _popper$parentNode.removeChild(popper);
2250
+ onHide();
2251
+ }
2252
+ }
2253
+ /* harmony default export */ const src_tooltips = (tooltips);
2254
+ ;// CONCATENATED MODULE: external "../loading"
2255
+ var external_loading_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
2256
+ var external_loading_y = x => () => x
2257
+ const external_loading_namespaceObject = external_loading_x({ });
2258
+ ;// CONCATENATED MODULE: external "../overflow-title"
2259
+ var external_overflow_title_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
2260
+ var external_overflow_title_y = x => () => x
2261
+ const external_overflow_title_namespaceObject = external_overflow_title_x({ });
2262
+ ;// CONCATENATED MODULE: ../../packages/directives/src/index.ts
2263
+ /*
2264
+ * Tencent is pleased to support the open source community by making
2265
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
2266
+ *
2267
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
2268
+ *
2269
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
2270
+ *
2271
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
2272
+ *
2273
+ * ---------------------------------------------------
2274
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
2275
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
2276
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
2277
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
2278
+ *
2279
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
2280
+ * the Software.
2281
+ *
2282
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
2283
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
2284
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
2285
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
2286
+ * IN THE SOFTWARE.
2287
+ */
2288
+
2289
+
2290
+
2291
+
2292
+
2293
+
2294
+ // export { createInstance as bkEllipsisInstance } from './ellipsis';
1070
2295
  ;// CONCATENATED MODULE: external "../input"
1071
2296
  var input_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
1072
2297
  var input_y = x => () => x
@@ -1083,10 +2308,6 @@ const loading_namespaceObject = loading_x({ ["default"]: () => __WEBPACK_EXTERNA
1083
2308
  var loading_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
1084
2309
  var loading_less_y = x => () => x
1085
2310
  const loading_less_namespaceObject = loading_less_x({ });
1086
- ;// CONCATENATED MODULE: external "../popover"
1087
- var popover_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
1088
- var popover_y = x => () => x
1089
- const popover_namespaceObject = popover_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_popover_9b03f19d__["default"] });
1090
2311
  ;// CONCATENATED MODULE: external "../popover/popover.less"
1091
2312
  var popover_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
1092
2313
  var popover_less_y = x => () => x
@@ -2357,7 +3578,7 @@ const debounce_namespaceObject = debounce_x({ ["default"]: () => __WEBPACK_EXTER
2357
3578
  /* harmony default export */ const selectTagInput = ((0,external_vue_namespaceObject.defineComponent)({
2358
3579
  name: 'SelectTagInput',
2359
3580
  directives: {
2360
- bkTooltips: directives_namespaceObject.bkTooltips
3581
+ bkTooltips: src_tooltips
2361
3582
  },
2362
3583
  props: {
2363
3584
  selected: {
@@ -2573,7 +3794,7 @@ const debounce_namespaceObject = debounce_x({ ["default"]: () => __WEBPACK_EXTER
2573
3794
 
2574
3795
 
2575
3796
 
2576
- function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = select_unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
3797
+ function select_createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = select_unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
2577
3798
  function select_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return select_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return select_arrayLikeToArray(o, minLen); }
2578
3799
  function select_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
2579
3800
  function select_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
@@ -2627,7 +3848,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
2627
3848
  /* harmony default export */ const src_select = ((0,external_vue_namespaceObject.defineComponent)({
2628
3849
  name: 'Select',
2629
3850
  directives: {
2630
- clickoutside: directives_namespaceObject.clickoutside
3851
+ clickoutside: clickoutside
2631
3852
  },
2632
3853
  props: {
2633
3854
  modelValue: shared_namespaceObject.PropTypes.any,
@@ -3289,7 +4510,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
3289
4510
  // 处理options value为对象类型,引用类型变更后,回显不对问题
3290
4511
  var tmpValue = value;
3291
4512
  if (_typeof(tmpValue) === 'object') {
3292
- var _iterator = _createForOfIteratorHelper(optionsMap.value.keys()),
4513
+ var _iterator = select_createForOfIteratorHelper(optionsMap.value.keys()),
3293
4514
  _step;
3294
4515
  try {
3295
4516
  for (_iterator.s(); !(_step = _iterator.n()).done;) {