bkui-vue 2.0.2-beta.48 → 2.0.2-beta.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +42 -47
- package/dist/index.esm.js +7009 -7201
- package/dist/index.umd.js +45 -50
- package/lib/affix/index.js +14 -12
- package/lib/alert/index.js +14 -12
- package/lib/animate-number/index.js +12 -11
- package/lib/backtop/index.js +11 -10
- package/lib/badge/index.js +14 -12
- package/lib/breadcrumb/index.js +14 -12
- package/lib/button/index.js +14 -12
- package/lib/card/index.js +14 -12
- package/lib/cascader/index.js +101 -94
- package/lib/checkbox/index.js +35 -37
- package/lib/code-diff/index.js +674 -1170
- package/lib/collapse/index.js +42 -44
- package/lib/collapse-transition/index.js +4 -3
- package/lib/color-picker/index.js +60 -59
- package/lib/config-provider/index.js +14 -12
- package/lib/container/index.js +25 -21
- package/lib/date-picker/index.js +51 -58
- package/lib/dialog/index.js +441 -43
- package/lib/directives/index.js +34 -37
- package/lib/divider/index.js +3 -2
- package/lib/dropdown/index.js +21 -17
- package/lib/exception/index.js +17 -14
- package/lib/fixed-navbar/index.js +3 -2
- package/lib/form/index.js +34 -37
- package/lib/icon/angle-double-down-line.js +36 -29
- package/lib/icon/angle-double-left-line.js +36 -29
- package/lib/icon/angle-double-left.js +36 -29
- package/lib/icon/angle-double-right-line.js +36 -29
- package/lib/icon/angle-double-right.js +36 -29
- package/lib/icon/angle-double-up-line.js +36 -29
- package/lib/icon/angle-down-fill.js +36 -29
- package/lib/icon/angle-down-line.js +36 -29
- package/lib/icon/angle-down.js +36 -29
- package/lib/icon/angle-left.js +36 -29
- package/lib/icon/angle-right.js +36 -29
- package/lib/icon/angle-up-fill.js +36 -29
- package/lib/icon/angle-up.js +36 -29
- package/lib/icon/archive-fill.js +36 -29
- package/lib/icon/arrows-left.js +36 -29
- package/lib/icon/arrows-right.js +36 -29
- package/lib/icon/assistant.js +36 -29
- package/lib/icon/audio-fill.js +36 -29
- package/lib/icon/bk.js +36 -29
- package/lib/icon/circle.js +36 -29
- package/lib/icon/close-line.js +36 -29
- package/lib/icon/close.js +36 -29
- package/lib/icon/code.js +36 -29
- package/lib/icon/cog-shape.js +36 -29
- package/lib/icon/collapse-left.js +36 -29
- package/lib/icon/copy-shape.js +36 -29
- package/lib/icon/copy.js +36 -29
- package/lib/icon/data-shape.js +36 -29
- package/lib/icon/del.js +36 -29
- package/lib/icon/doc-fill.js +36 -29
- package/lib/icon/done.js +36 -29
- package/lib/icon/down-shape.js +36 -29
- package/lib/icon/down-small.js +36 -29
- package/lib/icon/edit-line.js +36 -29
- package/lib/icon/ellipsis.js +36 -29
- package/lib/icon/enlarge-line.js +36 -29
- package/lib/icon/error.js +36 -29
- package/lib/icon/excel-fill.js +36 -29
- package/lib/icon/exclamation-circle-shape.js +36 -29
- package/lib/icon/eye.js +36 -29
- package/lib/icon/filliscreen-line.js +36 -29
- package/lib/icon/fix-line.js +36 -29
- package/lib/icon/fix-shape.js +36 -29
- package/lib/icon/folder-open.js +36 -29
- package/lib/icon/folder-shape-open.js +36 -29
- package/lib/icon/folder-shape.js +36 -29
- package/lib/icon/folder.js +36 -29
- package/lib/icon/funnel.js +36 -29
- package/lib/icon/grag-fill.js +36 -29
- package/lib/icon/help-document-fill.js +36 -29
- package/lib/icon/help-fill.js +36 -29
- package/lib/icon/help.js +36 -29
- package/lib/icon/image-fill.js +36 -29
- package/lib/icon/img-error.js +36 -29
- package/lib/icon/img-placehoulder.js +36 -29
- package/lib/icon/info-line.js +36 -29
- package/lib/icon/info.js +36 -29
- package/lib/icon/left-shape.js +36 -29
- package/lib/icon/left-turn-line.js +36 -29
- package/lib/icon/loading.js +36 -29
- package/lib/icon/narrow-line.js +36 -29
- package/lib/icon/original.js +36 -29
- package/lib/icon/pdf-fill.js +36 -29
- package/lib/icon/play-shape.js +36 -29
- package/lib/icon/plus.js +36 -29
- package/lib/icon/ppt-fill.js +36 -29
- package/lib/icon/qq.js +36 -29
- package/lib/icon/right-shape.js +36 -29
- package/lib/icon/right-turn-line.js +36 -29
- package/lib/icon/search.js +36 -29
- package/lib/icon/share.js +36 -29
- package/lib/icon/spinner.js +36 -29
- package/lib/icon/success.js +36 -29
- package/lib/icon/switcher-loading.js +36 -29
- package/lib/icon/text-all.js +36 -29
- package/lib/icon/text-file.js +36 -29
- package/lib/icon/text-fill.js +36 -29
- package/lib/icon/transfer.js +36 -29
- package/lib/icon/tree-application-shape.js +36 -29
- package/lib/icon/unfull-screen.js +36 -29
- package/lib/icon/unvisible.js +36 -29
- package/lib/icon/up-shape.js +36 -29
- package/lib/icon/upload.js +36 -29
- package/lib/icon/video-fill.js +36 -29
- package/lib/icon/warn.js +36 -29
- package/lib/icon/weixin-pro.js +36 -29
- package/lib/icon/weixin.js +36 -29
- package/lib/image/index.js +47 -49
- package/lib/index.js +1 -1
- package/lib/info-box/index.js +461 -62
- package/lib/input/index.js +60 -62
- package/lib/link/index.js +2 -2
- package/lib/loading/index.js +25 -22
- package/lib/menu/index.js +34 -36
- package/lib/message/index.js +31 -34
- package/lib/modal/index.js +14 -12
- package/lib/navigation/index.js +9 -7
- package/lib/notify/index.js +14 -12
- package/lib/overflow-title/index.js +10 -9
- package/lib/pagination/index.js +29 -32
- package/lib/pop-confirm/index.js +5 -4
- package/lib/popover/index.js +136 -209
- package/lib/popover2/index.js +2 -2
- package/lib/process/index.js +452 -59
- package/lib/progress/index.js +19 -16
- package/lib/radio/index.js +34 -37
- package/lib/rate/index.js +14 -12
- package/lib/resize-layout/index.js +20 -18
- package/lib/scrollbar/index.js +58 -51
- package/lib/search-select/index.js +595 -222
- package/lib/select/index.js +463 -111
- package/lib/shared/index.js +95 -83
- package/lib/sideslider/index.js +441 -43
- package/lib/slider/index.js +446 -49
- package/lib/steps/index.js +458 -60
- package/lib/swiper/index.js +17 -15
- package/lib/switcher/index.js +14 -12
- package/lib/tab/index.js +40 -42
- package/lib/table/index.js +501 -152
- package/lib/tag/index.js +14 -12
- package/lib/tag-input/index.js +41 -47
- package/lib/timeline/index.js +0 -1
- package/lib/transfer/index.js +17 -22
- package/lib/tree/index.js +66 -73
- package/lib/upload/index.js +487 -136
- package/lib/virtual-render/index.js +51 -47
- package/package.json +1 -2
@@ -618,6 +618,354 @@ normalizeWheel.getEventType = function() /*string*/ {
|
|
618
618
|
module.exports = normalizeWheel;
|
619
619
|
|
620
620
|
|
621
|
+
/***/ }),
|
622
|
+
|
623
|
+
/***/ 7609:
|
624
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
625
|
+
|
626
|
+
var _typeof = (__webpack_require__(7425)["default"]);
|
627
|
+
function _regeneratorRuntime() {
|
628
|
+
"use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
629
|
+
module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
|
630
|
+
return e;
|
631
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
632
|
+
var t,
|
633
|
+
e = {},
|
634
|
+
r = Object.prototype,
|
635
|
+
n = r.hasOwnProperty,
|
636
|
+
o = Object.defineProperty || function (t, e, r) {
|
637
|
+
t[e] = r.value;
|
638
|
+
},
|
639
|
+
i = "function" == typeof Symbol ? Symbol : {},
|
640
|
+
a = i.iterator || "@@iterator",
|
641
|
+
c = i.asyncIterator || "@@asyncIterator",
|
642
|
+
u = i.toStringTag || "@@toStringTag";
|
643
|
+
function define(t, e, r) {
|
644
|
+
return Object.defineProperty(t, e, {
|
645
|
+
value: r,
|
646
|
+
enumerable: !0,
|
647
|
+
configurable: !0,
|
648
|
+
writable: !0
|
649
|
+
}), t[e];
|
650
|
+
}
|
651
|
+
try {
|
652
|
+
define({}, "");
|
653
|
+
} catch (t) {
|
654
|
+
define = function define(t, e, r) {
|
655
|
+
return t[e] = r;
|
656
|
+
};
|
657
|
+
}
|
658
|
+
function wrap(t, e, r, n) {
|
659
|
+
var i = e && e.prototype instanceof Generator ? e : Generator,
|
660
|
+
a = Object.create(i.prototype),
|
661
|
+
c = new Context(n || []);
|
662
|
+
return o(a, "_invoke", {
|
663
|
+
value: makeInvokeMethod(t, r, c)
|
664
|
+
}), a;
|
665
|
+
}
|
666
|
+
function tryCatch(t, e, r) {
|
667
|
+
try {
|
668
|
+
return {
|
669
|
+
type: "normal",
|
670
|
+
arg: t.call(e, r)
|
671
|
+
};
|
672
|
+
} catch (t) {
|
673
|
+
return {
|
674
|
+
type: "throw",
|
675
|
+
arg: t
|
676
|
+
};
|
677
|
+
}
|
678
|
+
}
|
679
|
+
e.wrap = wrap;
|
680
|
+
var h = "suspendedStart",
|
681
|
+
l = "suspendedYield",
|
682
|
+
f = "executing",
|
683
|
+
s = "completed",
|
684
|
+
y = {};
|
685
|
+
function Generator() {}
|
686
|
+
function GeneratorFunction() {}
|
687
|
+
function GeneratorFunctionPrototype() {}
|
688
|
+
var p = {};
|
689
|
+
define(p, a, function () {
|
690
|
+
return this;
|
691
|
+
});
|
692
|
+
var d = Object.getPrototypeOf,
|
693
|
+
v = d && d(d(values([])));
|
694
|
+
v && v !== r && n.call(v, a) && (p = v);
|
695
|
+
var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
|
696
|
+
function defineIteratorMethods(t) {
|
697
|
+
["next", "throw", "return"].forEach(function (e) {
|
698
|
+
define(t, e, function (t) {
|
699
|
+
return this._invoke(e, t);
|
700
|
+
});
|
701
|
+
});
|
702
|
+
}
|
703
|
+
function AsyncIterator(t, e) {
|
704
|
+
function invoke(r, o, i, a) {
|
705
|
+
var c = tryCatch(t[r], t, o);
|
706
|
+
if ("throw" !== c.type) {
|
707
|
+
var u = c.arg,
|
708
|
+
h = u.value;
|
709
|
+
return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
|
710
|
+
invoke("next", t, i, a);
|
711
|
+
}, function (t) {
|
712
|
+
invoke("throw", t, i, a);
|
713
|
+
}) : e.resolve(h).then(function (t) {
|
714
|
+
u.value = t, i(u);
|
715
|
+
}, function (t) {
|
716
|
+
return invoke("throw", t, i, a);
|
717
|
+
});
|
718
|
+
}
|
719
|
+
a(c.arg);
|
720
|
+
}
|
721
|
+
var r;
|
722
|
+
o(this, "_invoke", {
|
723
|
+
value: function value(t, n) {
|
724
|
+
function callInvokeWithMethodAndArg() {
|
725
|
+
return new e(function (e, r) {
|
726
|
+
invoke(t, n, e, r);
|
727
|
+
});
|
728
|
+
}
|
729
|
+
return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
730
|
+
}
|
731
|
+
});
|
732
|
+
}
|
733
|
+
function makeInvokeMethod(e, r, n) {
|
734
|
+
var o = h;
|
735
|
+
return function (i, a) {
|
736
|
+
if (o === f) throw new Error("Generator is already running");
|
737
|
+
if (o === s) {
|
738
|
+
if ("throw" === i) throw a;
|
739
|
+
return {
|
740
|
+
value: t,
|
741
|
+
done: !0
|
742
|
+
};
|
743
|
+
}
|
744
|
+
for (n.method = i, n.arg = a;;) {
|
745
|
+
var c = n.delegate;
|
746
|
+
if (c) {
|
747
|
+
var u = maybeInvokeDelegate(c, n);
|
748
|
+
if (u) {
|
749
|
+
if (u === y) continue;
|
750
|
+
return u;
|
751
|
+
}
|
752
|
+
}
|
753
|
+
if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
|
754
|
+
if (o === h) throw o = s, n.arg;
|
755
|
+
n.dispatchException(n.arg);
|
756
|
+
} else "return" === n.method && n.abrupt("return", n.arg);
|
757
|
+
o = f;
|
758
|
+
var p = tryCatch(e, r, n);
|
759
|
+
if ("normal" === p.type) {
|
760
|
+
if (o = n.done ? s : l, p.arg === y) continue;
|
761
|
+
return {
|
762
|
+
value: p.arg,
|
763
|
+
done: n.done
|
764
|
+
};
|
765
|
+
}
|
766
|
+
"throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
|
767
|
+
}
|
768
|
+
};
|
769
|
+
}
|
770
|
+
function maybeInvokeDelegate(e, r) {
|
771
|
+
var n = r.method,
|
772
|
+
o = e.iterator[n];
|
773
|
+
if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
|
774
|
+
var i = tryCatch(o, e.iterator, r.arg);
|
775
|
+
if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
|
776
|
+
var a = i.arg;
|
777
|
+
return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
|
778
|
+
}
|
779
|
+
function pushTryEntry(t) {
|
780
|
+
var e = {
|
781
|
+
tryLoc: t[0]
|
782
|
+
};
|
783
|
+
1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
|
784
|
+
}
|
785
|
+
function resetTryEntry(t) {
|
786
|
+
var e = t.completion || {};
|
787
|
+
e.type = "normal", delete e.arg, t.completion = e;
|
788
|
+
}
|
789
|
+
function Context(t) {
|
790
|
+
this.tryEntries = [{
|
791
|
+
tryLoc: "root"
|
792
|
+
}], t.forEach(pushTryEntry, this), this.reset(!0);
|
793
|
+
}
|
794
|
+
function values(e) {
|
795
|
+
if (e || "" === e) {
|
796
|
+
var r = e[a];
|
797
|
+
if (r) return r.call(e);
|
798
|
+
if ("function" == typeof e.next) return e;
|
799
|
+
if (!isNaN(e.length)) {
|
800
|
+
var o = -1,
|
801
|
+
i = function next() {
|
802
|
+
for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
|
803
|
+
return next.value = t, next.done = !0, next;
|
804
|
+
};
|
805
|
+
return i.next = i;
|
806
|
+
}
|
807
|
+
}
|
808
|
+
throw new TypeError(_typeof(e) + " is not iterable");
|
809
|
+
}
|
810
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
|
811
|
+
value: GeneratorFunctionPrototype,
|
812
|
+
configurable: !0
|
813
|
+
}), o(GeneratorFunctionPrototype, "constructor", {
|
814
|
+
value: GeneratorFunction,
|
815
|
+
configurable: !0
|
816
|
+
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
|
817
|
+
var e = "function" == typeof t && t.constructor;
|
818
|
+
return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
|
819
|
+
}, e.mark = function (t) {
|
820
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
|
821
|
+
}, e.awrap = function (t) {
|
822
|
+
return {
|
823
|
+
__await: t
|
824
|
+
};
|
825
|
+
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
|
826
|
+
return this;
|
827
|
+
}), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
|
828
|
+
void 0 === i && (i = Promise);
|
829
|
+
var a = new AsyncIterator(wrap(t, r, n, o), i);
|
830
|
+
return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
|
831
|
+
return t.done ? t.value : a.next();
|
832
|
+
});
|
833
|
+
}, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
|
834
|
+
return this;
|
835
|
+
}), define(g, "toString", function () {
|
836
|
+
return "[object Generator]";
|
837
|
+
}), e.keys = function (t) {
|
838
|
+
var e = Object(t),
|
839
|
+
r = [];
|
840
|
+
for (var n in e) r.push(n);
|
841
|
+
return r.reverse(), function next() {
|
842
|
+
for (; r.length;) {
|
843
|
+
var t = r.pop();
|
844
|
+
if (t in e) return next.value = t, next.done = !1, next;
|
845
|
+
}
|
846
|
+
return next.done = !0, next;
|
847
|
+
};
|
848
|
+
}, e.values = values, Context.prototype = {
|
849
|
+
constructor: Context,
|
850
|
+
reset: function reset(e) {
|
851
|
+
if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
|
852
|
+
},
|
853
|
+
stop: function stop() {
|
854
|
+
this.done = !0;
|
855
|
+
var t = this.tryEntries[0].completion;
|
856
|
+
if ("throw" === t.type) throw t.arg;
|
857
|
+
return this.rval;
|
858
|
+
},
|
859
|
+
dispatchException: function dispatchException(e) {
|
860
|
+
if (this.done) throw e;
|
861
|
+
var r = this;
|
862
|
+
function handle(n, o) {
|
863
|
+
return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
|
864
|
+
}
|
865
|
+
for (var o = this.tryEntries.length - 1; o >= 0; --o) {
|
866
|
+
var i = this.tryEntries[o],
|
867
|
+
a = i.completion;
|
868
|
+
if ("root" === i.tryLoc) return handle("end");
|
869
|
+
if (i.tryLoc <= this.prev) {
|
870
|
+
var c = n.call(i, "catchLoc"),
|
871
|
+
u = n.call(i, "finallyLoc");
|
872
|
+
if (c && u) {
|
873
|
+
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
874
|
+
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
875
|
+
} else if (c) {
|
876
|
+
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
877
|
+
} else {
|
878
|
+
if (!u) throw new Error("try statement without catch or finally");
|
879
|
+
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
880
|
+
}
|
881
|
+
}
|
882
|
+
}
|
883
|
+
},
|
884
|
+
abrupt: function abrupt(t, e) {
|
885
|
+
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
|
886
|
+
var o = this.tryEntries[r];
|
887
|
+
if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
|
888
|
+
var i = o;
|
889
|
+
break;
|
890
|
+
}
|
891
|
+
}
|
892
|
+
i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
|
893
|
+
var a = i ? i.completion : {};
|
894
|
+
return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
|
895
|
+
},
|
896
|
+
complete: function complete(t, e) {
|
897
|
+
if ("throw" === t.type) throw t.arg;
|
898
|
+
return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
|
899
|
+
},
|
900
|
+
finish: function finish(t) {
|
901
|
+
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
902
|
+
var r = this.tryEntries[e];
|
903
|
+
if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
|
904
|
+
}
|
905
|
+
},
|
906
|
+
"catch": function _catch(t) {
|
907
|
+
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
908
|
+
var r = this.tryEntries[e];
|
909
|
+
if (r.tryLoc === t) {
|
910
|
+
var n = r.completion;
|
911
|
+
if ("throw" === n.type) {
|
912
|
+
var o = n.arg;
|
913
|
+
resetTryEntry(r);
|
914
|
+
}
|
915
|
+
return o;
|
916
|
+
}
|
917
|
+
}
|
918
|
+
throw new Error("illegal catch attempt");
|
919
|
+
},
|
920
|
+
delegateYield: function delegateYield(e, r, n) {
|
921
|
+
return this.delegate = {
|
922
|
+
iterator: values(e),
|
923
|
+
resultName: r,
|
924
|
+
nextLoc: n
|
925
|
+
}, "next" === this.method && (this.arg = t), y;
|
926
|
+
}
|
927
|
+
}, e;
|
928
|
+
}
|
929
|
+
module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
930
|
+
|
931
|
+
/***/ }),
|
932
|
+
|
933
|
+
/***/ 7425:
|
934
|
+
/***/ ((module) => {
|
935
|
+
|
936
|
+
function _typeof(o) {
|
937
|
+
"@babel/helpers - typeof";
|
938
|
+
|
939
|
+
return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
940
|
+
return typeof o;
|
941
|
+
} : function (o) {
|
942
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
943
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(o);
|
944
|
+
}
|
945
|
+
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
946
|
+
|
947
|
+
/***/ }),
|
948
|
+
|
949
|
+
/***/ 2841:
|
950
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
951
|
+
|
952
|
+
// TODO(Babel 8): Remove this file.
|
953
|
+
|
954
|
+
var runtime = __webpack_require__(7609)();
|
955
|
+
module.exports = runtime;
|
956
|
+
|
957
|
+
// Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
|
958
|
+
try {
|
959
|
+
regeneratorRuntime = runtime;
|
960
|
+
} catch (accidentalStrictMode) {
|
961
|
+
if (typeof globalThis === "object") {
|
962
|
+
globalThis.regeneratorRuntime = runtime;
|
963
|
+
} else {
|
964
|
+
Function("r", "regeneratorRuntime = r")(runtime);
|
965
|
+
}
|
966
|
+
}
|
967
|
+
|
968
|
+
|
621
969
|
/***/ })
|
622
970
|
|
623
971
|
/******/ });
|
@@ -701,7 +1049,6 @@ function _typeof(o) {
|
|
701
1049
|
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
702
1050
|
}, _typeof(o);
|
703
1051
|
}
|
704
|
-
|
705
1052
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
706
1053
|
|
707
1054
|
function toPrimitive(t, r) {
|
@@ -714,26 +1061,29 @@ function toPrimitive(t, r) {
|
|
714
1061
|
}
|
715
1062
|
return ("string" === r ? String : Number)(t);
|
716
1063
|
}
|
717
|
-
|
718
1064
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
719
1065
|
|
720
1066
|
|
721
1067
|
function toPropertyKey(t) {
|
722
1068
|
var i = toPrimitive(t, "string");
|
723
|
-
return "symbol" == _typeof(i) ? i : i
|
1069
|
+
return "symbol" == _typeof(i) ? i : String(i);
|
724
1070
|
}
|
725
|
-
|
726
1071
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
727
1072
|
|
728
|
-
function _defineProperty(
|
729
|
-
|
730
|
-
|
731
|
-
|
732
|
-
|
733
|
-
|
734
|
-
|
1073
|
+
function _defineProperty(obj, key, value) {
|
1074
|
+
key = toPropertyKey(key);
|
1075
|
+
if (key in obj) {
|
1076
|
+
Object.defineProperty(obj, key, {
|
1077
|
+
value: value,
|
1078
|
+
enumerable: true,
|
1079
|
+
configurable: true,
|
1080
|
+
writable: true
|
1081
|
+
});
|
1082
|
+
} else {
|
1083
|
+
obj[key] = value;
|
1084
|
+
}
|
1085
|
+
return obj;
|
735
1086
|
}
|
736
|
-
|
737
1087
|
;// CONCATENATED MODULE: external "vue"
|
738
1088
|
var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
739
1089
|
var external_vue_y = x => () => x
|
@@ -743,9 +1093,9 @@ var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x
|
|
743
1093
|
var config_provider_y = x => () => x
|
744
1094
|
const config_provider_namespaceObject = config_provider_x({ ["useLocale"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.useLocale, ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.usePrefix });
|
745
1095
|
;// CONCATENATED MODULE: ../../packages/directives/src/clickoutside.ts
|
746
|
-
function _createForOfIteratorHelper(
|
747
|
-
function _unsupportedIterableToArray(
|
748
|
-
function _arrayLikeToArray(
|
1096
|
+
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _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; } } }; }
|
1097
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _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 _arrayLikeToArray(o, minLen); }
|
1098
|
+
function _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; }
|
749
1099
|
/*
|
750
1100
|
* Tencent is pleased to support the open source community by making
|
751
1101
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -1028,47 +1378,42 @@ var mousewheel = {
|
|
1028
1378
|
};
|
1029
1379
|
/* harmony default export */ const src_mousewheel = ((/* unused pure expression or super */ null && (mousewheel)));
|
1030
1380
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
1031
|
-
function arrayLikeToArray_arrayLikeToArray(
|
1032
|
-
(
|
1033
|
-
for (var
|
1034
|
-
return
|
1381
|
+
function arrayLikeToArray_arrayLikeToArray(arr, len) {
|
1382
|
+
if (len == null || len > arr.length) len = arr.length;
|
1383
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
1384
|
+
return arr2;
|
1035
1385
|
}
|
1036
|
-
|
1037
1386
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
|
1038
1387
|
|
1039
|
-
function _arrayWithoutHoles(
|
1040
|
-
if (Array.isArray(
|
1388
|
+
function _arrayWithoutHoles(arr) {
|
1389
|
+
if (Array.isArray(arr)) return arrayLikeToArray_arrayLikeToArray(arr);
|
1041
1390
|
}
|
1042
|
-
|
1043
1391
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/iterableToArray.js
|
1044
|
-
function _iterableToArray(
|
1045
|
-
if (
|
1392
|
+
function _iterableToArray(iter) {
|
1393
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
1046
1394
|
}
|
1047
|
-
|
1048
1395
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
1049
1396
|
|
1050
|
-
function unsupportedIterableToArray_unsupportedIterableToArray(
|
1051
|
-
if (
|
1052
|
-
|
1053
|
-
|
1054
|
-
|
1055
|
-
|
1397
|
+
function unsupportedIterableToArray_unsupportedIterableToArray(o, minLen) {
|
1398
|
+
if (!o) return;
|
1399
|
+
if (typeof o === "string") return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
1400
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
1401
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
1402
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
1403
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
1056
1404
|
}
|
1057
|
-
|
1058
1405
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
|
1059
1406
|
function _nonIterableSpread() {
|
1060
1407
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
1061
1408
|
}
|
1062
|
-
|
1063
1409
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
|
1064
1410
|
|
1065
1411
|
|
1066
1412
|
|
1067
1413
|
|
1068
|
-
function _toConsumableArray(
|
1069
|
-
return _arrayWithoutHoles(
|
1414
|
+
function _toConsumableArray(arr) {
|
1415
|
+
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || unsupportedIterableToArray_unsupportedIterableToArray(arr) || _nonIterableSpread();
|
1070
1416
|
}
|
1071
|
-
|
1072
1417
|
;// CONCATENATED MODULE: external "@popperjs/core"
|
1073
1418
|
var core_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1074
1419
|
var core_y = x => () => x
|
@@ -1724,10 +2069,9 @@ function resetTriggers (elem) {
|
|
1724
2069
|
|
1725
2070
|
|
1726
2071
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
1727
|
-
function _arrayWithHoles(
|
1728
|
-
if (Array.isArray(
|
2072
|
+
function _arrayWithHoles(arr) {
|
2073
|
+
if (Array.isArray(arr)) return arr;
|
1729
2074
|
}
|
1730
|
-
|
1731
2075
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
1732
2076
|
function _iterableToArrayLimit(r, l) {
|
1733
2077
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
@@ -1756,48 +2100,52 @@ function _iterableToArrayLimit(r, l) {
|
|
1756
2100
|
return a;
|
1757
2101
|
}
|
1758
2102
|
}
|
1759
|
-
|
1760
2103
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
1761
2104
|
function _nonIterableRest() {
|
1762
2105
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
1763
2106
|
}
|
1764
|
-
|
1765
2107
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
1766
2108
|
|
1767
2109
|
|
1768
2110
|
|
1769
2111
|
|
1770
|
-
function _slicedToArray(
|
1771
|
-
return _arrayWithHoles(
|
2112
|
+
function _slicedToArray(arr, i) {
|
2113
|
+
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || unsupportedIterableToArray_unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
1772
2114
|
}
|
1773
|
-
|
1774
2115
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
|
1775
|
-
function asyncGeneratorStep(
|
2116
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
1776
2117
|
try {
|
1777
|
-
var
|
1778
|
-
|
1779
|
-
} catch (
|
1780
|
-
|
2118
|
+
var info = gen[key](arg);
|
2119
|
+
var value = info.value;
|
2120
|
+
} catch (error) {
|
2121
|
+
reject(error);
|
2122
|
+
return;
|
2123
|
+
}
|
2124
|
+
if (info.done) {
|
2125
|
+
resolve(value);
|
2126
|
+
} else {
|
2127
|
+
Promise.resolve(value).then(_next, _throw);
|
1781
2128
|
}
|
1782
|
-
i.done ? t(u) : Promise.resolve(u).then(r, o);
|
1783
2129
|
}
|
1784
|
-
function _asyncToGenerator(
|
2130
|
+
function _asyncToGenerator(fn) {
|
1785
2131
|
return function () {
|
1786
|
-
var
|
1787
|
-
|
1788
|
-
return new Promise(function (
|
1789
|
-
var
|
1790
|
-
function _next(
|
1791
|
-
asyncGeneratorStep(
|
2132
|
+
var self = this,
|
2133
|
+
args = arguments;
|
2134
|
+
return new Promise(function (resolve, reject) {
|
2135
|
+
var gen = fn.apply(self, args);
|
2136
|
+
function _next(value) {
|
2137
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
1792
2138
|
}
|
1793
|
-
function _throw(
|
1794
|
-
asyncGeneratorStep(
|
2139
|
+
function _throw(err) {
|
2140
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
1795
2141
|
}
|
1796
|
-
_next(
|
2142
|
+
_next(undefined);
|
1797
2143
|
});
|
1798
2144
|
};
|
1799
2145
|
}
|
1800
|
-
|
2146
|
+
// EXTERNAL MODULE: ../../node_modules/@babel/runtime/regenerator/index.js
|
2147
|
+
var regenerator = __webpack_require__(2841);
|
2148
|
+
var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
|
1801
2149
|
;// CONCATENATED MODULE: external "../popover/popover.less"
|
1802
2150
|
var popover_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1803
2151
|
var popover_less_y = x => () => x
|
@@ -1819,24 +2167,30 @@ var radio_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
|
1819
2167
|
var radio_less_y = x => () => x
|
1820
2168
|
const radio_less_namespaceObject = radio_less_x({ });
|
1821
2169
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
1822
|
-
function _classCallCheck(
|
1823
|
-
if (!(
|
2170
|
+
function _classCallCheck(instance, Constructor) {
|
2171
|
+
if (!(instance instanceof Constructor)) {
|
2172
|
+
throw new TypeError("Cannot call a class as a function");
|
2173
|
+
}
|
1824
2174
|
}
|
1825
|
-
|
1826
2175
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/createClass.js
|
1827
2176
|
|
1828
|
-
function _defineProperties(
|
1829
|
-
for (var
|
1830
|
-
var
|
1831
|
-
|
2177
|
+
function _defineProperties(target, props) {
|
2178
|
+
for (var i = 0; i < props.length; i++) {
|
2179
|
+
var descriptor = props[i];
|
2180
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
2181
|
+
descriptor.configurable = true;
|
2182
|
+
if ("value" in descriptor) descriptor.writable = true;
|
2183
|
+
Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor);
|
1832
2184
|
}
|
1833
2185
|
}
|
1834
|
-
function _createClass(
|
1835
|
-
|
1836
|
-
|
1837
|
-
|
2186
|
+
function _createClass(Constructor, protoProps, staticProps) {
|
2187
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
2188
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
2189
|
+
Object.defineProperty(Constructor, "prototype", {
|
2190
|
+
writable: false
|
2191
|
+
});
|
2192
|
+
return Constructor;
|
1838
2193
|
}
|
1839
|
-
|
1840
2194
|
;// CONCATENATED MODULE: ../../packages/search-select/src/utils.ts
|
1841
2195
|
|
1842
2196
|
|
@@ -1917,7 +2271,7 @@ var SelectedItem = /*#__PURE__*/function () {
|
|
1917
2271
|
this.logical = searchItem.logical || SearchLogical.OR;
|
1918
2272
|
this.type = type;
|
1919
2273
|
}
|
1920
|
-
|
2274
|
+
_createClass(SelectedItem, [{
|
1921
2275
|
key: "multiple",
|
1922
2276
|
get: function get() {
|
1923
2277
|
return !!this.searchItem.multiple;
|
@@ -2099,6 +2453,7 @@ var SelectedItem = /*#__PURE__*/function () {
|
|
2099
2453
|
});
|
2100
2454
|
}
|
2101
2455
|
}]);
|
2456
|
+
return SelectedItem;
|
2102
2457
|
}();
|
2103
2458
|
;// CONCATENATED MODULE: ../../packages/search-select/src/menu.tsx
|
2104
2459
|
|
@@ -2131,9 +2486,10 @@ var SelectedItem = /*#__PURE__*/function () {
|
|
2131
2486
|
|
2132
2487
|
|
2133
2488
|
|
2489
|
+
|
2134
2490
|
// import { Done } from '@bkui-vue/icon';
|
2135
2491
|
|
2136
|
-
/* harmony default export */ const menu = (defineComponent({
|
2492
|
+
/* harmony default export */ const menu = ((0,external_vue_namespaceObject.defineComponent)({
|
2137
2493
|
name: 'SearchSelectMenu',
|
2138
2494
|
props: {
|
2139
2495
|
list: {
|
@@ -2184,7 +2540,7 @@ var SelectedItem = /*#__PURE__*/function () {
|
|
2184
2540
|
var t = (0,config_provider_namespaceObject.useLocale)('searchSelect');
|
2185
2541
|
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
2186
2542
|
resolveClassName = _usePrefix.resolveClassName;
|
2187
|
-
var localFooterBtns = computed(function () {
|
2543
|
+
var localFooterBtns = (0,external_vue_namespaceObject.computed)(function () {
|
2188
2544
|
if (props.footerBtns === undefined || props.footerBtns.length === 0) {
|
2189
2545
|
return [{
|
2190
2546
|
id: 'confirm',
|
@@ -2197,7 +2553,7 @@ var SelectedItem = /*#__PURE__*/function () {
|
|
2197
2553
|
}
|
2198
2554
|
return props.footerBtns;
|
2199
2555
|
});
|
2200
|
-
var resolveContentStyles = computed(function () {
|
2556
|
+
var resolveContentStyles = (0,external_vue_namespaceObject.computed)(function () {
|
2201
2557
|
return {
|
2202
2558
|
maxHeight: "".concat(props.maxHeight, "px")
|
2203
2559
|
};
|
@@ -2212,7 +2568,7 @@ var SelectedItem = /*#__PURE__*/function () {
|
|
2212
2568
|
function handleClickFooterBtn(item) {
|
2213
2569
|
emit('footerClick', item);
|
2214
2570
|
}
|
2215
|
-
var filterList = computed(function () {
|
2571
|
+
var filterList = (0,external_vue_namespaceObject.computed)(function () {
|
2216
2572
|
var _props$list, _props$keyword;
|
2217
2573
|
if (!((_props$list = props.list) !== null && _props$list !== void 0 && _props$list.length)) return [];
|
2218
2574
|
if (!((_props$keyword = props.keyword) !== null && _props$keyword !== void 0 && _props$keyword.length)) return props.list;
|
@@ -2346,11 +2702,10 @@ var SelectedItem = /*#__PURE__*/function () {
|
|
2346
2702
|
|
2347
2703
|
|
2348
2704
|
|
2349
|
-
function input_createForOfIteratorHelper(
|
2350
|
-
function input_unsupportedIterableToArray(
|
2351
|
-
function input_arrayLikeToArray(
|
2352
|
-
|
2353
|
-
function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, "", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { if (r) i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n;else { var o = function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); }; o("next", 0), o("throw", 1), o("return", 2); } }, _regeneratorDefine2(e, r, n, t); }
|
2705
|
+
function input_createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = input_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; } } }; }
|
2706
|
+
function input_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return input_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 input_arrayLikeToArray(o, minLen); }
|
2707
|
+
function input_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; }
|
2708
|
+
|
2354
2709
|
function input_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; }
|
2355
2710
|
function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? input_ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : input_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
2356
2711
|
/*
|
@@ -2667,65 +3022,68 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
|
|
2667
3022
|
return _handleKeyEnter.apply(this, arguments);
|
2668
3023
|
}
|
2669
3024
|
function _handleKeyEnter() {
|
2670
|
-
_handleKeyEnter = _asyncToGenerator(/*#__PURE__*/
|
3025
|
+
_handleKeyEnter = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee(event) {
|
2671
3026
|
var _usingItem$value6, _usingItem$value7, _usingItem$value8;
|
2672
3027
|
var isValid;
|
2673
|
-
return
|
2674
|
-
while (1) switch (_context.
|
3028
|
+
return regenerator_default().wrap(function _callee$(_context) {
|
3029
|
+
while (1) switch (_context.prev = _context.next) {
|
2675
3030
|
case 0:
|
2676
3031
|
event === null || event === void 0 || event.preventDefault();
|
2677
3032
|
// 异步延迟解决确保响应时机问题
|
2678
|
-
_context.
|
3033
|
+
_context.next = 3;
|
2679
3034
|
return new Promise(function (resolve) {
|
2680
3035
|
return setTimeout(resolve, 0);
|
2681
3036
|
});
|
2682
|
-
case
|
3037
|
+
case 3:
|
2683
3038
|
if (usingItem.value) {
|
2684
|
-
_context.
|
3039
|
+
_context.next = 9;
|
2685
3040
|
break;
|
2686
3041
|
}
|
2687
3042
|
if (!(!keyword.value || props.valueBehavior === ValueBehavior.NEED_KEY)) {
|
2688
|
-
_context.
|
3043
|
+
_context.next = 6;
|
2689
3044
|
break;
|
2690
3045
|
}
|
2691
|
-
return _context.
|
2692
|
-
case
|
2693
|
-
_context.
|
3046
|
+
return _context.abrupt("return");
|
3047
|
+
case 6:
|
3048
|
+
_context.next = 8;
|
2694
3049
|
return enterNewItemSelected();
|
2695
|
-
case
|
2696
|
-
return _context.
|
2697
|
-
case
|
3050
|
+
case 8:
|
3051
|
+
return _context.abrupt("return", _context.sent);
|
3052
|
+
case 9:
|
2698
3053
|
if (!keyword.value) {
|
2699
|
-
_context.
|
3054
|
+
_context.next = 13;
|
2700
3055
|
break;
|
2701
3056
|
}
|
2702
|
-
_context.
|
3057
|
+
_context.next = 12;
|
2703
3058
|
return enterExistingItemSelected();
|
2704
|
-
case
|
2705
|
-
return _context.
|
2706
|
-
case
|
3059
|
+
case 12:
|
3060
|
+
return _context.abrupt("return", _context.sent);
|
3061
|
+
case 13:
|
2707
3062
|
if (!(!((_usingItem$value6 = usingItem.value) !== null && _usingItem$value6 !== void 0 && _usingItem$value6.isSpecialType()) && ((_usingItem$value7 = usingItem.value) === null || _usingItem$value7 === void 0 ? void 0 : _usingItem$value7.values.length) < 1)) {
|
2708
|
-
_context.
|
3063
|
+
_context.next = 16;
|
2709
3064
|
break;
|
2710
3065
|
}
|
2711
3066
|
showNoSelectValueError.value = !showNoSelectValueError.value;
|
2712
|
-
return _context.
|
2713
|
-
case
|
2714
|
-
_context.
|
3067
|
+
return _context.abrupt("return", false);
|
3068
|
+
case 16:
|
3069
|
+
_context.next = 18;
|
2715
3070
|
return validateUsingItemValues();
|
2716
|
-
case
|
2717
|
-
isValid = _context.
|
3071
|
+
case 18:
|
3072
|
+
isValid = _context.sent;
|
2718
3073
|
if (isValid) {
|
2719
|
-
_context.
|
3074
|
+
_context.next = 21;
|
2720
3075
|
break;
|
2721
3076
|
}
|
2722
|
-
return _context.
|
2723
|
-
case
|
3077
|
+
return _context.abrupt("return", false);
|
3078
|
+
case 21:
|
2724
3079
|
if ((_usingItem$value8 = usingItem.value) !== null && _usingItem$value8 !== void 0 && _usingItem$value8.isCustomMenu) {
|
2725
3080
|
showPopover.value = false;
|
2726
3081
|
}
|
2727
3082
|
setSelectedItem();
|
2728
|
-
return _context.
|
3083
|
+
return _context.abrupt("return", false);
|
3084
|
+
case 24:
|
3085
|
+
case "end":
|
3086
|
+
return _context.stop();
|
2729
3087
|
}
|
2730
3088
|
}, _callee);
|
2731
3089
|
}));
|
@@ -2771,14 +3129,14 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
|
|
2771
3129
|
return _handleSelectItem.apply(this, arguments);
|
2772
3130
|
}
|
2773
3131
|
function _handleSelectItem() {
|
2774
|
-
_handleSelectItem = _asyncToGenerator(/*#__PURE__*/
|
2775
|
-
var _item$value, _usingItem$value9, _usingItem$
|
2776
|
-
var _item$realId, selectedItem, _usingItem$
|
2777
|
-
return
|
2778
|
-
while (1) switch (_context2.
|
3132
|
+
_handleSelectItem = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee2(item, type) {
|
3133
|
+
var _item$value, _usingItem$value9, _usingItem$value12;
|
3134
|
+
var _item$realId, selectedItem, _usingItem$value10, _usingItem$value11, isCondition;
|
3135
|
+
return regenerator_default().wrap(function _callee2$(_context2) {
|
3136
|
+
while (1) switch (_context2.prev = _context2.next) {
|
2779
3137
|
case 0:
|
2780
3138
|
if (!((_item$value = item.value) !== null && _item$value !== void 0 && _item$value.id)) {
|
2781
|
-
_context2.
|
3139
|
+
_context2.next = 18;
|
2782
3140
|
break;
|
2783
3141
|
}
|
2784
3142
|
selectedItem = new SelectedItem(input_objectSpread(input_objectSpread({}, item), {}, {
|
@@ -2786,37 +3144,37 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
|
|
2786
3144
|
}), type);
|
2787
3145
|
selectedItem.addValues(item.value.name, false);
|
2788
3146
|
if (!(props.valueBehavior === ValueBehavior.NEED_KEY && menuHoverId.value)) {
|
2789
|
-
_context2.
|
3147
|
+
_context2.next = 8;
|
2790
3148
|
break;
|
2791
3149
|
}
|
2792
3150
|
setSelectedItem(selectedItem);
|
2793
3151
|
setInputFocus(true);
|
2794
3152
|
menuHoverId.value = '';
|
2795
|
-
return _context2.
|
2796
|
-
case
|
3153
|
+
return _context2.abrupt("return");
|
3154
|
+
case 8:
|
2797
3155
|
usingItem.value = selectedItem;
|
2798
|
-
_context2.
|
3156
|
+
_context2.next = 11;
|
2799
3157
|
return validateUsingItemValues(usingItem.value.values);
|
2800
|
-
case
|
2801
|
-
if (_context2.
|
2802
|
-
_context2.
|
3158
|
+
case 11:
|
3159
|
+
if (_context2.sent) {
|
3160
|
+
_context2.next = 14;
|
2803
3161
|
break;
|
2804
3162
|
}
|
2805
3163
|
usingItem.value = null;
|
2806
|
-
return _context2.
|
2807
|
-
case
|
3164
|
+
return _context2.abrupt("return");
|
3165
|
+
case 14:
|
2808
3166
|
setSelectedItem(usingItem.value);
|
2809
3167
|
setInputFocus(true);
|
2810
3168
|
menuHoverId.value = '';
|
2811
|
-
return _context2.
|
2812
|
-
case
|
3169
|
+
return _context2.abrupt("return");
|
3170
|
+
case 18:
|
2813
3171
|
if (!(!usingItem.value || ((_usingItem$value9 = usingItem.value) === null || _usingItem$value9 === void 0 ? void 0 : _usingItem$value9.type) === 'condition')) {
|
2814
|
-
_context2.
|
3172
|
+
_context2.next = 28;
|
2815
3173
|
break;
|
2816
3174
|
}
|
2817
|
-
usingItem.value = new SelectedItem(item, type !== null && type !== void 0 ? type : (_usingItem$
|
3175
|
+
usingItem.value = new SelectedItem(item, type !== null && type !== void 0 ? type : (_usingItem$value10 = usingItem.value) === null || _usingItem$value10 === void 0 ? void 0 : _usingItem$value10.type);
|
2818
3176
|
keyword.value = '';
|
2819
|
-
isCondition = ((_usingItem$
|
3177
|
+
isCondition = ((_usingItem$value11 = usingItem.value) === null || _usingItem$value11 === void 0 ? void 0 : _usingItem$value11.type) === 'condition';
|
2820
3178
|
if (!isCondition) {
|
2821
3179
|
emit('selectKey', {
|
2822
3180
|
id: item.id,
|
@@ -2830,29 +3188,30 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
|
|
2830
3188
|
showPopover.value = isCondition || !!usingItem.value.children.length;
|
2831
3189
|
setInputFocus(props.valueBehavior === ValueBehavior.NEED_KEY && !!menuHoverId.value);
|
2832
3190
|
typeof props.getMenuList === 'function' && (0,external_vue_namespaceObject.nextTick)(setCursorToEnd);
|
2833
|
-
return _context2.
|
2834
|
-
case
|
3191
|
+
return _context2.abrupt("return");
|
3192
|
+
case 28:
|
2835
3193
|
if (usingItem.value) {
|
2836
3194
|
usingItem.value.addValue(item);
|
2837
3195
|
(0,external_vue_namespaceObject.nextTick)(deleteInputTextNode);
|
2838
3196
|
}
|
2839
|
-
_context2.
|
3197
|
+
_context2.next = 31;
|
2840
3198
|
return validateUsingItemValues(usingItem.value.values);
|
2841
|
-
case
|
2842
|
-
if (_context2.
|
2843
|
-
_context2.
|
3199
|
+
case 31:
|
3200
|
+
if (_context2.sent) {
|
3201
|
+
_context2.next = 33;
|
2844
3202
|
break;
|
2845
3203
|
}
|
2846
|
-
return _context2.
|
2847
|
-
case
|
3204
|
+
return _context2.abrupt("return");
|
3205
|
+
case 33:
|
2848
3206
|
if (!usingItem.value.multiple) {
|
2849
3207
|
setSelectedItem();
|
2850
3208
|
}
|
2851
|
-
if (props.valueBehavior === ValueBehavior.NEED_KEY && (_usingItem$
|
3209
|
+
if (props.valueBehavior === ValueBehavior.NEED_KEY && (_usingItem$value12 = usingItem.value) !== null && _usingItem$value12 !== void 0 && _usingItem$value12.multiple) {
|
2852
3210
|
setInputFocus();
|
2853
3211
|
}
|
2854
|
-
case
|
2855
|
-
|
3212
|
+
case 35:
|
3213
|
+
case "end":
|
3214
|
+
return _context2.stop();
|
2856
3215
|
}
|
2857
3216
|
}, _callee2);
|
2858
3217
|
}));
|
@@ -2884,39 +3243,42 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
|
|
2884
3243
|
return _validateValues.apply(this, arguments);
|
2885
3244
|
}
|
2886
3245
|
function _validateValues() {
|
2887
|
-
_validateValues = _asyncToGenerator(/*#__PURE__*/
|
2888
|
-
var validateStr
|
2889
|
-
return
|
2890
|
-
while (1) switch (_context3.
|
3246
|
+
_validateValues = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee3(searchItem, value) {
|
3247
|
+
var validateStr;
|
3248
|
+
return regenerator_default().wrap(function _callee3$(_context3) {
|
3249
|
+
while (1) switch (_context3.prev = _context3.next) {
|
2891
3250
|
case 0:
|
2892
3251
|
if (!(typeof props.validateValues === 'function')) {
|
2893
|
-
_context3.
|
3252
|
+
_context3.next = 14;
|
2894
3253
|
break;
|
2895
3254
|
}
|
2896
3255
|
validateStr = '';
|
2897
|
-
_context3.
|
2898
|
-
_context3.
|
3256
|
+
_context3.prev = 2;
|
3257
|
+
_context3.next = 5;
|
2899
3258
|
return props.validateValues(searchItem !== null && searchItem !== void 0 ? searchItem : null, value);
|
2900
|
-
case
|
2901
|
-
validateStr = _context3.
|
2902
|
-
_context3.
|
3259
|
+
case 5:
|
3260
|
+
validateStr = _context3.sent;
|
3261
|
+
_context3.next = 11;
|
2903
3262
|
break;
|
2904
|
-
case
|
2905
|
-
_context3.
|
2906
|
-
|
3263
|
+
case 8:
|
3264
|
+
_context3.prev = 8;
|
3265
|
+
_context3.t0 = _context3["catch"](2);
|
2907
3266
|
validateStr = false;
|
2908
|
-
case
|
3267
|
+
case 11:
|
2909
3268
|
if (!(typeof validateStr === 'string' || validateStr === false)) {
|
2910
|
-
_context3.
|
3269
|
+
_context3.next = 14;
|
2911
3270
|
break;
|
2912
3271
|
}
|
2913
3272
|
onValidate(validateStr || '校验错误');
|
2914
|
-
return _context3.
|
2915
|
-
case
|
3273
|
+
return _context3.abrupt("return", false);
|
3274
|
+
case 14:
|
2916
3275
|
onValidate('');
|
2917
|
-
return _context3.
|
3276
|
+
return _context3.abrupt("return", true);
|
3277
|
+
case 16:
|
3278
|
+
case "end":
|
3279
|
+
return _context3.stop();
|
2918
3280
|
}
|
2919
|
-
}, _callee3, null, [[
|
3281
|
+
}, _callee3, null, [[2, 8]]);
|
2920
3282
|
}));
|
2921
3283
|
return _validateValues.apply(this, arguments);
|
2922
3284
|
}
|
@@ -2924,32 +3286,35 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
|
|
2924
3286
|
return _validateUsingItemValues.apply(this, arguments);
|
2925
3287
|
}
|
2926
3288
|
function _validateUsingItemValues() {
|
2927
|
-
_validateUsingItemValues = _asyncToGenerator(/*#__PURE__*/
|
2928
|
-
var _usingItem$
|
2929
|
-
return
|
2930
|
-
while (1) switch (_context4.
|
3289
|
+
_validateUsingItemValues = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee4(preValues) {
|
3290
|
+
var _usingItem$value13, searchItem, validate, values;
|
3291
|
+
return regenerator_default().wrap(function _callee4$(_context4) {
|
3292
|
+
while (1) switch (_context4.prev = _context4.next) {
|
2931
3293
|
case 0:
|
2932
3294
|
if (usingItem.value) {
|
2933
|
-
_context4.
|
3295
|
+
_context4.next = 4;
|
2934
3296
|
break;
|
2935
3297
|
}
|
2936
|
-
_context4.
|
3298
|
+
_context4.next = 3;
|
2937
3299
|
return validateValues(null, preValues);
|
2938
|
-
case
|
2939
|
-
return _context4.
|
2940
|
-
case
|
2941
|
-
_usingItem$
|
3300
|
+
case 3:
|
3301
|
+
return _context4.abrupt("return", _context4.sent);
|
3302
|
+
case 4:
|
3303
|
+
_usingItem$value13 = usingItem.value, searchItem = _usingItem$value13.searchItem, validate = _usingItem$value13.validate, values = _usingItem$value13.values;
|
2942
3304
|
if (!(validate && typeof props.validateValues === 'function')) {
|
2943
|
-
_context4.
|
3305
|
+
_context4.next = 9;
|
2944
3306
|
break;
|
2945
3307
|
}
|
2946
|
-
_context4.
|
3308
|
+
_context4.next = 8;
|
2947
3309
|
return validateValues(searchItem, preValues !== null && preValues !== void 0 ? preValues : values);
|
2948
|
-
case
|
2949
|
-
return _context4.
|
2950
|
-
case
|
3310
|
+
case 8:
|
3311
|
+
return _context4.abrupt("return", _context4.sent);
|
3312
|
+
case 9:
|
2951
3313
|
onValidate('');
|
2952
|
-
return _context4.
|
3314
|
+
return _context4.abrupt("return", true);
|
3315
|
+
case 11:
|
3316
|
+
case "end":
|
3317
|
+
return _context4.stop();
|
2953
3318
|
}
|
2954
3319
|
}, _callee4);
|
2955
3320
|
}));
|
@@ -2959,28 +3324,28 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
|
|
2959
3324
|
return _setMenuList.apply(this, arguments);
|
2960
3325
|
}
|
2961
3326
|
function _setMenuList() {
|
2962
|
-
_setMenuList = _asyncToGenerator(/*#__PURE__*/
|
3327
|
+
_setMenuList = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee5() {
|
2963
3328
|
var _props$data, _usingItem$value$sear, _usingItem$value$valu;
|
2964
|
-
var list, _usingItem$
|
2965
|
-
return
|
2966
|
-
while (1) switch (_context5.
|
3329
|
+
var list, _usingItem$value14, _keyword$value3, _iterator, _step, item, isMatched, _list, filterList, _iterator2, _step2, child, _list2, _filterList, _iterator3, _step3, _child, hoverItem;
|
3330
|
+
return regenerator_default().wrap(function _callee5$(_context5) {
|
3331
|
+
while (1) switch (_context5.prev = _context5.next) {
|
2967
3332
|
case 0:
|
2968
3333
|
list = [];
|
2969
3334
|
if (!(typeof props.getMenuList === 'function' && (!((_props$data = props.data) !== null && _props$data !== void 0 && _props$data.length) && !usingItem.value || usingItem.value && usingItem.value.type !== 'condition' && (((_usingItem$value$sear = usingItem.value.searchItem) === null || _usingItem$value$sear === void 0 ? void 0 : _usingItem$value$sear.async) === undefined || usingItem.value.searchItem.async === true)))) {
|
2970
|
-
_context5.
|
3335
|
+
_context5.next = 9;
|
2971
3336
|
break;
|
2972
3337
|
}
|
2973
3338
|
loading.value = true;
|
2974
|
-
_context5.
|
2975
|
-
return props.getMenuList((_usingItem$
|
3339
|
+
_context5.next = 5;
|
3340
|
+
return props.getMenuList((_usingItem$value14 = usingItem.value) === null || _usingItem$value14 === void 0 ? void 0 : _usingItem$value14.searchItem, keyword.value.trim())["catch"](function () {
|
2976
3341
|
return [];
|
2977
3342
|
});
|
2978
|
-
case
|
2979
|
-
list = _context5.
|
3343
|
+
case 5:
|
3344
|
+
list = _context5.sent;
|
2980
3345
|
loading.value = false;
|
2981
|
-
_context5.
|
3346
|
+
_context5.next = 10;
|
2982
3347
|
break;
|
2983
|
-
case
|
3348
|
+
case 9:
|
2984
3349
|
if (!(usingItem !== null && usingItem !== void 0 && usingItem.value)) {
|
2985
3350
|
if (!((_keyword$value3 = keyword.value) !== null && _keyword$value3 !== void 0 && _keyword$value3.length)) {
|
2986
3351
|
list = props.data.filter(function (item) {
|
@@ -3066,7 +3431,7 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
|
|
3066
3431
|
return item.name.toLocaleLowerCase().includes(keyword.value.toLocaleLowerCase().trim());
|
3067
3432
|
});
|
3068
3433
|
}
|
3069
|
-
case
|
3434
|
+
case 10:
|
3070
3435
|
menuList.value = list;
|
3071
3436
|
console.log('list', list);
|
3072
3437
|
if (props.valueBehavior === ValueBehavior.NEED_KEY) {
|
@@ -3079,8 +3444,9 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
|
|
3079
3444
|
menuHoverId.value = hoverItem.id;
|
3080
3445
|
}
|
3081
3446
|
}
|
3082
|
-
case
|
3083
|
-
|
3447
|
+
case 13:
|
3448
|
+
case "end":
|
3449
|
+
return _context5.stop();
|
3084
3450
|
}
|
3085
3451
|
}, _callee5);
|
3086
3452
|
}));
|
@@ -3090,30 +3456,33 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
|
|
3090
3456
|
return _enterNewItemSelected.apply(this, arguments);
|
3091
3457
|
}
|
3092
3458
|
function _enterNewItemSelected() {
|
3093
|
-
_enterNewItemSelected = _asyncToGenerator(/*#__PURE__*/
|
3459
|
+
_enterNewItemSelected = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee6() {
|
3094
3460
|
var formatItem, valueList, res;
|
3095
|
-
return
|
3096
|
-
while (1) switch (_context6.
|
3461
|
+
return regenerator_default().wrap(function _callee6$(_context6) {
|
3462
|
+
while (1) switch (_context6.prev = _context6.next) {
|
3097
3463
|
case 0:
|
3098
3464
|
formatItem = str2SelectedItem(keyword.value);
|
3099
3465
|
valueList = (formatItem === null || formatItem === void 0 ? void 0 : formatItem.values) || [{
|
3100
3466
|
id: keyword.value,
|
3101
3467
|
name: keyword.value
|
3102
3468
|
}];
|
3103
|
-
_context6.
|
3469
|
+
_context6.next = 4;
|
3104
3470
|
return validateUsingItemValues(valueList);
|
3105
|
-
case
|
3106
|
-
res = _context6.
|
3471
|
+
case 4:
|
3472
|
+
res = _context6.sent;
|
3107
3473
|
if (res) {
|
3108
|
-
_context6.
|
3474
|
+
_context6.next = 7;
|
3109
3475
|
break;
|
3110
3476
|
}
|
3111
|
-
return _context6.
|
3112
|
-
case
|
3477
|
+
return _context6.abrupt("return");
|
3478
|
+
case 7:
|
3113
3479
|
emit('add', formatItem || new SelectedItem(input_objectSpread({}, valueList[0]), 'text'));
|
3114
3480
|
keyword.value = '';
|
3115
3481
|
setMenuList();
|
3116
|
-
return _context6.
|
3482
|
+
return _context6.abrupt("return", true);
|
3483
|
+
case 11:
|
3484
|
+
case "end":
|
3485
|
+
return _context6.stop();
|
3117
3486
|
}
|
3118
3487
|
}, _callee6);
|
3119
3488
|
}));
|
@@ -3123,10 +3492,10 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
|
|
3123
3492
|
return _enterExistingItemSelected.apply(this, arguments);
|
3124
3493
|
}
|
3125
3494
|
function _enterExistingItemSelected() {
|
3126
|
-
_enterExistingItemSelected = _asyncToGenerator(/*#__PURE__*/
|
3495
|
+
_enterExistingItemSelected = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee7() {
|
3127
3496
|
var valueList, formatItem, isValid;
|
3128
|
-
return
|
3129
|
-
while (1) switch (_context7.
|
3497
|
+
return regenerator_default().wrap(function _callee7$(_context7) {
|
3498
|
+
while (1) switch (_context7.prev = _context7.next) {
|
3130
3499
|
case 0:
|
3131
3500
|
valueList = [];
|
3132
3501
|
if (usingItem.value.isSpecialType()) {
|
@@ -3137,16 +3506,16 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
|
|
3137
3506
|
}
|
3138
3507
|
}
|
3139
3508
|
valueList = valueList.length ? valueList : usingItem.value.str2Values(keyword.value);
|
3140
|
-
_context7.
|
3509
|
+
_context7.next = 5;
|
3141
3510
|
return validateUsingItemValues(valueList);
|
3142
|
-
case
|
3143
|
-
isValid = _context7.
|
3511
|
+
case 5:
|
3512
|
+
isValid = _context7.sent;
|
3144
3513
|
if (isValid) {
|
3145
|
-
_context7.
|
3514
|
+
_context7.next = 8;
|
3146
3515
|
break;
|
3147
3516
|
}
|
3148
|
-
return _context7.
|
3149
|
-
case
|
3517
|
+
return _context7.abrupt("return");
|
3518
|
+
case 8:
|
3150
3519
|
if (usingItem.value.type === 'text') {
|
3151
3520
|
usingItem.value.name = keyword.value;
|
3152
3521
|
usingItem.value.id = keyword.value;
|
@@ -3157,7 +3526,10 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
|
|
3157
3526
|
keyword.value = '';
|
3158
3527
|
usingItem.value = null;
|
3159
3528
|
setInputFocus(true);
|
3160
|
-
return _context7.
|
3529
|
+
return _context7.abrupt("return", true);
|
3530
|
+
case 14:
|
3531
|
+
case "end":
|
3532
|
+
return _context7.stop();
|
3161
3533
|
}
|
3162
3534
|
}, _callee7);
|
3163
3535
|
}));
|
@@ -3259,19 +3631,20 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
|
|
3259
3631
|
return _inputEnterForWrapper.apply(this, arguments);
|
3260
3632
|
}
|
3261
3633
|
function _inputEnterForWrapper() {
|
3262
|
-
_inputEnterForWrapper = _asyncToGenerator(/*#__PURE__*/
|
3263
|
-
return
|
3264
|
-
while (1) switch (_context8.
|
3634
|
+
_inputEnterForWrapper = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee8() {
|
3635
|
+
return regenerator_default().wrap(function _callee8$(_context8) {
|
3636
|
+
while (1) switch (_context8.prev = _context8.next) {
|
3265
3637
|
case 0:
|
3266
|
-
_context8.
|
3638
|
+
_context8.next = 2;
|
3267
3639
|
return handleKeyEnter().then(function (v) {
|
3268
3640
|
return v && clearInput();
|
3269
3641
|
});
|
3270
|
-
case
|
3642
|
+
case 2:
|
3271
3643
|
showPopover.value = false;
|
3272
3644
|
inputRef.value.blur();
|
3273
|
-
case
|
3274
|
-
|
3645
|
+
case 4:
|
3646
|
+
case "end":
|
3647
|
+
return _context8.stop();
|
3275
3648
|
}
|
3276
3649
|
}, _callee8);
|
3277
3650
|
}));
|
@@ -3637,9 +4010,9 @@ function selected_objectSpread(e) { for (var r = 1; r < arguments.length; r++) {
|
|
3637
4010
|
|
3638
4011
|
function search_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; }
|
3639
4012
|
function search_select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? search_select_ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : search_select_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
3640
|
-
function search_select_createForOfIteratorHelper(
|
3641
|
-
function search_select_unsupportedIterableToArray(
|
3642
|
-
function search_select_arrayLikeToArray(
|
4013
|
+
function search_select_createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = search_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; } } }; }
|
4014
|
+
function search_select_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return search_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 search_select_arrayLikeToArray(o, minLen); }
|
4015
|
+
function search_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; }
|
3643
4016
|
/*
|
3644
4017
|
* Tencent is pleased to support the open source community by making
|
3645
4018
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|