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
package/lib/upload/index.js
CHANGED
@@ -752,354 +752,6 @@ import "../button/button.less";
|
|
752
752
|
}));
|
753
753
|
|
754
754
|
|
755
|
-
/***/ }),
|
756
|
-
|
757
|
-
/***/ 7609:
|
758
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
759
|
-
|
760
|
-
var _typeof = (__webpack_require__(7425)["default"]);
|
761
|
-
function _regeneratorRuntime() {
|
762
|
-
"use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
763
|
-
module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
|
764
|
-
return e;
|
765
|
-
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
766
|
-
var t,
|
767
|
-
e = {},
|
768
|
-
r = Object.prototype,
|
769
|
-
n = r.hasOwnProperty,
|
770
|
-
o = Object.defineProperty || function (t, e, r) {
|
771
|
-
t[e] = r.value;
|
772
|
-
},
|
773
|
-
i = "function" == typeof Symbol ? Symbol : {},
|
774
|
-
a = i.iterator || "@@iterator",
|
775
|
-
c = i.asyncIterator || "@@asyncIterator",
|
776
|
-
u = i.toStringTag || "@@toStringTag";
|
777
|
-
function define(t, e, r) {
|
778
|
-
return Object.defineProperty(t, e, {
|
779
|
-
value: r,
|
780
|
-
enumerable: !0,
|
781
|
-
configurable: !0,
|
782
|
-
writable: !0
|
783
|
-
}), t[e];
|
784
|
-
}
|
785
|
-
try {
|
786
|
-
define({}, "");
|
787
|
-
} catch (t) {
|
788
|
-
define = function define(t, e, r) {
|
789
|
-
return t[e] = r;
|
790
|
-
};
|
791
|
-
}
|
792
|
-
function wrap(t, e, r, n) {
|
793
|
-
var i = e && e.prototype instanceof Generator ? e : Generator,
|
794
|
-
a = Object.create(i.prototype),
|
795
|
-
c = new Context(n || []);
|
796
|
-
return o(a, "_invoke", {
|
797
|
-
value: makeInvokeMethod(t, r, c)
|
798
|
-
}), a;
|
799
|
-
}
|
800
|
-
function tryCatch(t, e, r) {
|
801
|
-
try {
|
802
|
-
return {
|
803
|
-
type: "normal",
|
804
|
-
arg: t.call(e, r)
|
805
|
-
};
|
806
|
-
} catch (t) {
|
807
|
-
return {
|
808
|
-
type: "throw",
|
809
|
-
arg: t
|
810
|
-
};
|
811
|
-
}
|
812
|
-
}
|
813
|
-
e.wrap = wrap;
|
814
|
-
var h = "suspendedStart",
|
815
|
-
l = "suspendedYield",
|
816
|
-
f = "executing",
|
817
|
-
s = "completed",
|
818
|
-
y = {};
|
819
|
-
function Generator() {}
|
820
|
-
function GeneratorFunction() {}
|
821
|
-
function GeneratorFunctionPrototype() {}
|
822
|
-
var p = {};
|
823
|
-
define(p, a, function () {
|
824
|
-
return this;
|
825
|
-
});
|
826
|
-
var d = Object.getPrototypeOf,
|
827
|
-
v = d && d(d(values([])));
|
828
|
-
v && v !== r && n.call(v, a) && (p = v);
|
829
|
-
var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
|
830
|
-
function defineIteratorMethods(t) {
|
831
|
-
["next", "throw", "return"].forEach(function (e) {
|
832
|
-
define(t, e, function (t) {
|
833
|
-
return this._invoke(e, t);
|
834
|
-
});
|
835
|
-
});
|
836
|
-
}
|
837
|
-
function AsyncIterator(t, e) {
|
838
|
-
function invoke(r, o, i, a) {
|
839
|
-
var c = tryCatch(t[r], t, o);
|
840
|
-
if ("throw" !== c.type) {
|
841
|
-
var u = c.arg,
|
842
|
-
h = u.value;
|
843
|
-
return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
|
844
|
-
invoke("next", t, i, a);
|
845
|
-
}, function (t) {
|
846
|
-
invoke("throw", t, i, a);
|
847
|
-
}) : e.resolve(h).then(function (t) {
|
848
|
-
u.value = t, i(u);
|
849
|
-
}, function (t) {
|
850
|
-
return invoke("throw", t, i, a);
|
851
|
-
});
|
852
|
-
}
|
853
|
-
a(c.arg);
|
854
|
-
}
|
855
|
-
var r;
|
856
|
-
o(this, "_invoke", {
|
857
|
-
value: function value(t, n) {
|
858
|
-
function callInvokeWithMethodAndArg() {
|
859
|
-
return new e(function (e, r) {
|
860
|
-
invoke(t, n, e, r);
|
861
|
-
});
|
862
|
-
}
|
863
|
-
return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
864
|
-
}
|
865
|
-
});
|
866
|
-
}
|
867
|
-
function makeInvokeMethod(e, r, n) {
|
868
|
-
var o = h;
|
869
|
-
return function (i, a) {
|
870
|
-
if (o === f) throw new Error("Generator is already running");
|
871
|
-
if (o === s) {
|
872
|
-
if ("throw" === i) throw a;
|
873
|
-
return {
|
874
|
-
value: t,
|
875
|
-
done: !0
|
876
|
-
};
|
877
|
-
}
|
878
|
-
for (n.method = i, n.arg = a;;) {
|
879
|
-
var c = n.delegate;
|
880
|
-
if (c) {
|
881
|
-
var u = maybeInvokeDelegate(c, n);
|
882
|
-
if (u) {
|
883
|
-
if (u === y) continue;
|
884
|
-
return u;
|
885
|
-
}
|
886
|
-
}
|
887
|
-
if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
|
888
|
-
if (o === h) throw o = s, n.arg;
|
889
|
-
n.dispatchException(n.arg);
|
890
|
-
} else "return" === n.method && n.abrupt("return", n.arg);
|
891
|
-
o = f;
|
892
|
-
var p = tryCatch(e, r, n);
|
893
|
-
if ("normal" === p.type) {
|
894
|
-
if (o = n.done ? s : l, p.arg === y) continue;
|
895
|
-
return {
|
896
|
-
value: p.arg,
|
897
|
-
done: n.done
|
898
|
-
};
|
899
|
-
}
|
900
|
-
"throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
|
901
|
-
}
|
902
|
-
};
|
903
|
-
}
|
904
|
-
function maybeInvokeDelegate(e, r) {
|
905
|
-
var n = r.method,
|
906
|
-
o = e.iterator[n];
|
907
|
-
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;
|
908
|
-
var i = tryCatch(o, e.iterator, r.arg);
|
909
|
-
if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
|
910
|
-
var a = i.arg;
|
911
|
-
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);
|
912
|
-
}
|
913
|
-
function pushTryEntry(t) {
|
914
|
-
var e = {
|
915
|
-
tryLoc: t[0]
|
916
|
-
};
|
917
|
-
1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
|
918
|
-
}
|
919
|
-
function resetTryEntry(t) {
|
920
|
-
var e = t.completion || {};
|
921
|
-
e.type = "normal", delete e.arg, t.completion = e;
|
922
|
-
}
|
923
|
-
function Context(t) {
|
924
|
-
this.tryEntries = [{
|
925
|
-
tryLoc: "root"
|
926
|
-
}], t.forEach(pushTryEntry, this), this.reset(!0);
|
927
|
-
}
|
928
|
-
function values(e) {
|
929
|
-
if (e || "" === e) {
|
930
|
-
var r = e[a];
|
931
|
-
if (r) return r.call(e);
|
932
|
-
if ("function" == typeof e.next) return e;
|
933
|
-
if (!isNaN(e.length)) {
|
934
|
-
var o = -1,
|
935
|
-
i = function next() {
|
936
|
-
for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
|
937
|
-
return next.value = t, next.done = !0, next;
|
938
|
-
};
|
939
|
-
return i.next = i;
|
940
|
-
}
|
941
|
-
}
|
942
|
-
throw new TypeError(_typeof(e) + " is not iterable");
|
943
|
-
}
|
944
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
|
945
|
-
value: GeneratorFunctionPrototype,
|
946
|
-
configurable: !0
|
947
|
-
}), o(GeneratorFunctionPrototype, "constructor", {
|
948
|
-
value: GeneratorFunction,
|
949
|
-
configurable: !0
|
950
|
-
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
|
951
|
-
var e = "function" == typeof t && t.constructor;
|
952
|
-
return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
|
953
|
-
}, e.mark = function (t) {
|
954
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
|
955
|
-
}, e.awrap = function (t) {
|
956
|
-
return {
|
957
|
-
__await: t
|
958
|
-
};
|
959
|
-
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
|
960
|
-
return this;
|
961
|
-
}), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
|
962
|
-
void 0 === i && (i = Promise);
|
963
|
-
var a = new AsyncIterator(wrap(t, r, n, o), i);
|
964
|
-
return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
|
965
|
-
return t.done ? t.value : a.next();
|
966
|
-
});
|
967
|
-
}, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
|
968
|
-
return this;
|
969
|
-
}), define(g, "toString", function () {
|
970
|
-
return "[object Generator]";
|
971
|
-
}), e.keys = function (t) {
|
972
|
-
var e = Object(t),
|
973
|
-
r = [];
|
974
|
-
for (var n in e) r.push(n);
|
975
|
-
return r.reverse(), function next() {
|
976
|
-
for (; r.length;) {
|
977
|
-
var t = r.pop();
|
978
|
-
if (t in e) return next.value = t, next.done = !1, next;
|
979
|
-
}
|
980
|
-
return next.done = !0, next;
|
981
|
-
};
|
982
|
-
}, e.values = values, Context.prototype = {
|
983
|
-
constructor: Context,
|
984
|
-
reset: function reset(e) {
|
985
|
-
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);
|
986
|
-
},
|
987
|
-
stop: function stop() {
|
988
|
-
this.done = !0;
|
989
|
-
var t = this.tryEntries[0].completion;
|
990
|
-
if ("throw" === t.type) throw t.arg;
|
991
|
-
return this.rval;
|
992
|
-
},
|
993
|
-
dispatchException: function dispatchException(e) {
|
994
|
-
if (this.done) throw e;
|
995
|
-
var r = this;
|
996
|
-
function handle(n, o) {
|
997
|
-
return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
|
998
|
-
}
|
999
|
-
for (var o = this.tryEntries.length - 1; o >= 0; --o) {
|
1000
|
-
var i = this.tryEntries[o],
|
1001
|
-
a = i.completion;
|
1002
|
-
if ("root" === i.tryLoc) return handle("end");
|
1003
|
-
if (i.tryLoc <= this.prev) {
|
1004
|
-
var c = n.call(i, "catchLoc"),
|
1005
|
-
u = n.call(i, "finallyLoc");
|
1006
|
-
if (c && u) {
|
1007
|
-
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
1008
|
-
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
1009
|
-
} else if (c) {
|
1010
|
-
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
1011
|
-
} else {
|
1012
|
-
if (!u) throw new Error("try statement without catch or finally");
|
1013
|
-
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
1014
|
-
}
|
1015
|
-
}
|
1016
|
-
}
|
1017
|
-
},
|
1018
|
-
abrupt: function abrupt(t, e) {
|
1019
|
-
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
|
1020
|
-
var o = this.tryEntries[r];
|
1021
|
-
if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
|
1022
|
-
var i = o;
|
1023
|
-
break;
|
1024
|
-
}
|
1025
|
-
}
|
1026
|
-
i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
|
1027
|
-
var a = i ? i.completion : {};
|
1028
|
-
return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
|
1029
|
-
},
|
1030
|
-
complete: function complete(t, e) {
|
1031
|
-
if ("throw" === t.type) throw t.arg;
|
1032
|
-
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;
|
1033
|
-
},
|
1034
|
-
finish: function finish(t) {
|
1035
|
-
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
1036
|
-
var r = this.tryEntries[e];
|
1037
|
-
if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
|
1038
|
-
}
|
1039
|
-
},
|
1040
|
-
"catch": function _catch(t) {
|
1041
|
-
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
1042
|
-
var r = this.tryEntries[e];
|
1043
|
-
if (r.tryLoc === t) {
|
1044
|
-
var n = r.completion;
|
1045
|
-
if ("throw" === n.type) {
|
1046
|
-
var o = n.arg;
|
1047
|
-
resetTryEntry(r);
|
1048
|
-
}
|
1049
|
-
return o;
|
1050
|
-
}
|
1051
|
-
}
|
1052
|
-
throw new Error("illegal catch attempt");
|
1053
|
-
},
|
1054
|
-
delegateYield: function delegateYield(e, r, n) {
|
1055
|
-
return this.delegate = {
|
1056
|
-
iterator: values(e),
|
1057
|
-
resultName: r,
|
1058
|
-
nextLoc: n
|
1059
|
-
}, "next" === this.method && (this.arg = t), y;
|
1060
|
-
}
|
1061
|
-
}, e;
|
1062
|
-
}
|
1063
|
-
module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
1064
|
-
|
1065
|
-
/***/ }),
|
1066
|
-
|
1067
|
-
/***/ 7425:
|
1068
|
-
/***/ ((module) => {
|
1069
|
-
|
1070
|
-
function _typeof(o) {
|
1071
|
-
"@babel/helpers - typeof";
|
1072
|
-
|
1073
|
-
return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
1074
|
-
return typeof o;
|
1075
|
-
} : function (o) {
|
1076
|
-
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
1077
|
-
}, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(o);
|
1078
|
-
}
|
1079
|
-
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
1080
|
-
|
1081
|
-
/***/ }),
|
1082
|
-
|
1083
|
-
/***/ 2841:
|
1084
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
1085
|
-
|
1086
|
-
// TODO(Babel 8): Remove this file.
|
1087
|
-
|
1088
|
-
var runtime = __webpack_require__(7609)();
|
1089
|
-
module.exports = runtime;
|
1090
|
-
|
1091
|
-
// Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
|
1092
|
-
try {
|
1093
|
-
regeneratorRuntime = runtime;
|
1094
|
-
} catch (accidentalStrictMode) {
|
1095
|
-
if (typeof globalThis === "object") {
|
1096
|
-
globalThis.regeneratorRuntime = runtime;
|
1097
|
-
} else {
|
1098
|
-
Function("r", "regeneratorRuntime = r")(runtime);
|
1099
|
-
}
|
1100
|
-
}
|
1101
|
-
|
1102
|
-
|
1103
755
|
/***/ })
|
1104
756
|
|
1105
757
|
/******/ });
|
@@ -1173,36 +825,32 @@ var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
|
1173
825
|
var y = x => () => x
|
1174
826
|
const shared_namespaceObject = x({ ["classes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.classes, ["isNullOrUndef"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.isNullOrUndef, ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstall });
|
1175
827
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
|
1176
|
-
function asyncGeneratorStep(
|
828
|
+
function asyncGeneratorStep(n, t, e, r, o, a, c) {
|
1177
829
|
try {
|
1178
|
-
var
|
1179
|
-
|
1180
|
-
} catch (
|
1181
|
-
|
1182
|
-
return;
|
1183
|
-
}
|
1184
|
-
if (info.done) {
|
1185
|
-
resolve(value);
|
1186
|
-
} else {
|
1187
|
-
Promise.resolve(value).then(_next, _throw);
|
830
|
+
var i = n[a](c),
|
831
|
+
u = i.value;
|
832
|
+
} catch (n) {
|
833
|
+
return void e(n);
|
1188
834
|
}
|
835
|
+
i.done ? t(u) : Promise.resolve(u).then(r, o);
|
1189
836
|
}
|
1190
|
-
function _asyncToGenerator(
|
837
|
+
function _asyncToGenerator(n) {
|
1191
838
|
return function () {
|
1192
|
-
var
|
1193
|
-
|
1194
|
-
return new Promise(function (
|
1195
|
-
var
|
1196
|
-
function _next(
|
1197
|
-
asyncGeneratorStep(
|
839
|
+
var t = this,
|
840
|
+
e = arguments;
|
841
|
+
return new Promise(function (r, o) {
|
842
|
+
var a = n.apply(t, e);
|
843
|
+
function _next(n) {
|
844
|
+
asyncGeneratorStep(a, r, o, _next, _throw, "next", n);
|
1198
845
|
}
|
1199
|
-
function _throw(
|
1200
|
-
asyncGeneratorStep(
|
846
|
+
function _throw(n) {
|
847
|
+
asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
|
1201
848
|
}
|
1202
|
-
_next(
|
849
|
+
_next(void 0);
|
1203
850
|
});
|
1204
851
|
};
|
1205
852
|
}
|
853
|
+
|
1206
854
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
1207
855
|
function _typeof(o) {
|
1208
856
|
"@babel/helpers - typeof";
|
@@ -1213,6 +861,7 @@ function _typeof(o) {
|
|
1213
861
|
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
1214
862
|
}, _typeof(o);
|
1215
863
|
}
|
864
|
+
|
1216
865
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
1217
866
|
|
1218
867
|
function toPrimitive(t, r) {
|
@@ -1225,36 +874,30 @@ function toPrimitive(t, r) {
|
|
1225
874
|
}
|
1226
875
|
return ("string" === r ? String : Number)(t);
|
1227
876
|
}
|
877
|
+
|
1228
878
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
1229
879
|
|
1230
880
|
|
1231
881
|
function toPropertyKey(t) {
|
1232
882
|
var i = toPrimitive(t, "string");
|
1233
|
-
return "symbol" == _typeof(i) ? i :
|
883
|
+
return "symbol" == _typeof(i) ? i : i + "";
|
1234
884
|
}
|
885
|
+
|
1235
886
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
1236
887
|
|
1237
|
-
function _defineProperty(
|
1238
|
-
|
1239
|
-
|
1240
|
-
|
1241
|
-
|
1242
|
-
|
1243
|
-
|
1244
|
-
writable: true
|
1245
|
-
});
|
1246
|
-
} else {
|
1247
|
-
obj[key] = value;
|
1248
|
-
}
|
1249
|
-
return obj;
|
888
|
+
function _defineProperty(e, r, t) {
|
889
|
+
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
890
|
+
value: t,
|
891
|
+
enumerable: !0,
|
892
|
+
configurable: !0,
|
893
|
+
writable: !0
|
894
|
+
}) : e[r] = t, e;
|
1250
895
|
}
|
896
|
+
|
1251
897
|
;// CONCATENATED MODULE: external "vue"
|
1252
898
|
var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1253
899
|
var external_vue_y = x => () => x
|
1254
900
|
const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Fragment, ["TransitionGroup"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.TransitionGroup, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createTextVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["h"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.h, ["isVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.isVNode, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps, ["onBeforeUnmount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["shallowRef"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.shallowRef, ["toRefs"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRefs, ["vShow"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.vShow, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives });
|
1255
|
-
// EXTERNAL MODULE: ../../node_modules/@babel/runtime/regenerator/index.js
|
1256
|
-
var regenerator = __webpack_require__(2841);
|
1257
|
-
var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
|
1258
901
|
;// CONCATENATED MODULE: external "../config-provider"
|
1259
902
|
var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1260
903
|
var config_provider_y = x => () => x
|
@@ -1484,9 +1127,10 @@ var types = [ETypes.FORMDATA, ETypes.BINARY];
|
|
1484
1127
|
}
|
1485
1128
|
});
|
1486
1129
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
1487
|
-
function _arrayWithHoles(
|
1488
|
-
if (Array.isArray(
|
1130
|
+
function _arrayWithHoles(r) {
|
1131
|
+
if (Array.isArray(r)) return r;
|
1489
1132
|
}
|
1133
|
+
|
1490
1134
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
1491
1135
|
function _iterableToArrayLimit(r, l) {
|
1492
1136
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
@@ -1515,34 +1159,38 @@ function _iterableToArrayLimit(r, l) {
|
|
1515
1159
|
return a;
|
1516
1160
|
}
|
1517
1161
|
}
|
1162
|
+
|
1518
1163
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
1519
|
-
function _arrayLikeToArray(
|
1520
|
-
|
1521
|
-
for (var
|
1522
|
-
return
|
1164
|
+
function _arrayLikeToArray(r, a) {
|
1165
|
+
(null == a || a > r.length) && (a = r.length);
|
1166
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
1167
|
+
return n;
|
1523
1168
|
}
|
1169
|
+
|
1524
1170
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
1525
1171
|
|
1526
|
-
function _unsupportedIterableToArray(
|
1527
|
-
if (
|
1528
|
-
|
1529
|
-
|
1530
|
-
|
1531
|
-
|
1532
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
1172
|
+
function _unsupportedIterableToArray(r, a) {
|
1173
|
+
if (r) {
|
1174
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
1175
|
+
var t = {}.toString.call(r).slice(8, -1);
|
1176
|
+
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;
|
1177
|
+
}
|
1533
1178
|
}
|
1179
|
+
|
1534
1180
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
1535
1181
|
function _nonIterableRest() {
|
1536
1182
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
1537
1183
|
}
|
1184
|
+
|
1538
1185
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
1539
1186
|
|
1540
1187
|
|
1541
1188
|
|
1542
1189
|
|
1543
|
-
function _slicedToArray(
|
1544
|
-
return _arrayWithHoles(
|
1190
|
+
function _slicedToArray(r, e) {
|
1191
|
+
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
1545
1192
|
}
|
1193
|
+
|
1546
1194
|
;// CONCATENATED MODULE: external "../icon"
|
1547
1195
|
var icon_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1548
1196
|
var icon_y = x => () => x
|
@@ -2026,25 +1674,29 @@ const button_less_namespaceObject = button_less_x({ });
|
|
2026
1674
|
}));
|
2027
1675
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
|
2028
1676
|
|
2029
|
-
function _arrayWithoutHoles(
|
2030
|
-
if (Array.isArray(
|
1677
|
+
function _arrayWithoutHoles(r) {
|
1678
|
+
if (Array.isArray(r)) return _arrayLikeToArray(r);
|
2031
1679
|
}
|
1680
|
+
|
2032
1681
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/iterableToArray.js
|
2033
|
-
function _iterableToArray(
|
2034
|
-
if (typeof Symbol
|
1682
|
+
function _iterableToArray(r) {
|
1683
|
+
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
2035
1684
|
}
|
1685
|
+
|
2036
1686
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
|
2037
1687
|
function _nonIterableSpread() {
|
2038
1688
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
2039
1689
|
}
|
1690
|
+
|
2040
1691
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
|
2041
1692
|
|
2042
1693
|
|
2043
1694
|
|
2044
1695
|
|
2045
|
-
function _toConsumableArray(
|
2046
|
-
return _arrayWithoutHoles(
|
1696
|
+
function _toConsumableArray(r) {
|
1697
|
+
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
2047
1698
|
}
|
1699
|
+
|
2048
1700
|
// EXTERNAL MODULE: ../../node_modules/spark-md5/spark-md5.js
|
2049
1701
|
var spark_md5 = __webpack_require__(4791);
|
2050
1702
|
var spark_md5_default = /*#__PURE__*/__webpack_require__.n(spark_md5);
|
@@ -2052,7 +1704,8 @@ var spark_md5_default = /*#__PURE__*/__webpack_require__.n(spark_md5);
|
|
2052
1704
|
|
2053
1705
|
|
2054
1706
|
|
2055
|
-
|
1707
|
+
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 }; })(); }
|
1708
|
+
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); }
|
2056
1709
|
/*
|
2057
1710
|
* Tencent is pleased to support the open source community by making
|
2058
1711
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -2195,28 +1848,28 @@ var ajaxUpload = function ajaxUpload(option) {
|
|
2195
1848
|
// 该方法用于在不同的浏览器使用不同的方式
|
2196
1849
|
var blobSlice = File.prototype.slice || File.prototype.mozSlice || File.prototype.webkitSlice;
|
2197
1850
|
var ajaxSliceUpload = /*#__PURE__*/function () {
|
2198
|
-
var _ref = _asyncToGenerator(
|
1851
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(option) {
|
2199
1852
|
var chunkSize, file, blockCount, hash, progressList;
|
2200
|
-
return
|
2201
|
-
while (1) switch (_context.
|
1853
|
+
return _regenerator().w(function (_context) {
|
1854
|
+
while (1) switch (_context.n) {
|
2202
1855
|
case 0:
|
2203
1856
|
chunkSize = option.chunkSize * 1024 * 1024;
|
2204
1857
|
file = option.file;
|
2205
1858
|
if (file) {
|
2206
|
-
_context.
|
1859
|
+
_context.n = 1;
|
2207
1860
|
break;
|
2208
1861
|
}
|
2209
1862
|
throw new Error('File not found');
|
2210
|
-
case
|
1863
|
+
case 1:
|
2211
1864
|
blockCount = Math.ceil(file.size / chunkSize);
|
2212
|
-
_context.
|
1865
|
+
_context.n = 2;
|
2213
1866
|
return hashFile(file, chunkSize);
|
2214
|
-
case
|
2215
|
-
hash = _context.
|
1867
|
+
case 2:
|
1868
|
+
hash = _context.v;
|
2216
1869
|
progressList = [];
|
2217
1870
|
sliceSend(option, file, blockCount, hash, progressList, chunkSize);
|
2218
1871
|
// 所有分片上传后,请求合并分片文件
|
2219
|
-
_context.
|
1872
|
+
_context.n = 3;
|
2220
1873
|
return Promise.all(progressList).then(function () {
|
2221
1874
|
// 合并chunks
|
2222
1875
|
var data = {
|
@@ -2246,9 +1899,8 @@ var ajaxSliceUpload = /*#__PURE__*/function () {
|
|
2246
1899
|
req.setRequestHeader('Content-type', 'application/JSON');
|
2247
1900
|
req.send(JSON.stringify(data));
|
2248
1901
|
});
|
2249
|
-
case
|
2250
|
-
|
2251
|
-
return _context.stop();
|
1902
|
+
case 3:
|
1903
|
+
return _context.a(2);
|
2252
1904
|
}
|
2253
1905
|
}, _callee);
|
2254
1906
|
}));
|
@@ -2391,7 +2043,8 @@ var hashFile = function hashFile(file, chunkSize) {
|
|
2391
2043
|
;// CONCATENATED MODULE: ../../packages/upload/src/use-file-handler.ts
|
2392
2044
|
|
2393
2045
|
|
2394
|
-
|
2046
|
+
function use_file_handler_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 use_file_handler_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]())) : (use_file_handler_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, use_file_handler_regeneratorDefine2(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, use_file_handler_regeneratorDefine2(u, "constructor", GeneratorFunctionPrototype), use_file_handler_regeneratorDefine2(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", use_file_handler_regeneratorDefine2(GeneratorFunctionPrototype, o, "GeneratorFunction"), use_file_handler_regeneratorDefine2(u), use_file_handler_regeneratorDefine2(u, o, "Generator"), use_file_handler_regeneratorDefine2(u, n, function () { return this; }), use_file_handler_regeneratorDefine2(u, "toString", function () { return "[object Generator]"; }), (use_file_handler_regenerator = function _regenerator() { return { w: i, m: f }; })(); }
|
2047
|
+
function use_file_handler_regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, "", {}); } catch (e) { i = 0; } use_file_handler_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) { use_file_handler_regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); }; o("next", 0), o("throw", 1), o("return", 2); } }, use_file_handler_regeneratorDefine2(e, r, n, t); }
|
2395
2048
|
function 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; }
|
2396
2049
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
2397
2050
|
/*
|
@@ -2492,10 +2145,10 @@ function buildFileId(index) {
|
|
2492
2145
|
return _handleRemove.apply(this, arguments);
|
2493
2146
|
}
|
2494
2147
|
function _handleRemove() {
|
2495
|
-
_handleRemove = _asyncToGenerator(
|
2148
|
+
_handleRemove = _asyncToGenerator(/*#__PURE__*/use_file_handler_regenerator().m(function _callee(file) {
|
2496
2149
|
var uploadFile, remove, _props$beforeRemove, before;
|
2497
|
-
return
|
2498
|
-
while (1) switch (_context.
|
2150
|
+
return use_file_handler_regenerator().w(function (_context) {
|
2151
|
+
while (1) switch (_context.n) {
|
2499
2152
|
case 0:
|
2500
2153
|
uploadFile = file instanceof File ? findFile(file) : file;
|
2501
2154
|
remove = function remove(file) {
|
@@ -2507,23 +2160,22 @@ function buildFileId(index) {
|
|
2507
2160
|
}
|
2508
2161
|
};
|
2509
2162
|
if (!props.beforeRemove) {
|
2510
|
-
_context.
|
2163
|
+
_context.n = 2;
|
2511
2164
|
break;
|
2512
2165
|
}
|
2513
|
-
_context.
|
2166
|
+
_context.n = 1;
|
2514
2167
|
return (_props$beforeRemove = props.beforeRemove) === null || _props$beforeRemove === void 0 ? void 0 : _props$beforeRemove.call(props, uploadFile, fileList.value);
|
2515
|
-
case
|
2516
|
-
before = _context.
|
2168
|
+
case 1:
|
2169
|
+
before = _context.v;
|
2517
2170
|
if (before !== false) {
|
2518
2171
|
remove(uploadFile);
|
2519
2172
|
}
|
2520
|
-
_context.
|
2173
|
+
_context.n = 3;
|
2521
2174
|
break;
|
2522
|
-
case
|
2175
|
+
case 2:
|
2523
2176
|
remove(uploadFile);
|
2524
|
-
case
|
2525
|
-
|
2526
|
-
return _context.stop();
|
2177
|
+
case 3:
|
2178
|
+
return _context.a(2);
|
2527
2179
|
}
|
2528
2180
|
}, _callee);
|
2529
2181
|
}));
|
@@ -2533,24 +2185,23 @@ function buildFileId(index) {
|
|
2533
2185
|
return _handleError.apply(this, arguments);
|
2534
2186
|
}
|
2535
2187
|
function _handleError() {
|
2536
|
-
_handleError = _asyncToGenerator(
|
2188
|
+
_handleError = _asyncToGenerator(/*#__PURE__*/use_file_handler_regenerator().m(function _callee2(err, rawFile, res) {
|
2537
2189
|
var file;
|
2538
|
-
return
|
2539
|
-
while (1) switch (_context2.
|
2190
|
+
return use_file_handler_regenerator().w(function (_context2) {
|
2191
|
+
while (1) switch (_context2.n) {
|
2540
2192
|
case 0:
|
2541
2193
|
file = findFile(rawFile);
|
2542
2194
|
if (file) {
|
2543
|
-
_context2.
|
2195
|
+
_context2.n = 1;
|
2544
2196
|
break;
|
2545
2197
|
}
|
2546
|
-
return _context2.
|
2547
|
-
case
|
2198
|
+
return _context2.a(2);
|
2199
|
+
case 1:
|
2548
2200
|
file.status = 'fail';
|
2549
2201
|
file.statusText = err.message;
|
2550
2202
|
file.response = res;
|
2551
|
-
case
|
2552
|
-
|
2553
|
-
return _context2.stop();
|
2203
|
+
case 2:
|
2204
|
+
return _context2.a(2);
|
2554
2205
|
}
|
2555
2206
|
}, _callee2);
|
2556
2207
|
}));
|
@@ -2560,23 +2211,22 @@ function buildFileId(index) {
|
|
2560
2211
|
return _handleSuccess.apply(this, arguments);
|
2561
2212
|
}
|
2562
2213
|
function _handleSuccess() {
|
2563
|
-
_handleSuccess = _asyncToGenerator(
|
2214
|
+
_handleSuccess = _asyncToGenerator(/*#__PURE__*/use_file_handler_regenerator().m(function _callee3(res, rawFile) {
|
2564
2215
|
var file;
|
2565
|
-
return
|
2566
|
-
while (1) switch (_context3.
|
2216
|
+
return use_file_handler_regenerator().w(function (_context3) {
|
2217
|
+
while (1) switch (_context3.n) {
|
2567
2218
|
case 0:
|
2568
2219
|
file = findFile(rawFile);
|
2569
2220
|
if (file) {
|
2570
|
-
_context3.
|
2221
|
+
_context3.n = 1;
|
2571
2222
|
break;
|
2572
2223
|
}
|
2573
|
-
return _context3.
|
2574
|
-
case
|
2224
|
+
return _context3.a(2);
|
2225
|
+
case 1:
|
2575
2226
|
file.status = 'success';
|
2576
2227
|
file.response = res;
|
2577
|
-
case
|
2578
|
-
|
2579
|
-
return _context3.stop();
|
2228
|
+
case 2:
|
2229
|
+
return _context3.a(2);
|
2580
2230
|
}
|
2581
2231
|
}, _callee3);
|
2582
2232
|
}));
|
@@ -2586,24 +2236,23 @@ function buildFileId(index) {
|
|
2586
2236
|
return _handleProgress.apply(this, arguments);
|
2587
2237
|
}
|
2588
2238
|
function _handleProgress() {
|
2589
|
-
_handleProgress = _asyncToGenerator(
|
2239
|
+
_handleProgress = _asyncToGenerator(/*#__PURE__*/use_file_handler_regenerator().m(function _callee4(event, rawFile) {
|
2590
2240
|
var file;
|
2591
|
-
return
|
2592
|
-
while (1) switch (_context4.
|
2241
|
+
return use_file_handler_regenerator().w(function (_context4) {
|
2242
|
+
while (1) switch (_context4.n) {
|
2593
2243
|
case 0:
|
2594
2244
|
// TODO slideUpload progress
|
2595
2245
|
file = findFile(rawFile);
|
2596
2246
|
if (file) {
|
2597
|
-
_context4.
|
2247
|
+
_context4.n = 1;
|
2598
2248
|
break;
|
2599
2249
|
}
|
2600
|
-
return _context4.
|
2601
|
-
case
|
2250
|
+
return _context4.a(2);
|
2251
|
+
case 1:
|
2602
2252
|
file.status = 'uploading';
|
2603
2253
|
file.percentage = Math.round(event.percent);
|
2604
|
-
case
|
2605
|
-
|
2606
|
-
return _context4.stop();
|
2254
|
+
case 2:
|
2255
|
+
return _context4.a(2);
|
2607
2256
|
}
|
2608
2257
|
}, _callee4);
|
2609
2258
|
}));
|
@@ -2637,10 +2286,11 @@ function buildFileId(index) {
|
|
2637
2286
|
|
2638
2287
|
|
2639
2288
|
|
2640
|
-
|
2641
|
-
function
|
2642
|
-
function
|
2643
|
-
function
|
2289
|
+
function upload_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 upload_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]())) : (upload_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, upload_regeneratorDefine2(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, upload_regeneratorDefine2(u, "constructor", GeneratorFunctionPrototype), upload_regeneratorDefine2(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", upload_regeneratorDefine2(GeneratorFunctionPrototype, o, "GeneratorFunction"), upload_regeneratorDefine2(u), upload_regeneratorDefine2(u, o, "Generator"), upload_regeneratorDefine2(u, n, function () { return this; }), upload_regeneratorDefine2(u, "toString", function () { return "[object Generator]"; }), (upload_regenerator = function _regenerator() { return { w: i, m: f }; })(); }
|
2290
|
+
function upload_regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, "", {}); } catch (e) { i = 0; } upload_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) { upload_regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); }; o("next", 0), o("throw", 1), o("return", 2); } }, upload_regeneratorDefine2(e, r, n, t); }
|
2291
|
+
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = upload_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; } } }; }
|
2292
|
+
function upload_unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return upload_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) ? upload_arrayLikeToArray(r, a) : void 0; } }
|
2293
|
+
function upload_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; }
|
2644
2294
|
/*
|
2645
2295
|
* Tencent is pleased to support the open source community by making
|
2646
2296
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -2767,42 +2417,41 @@ function upload_arrayLikeToArray(arr, len) { if (len == null || len > arr.length
|
|
2767
2417
|
return _upload.apply(this, arguments);
|
2768
2418
|
}
|
2769
2419
|
function _upload() {
|
2770
|
-
_upload = _asyncToGenerator(
|
2771
|
-
var beforeResult, _props$beforeUpload;
|
2772
|
-
return
|
2773
|
-
while (1) switch (_context.
|
2420
|
+
_upload = _asyncToGenerator(/*#__PURE__*/upload_regenerator().m(function _callee(file, sendFiles) {
|
2421
|
+
var beforeResult, _props$beforeUpload, _t;
|
2422
|
+
return upload_regenerator().w(function (_context) {
|
2423
|
+
while (1) switch (_context.n) {
|
2774
2424
|
case 0:
|
2775
2425
|
if (props.beforeUpload) {
|
2776
|
-
_context.
|
2426
|
+
_context.n = 1;
|
2777
2427
|
break;
|
2778
2428
|
}
|
2779
|
-
return _context.
|
2780
|
-
case
|
2781
|
-
_context.
|
2782
|
-
_context.
|
2429
|
+
return _context.a(2, send(file, sendFiles));
|
2430
|
+
case 1:
|
2431
|
+
_context.p = 1;
|
2432
|
+
_context.n = 2;
|
2783
2433
|
return (_props$beforeUpload = props.beforeUpload) === null || _props$beforeUpload === void 0 ? void 0 : _props$beforeUpload.call(props, file, sendFiles);
|
2784
|
-
case
|
2785
|
-
beforeResult = _context.
|
2786
|
-
_context.
|
2434
|
+
case 2:
|
2435
|
+
beforeResult = _context.v;
|
2436
|
+
_context.n = 4;
|
2787
2437
|
break;
|
2788
|
-
case
|
2789
|
-
_context.
|
2790
|
-
|
2438
|
+
case 3:
|
2439
|
+
_context.p = 3;
|
2440
|
+
_t = _context.v;
|
2791
2441
|
beforeResult = false;
|
2792
|
-
case
|
2442
|
+
case 4:
|
2793
2443
|
if (!(beforeResult === false)) {
|
2794
|
-
_context.
|
2444
|
+
_context.n = 5;
|
2795
2445
|
break;
|
2796
2446
|
}
|
2797
2447
|
handleRemove(file);
|
2798
|
-
return _context.
|
2799
|
-
case
|
2448
|
+
return _context.a(2);
|
2449
|
+
case 5:
|
2800
2450
|
send(file, sendFiles);
|
2801
|
-
case
|
2802
|
-
|
2803
|
-
return _context.stop();
|
2451
|
+
case 6:
|
2452
|
+
return _context.a(2);
|
2804
2453
|
}
|
2805
|
-
}, _callee, null, [[
|
2454
|
+
}, _callee, null, [[1, 3]]);
|
2806
2455
|
}));
|
2807
2456
|
return _upload.apply(this, arguments);
|
2808
2457
|
}
|