bk-magic-vue 2.3.2-beta.4 → 2.3.2-beta.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (111) hide show
  1. package/dist/bk-magic-vue.css +4 -4
  2. package/dist/bk-magic-vue.js +1507 -2471
  3. package/dist/bk-magic-vue.min.css +1 -1
  4. package/dist/bk-magic-vue.min.css.gz +0 -0
  5. package/dist/bk-magic-vue.min.css.map +1 -1
  6. package/dist/bk-magic-vue.min.js +1 -1
  7. package/dist/bk-magic-vue.min.js.gz +0 -0
  8. package/dist/bk-magic-vue.min.js.map +1 -1
  9. package/lib/alert.js +5 -11
  10. package/lib/animate-number.js +2 -9
  11. package/lib/badge.js +7 -25
  12. package/lib/big-tree.js +2549 -2788
  13. package/lib/breadcrumb-item.js +3 -10
  14. package/lib/breadcrumb.js +1 -9
  15. package/lib/button.js +1 -9
  16. package/lib/card.js +41 -70
  17. package/lib/cascade.js +442 -698
  18. package/lib/checkbox-group.js +2 -16
  19. package/lib/checkbox.js +972 -1179
  20. package/lib/col.js +9 -17
  21. package/lib/collapse-item.js +1 -10
  22. package/lib/collapse.js +1 -9
  23. package/lib/color-picker.js +38 -96
  24. package/lib/compose-form-item.js +1 -4
  25. package/lib/container.js +3 -11
  26. package/lib/date-picker.js +202 -330
  27. package/lib/dialog.js +2572 -2782
  28. package/lib/diff.js +2 -10
  29. package/lib/directives/clickoutside.js +2 -2
  30. package/lib/directives/overflow-tips.js +57 -73
  31. package/lib/directives/tooltips.js +65 -79
  32. package/lib/directives/transfer-dom.js +1 -4
  33. package/lib/divider.js +1 -9
  34. package/lib/dropdown-menu.js +7 -17
  35. package/lib/exception.js +5 -14
  36. package/lib/fixed-navbar.js +2 -13
  37. package/lib/form-item.js +253 -483
  38. package/lib/form.js +5 -22
  39. package/lib/icon.js +4 -5
  40. package/lib/image-viewer.js +22 -35
  41. package/lib/image.js +45 -72
  42. package/lib/info-box.js +2701 -2918
  43. package/lib/input.js +10 -33
  44. package/lib/link.js +1 -9
  45. package/lib/loading.js +9 -21
  46. package/lib/locale/index.js +5 -11
  47. package/lib/message.js +10 -22
  48. package/lib/navigation-menu-group.js +0 -4
  49. package/lib/navigation-menu-item.js +6 -19
  50. package/lib/navigation-menu.js +1046 -1252
  51. package/lib/navigation.js +34 -39
  52. package/lib/notify.js +20 -34
  53. package/lib/option-group.js +5 -10
  54. package/lib/option.js +15 -20
  55. package/lib/pagination.js +6706 -7013
  56. package/lib/popconfirm.js +66 -83
  57. package/lib/popover.js +55 -66
  58. package/lib/process.js +2 -17
  59. package/lib/progress.js +4 -10
  60. package/lib/radio-button.js +6 -13
  61. package/lib/radio-group.js +2 -9
  62. package/lib/radio.js +6 -13
  63. package/lib/rate.js +5 -21
  64. package/lib/resize-layout.js +11 -20
  65. package/lib/round-progress.js +1 -9
  66. package/lib/row.js +5 -18
  67. package/lib/search-select.js +409 -635
  68. package/lib/select.js +5989 -6261
  69. package/lib/sideslider.js +1560 -1769
  70. package/lib/slider.js +78 -127
  71. package/lib/star.js +3 -11
  72. package/lib/steps.js +1754 -1961
  73. package/lib/swiper.js +20 -33
  74. package/lib/switcher.js +3 -12
  75. package/lib/tab-panel.js +2 -9
  76. package/lib/tab.js +2330 -2536
  77. package/lib/table-column.js +328 -547
  78. package/lib/table-setting-content.js +321 -558
  79. package/lib/table.js +566 -917
  80. package/lib/tag-input.js +397 -649
  81. package/lib/tag.js +2 -10
  82. package/lib/time-picker.js +144 -219
  83. package/lib/timeline.js +23 -35
  84. package/lib/transfer.js +111 -161
  85. package/lib/transition.js +1 -9
  86. package/lib/tree.js +31 -75
  87. package/lib/ui/bk-magic-vue.css +4 -4
  88. package/lib/ui/bk-magic-vue.min.css +1 -1
  89. package/lib/ui/bk-magic-vue.min.css.gz +0 -0
  90. package/lib/ui/bk-magic-vue.min.css.map +1 -1
  91. package/lib/ui/button.css +1 -1
  92. package/lib/ui/button.min.css +1 -1
  93. package/lib/ui/button.min.css.map +1 -1
  94. package/lib/ui/dialog.css +2 -2
  95. package/lib/ui/dialog.min.css +1 -1
  96. package/lib/ui/dialog.min.css.map +1 -1
  97. package/lib/ui/info-box.css +2 -2
  98. package/lib/ui/info-box.min.css +1 -1
  99. package/lib/ui/info-box.min.css.map +1 -1
  100. package/lib/ui/popconfirm.css +1 -1
  101. package/lib/ui/popconfirm.min.css +1 -1
  102. package/lib/ui/popconfirm.min.css.map +1 -1
  103. package/lib/upload.js +63 -87
  104. package/lib/utils/deepmerge.js +5 -11
  105. package/lib/utils/pinyin.js +5 -11
  106. package/lib/utils/pop-manager.js +2 -2
  107. package/lib/utils/tippy.js +48 -49
  108. package/lib/version-detail.js +5854 -6081
  109. package/lib/virtual-scroll.js +17 -23
  110. package/lib/zoom-image.js +3 -11
  111. package/package.json +1 -1
package/lib/tag-input.js CHANGED
@@ -290,22 +290,321 @@
290
290
 
291
291
  var keys$1 = keys;
292
292
 
293
- function _typeof(obj) {
294
- "@babel/helpers - typeof";
295
-
296
- if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
297
- _typeof = function (obj) {
298
- return typeof obj;
293
+ function _regeneratorRuntime() {
294
+ _regeneratorRuntime = function () {
295
+ return exports;
296
+ };
297
+ var exports = {},
298
+ Op = Object.prototype,
299
+ hasOwn = Op.hasOwnProperty,
300
+ defineProperty = Object.defineProperty || function (obj, key, desc) {
301
+ obj[key] = desc.value;
302
+ },
303
+ $Symbol = "function" == typeof Symbol ? Symbol : {},
304
+ iteratorSymbol = $Symbol.iterator || "@@iterator",
305
+ asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
306
+ toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
307
+ function define(obj, key, value) {
308
+ return Object.defineProperty(obj, key, {
309
+ value: value,
310
+ enumerable: !0,
311
+ configurable: !0,
312
+ writable: !0
313
+ }), obj[key];
314
+ }
315
+ try {
316
+ define({}, "");
317
+ } catch (err) {
318
+ define = function (obj, key, value) {
319
+ return obj[key] = value;
299
320
  };
300
- } else {
301
- _typeof = function (obj) {
302
- return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
321
+ }
322
+ function wrap(innerFn, outerFn, self, tryLocsList) {
323
+ var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
324
+ generator = Object.create(protoGenerator.prototype),
325
+ context = new Context(tryLocsList || []);
326
+ return defineProperty(generator, "_invoke", {
327
+ value: makeInvokeMethod(innerFn, self, context)
328
+ }), generator;
329
+ }
330
+ function tryCatch(fn, obj, arg) {
331
+ try {
332
+ return {
333
+ type: "normal",
334
+ arg: fn.call(obj, arg)
335
+ };
336
+ } catch (err) {
337
+ return {
338
+ type: "throw",
339
+ arg: err
340
+ };
341
+ }
342
+ }
343
+ exports.wrap = wrap;
344
+ var ContinueSentinel = {};
345
+ function Generator() {}
346
+ function GeneratorFunction() {}
347
+ function GeneratorFunctionPrototype() {}
348
+ var IteratorPrototype = {};
349
+ define(IteratorPrototype, iteratorSymbol, function () {
350
+ return this;
351
+ });
352
+ var getProto = Object.getPrototypeOf,
353
+ NativeIteratorPrototype = getProto && getProto(getProto(values([])));
354
+ NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
355
+ var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
356
+ function defineIteratorMethods(prototype) {
357
+ ["next", "throw", "return"].forEach(function (method) {
358
+ define(prototype, method, function (arg) {
359
+ return this._invoke(method, arg);
360
+ });
361
+ });
362
+ }
363
+ function AsyncIterator(generator, PromiseImpl) {
364
+ function invoke(method, arg, resolve, reject) {
365
+ var record = tryCatch(generator[method], generator, arg);
366
+ if ("throw" !== record.type) {
367
+ var result = record.arg,
368
+ value = result.value;
369
+ return value && "object" == typeof value && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
370
+ invoke("next", value, resolve, reject);
371
+ }, function (err) {
372
+ invoke("throw", err, resolve, reject);
373
+ }) : PromiseImpl.resolve(value).then(function (unwrapped) {
374
+ result.value = unwrapped, resolve(result);
375
+ }, function (error) {
376
+ return invoke("throw", error, resolve, reject);
377
+ });
378
+ }
379
+ reject(record.arg);
380
+ }
381
+ var previousPromise;
382
+ defineProperty(this, "_invoke", {
383
+ value: function (method, arg) {
384
+ function callInvokeWithMethodAndArg() {
385
+ return new PromiseImpl(function (resolve, reject) {
386
+ invoke(method, arg, resolve, reject);
387
+ });
388
+ }
389
+ return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
390
+ }
391
+ });
392
+ }
393
+ function makeInvokeMethod(innerFn, self, context) {
394
+ var state = "suspendedStart";
395
+ return function (method, arg) {
396
+ if ("executing" === state) throw new Error("Generator is already running");
397
+ if ("completed" === state) {
398
+ if ("throw" === method) throw arg;
399
+ return doneResult();
400
+ }
401
+ for (context.method = method, context.arg = arg;;) {
402
+ var delegate = context.delegate;
403
+ if (delegate) {
404
+ var delegateResult = maybeInvokeDelegate(delegate, context);
405
+ if (delegateResult) {
406
+ if (delegateResult === ContinueSentinel) continue;
407
+ return delegateResult;
408
+ }
409
+ }
410
+ if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
411
+ if ("suspendedStart" === state) throw state = "completed", context.arg;
412
+ context.dispatchException(context.arg);
413
+ } else "return" === context.method && context.abrupt("return", context.arg);
414
+ state = "executing";
415
+ var record = tryCatch(innerFn, self, context);
416
+ if ("normal" === record.type) {
417
+ if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
418
+ return {
419
+ value: record.arg,
420
+ done: context.done
421
+ };
422
+ }
423
+ "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
424
+ }
303
425
  };
304
426
  }
305
-
306
- return _typeof(obj);
427
+ function maybeInvokeDelegate(delegate, context) {
428
+ var method = delegate.iterator[context.method];
429
+ if (undefined === method) {
430
+ if (context.delegate = null, "throw" === context.method) {
431
+ if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
432
+ context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
433
+ }
434
+ return ContinueSentinel;
435
+ }
436
+ var record = tryCatch(method, delegate.iterator, context.arg);
437
+ if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
438
+ var info = record.arg;
439
+ return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
440
+ }
441
+ function pushTryEntry(locs) {
442
+ var entry = {
443
+ tryLoc: locs[0]
444
+ };
445
+ 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
446
+ }
447
+ function resetTryEntry(entry) {
448
+ var record = entry.completion || {};
449
+ record.type = "normal", delete record.arg, entry.completion = record;
450
+ }
451
+ function Context(tryLocsList) {
452
+ this.tryEntries = [{
453
+ tryLoc: "root"
454
+ }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
455
+ }
456
+ function values(iterable) {
457
+ if (iterable) {
458
+ var iteratorMethod = iterable[iteratorSymbol];
459
+ if (iteratorMethod) return iteratorMethod.call(iterable);
460
+ if ("function" == typeof iterable.next) return iterable;
461
+ if (!isNaN(iterable.length)) {
462
+ var i = -1,
463
+ next = function next() {
464
+ for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
465
+ return next.value = undefined, next.done = !0, next;
466
+ };
467
+ return next.next = next;
468
+ }
469
+ }
470
+ return {
471
+ next: doneResult
472
+ };
473
+ }
474
+ function doneResult() {
475
+ return {
476
+ value: undefined,
477
+ done: !0
478
+ };
479
+ }
480
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
481
+ value: GeneratorFunctionPrototype,
482
+ configurable: !0
483
+ }), defineProperty(GeneratorFunctionPrototype, "constructor", {
484
+ value: GeneratorFunction,
485
+ configurable: !0
486
+ }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
487
+ var ctor = "function" == typeof genFun && genFun.constructor;
488
+ return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
489
+ }, exports.mark = function (genFun) {
490
+ return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
491
+ }, exports.awrap = function (arg) {
492
+ return {
493
+ __await: arg
494
+ };
495
+ }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
496
+ return this;
497
+ }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
498
+ void 0 === PromiseImpl && (PromiseImpl = Promise);
499
+ var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
500
+ return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
501
+ return result.done ? result.value : iter.next();
502
+ });
503
+ }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
504
+ return this;
505
+ }), define(Gp, "toString", function () {
506
+ return "[object Generator]";
507
+ }), exports.keys = function (val) {
508
+ var object = Object(val),
509
+ keys = [];
510
+ for (var key in object) keys.push(key);
511
+ return keys.reverse(), function next() {
512
+ for (; keys.length;) {
513
+ var key = keys.pop();
514
+ if (key in object) return next.value = key, next.done = !1, next;
515
+ }
516
+ return next.done = !0, next;
517
+ };
518
+ }, exports.values = values, Context.prototype = {
519
+ constructor: Context,
520
+ reset: function (skipTempReset) {
521
+ if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
522
+ },
523
+ stop: function () {
524
+ this.done = !0;
525
+ var rootRecord = this.tryEntries[0].completion;
526
+ if ("throw" === rootRecord.type) throw rootRecord.arg;
527
+ return this.rval;
528
+ },
529
+ dispatchException: function (exception) {
530
+ if (this.done) throw exception;
531
+ var context = this;
532
+ function handle(loc, caught) {
533
+ return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
534
+ }
535
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
536
+ var entry = this.tryEntries[i],
537
+ record = entry.completion;
538
+ if ("root" === entry.tryLoc) return handle("end");
539
+ if (entry.tryLoc <= this.prev) {
540
+ var hasCatch = hasOwn.call(entry, "catchLoc"),
541
+ hasFinally = hasOwn.call(entry, "finallyLoc");
542
+ if (hasCatch && hasFinally) {
543
+ if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
544
+ if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
545
+ } else if (hasCatch) {
546
+ if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
547
+ } else {
548
+ if (!hasFinally) throw new Error("try statement without catch or finally");
549
+ if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
550
+ }
551
+ }
552
+ }
553
+ },
554
+ abrupt: function (type, arg) {
555
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
556
+ var entry = this.tryEntries[i];
557
+ if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
558
+ var finallyEntry = entry;
559
+ break;
560
+ }
561
+ }
562
+ finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
563
+ var record = finallyEntry ? finallyEntry.completion : {};
564
+ return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
565
+ },
566
+ complete: function (record, afterLoc) {
567
+ if ("throw" === record.type) throw record.arg;
568
+ return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
569
+ },
570
+ finish: function (finallyLoc) {
571
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
572
+ var entry = this.tryEntries[i];
573
+ if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
574
+ }
575
+ },
576
+ catch: function (tryLoc) {
577
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
578
+ var entry = this.tryEntries[i];
579
+ if (entry.tryLoc === tryLoc) {
580
+ var record = entry.completion;
581
+ if ("throw" === record.type) {
582
+ var thrown = record.arg;
583
+ resetTryEntry(entry);
584
+ }
585
+ return thrown;
586
+ }
587
+ }
588
+ throw new Error("illegal catch attempt");
589
+ },
590
+ delegateYield: function (iterable, resultName, nextLoc) {
591
+ return this.delegate = {
592
+ iterator: values(iterable),
593
+ resultName: resultName,
594
+ nextLoc: nextLoc
595
+ }, "next" === this.method && (this.arg = undefined), ContinueSentinel;
596
+ }
597
+ }, exports;
307
598
  }
599
+ function _typeof(obj) {
600
+ "@babel/helpers - typeof";
308
601
 
602
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
603
+ return typeof obj;
604
+ } : function (obj) {
605
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
606
+ }, _typeof(obj);
607
+ }
309
608
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
310
609
  try {
311
610
  var info = gen[key](arg);
@@ -314,40 +613,33 @@
314
613
  reject(error);
315
614
  return;
316
615
  }
317
-
318
616
  if (info.done) {
319
617
  resolve(value);
320
618
  } else {
321
619
  Promise.resolve(value).then(_next, _throw);
322
620
  }
323
621
  }
324
-
325
622
  function _asyncToGenerator(fn) {
326
623
  return function () {
327
624
  var self = this,
328
- args = arguments;
625
+ args = arguments;
329
626
  return new Promise(function (resolve, reject) {
330
627
  var gen = fn.apply(self, args);
331
-
332
628
  function _next(value) {
333
629
  asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
334
630
  }
335
-
336
631
  function _throw(err) {
337
632
  asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
338
633
  }
339
-
340
634
  _next(undefined);
341
635
  });
342
636
  };
343
637
  }
344
-
345
638
  function _classCallCheck(instance, Constructor) {
346
639
  if (!(instance instanceof Constructor)) {
347
640
  throw new TypeError("Cannot call a class as a function");
348
641
  }
349
642
  }
350
-
351
643
  function _defineProperties(target, props) {
352
644
  for (var i = 0; i < props.length; i++) {
353
645
  var descriptor = props[i];
@@ -357,13 +649,14 @@
357
649
  Object.defineProperty(target, descriptor.key, descriptor);
358
650
  }
359
651
  }
360
-
361
652
  function _createClass(Constructor, protoProps, staticProps) {
362
653
  if (protoProps) _defineProperties(Constructor.prototype, protoProps);
363
654
  if (staticProps) _defineProperties(Constructor, staticProps);
655
+ Object.defineProperty(Constructor, "prototype", {
656
+ writable: false
657
+ });
364
658
  return Constructor;
365
659
  }
366
-
367
660
  function _defineProperty(obj, key, value) {
368
661
  if (key in obj) {
369
662
  Object.defineProperty(obj, key, {
@@ -375,81 +668,62 @@
375
668
  } else {
376
669
  obj[key] = value;
377
670
  }
378
-
379
671
  return obj;
380
672
  }
381
-
382
673
  function _extends() {
383
- _extends = Object.assign || function (target) {
674
+ _extends = Object.assign ? Object.assign.bind() : function (target) {
384
675
  for (var i = 1; i < arguments.length; i++) {
385
676
  var source = arguments[i];
386
-
387
677
  for (var key in source) {
388
678
  if (Object.prototype.hasOwnProperty.call(source, key)) {
389
679
  target[key] = source[key];
390
680
  }
391
681
  }
392
682
  }
393
-
394
683
  return target;
395
684
  };
396
-
397
685
  return _extends.apply(this, arguments);
398
686
  }
399
-
400
687
  function _objectSpread(target) {
401
688
  for (var i = 1; i < arguments.length; i++) {
402
689
  var source = arguments[i] != null ? Object(arguments[i]) : {};
403
690
  var ownKeys = Object.keys(source);
404
-
405
691
  if (typeof Object.getOwnPropertySymbols === 'function') {
406
- ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {
692
+ ownKeys.push.apply(ownKeys, Object.getOwnPropertySymbols(source).filter(function (sym) {
407
693
  return Object.getOwnPropertyDescriptor(source, sym).enumerable;
408
694
  }));
409
695
  }
410
-
411
696
  ownKeys.forEach(function (key) {
412
697
  _defineProperty(target, key, source[key]);
413
698
  });
414
699
  }
415
-
416
700
  return target;
417
701
  }
418
-
419
702
  function _slicedToArray(arr, i) {
420
703
  return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
421
704
  }
422
-
423
705
  function _toConsumableArray(arr) {
424
706
  return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
425
707
  }
426
-
427
708
  function _arrayWithoutHoles(arr) {
428
709
  if (Array.isArray(arr)) return _arrayLikeToArray(arr);
429
710
  }
430
-
431
711
  function _arrayWithHoles(arr) {
432
712
  if (Array.isArray(arr)) return arr;
433
713
  }
434
-
435
714
  function _iterableToArray(iter) {
436
715
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
437
716
  }
438
-
439
717
  function _iterableToArrayLimit(arr, i) {
440
- var _i = arr && (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]);
441
-
718
+ var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
442
719
  if (_i == null) return;
443
720
  var _arr = [];
444
721
  var _n = true;
445
722
  var _d = false;
446
-
447
723
  var _s, _e;
448
-
449
724
  try {
450
725
  for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
451
726
  _arr.push(_s.value);
452
-
453
727
  if (i && _arr.length === i) break;
454
728
  }
455
729
  } catch (err) {
@@ -462,10 +736,8 @@
462
736
  if (_d) throw _e;
463
737
  }
464
738
  }
465
-
466
739
  return _arr;
467
740
  }
468
-
469
741
  function _unsupportedIterableToArray(o, minLen) {
470
742
  if (!o) return;
471
743
  if (typeof o === "string") return _arrayLikeToArray(o, minLen);
@@ -474,19 +746,14 @@
474
746
  if (n === "Map" || n === "Set") return Array.from(o);
475
747
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
476
748
  }
477
-
478
749
  function _arrayLikeToArray(arr, len) {
479
750
  if (len == null || len > arr.length) len = arr.length;
480
-
481
751
  for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
482
-
483
752
  return arr2;
484
753
  }
485
-
486
754
  function _nonIterableSpread() {
487
755
  throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
488
756
  }
489
-
490
757
  function _nonIterableRest() {
491
758
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
492
759
  }
@@ -529,505 +796,6 @@
529
796
 
530
797
  var _parseInt$2 = _parseInt$1;
531
798
 
532
- var runtime_1 = createCommonjsModule(function (module) {
533
- var runtime = (function (exports) {
534
- var Op = Object.prototype;
535
- var hasOwn = Op.hasOwnProperty;
536
- var undefined$1;
537
- var $Symbol = typeof Symbol === "function" ? Symbol : {};
538
- var iteratorSymbol = $Symbol.iterator || "@@iterator";
539
- var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
540
- var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
541
- function define(obj, key, value) {
542
- Object.defineProperty(obj, key, {
543
- value: value,
544
- enumerable: true,
545
- configurable: true,
546
- writable: true
547
- });
548
- return obj[key];
549
- }
550
- try {
551
- define({}, "");
552
- } catch (err) {
553
- define = function(obj, key, value) {
554
- return obj[key] = value;
555
- };
556
- }
557
- function wrap(innerFn, outerFn, self, tryLocsList) {
558
- var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
559
- var generator = Object.create(protoGenerator.prototype);
560
- var context = new Context(tryLocsList || []);
561
- generator._invoke = makeInvokeMethod(innerFn, self, context);
562
- return generator;
563
- }
564
- exports.wrap = wrap;
565
- function tryCatch(fn, obj, arg) {
566
- try {
567
- return { type: "normal", arg: fn.call(obj, arg) };
568
- } catch (err) {
569
- return { type: "throw", arg: err };
570
- }
571
- }
572
- var GenStateSuspendedStart = "suspendedStart";
573
- var GenStateSuspendedYield = "suspendedYield";
574
- var GenStateExecuting = "executing";
575
- var GenStateCompleted = "completed";
576
- var ContinueSentinel = {};
577
- function Generator() {}
578
- function GeneratorFunction() {}
579
- function GeneratorFunctionPrototype() {}
580
- var IteratorPrototype = {};
581
- IteratorPrototype[iteratorSymbol] = function () {
582
- return this;
583
- };
584
- var getProto = Object.getPrototypeOf;
585
- var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
586
- if (NativeIteratorPrototype &&
587
- NativeIteratorPrototype !== Op &&
588
- hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
589
- IteratorPrototype = NativeIteratorPrototype;
590
- }
591
- var Gp = GeneratorFunctionPrototype.prototype =
592
- Generator.prototype = Object.create(IteratorPrototype);
593
- GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;
594
- GeneratorFunctionPrototype.constructor = GeneratorFunction;
595
- GeneratorFunction.displayName = define(
596
- GeneratorFunctionPrototype,
597
- toStringTagSymbol,
598
- "GeneratorFunction"
599
- );
600
- function defineIteratorMethods(prototype) {
601
- ["next", "throw", "return"].forEach(function(method) {
602
- define(prototype, method, function(arg) {
603
- return this._invoke(method, arg);
604
- });
605
- });
606
- }
607
- exports.isGeneratorFunction = function(genFun) {
608
- var ctor = typeof genFun === "function" && genFun.constructor;
609
- return ctor
610
- ? ctor === GeneratorFunction ||
611
- (ctor.displayName || ctor.name) === "GeneratorFunction"
612
- : false;
613
- };
614
- exports.mark = function(genFun) {
615
- if (Object.setPrototypeOf) {
616
- Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
617
- } else {
618
- genFun.__proto__ = GeneratorFunctionPrototype;
619
- define(genFun, toStringTagSymbol, "GeneratorFunction");
620
- }
621
- genFun.prototype = Object.create(Gp);
622
- return genFun;
623
- };
624
- exports.awrap = function(arg) {
625
- return { __await: arg };
626
- };
627
- function AsyncIterator(generator, PromiseImpl) {
628
- function invoke(method, arg, resolve, reject) {
629
- var record = tryCatch(generator[method], generator, arg);
630
- if (record.type === "throw") {
631
- reject(record.arg);
632
- } else {
633
- var result = record.arg;
634
- var value = result.value;
635
- if (value &&
636
- typeof value === "object" &&
637
- hasOwn.call(value, "__await")) {
638
- return PromiseImpl.resolve(value.__await).then(function(value) {
639
- invoke("next", value, resolve, reject);
640
- }, function(err) {
641
- invoke("throw", err, resolve, reject);
642
- });
643
- }
644
- return PromiseImpl.resolve(value).then(function(unwrapped) {
645
- result.value = unwrapped;
646
- resolve(result);
647
- }, function(error) {
648
- return invoke("throw", error, resolve, reject);
649
- });
650
- }
651
- }
652
- var previousPromise;
653
- function enqueue(method, arg) {
654
- function callInvokeWithMethodAndArg() {
655
- return new PromiseImpl(function(resolve, reject) {
656
- invoke(method, arg, resolve, reject);
657
- });
658
- }
659
- return previousPromise =
660
- previousPromise ? previousPromise.then(
661
- callInvokeWithMethodAndArg,
662
- callInvokeWithMethodAndArg
663
- ) : callInvokeWithMethodAndArg();
664
- }
665
- this._invoke = enqueue;
666
- }
667
- defineIteratorMethods(AsyncIterator.prototype);
668
- AsyncIterator.prototype[asyncIteratorSymbol] = function () {
669
- return this;
670
- };
671
- exports.AsyncIterator = AsyncIterator;
672
- exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
673
- if (PromiseImpl === void 0) PromiseImpl = Promise;
674
- var iter = new AsyncIterator(
675
- wrap(innerFn, outerFn, self, tryLocsList),
676
- PromiseImpl
677
- );
678
- return exports.isGeneratorFunction(outerFn)
679
- ? iter
680
- : iter.next().then(function(result) {
681
- return result.done ? result.value : iter.next();
682
- });
683
- };
684
- function makeInvokeMethod(innerFn, self, context) {
685
- var state = GenStateSuspendedStart;
686
- return function invoke(method, arg) {
687
- if (state === GenStateExecuting) {
688
- throw new Error("Generator is already running");
689
- }
690
- if (state === GenStateCompleted) {
691
- if (method === "throw") {
692
- throw arg;
693
- }
694
- return doneResult();
695
- }
696
- context.method = method;
697
- context.arg = arg;
698
- while (true) {
699
- var delegate = context.delegate;
700
- if (delegate) {
701
- var delegateResult = maybeInvokeDelegate(delegate, context);
702
- if (delegateResult) {
703
- if (delegateResult === ContinueSentinel) continue;
704
- return delegateResult;
705
- }
706
- }
707
- if (context.method === "next") {
708
- context.sent = context._sent = context.arg;
709
- } else if (context.method === "throw") {
710
- if (state === GenStateSuspendedStart) {
711
- state = GenStateCompleted;
712
- throw context.arg;
713
- }
714
- context.dispatchException(context.arg);
715
- } else if (context.method === "return") {
716
- context.abrupt("return", context.arg);
717
- }
718
- state = GenStateExecuting;
719
- var record = tryCatch(innerFn, self, context);
720
- if (record.type === "normal") {
721
- state = context.done
722
- ? GenStateCompleted
723
- : GenStateSuspendedYield;
724
- if (record.arg === ContinueSentinel) {
725
- continue;
726
- }
727
- return {
728
- value: record.arg,
729
- done: context.done
730
- };
731
- } else if (record.type === "throw") {
732
- state = GenStateCompleted;
733
- context.method = "throw";
734
- context.arg = record.arg;
735
- }
736
- }
737
- };
738
- }
739
- function maybeInvokeDelegate(delegate, context) {
740
- var method = delegate.iterator[context.method];
741
- if (method === undefined$1) {
742
- context.delegate = null;
743
- if (context.method === "throw") {
744
- if (delegate.iterator["return"]) {
745
- context.method = "return";
746
- context.arg = undefined$1;
747
- maybeInvokeDelegate(delegate, context);
748
- if (context.method === "throw") {
749
- return ContinueSentinel;
750
- }
751
- }
752
- context.method = "throw";
753
- context.arg = new TypeError(
754
- "The iterator does not provide a 'throw' method");
755
- }
756
- return ContinueSentinel;
757
- }
758
- var record = tryCatch(method, delegate.iterator, context.arg);
759
- if (record.type === "throw") {
760
- context.method = "throw";
761
- context.arg = record.arg;
762
- context.delegate = null;
763
- return ContinueSentinel;
764
- }
765
- var info = record.arg;
766
- if (! info) {
767
- context.method = "throw";
768
- context.arg = new TypeError("iterator result is not an object");
769
- context.delegate = null;
770
- return ContinueSentinel;
771
- }
772
- if (info.done) {
773
- context[delegate.resultName] = info.value;
774
- context.next = delegate.nextLoc;
775
- if (context.method !== "return") {
776
- context.method = "next";
777
- context.arg = undefined$1;
778
- }
779
- } else {
780
- return info;
781
- }
782
- context.delegate = null;
783
- return ContinueSentinel;
784
- }
785
- defineIteratorMethods(Gp);
786
- define(Gp, toStringTagSymbol, "Generator");
787
- Gp[iteratorSymbol] = function() {
788
- return this;
789
- };
790
- Gp.toString = function() {
791
- return "[object Generator]";
792
- };
793
- function pushTryEntry(locs) {
794
- var entry = { tryLoc: locs[0] };
795
- if (1 in locs) {
796
- entry.catchLoc = locs[1];
797
- }
798
- if (2 in locs) {
799
- entry.finallyLoc = locs[2];
800
- entry.afterLoc = locs[3];
801
- }
802
- this.tryEntries.push(entry);
803
- }
804
- function resetTryEntry(entry) {
805
- var record = entry.completion || {};
806
- record.type = "normal";
807
- delete record.arg;
808
- entry.completion = record;
809
- }
810
- function Context(tryLocsList) {
811
- this.tryEntries = [{ tryLoc: "root" }];
812
- tryLocsList.forEach(pushTryEntry, this);
813
- this.reset(true);
814
- }
815
- exports.keys = function(object) {
816
- var keys = [];
817
- for (var key in object) {
818
- keys.push(key);
819
- }
820
- keys.reverse();
821
- return function next() {
822
- while (keys.length) {
823
- var key = keys.pop();
824
- if (key in object) {
825
- next.value = key;
826
- next.done = false;
827
- return next;
828
- }
829
- }
830
- next.done = true;
831
- return next;
832
- };
833
- };
834
- function values(iterable) {
835
- if (iterable) {
836
- var iteratorMethod = iterable[iteratorSymbol];
837
- if (iteratorMethod) {
838
- return iteratorMethod.call(iterable);
839
- }
840
- if (typeof iterable.next === "function") {
841
- return iterable;
842
- }
843
- if (!isNaN(iterable.length)) {
844
- var i = -1, next = function next() {
845
- while (++i < iterable.length) {
846
- if (hasOwn.call(iterable, i)) {
847
- next.value = iterable[i];
848
- next.done = false;
849
- return next;
850
- }
851
- }
852
- next.value = undefined$1;
853
- next.done = true;
854
- return next;
855
- };
856
- return next.next = next;
857
- }
858
- }
859
- return { next: doneResult };
860
- }
861
- exports.values = values;
862
- function doneResult() {
863
- return { value: undefined$1, done: true };
864
- }
865
- Context.prototype = {
866
- constructor: Context,
867
- reset: function(skipTempReset) {
868
- this.prev = 0;
869
- this.next = 0;
870
- this.sent = this._sent = undefined$1;
871
- this.done = false;
872
- this.delegate = null;
873
- this.method = "next";
874
- this.arg = undefined$1;
875
- this.tryEntries.forEach(resetTryEntry);
876
- if (!skipTempReset) {
877
- for (var name in this) {
878
- if (name.charAt(0) === "t" &&
879
- hasOwn.call(this, name) &&
880
- !isNaN(+name.slice(1))) {
881
- this[name] = undefined$1;
882
- }
883
- }
884
- }
885
- },
886
- stop: function() {
887
- this.done = true;
888
- var rootEntry = this.tryEntries[0];
889
- var rootRecord = rootEntry.completion;
890
- if (rootRecord.type === "throw") {
891
- throw rootRecord.arg;
892
- }
893
- return this.rval;
894
- },
895
- dispatchException: function(exception) {
896
- if (this.done) {
897
- throw exception;
898
- }
899
- var context = this;
900
- function handle(loc, caught) {
901
- record.type = "throw";
902
- record.arg = exception;
903
- context.next = loc;
904
- if (caught) {
905
- context.method = "next";
906
- context.arg = undefined$1;
907
- }
908
- return !! caught;
909
- }
910
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
911
- var entry = this.tryEntries[i];
912
- var record = entry.completion;
913
- if (entry.tryLoc === "root") {
914
- return handle("end");
915
- }
916
- if (entry.tryLoc <= this.prev) {
917
- var hasCatch = hasOwn.call(entry, "catchLoc");
918
- var hasFinally = hasOwn.call(entry, "finallyLoc");
919
- if (hasCatch && hasFinally) {
920
- if (this.prev < entry.catchLoc) {
921
- return handle(entry.catchLoc, true);
922
- } else if (this.prev < entry.finallyLoc) {
923
- return handle(entry.finallyLoc);
924
- }
925
- } else if (hasCatch) {
926
- if (this.prev < entry.catchLoc) {
927
- return handle(entry.catchLoc, true);
928
- }
929
- } else if (hasFinally) {
930
- if (this.prev < entry.finallyLoc) {
931
- return handle(entry.finallyLoc);
932
- }
933
- } else {
934
- throw new Error("try statement without catch or finally");
935
- }
936
- }
937
- }
938
- },
939
- abrupt: function(type, arg) {
940
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
941
- var entry = this.tryEntries[i];
942
- if (entry.tryLoc <= this.prev &&
943
- hasOwn.call(entry, "finallyLoc") &&
944
- this.prev < entry.finallyLoc) {
945
- var finallyEntry = entry;
946
- break;
947
- }
948
- }
949
- if (finallyEntry &&
950
- (type === "break" ||
951
- type === "continue") &&
952
- finallyEntry.tryLoc <= arg &&
953
- arg <= finallyEntry.finallyLoc) {
954
- finallyEntry = null;
955
- }
956
- var record = finallyEntry ? finallyEntry.completion : {};
957
- record.type = type;
958
- record.arg = arg;
959
- if (finallyEntry) {
960
- this.method = "next";
961
- this.next = finallyEntry.finallyLoc;
962
- return ContinueSentinel;
963
- }
964
- return this.complete(record);
965
- },
966
- complete: function(record, afterLoc) {
967
- if (record.type === "throw") {
968
- throw record.arg;
969
- }
970
- if (record.type === "break" ||
971
- record.type === "continue") {
972
- this.next = record.arg;
973
- } else if (record.type === "return") {
974
- this.rval = this.arg = record.arg;
975
- this.method = "return";
976
- this.next = "end";
977
- } else if (record.type === "normal" && afterLoc) {
978
- this.next = afterLoc;
979
- }
980
- return ContinueSentinel;
981
- },
982
- finish: function(finallyLoc) {
983
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
984
- var entry = this.tryEntries[i];
985
- if (entry.finallyLoc === finallyLoc) {
986
- this.complete(entry.completion, entry.afterLoc);
987
- resetTryEntry(entry);
988
- return ContinueSentinel;
989
- }
990
- }
991
- },
992
- "catch": function(tryLoc) {
993
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
994
- var entry = this.tryEntries[i];
995
- if (entry.tryLoc === tryLoc) {
996
- var record = entry.completion;
997
- if (record.type === "throw") {
998
- var thrown = record.arg;
999
- resetTryEntry(entry);
1000
- }
1001
- return thrown;
1002
- }
1003
- }
1004
- throw new Error("illegal catch attempt");
1005
- },
1006
- delegateYield: function(iterable, resultName, nextLoc) {
1007
- this.delegate = {
1008
- iterator: values(iterable),
1009
- resultName: resultName,
1010
- nextLoc: nextLoc
1011
- };
1012
- if (this.method === "next") {
1013
- this.arg = undefined$1;
1014
- }
1015
- return ContinueSentinel;
1016
- }
1017
- };
1018
- return exports;
1019
- }(
1020
- module.exports
1021
- ));
1022
- try {
1023
- regeneratorRuntime = runtime;
1024
- } catch (accidentalStrictMode) {
1025
- Function("r", "regeneratorRuntime = r")(runtime);
1026
- }
1027
- });
1028
-
1029
- var regenerator = runtime_1;
1030
-
1031
799
  var _stringAt = function (TO_STRING) {
1032
800
  return function (that, pos) {
1033
801
  var s = String(_defined(that));
@@ -1707,10 +1475,10 @@
1707
1475
  var parentClass = 'bk-selector-node';
1708
1476
  var textClass = 'text';
1709
1477
  var _ct$props = ct.props,
1710
- node = _ct$props.node,
1711
- displayKey = _ct$props.displayKey,
1712
- searchKeyword = _ct$props.searchKeyword,
1713
- tpl = _ct$props.tpl;
1478
+ node = _ct$props.node,
1479
+ displayKey = _ct$props.displayKey,
1480
+ searchKeyword = _ct$props.searchKeyword,
1481
+ tpl = _ct$props.tpl;
1714
1482
  function highlightKeyword(value) {
1715
1483
  if (searchKeyword) {
1716
1484
  var keywordReg = new RegExp("(".concat(searchKeyword, ")"), 'i');
@@ -1960,14 +1728,10 @@
1960
1728
  /* script */
1961
1729
  var __vue_script__ = script;
1962
1730
  /* template */
1963
-
1964
1731
  var __vue_render__ = function __vue_render__() {
1965
1732
  var _vm = this;
1966
-
1967
1733
  var _h = _vm.$createElement;
1968
-
1969
1734
  var _c = _vm._self._c || _h;
1970
-
1971
1735
  return _c('transition', {
1972
1736
  attrs: {
1973
1737
  "name": "fade",
@@ -2022,21 +1786,19 @@
2022
1786
  staticClass: "point point4"
2023
1787
  })]], 2), _c('div', {
2024
1788
  staticClass: "bk-loading-title"
2025
- }, [_vm._t("default", [_vm._v(_vm._s(_vm.title))])], 2)])])]);
1789
+ }, [_vm._t("default", function () {
1790
+ return [_vm._v(_vm._s(_vm.title))];
1791
+ })], 2)])])]);
2026
1792
  };
2027
-
2028
1793
  var __vue_staticRenderFns__ = [];
2029
- /* style */
2030
1794
 
1795
+ /* style */
2031
1796
  var __vue_inject_styles__ = undefined;
2032
1797
  /* scoped */
2033
-
2034
1798
  var __vue_scope_id__ = undefined;
2035
1799
  /* module identifier */
2036
-
2037
1800
  var __vue_module_identifier__ = undefined;
2038
1801
  /* functional template */
2039
-
2040
1802
  var __vue_is_functional_template__ = false;
2041
1803
  /* style inject */
2042
1804
 
@@ -2257,9 +2019,9 @@
2257
2019
  return element.body;
2258
2020
  }
2259
2021
  var _getStyleComputedProp = getStyleComputedProperty(element),
2260
- overflow = _getStyleComputedProp.overflow,
2261
- overflowX = _getStyleComputedProp.overflowX,
2262
- overflowY = _getStyleComputedProp.overflowY;
2022
+ overflow = _getStyleComputedProp.overflow,
2023
+ overflowX = _getStyleComputedProp.overflowX,
2024
+ overflowY = _getStyleComputedProp.overflowY;
2263
2025
  if (/(auto|scroll|overlay)/.test(overflow + overflowY + overflowX)) {
2264
2026
  return element;
2265
2027
  }
@@ -2523,8 +2285,8 @@
2523
2285
  var offsets = getOffsetRectRelativeToArbitraryNode(boundariesNode, offsetParent, fixedPosition);
2524
2286
  if (boundariesNode.nodeName === 'HTML' && !isFixed(offsetParent)) {
2525
2287
  var _getWindowSizes = getWindowSizes(popper.ownerDocument),
2526
- height = _getWindowSizes.height,
2527
- width = _getWindowSizes.width;
2288
+ height = _getWindowSizes.height,
2289
+ width = _getWindowSizes.width;
2528
2290
  boundaries.top += offsets.top - offsets.marginTop;
2529
2291
  boundaries.bottom = height + offsets.top;
2530
2292
  boundaries.left += offsets.left - offsets.marginLeft;
@@ -2543,7 +2305,7 @@
2543
2305
  }
2544
2306
  function getArea(_ref) {
2545
2307
  var width = _ref.width,
2546
- height = _ref.height;
2308
+ height = _ref.height;
2547
2309
  return width * height;
2548
2310
  }
2549
2311
  function computeAutoPlacement(placement, refRect, popper, reference, boundariesElement) {
@@ -2581,7 +2343,7 @@
2581
2343
  });
2582
2344
  var filteredAreas = sortedAreas.filter(function (_ref2) {
2583
2345
  var width = _ref2.width,
2584
- height = _ref2.height;
2346
+ height = _ref2.height;
2585
2347
  return width >= popper.clientWidth && height >= popper.clientHeight;
2586
2348
  });
2587
2349
  var computedPlacement = filteredAreas.length > 0 ? filteredAreas[0].key : sortedAreas[0].key;
@@ -2696,7 +2458,7 @@
2696
2458
  function isModifierEnabled(modifiers, modifierName) {
2697
2459
  return modifiers.some(function (_ref3) {
2698
2460
  var name = _ref3.name,
2699
- enabled = _ref3.enabled;
2461
+ enabled = _ref3.enabled;
2700
2462
  return enabled && name === modifierName;
2701
2463
  });
2702
2464
  }
@@ -2819,10 +2581,10 @@
2819
2581
  }
2820
2582
  function getRoundedOffsets(data, shouldRound) {
2821
2583
  var _data$offsets = data.offsets,
2822
- popper = _data$offsets.popper,
2823
- reference = _data$offsets.reference;
2584
+ popper = _data$offsets.popper,
2585
+ reference = _data$offsets.reference;
2824
2586
  var round = Math.round,
2825
- floor = Math.floor;
2587
+ floor = Math.floor;
2826
2588
  var noRound = function noRound(v) {
2827
2589
  return v;
2828
2590
  };
@@ -2844,7 +2606,7 @@
2844
2606
  var isFirefox = isBrowser && /Firefox/i.test(navigator.userAgent);
2845
2607
  function computeStyle(data, options) {
2846
2608
  var x = options.x,
2847
- y = options.y;
2609
+ y = options.y;
2848
2610
  var popper = data.offsets.popper;
2849
2611
  var legacyGpuAccelerationOption = find(data.instance.modifiers, function (modifier) {
2850
2612
  return modifier.name === 'applyStyle';
@@ -2935,8 +2697,8 @@
2935
2697
  }
2936
2698
  var placement = data.placement.split('-')[0];
2937
2699
  var _data$offsets2 = data.offsets,
2938
- popper = _data$offsets2.popper,
2939
- reference = _data$offsets2.reference;
2700
+ popper = _data$offsets2.popper,
2701
+ reference = _data$offsets2.reference;
2940
2702
  var isVertical = ['left', 'right'].indexOf(placement) !== -1;
2941
2703
  var len = isVertical ? 'height' : 'width';
2942
2704
  var sideCapitalized = isVertical ? 'Top' : 'Left';
@@ -3043,8 +2805,8 @@
3043
2805
  }
3044
2806
  function keepTogether(data) {
3045
2807
  var _data$offsets3 = data.offsets,
3046
- popper = _data$offsets3.popper,
3047
- reference = _data$offsets3.reference;
2808
+ popper = _data$offsets3.popper,
2809
+ reference = _data$offsets3.reference;
3048
2810
  var placement = data.placement.split('-')[0];
3049
2811
  var floor = Math.floor;
3050
2812
  var isVertical = ['top', 'bottom'].indexOf(placement) !== -1;
@@ -3138,9 +2900,9 @@
3138
2900
  function offset(data, _ref5) {
3139
2901
  var offset = _ref5.offset;
3140
2902
  var placement = data.placement,
3141
- _data$offsets4 = data.offsets,
3142
- popper = _data$offsets4.popper,
3143
- reference = _data$offsets4.reference;
2903
+ _data$offsets4 = data.offsets,
2904
+ popper = _data$offsets4.popper,
2905
+ reference = _data$offsets4.reference;
3144
2906
  var basePlacement = placement.split('-')[0];
3145
2907
  var offsets;
3146
2908
  if (isNumeric(+offset)) {
@@ -3172,8 +2934,8 @@
3172
2934
  var transformProp = getSupportedPropertyName('transform');
3173
2935
  var popperStyles = data.instance.popper.style;
3174
2936
  var top = popperStyles.top,
3175
- left = popperStyles.left,
3176
- transform = popperStyles[transformProp];
2937
+ left = popperStyles.left,
2938
+ transform = popperStyles[transformProp];
3177
2939
  popperStyles.top = '';
3178
2940
  popperStyles.left = '';
3179
2941
  popperStyles[transformProp] = '';
@@ -3214,8 +2976,8 @@
3214
2976
  var shiftvariation = placement.split('-')[1];
3215
2977
  if (shiftvariation) {
3216
2978
  var _data$offsets5 = data.offsets,
3217
- reference = _data$offsets5.reference,
3218
- popper = _data$offsets5.popper;
2979
+ reference = _data$offsets5.reference,
2980
+ popper = _data$offsets5.popper;
3219
2981
  var isVertical = ['bottom', 'top'].indexOf(basePlacement) !== -1;
3220
2982
  var side = isVertical ? 'left' : 'top';
3221
2983
  var measurement = isVertical ? 'width' : 'height';
@@ -3254,8 +3016,8 @@
3254
3016
  var placement = data.placement;
3255
3017
  var basePlacement = placement.split('-')[0];
3256
3018
  var _data$offsets6 = data.offsets,
3257
- popper = _data$offsets6.popper,
3258
- reference = _data$offsets6.reference;
3019
+ popper = _data$offsets6.popper,
3020
+ reference = _data$offsets6.reference;
3259
3021
  var isHoriz = ['left', 'right'].indexOf(basePlacement) !== -1;
3260
3022
  var subtractLength = ['top', 'left'].indexOf(basePlacement) === -1;
3261
3023
  popper[isHoriz ? 'left' : 'top'] = reference[basePlacement] - (subtractLength ? popper[isHoriz ? 'width' : 'height'] : 0);
@@ -3429,7 +3191,7 @@
3429
3191
  var isIOS = isBrowser$1 && /iPhone|iPad|iPod/.test(navigator.platform) && !window.MSStream;
3430
3192
  var defaultProps = {
3431
3193
  a11y: true,
3432
- allowHTML: true,
3194
+ allowHTML: false,
3433
3195
  animateFill: true,
3434
3196
  animation: 'shift-away',
3435
3197
  appendTo: function appendTo() {
@@ -3548,7 +3310,7 @@
3548
3310
  }
3549
3311
  function onWindowBlur() {
3550
3312
  var _document = document,
3551
- activeElement = _document.activeElement;
3313
+ activeElement = _document.activeElement;
3552
3314
  if (activeElement && activeElement.blur && activeElement._tippy) {
3553
3315
  activeElement.blur();
3554
3316
  }
@@ -3834,10 +3596,10 @@
3834
3596
  }
3835
3597
  function updatePopperElement(popper, prevProps, nextProps) {
3836
3598
  var _getChildren = getChildren(popper),
3837
- tooltip = _getChildren.tooltip,
3838
- content = _getChildren.content,
3839
- backdrop = _getChildren.backdrop,
3840
- arrow = _getChildren.arrow;
3599
+ tooltip = _getChildren.tooltip,
3600
+ content = _getChildren.content,
3601
+ backdrop = _getChildren.backdrop,
3602
+ arrow = _getChildren.arrow;
3841
3603
  popper.style.zIndex = '' + nextProps.zIndex;
3842
3604
  tooltip.setAttribute('data-size', nextProps.size);
3843
3605
  tooltip.setAttribute('data-animation', nextProps.animation);
@@ -3882,8 +3644,8 @@
3882
3644
  }
3883
3645
  function hideAll() {
3884
3646
  var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
3885
- excludedReferenceOrInstance = _ref.exclude,
3886
- duration = _ref.duration;
3647
+ excludedReferenceOrInstance = _ref.exclude,
3648
+ duration = _ref.duration;
3887
3649
  arrayFrom(document.querySelectorAll(POPPER_SELECTOR)).forEach(function (popper) {
3888
3650
  var instance = popper._tippy;
3889
3651
  if (instance) {
@@ -3902,9 +3664,9 @@
3902
3664
  return true;
3903
3665
  }
3904
3666
  var x = event.clientX,
3905
- y = event.clientY;
3667
+ y = event.clientY;
3906
3668
  var interactiveBorder = props.interactiveBorder,
3907
- distance = props.distance;
3669
+ distance = props.distance;
3908
3670
  var exceedsTop = popperRect.top - y > (popperPlacement === 'top' ? interactiveBorder + distance : interactiveBorder);
3909
3671
  var exceedsBottom = y - popperRect.bottom > (popperPlacement === 'bottom' ? interactiveBorder + distance : interactiveBorder);
3910
3672
  var exceedsLeft = popperRect.left - x > (popperPlacement === 'left' ? interactiveBorder + distance : interactiveBorder);
@@ -4098,16 +3860,16 @@
4098
3860
  function removeTriggersFromReference() {
4099
3861
  listeners.forEach(function (_ref) {
4100
3862
  var eventType = _ref.eventType,
4101
- handler = _ref.handler,
4102
- options = _ref.options;
3863
+ handler = _ref.handler,
3864
+ options = _ref.options;
4103
3865
  getEventListenersTarget().removeEventListener(eventType, handler, options);
4104
3866
  });
4105
3867
  listeners = [];
4106
3868
  }
4107
3869
  function positionVirtualReferenceNearCursor(event) {
4108
3870
  var _lastMouseMoveEvent = lastMouseMoveEvent = event,
4109
- x = _lastMouseMoveEvent.clientX,
4110
- y = _lastMouseMoveEvent.clientY;
3871
+ x = _lastMouseMoveEvent.clientX,
3872
+ y = _lastMouseMoveEvent.clientY;
4111
3873
  if (!currentComputedPadding) {
4112
3874
  return;
4113
3875
  }
@@ -4238,8 +4000,8 @@
4238
4000
  function createPopperInstance() {
4239
4001
  var popperOptions = instance.props.popperOptions;
4240
4002
  var _instance$popperChild = instance.popperChildren,
4241
- tooltip = _instance$popperChild.tooltip,
4242
- arrow = _instance$popperChild.arrow;
4003
+ tooltip = _instance$popperChild.tooltip,
4004
+ arrow = _instance$popperChild.arrow;
4243
4005
  var preventOverflowModifier = getModifier(popperOptions, 'preventOverflow');
4244
4006
  function applyMutations(data) {
4245
4007
  if (instance.props.flip && !instance.props.flipOnUpdate) {
@@ -4566,10 +4328,10 @@
4566
4328
  }
4567
4329
  function group(instances) {
4568
4330
  var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
4569
- _ref$delay = _ref.delay,
4570
- delay = _ref$delay === void 0 ? instances[0].props.delay : _ref$delay,
4571
- _ref$duration = _ref.duration,
4572
- duration = _ref$duration === void 0 ? 0 : _ref$duration;
4331
+ _ref$delay = _ref.delay,
4332
+ delay = _ref$delay === void 0 ? instances[0].props.delay : _ref$delay,
4333
+ _ref$duration = _ref.duration,
4334
+ duration = _ref$duration === void 0 ? 0 : _ref$duration;
4573
4335
  var isAnyTippyOpen = false;
4574
4336
  instances.forEach(function (instance) {
4575
4337
  if (instance._originalProps) {
@@ -4736,8 +4498,8 @@
4736
4498
  this.showModalMask(lastInsZindex);
4737
4499
  }
4738
4500
  var beforeHide = options.beforeHide,
4739
- zIndex = options.zIndex,
4740
- ignoreExistMask = options.ignoreExistMask;
4501
+ zIndex = options.zIndex,
4502
+ ignoreExistMask = options.ignoreExistMask;
4741
4503
  this.instances.push({
4742
4504
  uid: uid,
4743
4505
  ins: instance,
@@ -5053,20 +4815,18 @@
5053
4815
  /* script */
5054
4816
  var __vue_script__$1 = script$1;
5055
4817
  /* template */
5056
-
5057
4818
  var __vue_render__$1 = function __vue_render__() {
5058
4819
  var _vm = this;
5059
-
5060
4820
  var _h = _vm.$createElement;
5061
-
5062
4821
  var _c = _vm._self._c || _h;
5063
-
5064
4822
  return _c('div', {
5065
4823
  staticClass: "bk-tooltip"
5066
4824
  }, [_c('div', {
5067
4825
  ref: "html",
5068
4826
  staticClass: "bk-tooltip-content"
5069
- }, [_vm._t("content", [_vm._v(_vm._s(_vm.content))])], 2), _c('div', {
4827
+ }, [_vm._t("content", function () {
4828
+ return [_vm._v(_vm._s(_vm.content))];
4829
+ })], 2), _c('div', {
5070
4830
  ref: "reference",
5071
4831
  staticClass: "bk-tooltip-ref",
5072
4832
  attrs: {
@@ -5074,19 +4834,15 @@
5074
4834
  }
5075
4835
  }, [_vm._t("default")], 2)]);
5076
4836
  };
5077
-
5078
4837
  var __vue_staticRenderFns__$1 = [];
5079
- /* style */
5080
4838
 
4839
+ /* style */
5081
4840
  var __vue_inject_styles__$1 = undefined;
5082
4841
  /* scoped */
5083
-
5084
4842
  var __vue_scope_id__$1 = undefined;
5085
4843
  /* module identifier */
5086
-
5087
4844
  var __vue_module_identifier__$1 = undefined;
5088
4845
  /* functional template */
5089
-
5090
4846
  var __vue_is_functional_template__$1 = false;
5091
4847
  /* style inject */
5092
4848
 
@@ -5134,14 +4890,18 @@
5134
4890
  trigger: 'mouseenter focus',
5135
4891
  theme: 'dark',
5136
4892
  interactive: true,
4893
+ boundary: 'window',
5137
4894
  content: '',
5138
- allowHtml: false,
4895
+ allowHTML: false,
5139
4896
  extCls: ''
5140
4897
  };
5141
4898
  var validPlacements$1 = ['auto-start', 'auto', 'auto-end', 'top-start', 'top', 'top-end', 'right-start', 'right', 'right-end', 'bottom-end', 'bottom', 'bottom-start', 'left-end', 'left', 'left-start'];
5142
4899
  var createTippy$1 = function createTippy(el, binding) {
5143
4900
  var value = binding.value;
5144
4901
  var options = _objectSpread({}, defaultOptions);
4902
+ if (value.allowHtml || value.allowHTML) {
4903
+ value.allowHTML = true;
4904
+ }
5145
4905
  if (_typeof(value) === 'object') {
5146
4906
  _extends(options, value);
5147
4907
  } else {
@@ -5152,23 +4912,21 @@
5152
4912
  });
5153
4913
  options.placement = options.placement || placement || (options.placements || ['top'])[0];
5154
4914
  var _binding$modifiers = binding.modifiers,
5155
- click = _binding$modifiers.click,
5156
- light = _binding$modifiers.light;
4915
+ click = _binding$modifiers.click,
4916
+ light = _binding$modifiers.light;
5157
4917
  if (click) {
5158
4918
  options.trigger = 'click';
5159
4919
  }
5160
4920
  if (light) {
5161
4921
  options.theme = 'light';
5162
4922
  }
5163
- if (options.allowHtml) {
4923
+ if (options.allowHTML) {
5164
4924
  var selector = options.content;
5165
4925
  if (selector instanceof Vue) {
5166
4926
  options.content = selector.$el;
5167
4927
  } else if (typeof selector === 'string') {
5168
- var element = document.querySelector(selector);
5169
- if (element) {
5170
- options.content = element;
5171
- }
4928
+ var element = document.createElement('div');
4929
+ element.innerHTML = selector;
5172
4930
  }
5173
4931
  }
5174
4932
  if (options.html) {
@@ -5545,8 +5303,8 @@
5545
5303
  var curPage = ++this.curPage;
5546
5304
  if (curPage <= this.totalPage) {
5547
5305
  this.showScrollLoading = true;
5548
- setTimeout( _asyncToGenerator( regenerator.mark(function _callee() {
5549
- return regenerator.wrap(function _callee$(_context) {
5306
+ setTimeout( _asyncToGenerator( _regeneratorRuntime().mark(function _callee() {
5307
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
5550
5308
  while (1) {
5551
5309
  switch (_context.prev = _context.next) {
5552
5310
  case 0:
@@ -6032,7 +5790,7 @@
6032
5790
  _this13.isEdit = false;
6033
5791
  if (_this13.isSingleSelect) {
6034
5792
  var _this13$tagListCache = _slicedToArray(_this13.tagListCache, 1),
6035
- oldVal = _this13$tagListCache[0];
5793
+ oldVal = _this13$tagListCache[0];
6036
5794
  if (inputValue && inputValue === oldVal && _this13.localTagListCache.length) {
6037
5795
  _this13.addTag(_this13.localTagListCache[0], 'select');
6038
5796
  } else {
@@ -6111,21 +5869,17 @@
6111
5869
 
6112
5870
  var __vue_script__$2 = script$2;
6113
5871
  /* template */
6114
-
6115
5872
  var __vue_render__$2 = function __vue_render__() {
6116
5873
  var _vm = this;
6117
-
6118
5874
  var _h = _vm.$createElement;
6119
-
6120
5875
  var _c = _vm._self._c || _h;
6121
-
6122
5876
  return _c('div', {
6123
5877
  ref: "bkTagSelector",
6124
5878
  staticClass: "bk-tag-selector",
6125
5879
  class: _vm.extCls,
6126
5880
  on: {
6127
5881
  "click": function click($event) {
6128
- _vm.focusInputer($event);
5882
+ return _vm.focusInputer($event);
6129
5883
  }
6130
5884
  }
6131
5885
  }, [_c('div', {
@@ -6159,7 +5913,7 @@
6159
5913
  staticClass: "key-node",
6160
5914
  on: {
6161
5915
  "click": function click($event) {
6162
- _vm.selectTag($event, tag);
5916
+ return _vm.selectTag($event, tag);
6163
5917
  }
6164
5918
  }
6165
5919
  }, [_c('tag-render', {
@@ -6173,8 +5927,7 @@
6173
5927
  on: {
6174
5928
  "click": function click($event) {
6175
5929
  $event.stopPropagation();
6176
-
6177
- _vm.handlerTagRemove(tag, index);
5930
+ return _vm.handlerTagRemove(tag, index);
6178
5931
  }
6179
5932
  }
6180
5933
  }) : _vm._e()], 1);
@@ -6211,13 +5964,12 @@
6211
5964
  if ($event.target.composing) {
6212
5965
  return;
6213
5966
  }
6214
-
6215
5967
  _vm.curInputValue = $event.target.value;
6216
5968
  }, _vm.handleInput],
6217
5969
  "focus": _vm.handleFocus,
6218
5970
  "paste": _vm.handlePaste,
6219
5971
  "blur": function blur($event) {
6220
- _vm.handleBlur(_vm.curInputValue);
5972
+ return _vm.handleBlur(_vm.curInputValue);
6221
5973
  },
6222
5974
  "keydown": _vm.handleKeydown
6223
5975
  }
@@ -6234,7 +5986,7 @@
6234
5986
  on: {
6235
5987
  "click": function click($event) {
6236
5988
  $event.stopPropagation();
6237
- return _vm.handlerClear($event);
5989
+ return _vm.handlerClear.apply(null, arguments);
6238
5990
  }
6239
5991
  }
6240
5992
  }) : _vm._e()]), _c('bk-popover', {
@@ -6285,7 +6037,7 @@
6285
6037
  }, _vm.activeClass(data, index)],
6286
6038
  on: {
6287
6039
  "mousedown": function mousedown($event) {
6288
- _vm.handlerResultSelect(data, 'select');
6040
+ return _vm.handlerResultSelect(data, 'select');
6289
6041
  }
6290
6042
  }
6291
6043
  }, [_c('list-render', {
@@ -6332,7 +6084,7 @@
6332
6084
  }, _vm.activeClass(data, index)],
6333
6085
  on: {
6334
6086
  "click": function click($event) {
6335
- _vm.handlerResultSelect(data, 'select');
6087
+ return _vm.handlerResultSelect(data, 'select');
6336
6088
  }
6337
6089
  }
6338
6090
  }, [_c('list-render', {
@@ -6360,19 +6112,15 @@
6360
6112
  staticClass: "loading"
6361
6113
  })]) : _vm._e()], 2)]], 2) : _vm._e()])])], 1);
6362
6114
  };
6363
-
6364
6115
  var __vue_staticRenderFns__$2 = [];
6365
- /* style */
6366
6116
 
6117
+ /* style */
6367
6118
  var __vue_inject_styles__$2 = undefined;
6368
6119
  /* scoped */
6369
-
6370
6120
  var __vue_scope_id__$2 = undefined;
6371
6121
  /* module identifier */
6372
-
6373
6122
  var __vue_module_identifier__$2 = undefined;
6374
6123
  /* functional template */
6375
-
6376
6124
  var __vue_is_functional_template__$2 = false;
6377
6125
  /* style inject */
6378
6126