bkui-vue 2.0.2-beta.45 → 2.0.2-beta.47
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 +47 -42
- package/dist/index.esm.js +7204 -7010
- package/dist/index.umd.js +50 -45
- package/lib/affix/index.js +12 -14
- package/lib/alert/index.js +12 -14
- package/lib/animate-number/index.js +11 -12
- package/lib/backtop/index.js +10 -11
- package/lib/badge/index.js +12 -14
- package/lib/breadcrumb/index.js +12 -14
- package/lib/button/index.js +12 -14
- package/lib/card/index.js +12 -14
- package/lib/cascader/index.js +94 -101
- package/lib/checkbox/index.js +37 -35
- package/lib/code-diff/index.js +1171 -675
- package/lib/collapse/index.js +44 -42
- package/lib/collapse-transition/index.js +3 -4
- package/lib/color-picker/index.js +59 -60
- package/lib/config-provider/index.js +12 -14
- package/lib/container/index.js +21 -25
- package/lib/date-picker/index.js +58 -51
- package/lib/dialog/index.js +53 -474
- package/lib/directives/index.js +37 -34
- package/lib/divider/index.js +2 -3
- package/lib/dropdown/index.js +17 -21
- package/lib/exception/index.js +14 -17
- package/lib/fixed-navbar/index.js +2 -3
- package/lib/form/index.js +37 -34
- package/lib/icon/angle-double-down-line.js +29 -36
- package/lib/icon/angle-double-left-line.js +29 -36
- package/lib/icon/angle-double-left.js +29 -36
- package/lib/icon/angle-double-right-line.js +29 -36
- package/lib/icon/angle-double-right.js +29 -36
- package/lib/icon/angle-double-up-line.js +29 -36
- package/lib/icon/angle-down-fill.js +29 -36
- package/lib/icon/angle-down-line.js +29 -36
- package/lib/icon/angle-down.js +29 -36
- package/lib/icon/angle-left.js +29 -36
- package/lib/icon/angle-right.js +29 -36
- package/lib/icon/angle-up-fill.js +29 -36
- package/lib/icon/angle-up.js +29 -36
- package/lib/icon/archive-fill.js +29 -36
- package/lib/icon/arrows-left.js +29 -36
- package/lib/icon/arrows-right.js +29 -36
- package/lib/icon/assistant.js +29 -36
- package/lib/icon/audio-fill.js +29 -36
- package/lib/icon/bk.js +29 -36
- package/lib/icon/circle.js +29 -36
- package/lib/icon/close-line.js +29 -36
- package/lib/icon/close.js +29 -36
- package/lib/icon/code.js +29 -36
- package/lib/icon/cog-shape.js +29 -36
- package/lib/icon/collapse-left.js +29 -36
- package/lib/icon/copy-shape.js +29 -36
- package/lib/icon/copy.js +29 -36
- package/lib/icon/data-shape.js +29 -36
- package/lib/icon/del.js +29 -36
- package/lib/icon/doc-fill.js +29 -36
- package/lib/icon/done.js +29 -36
- package/lib/icon/down-shape.js +29 -36
- package/lib/icon/down-small.js +29 -36
- package/lib/icon/edit-line.js +29 -36
- package/lib/icon/ellipsis.js +29 -36
- package/lib/icon/enlarge-line.js +29 -36
- package/lib/icon/error.js +29 -36
- package/lib/icon/excel-fill.js +29 -36
- package/lib/icon/exclamation-circle-shape.js +29 -36
- package/lib/icon/eye.js +29 -36
- package/lib/icon/filliscreen-line.js +29 -36
- package/lib/icon/fix-line.js +29 -36
- package/lib/icon/fix-shape.js +29 -36
- package/lib/icon/folder-open.js +29 -36
- package/lib/icon/folder-shape-open.js +29 -36
- package/lib/icon/folder-shape.js +29 -36
- package/lib/icon/folder.js +29 -36
- package/lib/icon/funnel.js +29 -36
- package/lib/icon/grag-fill.js +29 -36
- package/lib/icon/help-document-fill.js +29 -36
- package/lib/icon/help-fill.js +29 -36
- package/lib/icon/help.js +29 -36
- package/lib/icon/image-fill.js +29 -36
- package/lib/icon/img-error.js +29 -36
- package/lib/icon/img-placehoulder.js +29 -36
- package/lib/icon/info-line.js +29 -36
- package/lib/icon/info.js +29 -36
- package/lib/icon/left-shape.js +29 -36
- package/lib/icon/left-turn-line.js +29 -36
- package/lib/icon/loading.js +29 -36
- package/lib/icon/narrow-line.js +29 -36
- package/lib/icon/original.js +29 -36
- package/lib/icon/pdf-fill.js +29 -36
- package/lib/icon/play-shape.js +29 -36
- package/lib/icon/plus.js +29 -36
- package/lib/icon/ppt-fill.js +29 -36
- package/lib/icon/qq.js +29 -36
- package/lib/icon/right-shape.js +29 -36
- package/lib/icon/right-turn-line.js +29 -36
- package/lib/icon/search.js +29 -36
- package/lib/icon/share.js +29 -36
- package/lib/icon/spinner.js +29 -36
- package/lib/icon/success.js +29 -36
- package/lib/icon/switcher-loading.js +29 -36
- package/lib/icon/text-all.js +29 -36
- package/lib/icon/text-file.js +29 -36
- package/lib/icon/text-fill.js +29 -36
- package/lib/icon/transfer.js +29 -36
- package/lib/icon/tree-application-shape.js +29 -36
- package/lib/icon/unfull-screen.js +29 -36
- package/lib/icon/unvisible.js +29 -36
- package/lib/icon/up-shape.js +29 -36
- package/lib/icon/upload.js +29 -36
- package/lib/icon/video-fill.js +29 -36
- package/lib/icon/warn.js +29 -36
- package/lib/icon/weixin-pro.js +29 -36
- package/lib/icon/weixin.js +29 -36
- package/lib/image/index.js +49 -47
- package/lib/index.js +1 -1
- package/lib/info-box/index.js +62 -461
- package/lib/input/index.js +62 -60
- package/lib/link/index.js +2 -2
- package/lib/loading/index.js +22 -25
- package/lib/menu/index.js +36 -34
- package/lib/message/index.js +34 -31
- package/lib/modal/index.js +12 -14
- package/lib/navigation/index.js +7 -9
- package/lib/notify/index.js +12 -14
- package/lib/overflow-title/index.js +9 -10
- package/lib/pagination/index.js +32 -29
- package/lib/pop-confirm/index.js +4 -5
- package/lib/popover/index.js +209 -136
- package/lib/popover2/index.js +2 -2
- package/lib/process/index.js +59 -452
- package/lib/progress/index.js +16 -19
- package/lib/radio/index.js +37 -34
- package/lib/rate/index.js +12 -14
- package/lib/resize-layout/index.js +18 -20
- package/lib/scrollbar/index.js +51 -58
- package/lib/search-select/index.js +222 -595
- package/lib/select/index.js +111 -463
- package/lib/shared/index.js +83 -95
- package/lib/sideslider/index.js +43 -441
- package/lib/slider/index.js +49 -446
- package/lib/steps/index.js +60 -458
- package/lib/swiper/index.js +15 -17
- package/lib/switcher/index.js +12 -14
- package/lib/tab/index.d.ts +12 -0
- package/lib/tab/index.js +53 -45
- package/lib/tab/props.d.ts +3 -0
- package/lib/tab/tab.d.ts +6 -0
- package/lib/table/index.js +152 -501
- package/lib/tag/index.js +12 -14
- package/lib/tag-input/index.js +47 -41
- package/lib/timeline/index.js +1 -0
- package/lib/transfer/index.js +22 -17
- package/lib/tree/index.js +73 -66
- package/lib/upload/index.js +136 -487
- package/lib/virtual-render/index.js +47 -51
- package/package.json +1 -1
@@ -618,354 +618,6 @@ 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
|
-
|
969
621
|
/***/ })
|
970
622
|
|
971
623
|
/******/ });
|
@@ -1049,6 +701,7 @@ function _typeof(o) {
|
|
1049
701
|
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
1050
702
|
}, _typeof(o);
|
1051
703
|
}
|
704
|
+
|
1052
705
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
1053
706
|
|
1054
707
|
function toPrimitive(t, r) {
|
@@ -1061,29 +714,26 @@ function toPrimitive(t, r) {
|
|
1061
714
|
}
|
1062
715
|
return ("string" === r ? String : Number)(t);
|
1063
716
|
}
|
717
|
+
|
1064
718
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
1065
719
|
|
1066
720
|
|
1067
721
|
function toPropertyKey(t) {
|
1068
722
|
var i = toPrimitive(t, "string");
|
1069
|
-
return "symbol" == _typeof(i) ? i :
|
723
|
+
return "symbol" == _typeof(i) ? i : i + "";
|
1070
724
|
}
|
725
|
+
|
1071
726
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
1072
727
|
|
1073
|
-
function _defineProperty(
|
1074
|
-
|
1075
|
-
|
1076
|
-
|
1077
|
-
|
1078
|
-
|
1079
|
-
|
1080
|
-
writable: true
|
1081
|
-
});
|
1082
|
-
} else {
|
1083
|
-
obj[key] = value;
|
1084
|
-
}
|
1085
|
-
return obj;
|
728
|
+
function _defineProperty(e, r, t) {
|
729
|
+
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
730
|
+
value: t,
|
731
|
+
enumerable: !0,
|
732
|
+
configurable: !0,
|
733
|
+
writable: !0
|
734
|
+
}) : e[r] = t, e;
|
1086
735
|
}
|
736
|
+
|
1087
737
|
;// CONCATENATED MODULE: external "vue"
|
1088
738
|
var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1089
739
|
var external_vue_y = x => () => x
|
@@ -1093,9 +743,9 @@ var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x
|
|
1093
743
|
var config_provider_y = x => () => x
|
1094
744
|
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 });
|
1095
745
|
;// CONCATENATED MODULE: ../../packages/directives/src/clickoutside.ts
|
1096
|
-
function _createForOfIteratorHelper(
|
1097
|
-
function _unsupportedIterableToArray(
|
1098
|
-
function _arrayLikeToArray(
|
746
|
+
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, 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 o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
747
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
748
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
1099
749
|
/*
|
1100
750
|
* Tencent is pleased to support the open source community by making
|
1101
751
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -1378,42 +1028,47 @@ var mousewheel = {
|
|
1378
1028
|
};
|
1379
1029
|
/* harmony default export */ const src_mousewheel = ((/* unused pure expression or super */ null && (mousewheel)));
|
1380
1030
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
1381
|
-
function arrayLikeToArray_arrayLikeToArray(
|
1382
|
-
|
1383
|
-
for (var
|
1384
|
-
return
|
1031
|
+
function arrayLikeToArray_arrayLikeToArray(r, a) {
|
1032
|
+
(null == a || a > r.length) && (a = r.length);
|
1033
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
1034
|
+
return n;
|
1385
1035
|
}
|
1036
|
+
|
1386
1037
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
|
1387
1038
|
|
1388
|
-
function _arrayWithoutHoles(
|
1389
|
-
if (Array.isArray(
|
1039
|
+
function _arrayWithoutHoles(r) {
|
1040
|
+
if (Array.isArray(r)) return arrayLikeToArray_arrayLikeToArray(r);
|
1390
1041
|
}
|
1042
|
+
|
1391
1043
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/iterableToArray.js
|
1392
|
-
function _iterableToArray(
|
1393
|
-
if (typeof Symbol
|
1044
|
+
function _iterableToArray(r) {
|
1045
|
+
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
1394
1046
|
}
|
1047
|
+
|
1395
1048
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
1396
1049
|
|
1397
|
-
function unsupportedIterableToArray_unsupportedIterableToArray(
|
1398
|
-
if (
|
1399
|
-
|
1400
|
-
|
1401
|
-
|
1402
|
-
|
1403
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
1050
|
+
function unsupportedIterableToArray_unsupportedIterableToArray(r, a) {
|
1051
|
+
if (r) {
|
1052
|
+
if ("string" == typeof r) return arrayLikeToArray_arrayLikeToArray(r, a);
|
1053
|
+
var t = {}.toString.call(r).slice(8, -1);
|
1054
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? arrayLikeToArray_arrayLikeToArray(r, a) : void 0;
|
1055
|
+
}
|
1404
1056
|
}
|
1057
|
+
|
1405
1058
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
|
1406
1059
|
function _nonIterableSpread() {
|
1407
1060
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
1408
1061
|
}
|
1062
|
+
|
1409
1063
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
|
1410
1064
|
|
1411
1065
|
|
1412
1066
|
|
1413
1067
|
|
1414
|
-
function _toConsumableArray(
|
1415
|
-
return _arrayWithoutHoles(
|
1068
|
+
function _toConsumableArray(r) {
|
1069
|
+
return _arrayWithoutHoles(r) || _iterableToArray(r) || unsupportedIterableToArray_unsupportedIterableToArray(r) || _nonIterableSpread();
|
1416
1070
|
}
|
1071
|
+
|
1417
1072
|
;// CONCATENATED MODULE: external "@popperjs/core"
|
1418
1073
|
var core_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1419
1074
|
var core_y = x => () => x
|
@@ -2069,9 +1724,10 @@ function resetTriggers (elem) {
|
|
2069
1724
|
|
2070
1725
|
|
2071
1726
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
2072
|
-
function _arrayWithHoles(
|
2073
|
-
if (Array.isArray(
|
1727
|
+
function _arrayWithHoles(r) {
|
1728
|
+
if (Array.isArray(r)) return r;
|
2074
1729
|
}
|
1730
|
+
|
2075
1731
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
2076
1732
|
function _iterableToArrayLimit(r, l) {
|
2077
1733
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
@@ -2100,52 +1756,48 @@ function _iterableToArrayLimit(r, l) {
|
|
2100
1756
|
return a;
|
2101
1757
|
}
|
2102
1758
|
}
|
1759
|
+
|
2103
1760
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
2104
1761
|
function _nonIterableRest() {
|
2105
1762
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
2106
1763
|
}
|
1764
|
+
|
2107
1765
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
2108
1766
|
|
2109
1767
|
|
2110
1768
|
|
2111
1769
|
|
2112
|
-
function _slicedToArray(
|
2113
|
-
return _arrayWithHoles(
|
1770
|
+
function _slicedToArray(r, e) {
|
1771
|
+
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || unsupportedIterableToArray_unsupportedIterableToArray(r, e) || _nonIterableRest();
|
2114
1772
|
}
|
1773
|
+
|
2115
1774
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
|
2116
|
-
function asyncGeneratorStep(
|
1775
|
+
function asyncGeneratorStep(n, t, e, r, o, a, c) {
|
2117
1776
|
try {
|
2118
|
-
var
|
2119
|
-
|
2120
|
-
} catch (
|
2121
|
-
|
2122
|
-
return;
|
2123
|
-
}
|
2124
|
-
if (info.done) {
|
2125
|
-
resolve(value);
|
2126
|
-
} else {
|
2127
|
-
Promise.resolve(value).then(_next, _throw);
|
1777
|
+
var i = n[a](c),
|
1778
|
+
u = i.value;
|
1779
|
+
} catch (n) {
|
1780
|
+
return void e(n);
|
2128
1781
|
}
|
1782
|
+
i.done ? t(u) : Promise.resolve(u).then(r, o);
|
2129
1783
|
}
|
2130
|
-
function _asyncToGenerator(
|
1784
|
+
function _asyncToGenerator(n) {
|
2131
1785
|
return function () {
|
2132
|
-
var
|
2133
|
-
|
2134
|
-
return new Promise(function (
|
2135
|
-
var
|
2136
|
-
function _next(
|
2137
|
-
asyncGeneratorStep(
|
1786
|
+
var t = this,
|
1787
|
+
e = arguments;
|
1788
|
+
return new Promise(function (r, o) {
|
1789
|
+
var a = n.apply(t, e);
|
1790
|
+
function _next(n) {
|
1791
|
+
asyncGeneratorStep(a, r, o, _next, _throw, "next", n);
|
2138
1792
|
}
|
2139
|
-
function _throw(
|
2140
|
-
asyncGeneratorStep(
|
1793
|
+
function _throw(n) {
|
1794
|
+
asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
|
2141
1795
|
}
|
2142
|
-
_next(
|
1796
|
+
_next(void 0);
|
2143
1797
|
});
|
2144
1798
|
};
|
2145
1799
|
}
|
2146
|
-
|
2147
|
-
var regenerator = __webpack_require__(2841);
|
2148
|
-
var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
|
1800
|
+
|
2149
1801
|
;// CONCATENATED MODULE: external "../popover/popover.less"
|
2150
1802
|
var popover_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
2151
1803
|
var popover_less_y = x => () => x
|
@@ -2167,30 +1819,24 @@ var radio_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
|
2167
1819
|
var radio_less_y = x => () => x
|
2168
1820
|
const radio_less_namespaceObject = radio_less_x({ });
|
2169
1821
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
2170
|
-
function _classCallCheck(
|
2171
|
-
if (!(
|
2172
|
-
throw new TypeError("Cannot call a class as a function");
|
2173
|
-
}
|
1822
|
+
function _classCallCheck(a, n) {
|
1823
|
+
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
|
2174
1824
|
}
|
1825
|
+
|
2175
1826
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/createClass.js
|
2176
1827
|
|
2177
|
-
function _defineProperties(
|
2178
|
-
for (var
|
2179
|
-
var
|
2180
|
-
|
2181
|
-
descriptor.configurable = true;
|
2182
|
-
if ("value" in descriptor) descriptor.writable = true;
|
2183
|
-
Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor);
|
1828
|
+
function _defineProperties(e, r) {
|
1829
|
+
for (var t = 0; t < r.length; t++) {
|
1830
|
+
var o = r[t];
|
1831
|
+
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, toPropertyKey(o.key), o);
|
2184
1832
|
}
|
2185
1833
|
}
|
2186
|
-
function _createClass(
|
2187
|
-
|
2188
|
-
|
2189
|
-
|
2190
|
-
writable: false
|
2191
|
-
});
|
2192
|
-
return Constructor;
|
1834
|
+
function _createClass(e, r, t) {
|
1835
|
+
return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
|
1836
|
+
writable: !1
|
1837
|
+
}), e;
|
2193
1838
|
}
|
1839
|
+
|
2194
1840
|
;// CONCATENATED MODULE: ../../packages/search-select/src/utils.ts
|
2195
1841
|
|
2196
1842
|
|
@@ -2271,7 +1917,7 @@ var SelectedItem = /*#__PURE__*/function () {
|
|
2271
1917
|
this.logical = searchItem.logical || SearchLogical.OR;
|
2272
1918
|
this.type = type;
|
2273
1919
|
}
|
2274
|
-
_createClass(SelectedItem, [{
|
1920
|
+
return _createClass(SelectedItem, [{
|
2275
1921
|
key: "multiple",
|
2276
1922
|
get: function get() {
|
2277
1923
|
return !!this.searchItem.multiple;
|
@@ -2453,7 +2099,6 @@ var SelectedItem = /*#__PURE__*/function () {
|
|
2453
2099
|
});
|
2454
2100
|
}
|
2455
2101
|
}]);
|
2456
|
-
return SelectedItem;
|
2457
2102
|
}();
|
2458
2103
|
;// CONCATENATED MODULE: ../../packages/search-select/src/menu.tsx
|
2459
2104
|
|
@@ -2486,10 +2131,9 @@ var SelectedItem = /*#__PURE__*/function () {
|
|
2486
2131
|
|
2487
2132
|
|
2488
2133
|
|
2489
|
-
|
2490
2134
|
// import { Done } from '@bkui-vue/icon';
|
2491
2135
|
|
2492
|
-
/* harmony default export */ const menu = (
|
2136
|
+
/* harmony default export */ const menu = (defineComponent({
|
2493
2137
|
name: 'SearchSelectMenu',
|
2494
2138
|
props: {
|
2495
2139
|
list: {
|
@@ -2540,7 +2184,7 @@ var SelectedItem = /*#__PURE__*/function () {
|
|
2540
2184
|
var t = (0,config_provider_namespaceObject.useLocale)('searchSelect');
|
2541
2185
|
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
2542
2186
|
resolveClassName = _usePrefix.resolveClassName;
|
2543
|
-
var localFooterBtns =
|
2187
|
+
var localFooterBtns = computed(function () {
|
2544
2188
|
if (props.footerBtns === undefined || props.footerBtns.length === 0) {
|
2545
2189
|
return [{
|
2546
2190
|
id: 'confirm',
|
@@ -2553,7 +2197,7 @@ var SelectedItem = /*#__PURE__*/function () {
|
|
2553
2197
|
}
|
2554
2198
|
return props.footerBtns;
|
2555
2199
|
});
|
2556
|
-
var resolveContentStyles =
|
2200
|
+
var resolveContentStyles = computed(function () {
|
2557
2201
|
return {
|
2558
2202
|
maxHeight: "".concat(props.maxHeight, "px")
|
2559
2203
|
};
|
@@ -2568,7 +2212,7 @@ var SelectedItem = /*#__PURE__*/function () {
|
|
2568
2212
|
function handleClickFooterBtn(item) {
|
2569
2213
|
emit('footerClick', item);
|
2570
2214
|
}
|
2571
|
-
var filterList =
|
2215
|
+
var filterList = computed(function () {
|
2572
2216
|
var _props$list, _props$keyword;
|
2573
2217
|
if (!((_props$list = props.list) !== null && _props$list !== void 0 && _props$list.length)) return [];
|
2574
2218
|
if (!((_props$keyword = props.keyword) !== null && _props$keyword !== void 0 && _props$keyword.length)) return props.list;
|
@@ -2702,10 +2346,11 @@ var SelectedItem = /*#__PURE__*/function () {
|
|
2702
2346
|
|
2703
2347
|
|
2704
2348
|
|
2705
|
-
function input_createForOfIteratorHelper(
|
2706
|
-
function input_unsupportedIterableToArray(
|
2707
|
-
function input_arrayLikeToArray(
|
2708
|
-
|
2349
|
+
function input_createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = input_unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, 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 o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
2350
|
+
function input_unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return input_arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? input_arrayLikeToArray(r, a) : void 0; } }
|
2351
|
+
function input_arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
2352
|
+
function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = "function" == typeof Symbol ? Symbol : {}, n = r.iterator || "@@iterator", o = r.toStringTag || "@@toStringTag"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, "_invoke", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError("Generator is already running"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = "next"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i["return"]) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine2(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, "Generator"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, "toString", function () { return "[object Generator]"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }
|
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); }
|
2709
2354
|
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; }
|
2710
2355
|
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; }
|
2711
2356
|
/*
|
@@ -3022,68 +2667,65 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
|
|
3022
2667
|
return _handleKeyEnter.apply(this, arguments);
|
3023
2668
|
}
|
3024
2669
|
function _handleKeyEnter() {
|
3025
|
-
_handleKeyEnter = _asyncToGenerator(
|
2670
|
+
_handleKeyEnter = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(event) {
|
3026
2671
|
var _usingItem$value6, _usingItem$value7, _usingItem$value8;
|
3027
2672
|
var isValid;
|
3028
|
-
return
|
3029
|
-
while (1) switch (_context.
|
2673
|
+
return _regenerator().w(function (_context) {
|
2674
|
+
while (1) switch (_context.n) {
|
3030
2675
|
case 0:
|
3031
2676
|
event === null || event === void 0 || event.preventDefault();
|
3032
2677
|
// 异步延迟解决确保响应时机问题
|
3033
|
-
_context.
|
2678
|
+
_context.n = 1;
|
3034
2679
|
return new Promise(function (resolve) {
|
3035
2680
|
return setTimeout(resolve, 0);
|
3036
2681
|
});
|
3037
|
-
case
|
2682
|
+
case 1:
|
3038
2683
|
if (usingItem.value) {
|
3039
|
-
_context.
|
2684
|
+
_context.n = 4;
|
3040
2685
|
break;
|
3041
2686
|
}
|
3042
2687
|
if (!(!keyword.value || props.valueBehavior === ValueBehavior.NEED_KEY)) {
|
3043
|
-
_context.
|
2688
|
+
_context.n = 2;
|
3044
2689
|
break;
|
3045
2690
|
}
|
3046
|
-
return _context.
|
3047
|
-
case
|
3048
|
-
_context.
|
2691
|
+
return _context.a(2);
|
2692
|
+
case 2:
|
2693
|
+
_context.n = 3;
|
3049
2694
|
return enterNewItemSelected();
|
3050
|
-
case
|
3051
|
-
return _context.
|
3052
|
-
case
|
2695
|
+
case 3:
|
2696
|
+
return _context.a(2, _context.v);
|
2697
|
+
case 4:
|
3053
2698
|
if (!keyword.value) {
|
3054
|
-
_context.
|
2699
|
+
_context.n = 6;
|
3055
2700
|
break;
|
3056
2701
|
}
|
3057
|
-
_context.
|
2702
|
+
_context.n = 5;
|
3058
2703
|
return enterExistingItemSelected();
|
3059
|
-
case
|
3060
|
-
return _context.
|
3061
|
-
case
|
2704
|
+
case 5:
|
2705
|
+
return _context.a(2, _context.v);
|
2706
|
+
case 6:
|
3062
2707
|
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)) {
|
3063
|
-
_context.
|
2708
|
+
_context.n = 7;
|
3064
2709
|
break;
|
3065
2710
|
}
|
3066
2711
|
showNoSelectValueError.value = !showNoSelectValueError.value;
|
3067
|
-
return _context.
|
3068
|
-
case
|
3069
|
-
_context.
|
2712
|
+
return _context.a(2, false);
|
2713
|
+
case 7:
|
2714
|
+
_context.n = 8;
|
3070
2715
|
return validateUsingItemValues();
|
3071
|
-
case
|
3072
|
-
isValid = _context.
|
2716
|
+
case 8:
|
2717
|
+
isValid = _context.v;
|
3073
2718
|
if (isValid) {
|
3074
|
-
_context.
|
2719
|
+
_context.n = 9;
|
3075
2720
|
break;
|
3076
2721
|
}
|
3077
|
-
return _context.
|
3078
|
-
case
|
2722
|
+
return _context.a(2, false);
|
2723
|
+
case 9:
|
3079
2724
|
if ((_usingItem$value8 = usingItem.value) !== null && _usingItem$value8 !== void 0 && _usingItem$value8.isCustomMenu) {
|
3080
2725
|
showPopover.value = false;
|
3081
2726
|
}
|
3082
2727
|
setSelectedItem();
|
3083
|
-
return _context.
|
3084
|
-
case 24:
|
3085
|
-
case "end":
|
3086
|
-
return _context.stop();
|
2728
|
+
return _context.a(2, false);
|
3087
2729
|
}
|
3088
2730
|
}, _callee);
|
3089
2731
|
}));
|
@@ -3129,14 +2771,14 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
|
|
3129
2771
|
return _handleSelectItem.apply(this, arguments);
|
3130
2772
|
}
|
3131
2773
|
function _handleSelectItem() {
|
3132
|
-
_handleSelectItem = _asyncToGenerator(
|
3133
|
-
var _item$value, _usingItem$value9, _usingItem$
|
3134
|
-
var _item$realId, selectedItem, _usingItem$
|
3135
|
-
return
|
3136
|
-
while (1) switch (_context2.
|
2774
|
+
_handleSelectItem = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(item, type) {
|
2775
|
+
var _item$value, _usingItem$value9, _usingItem$value10;
|
2776
|
+
var _item$realId, selectedItem, _usingItem$value0, _usingItem$value1, isCondition;
|
2777
|
+
return _regenerator().w(function (_context2) {
|
2778
|
+
while (1) switch (_context2.n) {
|
3137
2779
|
case 0:
|
3138
2780
|
if (!((_item$value = item.value) !== null && _item$value !== void 0 && _item$value.id)) {
|
3139
|
-
_context2.
|
2781
|
+
_context2.n = 4;
|
3140
2782
|
break;
|
3141
2783
|
}
|
3142
2784
|
selectedItem = new SelectedItem(input_objectSpread(input_objectSpread({}, item), {}, {
|
@@ -3144,37 +2786,37 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
|
|
3144
2786
|
}), type);
|
3145
2787
|
selectedItem.addValues(item.value.name, false);
|
3146
2788
|
if (!(props.valueBehavior === ValueBehavior.NEED_KEY && menuHoverId.value)) {
|
3147
|
-
_context2.
|
2789
|
+
_context2.n = 1;
|
3148
2790
|
break;
|
3149
2791
|
}
|
3150
2792
|
setSelectedItem(selectedItem);
|
3151
2793
|
setInputFocus(true);
|
3152
2794
|
menuHoverId.value = '';
|
3153
|
-
return _context2.
|
3154
|
-
case
|
2795
|
+
return _context2.a(2);
|
2796
|
+
case 1:
|
3155
2797
|
usingItem.value = selectedItem;
|
3156
|
-
_context2.
|
2798
|
+
_context2.n = 2;
|
3157
2799
|
return validateUsingItemValues(usingItem.value.values);
|
3158
|
-
case
|
3159
|
-
if (_context2.
|
3160
|
-
_context2.
|
2800
|
+
case 2:
|
2801
|
+
if (_context2.v) {
|
2802
|
+
_context2.n = 3;
|
3161
2803
|
break;
|
3162
2804
|
}
|
3163
2805
|
usingItem.value = null;
|
3164
|
-
return _context2.
|
3165
|
-
case
|
2806
|
+
return _context2.a(2);
|
2807
|
+
case 3:
|
3166
2808
|
setSelectedItem(usingItem.value);
|
3167
2809
|
setInputFocus(true);
|
3168
2810
|
menuHoverId.value = '';
|
3169
|
-
return _context2.
|
3170
|
-
case
|
2811
|
+
return _context2.a(2);
|
2812
|
+
case 4:
|
3171
2813
|
if (!(!usingItem.value || ((_usingItem$value9 = usingItem.value) === null || _usingItem$value9 === void 0 ? void 0 : _usingItem$value9.type) === 'condition')) {
|
3172
|
-
_context2.
|
2814
|
+
_context2.n = 5;
|
3173
2815
|
break;
|
3174
2816
|
}
|
3175
|
-
usingItem.value = new SelectedItem(item, type !== null && type !== void 0 ? type : (_usingItem$
|
2817
|
+
usingItem.value = new SelectedItem(item, type !== null && type !== void 0 ? type : (_usingItem$value0 = usingItem.value) === null || _usingItem$value0 === void 0 ? void 0 : _usingItem$value0.type);
|
3176
2818
|
keyword.value = '';
|
3177
|
-
isCondition = ((_usingItem$
|
2819
|
+
isCondition = ((_usingItem$value1 = usingItem.value) === null || _usingItem$value1 === void 0 ? void 0 : _usingItem$value1.type) === 'condition';
|
3178
2820
|
if (!isCondition) {
|
3179
2821
|
emit('selectKey', {
|
3180
2822
|
id: item.id,
|
@@ -3188,30 +2830,29 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
|
|
3188
2830
|
showPopover.value = isCondition || !!usingItem.value.children.length;
|
3189
2831
|
setInputFocus(props.valueBehavior === ValueBehavior.NEED_KEY && !!menuHoverId.value);
|
3190
2832
|
typeof props.getMenuList === 'function' && (0,external_vue_namespaceObject.nextTick)(setCursorToEnd);
|
3191
|
-
return _context2.
|
3192
|
-
case
|
2833
|
+
return _context2.a(2);
|
2834
|
+
case 5:
|
3193
2835
|
if (usingItem.value) {
|
3194
2836
|
usingItem.value.addValue(item);
|
3195
2837
|
(0,external_vue_namespaceObject.nextTick)(deleteInputTextNode);
|
3196
2838
|
}
|
3197
|
-
_context2.
|
2839
|
+
_context2.n = 6;
|
3198
2840
|
return validateUsingItemValues(usingItem.value.values);
|
3199
|
-
case
|
3200
|
-
if (_context2.
|
3201
|
-
_context2.
|
2841
|
+
case 6:
|
2842
|
+
if (_context2.v) {
|
2843
|
+
_context2.n = 7;
|
3202
2844
|
break;
|
3203
2845
|
}
|
3204
|
-
return _context2.
|
3205
|
-
case
|
2846
|
+
return _context2.a(2);
|
2847
|
+
case 7:
|
3206
2848
|
if (!usingItem.value.multiple) {
|
3207
2849
|
setSelectedItem();
|
3208
2850
|
}
|
3209
|
-
if (props.valueBehavior === ValueBehavior.NEED_KEY && (_usingItem$
|
2851
|
+
if (props.valueBehavior === ValueBehavior.NEED_KEY && (_usingItem$value10 = usingItem.value) !== null && _usingItem$value10 !== void 0 && _usingItem$value10.multiple) {
|
3210
2852
|
setInputFocus();
|
3211
2853
|
}
|
3212
|
-
case
|
3213
|
-
|
3214
|
-
return _context2.stop();
|
2854
|
+
case 8:
|
2855
|
+
return _context2.a(2);
|
3215
2856
|
}
|
3216
2857
|
}, _callee2);
|
3217
2858
|
}));
|
@@ -3243,42 +2884,39 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
|
|
3243
2884
|
return _validateValues.apply(this, arguments);
|
3244
2885
|
}
|
3245
2886
|
function _validateValues() {
|
3246
|
-
_validateValues = _asyncToGenerator(
|
3247
|
-
var validateStr;
|
3248
|
-
return
|
3249
|
-
while (1) switch (_context3.
|
2887
|
+
_validateValues = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(searchItem, value) {
|
2888
|
+
var validateStr, _t;
|
2889
|
+
return _regenerator().w(function (_context3) {
|
2890
|
+
while (1) switch (_context3.n) {
|
3250
2891
|
case 0:
|
3251
2892
|
if (!(typeof props.validateValues === 'function')) {
|
3252
|
-
_context3.
|
2893
|
+
_context3.n = 5;
|
3253
2894
|
break;
|
3254
2895
|
}
|
3255
2896
|
validateStr = '';
|
3256
|
-
_context3.
|
3257
|
-
_context3.
|
2897
|
+
_context3.p = 1;
|
2898
|
+
_context3.n = 2;
|
3258
2899
|
return props.validateValues(searchItem !== null && searchItem !== void 0 ? searchItem : null, value);
|
3259
|
-
case
|
3260
|
-
validateStr = _context3.
|
3261
|
-
_context3.
|
2900
|
+
case 2:
|
2901
|
+
validateStr = _context3.v;
|
2902
|
+
_context3.n = 4;
|
3262
2903
|
break;
|
3263
|
-
case
|
3264
|
-
_context3.
|
3265
|
-
|
2904
|
+
case 3:
|
2905
|
+
_context3.p = 3;
|
2906
|
+
_t = _context3.v;
|
3266
2907
|
validateStr = false;
|
3267
|
-
case
|
2908
|
+
case 4:
|
3268
2909
|
if (!(typeof validateStr === 'string' || validateStr === false)) {
|
3269
|
-
_context3.
|
2910
|
+
_context3.n = 5;
|
3270
2911
|
break;
|
3271
2912
|
}
|
3272
2913
|
onValidate(validateStr || '校验错误');
|
3273
|
-
return _context3.
|
3274
|
-
case
|
2914
|
+
return _context3.a(2, false);
|
2915
|
+
case 5:
|
3275
2916
|
onValidate('');
|
3276
|
-
return _context3.
|
3277
|
-
case 16:
|
3278
|
-
case "end":
|
3279
|
-
return _context3.stop();
|
2917
|
+
return _context3.a(2, true);
|
3280
2918
|
}
|
3281
|
-
}, _callee3, null, [[
|
2919
|
+
}, _callee3, null, [[1, 3]]);
|
3282
2920
|
}));
|
3283
2921
|
return _validateValues.apply(this, arguments);
|
3284
2922
|
}
|
@@ -3286,35 +2924,32 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
|
|
3286
2924
|
return _validateUsingItemValues.apply(this, arguments);
|
3287
2925
|
}
|
3288
2926
|
function _validateUsingItemValues() {
|
3289
|
-
_validateUsingItemValues = _asyncToGenerator(
|
3290
|
-
var _usingItem$
|
3291
|
-
return
|
3292
|
-
while (1) switch (_context4.
|
2927
|
+
_validateUsingItemValues = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4(preValues) {
|
2928
|
+
var _usingItem$value11, searchItem, validate, values;
|
2929
|
+
return _regenerator().w(function (_context4) {
|
2930
|
+
while (1) switch (_context4.n) {
|
3293
2931
|
case 0:
|
3294
2932
|
if (usingItem.value) {
|
3295
|
-
_context4.
|
2933
|
+
_context4.n = 2;
|
3296
2934
|
break;
|
3297
2935
|
}
|
3298
|
-
_context4.
|
2936
|
+
_context4.n = 1;
|
3299
2937
|
return validateValues(null, preValues);
|
3300
|
-
case
|
3301
|
-
return _context4.
|
3302
|
-
case
|
3303
|
-
_usingItem$
|
2938
|
+
case 1:
|
2939
|
+
return _context4.a(2, _context4.v);
|
2940
|
+
case 2:
|
2941
|
+
_usingItem$value11 = usingItem.value, searchItem = _usingItem$value11.searchItem, validate = _usingItem$value11.validate, values = _usingItem$value11.values;
|
3304
2942
|
if (!(validate && typeof props.validateValues === 'function')) {
|
3305
|
-
_context4.
|
2943
|
+
_context4.n = 4;
|
3306
2944
|
break;
|
3307
2945
|
}
|
3308
|
-
_context4.
|
2946
|
+
_context4.n = 3;
|
3309
2947
|
return validateValues(searchItem, preValues !== null && preValues !== void 0 ? preValues : values);
|
3310
|
-
case
|
3311
|
-
return _context4.
|
3312
|
-
case
|
2948
|
+
case 3:
|
2949
|
+
return _context4.a(2, _context4.v);
|
2950
|
+
case 4:
|
3313
2951
|
onValidate('');
|
3314
|
-
return _context4.
|
3315
|
-
case 11:
|
3316
|
-
case "end":
|
3317
|
-
return _context4.stop();
|
2952
|
+
return _context4.a(2, true);
|
3318
2953
|
}
|
3319
2954
|
}, _callee4);
|
3320
2955
|
}));
|
@@ -3324,28 +2959,28 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
|
|
3324
2959
|
return _setMenuList.apply(this, arguments);
|
3325
2960
|
}
|
3326
2961
|
function _setMenuList() {
|
3327
|
-
_setMenuList = _asyncToGenerator(
|
2962
|
+
_setMenuList = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee5() {
|
3328
2963
|
var _props$data, _usingItem$value$sear, _usingItem$value$valu;
|
3329
|
-
var list, _usingItem$
|
3330
|
-
return
|
3331
|
-
while (1) switch (_context5.
|
2964
|
+
var list, _usingItem$value12, _keyword$value3, _iterator, _step, item, isMatched, _list, filterList, _iterator2, _step2, child, _list2, _filterList, _iterator3, _step3, _child, hoverItem;
|
2965
|
+
return _regenerator().w(function (_context5) {
|
2966
|
+
while (1) switch (_context5.n) {
|
3332
2967
|
case 0:
|
3333
2968
|
list = [];
|
3334
2969
|
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)))) {
|
3335
|
-
_context5.
|
2970
|
+
_context5.n = 2;
|
3336
2971
|
break;
|
3337
2972
|
}
|
3338
2973
|
loading.value = true;
|
3339
|
-
_context5.
|
3340
|
-
return props.getMenuList((_usingItem$
|
2974
|
+
_context5.n = 1;
|
2975
|
+
return props.getMenuList((_usingItem$value12 = usingItem.value) === null || _usingItem$value12 === void 0 ? void 0 : _usingItem$value12.searchItem, keyword.value.trim())["catch"](function () {
|
3341
2976
|
return [];
|
3342
2977
|
});
|
3343
|
-
case
|
3344
|
-
list = _context5.
|
2978
|
+
case 1:
|
2979
|
+
list = _context5.v;
|
3345
2980
|
loading.value = false;
|
3346
|
-
_context5.
|
2981
|
+
_context5.n = 3;
|
3347
2982
|
break;
|
3348
|
-
case
|
2983
|
+
case 2:
|
3349
2984
|
if (!(usingItem !== null && usingItem !== void 0 && usingItem.value)) {
|
3350
2985
|
if (!((_keyword$value3 = keyword.value) !== null && _keyword$value3 !== void 0 && _keyword$value3.length)) {
|
3351
2986
|
list = props.data.filter(function (item) {
|
@@ -3431,7 +3066,7 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
|
|
3431
3066
|
return item.name.toLocaleLowerCase().includes(keyword.value.toLocaleLowerCase().trim());
|
3432
3067
|
});
|
3433
3068
|
}
|
3434
|
-
case
|
3069
|
+
case 3:
|
3435
3070
|
menuList.value = list;
|
3436
3071
|
console.log('list', list);
|
3437
3072
|
if (props.valueBehavior === ValueBehavior.NEED_KEY) {
|
@@ -3444,9 +3079,8 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
|
|
3444
3079
|
menuHoverId.value = hoverItem.id;
|
3445
3080
|
}
|
3446
3081
|
}
|
3447
|
-
case
|
3448
|
-
|
3449
|
-
return _context5.stop();
|
3082
|
+
case 4:
|
3083
|
+
return _context5.a(2);
|
3450
3084
|
}
|
3451
3085
|
}, _callee5);
|
3452
3086
|
}));
|
@@ -3456,33 +3090,30 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
|
|
3456
3090
|
return _enterNewItemSelected.apply(this, arguments);
|
3457
3091
|
}
|
3458
3092
|
function _enterNewItemSelected() {
|
3459
|
-
_enterNewItemSelected = _asyncToGenerator(
|
3093
|
+
_enterNewItemSelected = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee6() {
|
3460
3094
|
var formatItem, valueList, res;
|
3461
|
-
return
|
3462
|
-
while (1) switch (_context6.
|
3095
|
+
return _regenerator().w(function (_context6) {
|
3096
|
+
while (1) switch (_context6.n) {
|
3463
3097
|
case 0:
|
3464
3098
|
formatItem = str2SelectedItem(keyword.value);
|
3465
3099
|
valueList = (formatItem === null || formatItem === void 0 ? void 0 : formatItem.values) || [{
|
3466
3100
|
id: keyword.value,
|
3467
3101
|
name: keyword.value
|
3468
3102
|
}];
|
3469
|
-
_context6.
|
3103
|
+
_context6.n = 1;
|
3470
3104
|
return validateUsingItemValues(valueList);
|
3471
|
-
case
|
3472
|
-
res = _context6.
|
3105
|
+
case 1:
|
3106
|
+
res = _context6.v;
|
3473
3107
|
if (res) {
|
3474
|
-
_context6.
|
3108
|
+
_context6.n = 2;
|
3475
3109
|
break;
|
3476
3110
|
}
|
3477
|
-
return _context6.
|
3478
|
-
case
|
3111
|
+
return _context6.a(2);
|
3112
|
+
case 2:
|
3479
3113
|
emit('add', formatItem || new SelectedItem(input_objectSpread({}, valueList[0]), 'text'));
|
3480
3114
|
keyword.value = '';
|
3481
3115
|
setMenuList();
|
3482
|
-
return _context6.
|
3483
|
-
case 11:
|
3484
|
-
case "end":
|
3485
|
-
return _context6.stop();
|
3116
|
+
return _context6.a(2, true);
|
3486
3117
|
}
|
3487
3118
|
}, _callee6);
|
3488
3119
|
}));
|
@@ -3492,10 +3123,10 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
|
|
3492
3123
|
return _enterExistingItemSelected.apply(this, arguments);
|
3493
3124
|
}
|
3494
3125
|
function _enterExistingItemSelected() {
|
3495
|
-
_enterExistingItemSelected = _asyncToGenerator(
|
3126
|
+
_enterExistingItemSelected = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee7() {
|
3496
3127
|
var valueList, formatItem, isValid;
|
3497
|
-
return
|
3498
|
-
while (1) switch (_context7.
|
3128
|
+
return _regenerator().w(function (_context7) {
|
3129
|
+
while (1) switch (_context7.n) {
|
3499
3130
|
case 0:
|
3500
3131
|
valueList = [];
|
3501
3132
|
if (usingItem.value.isSpecialType()) {
|
@@ -3506,16 +3137,16 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
|
|
3506
3137
|
}
|
3507
3138
|
}
|
3508
3139
|
valueList = valueList.length ? valueList : usingItem.value.str2Values(keyword.value);
|
3509
|
-
_context7.
|
3140
|
+
_context7.n = 1;
|
3510
3141
|
return validateUsingItemValues(valueList);
|
3511
|
-
case
|
3512
|
-
isValid = _context7.
|
3142
|
+
case 1:
|
3143
|
+
isValid = _context7.v;
|
3513
3144
|
if (isValid) {
|
3514
|
-
_context7.
|
3145
|
+
_context7.n = 2;
|
3515
3146
|
break;
|
3516
3147
|
}
|
3517
|
-
return _context7.
|
3518
|
-
case
|
3148
|
+
return _context7.a(2);
|
3149
|
+
case 2:
|
3519
3150
|
if (usingItem.value.type === 'text') {
|
3520
3151
|
usingItem.value.name = keyword.value;
|
3521
3152
|
usingItem.value.id = keyword.value;
|
@@ -3526,10 +3157,7 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
|
|
3526
3157
|
keyword.value = '';
|
3527
3158
|
usingItem.value = null;
|
3528
3159
|
setInputFocus(true);
|
3529
|
-
return _context7.
|
3530
|
-
case 14:
|
3531
|
-
case "end":
|
3532
|
-
return _context7.stop();
|
3160
|
+
return _context7.a(2, true);
|
3533
3161
|
}
|
3534
3162
|
}, _callee7);
|
3535
3163
|
}));
|
@@ -3631,20 +3259,19 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
|
|
3631
3259
|
return _inputEnterForWrapper.apply(this, arguments);
|
3632
3260
|
}
|
3633
3261
|
function _inputEnterForWrapper() {
|
3634
|
-
_inputEnterForWrapper = _asyncToGenerator(
|
3635
|
-
return
|
3636
|
-
while (1) switch (_context8.
|
3262
|
+
_inputEnterForWrapper = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee8() {
|
3263
|
+
return _regenerator().w(function (_context8) {
|
3264
|
+
while (1) switch (_context8.n) {
|
3637
3265
|
case 0:
|
3638
|
-
_context8.
|
3266
|
+
_context8.n = 1;
|
3639
3267
|
return handleKeyEnter().then(function (v) {
|
3640
3268
|
return v && clearInput();
|
3641
3269
|
});
|
3642
|
-
case
|
3270
|
+
case 1:
|
3643
3271
|
showPopover.value = false;
|
3644
3272
|
inputRef.value.blur();
|
3645
|
-
case
|
3646
|
-
|
3647
|
-
return _context8.stop();
|
3273
|
+
case 2:
|
3274
|
+
return _context8.a(2);
|
3648
3275
|
}
|
3649
3276
|
}, _callee8);
|
3650
3277
|
}));
|
@@ -4010,9 +3637,9 @@ function selected_objectSpread(e) { for (var r = 1; r < arguments.length; r++) {
|
|
4010
3637
|
|
4011
3638
|
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; }
|
4012
3639
|
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; }
|
4013
|
-
function search_select_createForOfIteratorHelper(
|
4014
|
-
function search_select_unsupportedIterableToArray(
|
4015
|
-
function search_select_arrayLikeToArray(
|
3640
|
+
function search_select_createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = search_select_unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, 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 o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
3641
|
+
function search_select_unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return search_select_arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? search_select_arrayLikeToArray(r, a) : void 0; } }
|
3642
|
+
function search_select_arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
4016
3643
|
/*
|
4017
3644
|
* Tencent is pleased to support the open source community by making
|
4018
3645
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|