bkui-vue 2.0.2-beta.47 → 2.0.2-beta.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +42 -47
- package/dist/index.esm.js +7009 -7201
- package/dist/index.umd.js +45 -50
- package/lib/affix/index.js +14 -12
- package/lib/alert/index.js +14 -12
- package/lib/animate-number/index.js +12 -11
- package/lib/backtop/index.js +11 -10
- package/lib/badge/index.js +14 -12
- package/lib/breadcrumb/index.js +14 -12
- package/lib/button/index.js +14 -12
- package/lib/card/index.js +14 -12
- package/lib/cascader/index.js +101 -94
- package/lib/checkbox/index.js +35 -37
- package/lib/code-diff/index.js +674 -1170
- package/lib/collapse/index.js +42 -44
- package/lib/collapse-transition/index.js +4 -3
- package/lib/color-picker/index.js +60 -59
- package/lib/config-provider/index.js +14 -12
- package/lib/container/index.js +25 -21
- package/lib/date-picker/index.js +51 -58
- package/lib/dialog/index.js +441 -43
- package/lib/directives/index.js +34 -37
- package/lib/divider/index.js +3 -2
- package/lib/dropdown/index.js +21 -17
- package/lib/exception/index.js +17 -14
- package/lib/fixed-navbar/index.js +3 -2
- package/lib/form/index.js +34 -37
- package/lib/icon/angle-double-down-line.js +36 -29
- package/lib/icon/angle-double-left-line.js +36 -29
- package/lib/icon/angle-double-left.js +36 -29
- package/lib/icon/angle-double-right-line.js +36 -29
- package/lib/icon/angle-double-right.js +36 -29
- package/lib/icon/angle-double-up-line.js +36 -29
- package/lib/icon/angle-down-fill.js +36 -29
- package/lib/icon/angle-down-line.js +36 -29
- package/lib/icon/angle-down.js +36 -29
- package/lib/icon/angle-left.js +36 -29
- package/lib/icon/angle-right.js +36 -29
- package/lib/icon/angle-up-fill.js +36 -29
- package/lib/icon/angle-up.js +36 -29
- package/lib/icon/archive-fill.js +36 -29
- package/lib/icon/arrows-left.js +36 -29
- package/lib/icon/arrows-right.js +36 -29
- package/lib/icon/assistant.js +36 -29
- package/lib/icon/audio-fill.js +36 -29
- package/lib/icon/bk.js +36 -29
- package/lib/icon/circle.js +36 -29
- package/lib/icon/close-line.js +36 -29
- package/lib/icon/close.js +36 -29
- package/lib/icon/code.js +36 -29
- package/lib/icon/cog-shape.js +36 -29
- package/lib/icon/collapse-left.js +36 -29
- package/lib/icon/copy-shape.js +36 -29
- package/lib/icon/copy.js +36 -29
- package/lib/icon/data-shape.js +36 -29
- package/lib/icon/del.js +36 -29
- package/lib/icon/doc-fill.js +36 -29
- package/lib/icon/done.js +36 -29
- package/lib/icon/down-shape.js +36 -29
- package/lib/icon/down-small.js +36 -29
- package/lib/icon/edit-line.js +36 -29
- package/lib/icon/ellipsis.js +36 -29
- package/lib/icon/enlarge-line.js +36 -29
- package/lib/icon/error.js +36 -29
- package/lib/icon/excel-fill.js +36 -29
- package/lib/icon/exclamation-circle-shape.js +36 -29
- package/lib/icon/eye.js +36 -29
- package/lib/icon/filliscreen-line.js +36 -29
- package/lib/icon/fix-line.js +36 -29
- package/lib/icon/fix-shape.js +36 -29
- package/lib/icon/folder-open.js +36 -29
- package/lib/icon/folder-shape-open.js +36 -29
- package/lib/icon/folder-shape.js +36 -29
- package/lib/icon/folder.js +36 -29
- package/lib/icon/funnel.js +36 -29
- package/lib/icon/grag-fill.js +36 -29
- package/lib/icon/help-document-fill.js +36 -29
- package/lib/icon/help-fill.js +36 -29
- package/lib/icon/help.js +36 -29
- package/lib/icon/image-fill.js +36 -29
- package/lib/icon/img-error.js +36 -29
- package/lib/icon/img-placehoulder.js +36 -29
- package/lib/icon/info-line.js +36 -29
- package/lib/icon/info.js +36 -29
- package/lib/icon/left-shape.js +36 -29
- package/lib/icon/left-turn-line.js +36 -29
- package/lib/icon/loading.js +36 -29
- package/lib/icon/narrow-line.js +36 -29
- package/lib/icon/original.js +36 -29
- package/lib/icon/pdf-fill.js +36 -29
- package/lib/icon/play-shape.js +36 -29
- package/lib/icon/plus.js +36 -29
- package/lib/icon/ppt-fill.js +36 -29
- package/lib/icon/qq.js +36 -29
- package/lib/icon/right-shape.js +36 -29
- package/lib/icon/right-turn-line.js +36 -29
- package/lib/icon/search.js +36 -29
- package/lib/icon/share.js +36 -29
- package/lib/icon/spinner.js +36 -29
- package/lib/icon/success.js +36 -29
- package/lib/icon/switcher-loading.js +36 -29
- package/lib/icon/text-all.js +36 -29
- package/lib/icon/text-file.js +36 -29
- package/lib/icon/text-fill.js +36 -29
- package/lib/icon/transfer.js +36 -29
- package/lib/icon/tree-application-shape.js +36 -29
- package/lib/icon/unfull-screen.js +36 -29
- package/lib/icon/unvisible.js +36 -29
- package/lib/icon/up-shape.js +36 -29
- package/lib/icon/upload.js +36 -29
- package/lib/icon/video-fill.js +36 -29
- package/lib/icon/warn.js +36 -29
- package/lib/icon/weixin-pro.js +36 -29
- package/lib/icon/weixin.js +36 -29
- package/lib/image/index.js +47 -49
- package/lib/index.js +1 -1
- package/lib/info-box/index.js +461 -62
- package/lib/input/index.js +60 -62
- package/lib/link/index.js +2 -2
- package/lib/loading/index.js +25 -22
- package/lib/menu/index.js +34 -36
- package/lib/message/index.js +31 -34
- package/lib/modal/index.js +14 -12
- package/lib/navigation/index.js +9 -7
- package/lib/notify/index.js +14 -12
- package/lib/overflow-title/index.js +10 -9
- package/lib/pagination/index.js +29 -32
- package/lib/pop-confirm/index.js +5 -4
- package/lib/popover/index.js +136 -209
- package/lib/popover2/index.js +2 -2
- package/lib/process/index.js +452 -59
- package/lib/progress/index.js +19 -16
- package/lib/radio/index.js +34 -37
- package/lib/rate/index.js +14 -12
- package/lib/resize-layout/index.js +20 -18
- package/lib/scrollbar/index.js +58 -51
- package/lib/search-select/index.js +595 -222
- package/lib/select/index.js +463 -111
- package/lib/shared/index.js +95 -83
- package/lib/sideslider/index.js +441 -43
- package/lib/slider/index.js +446 -49
- package/lib/steps/index.js +458 -60
- package/lib/swiper/index.js +17 -15
- package/lib/switcher/index.js +14 -12
- package/lib/tab/index.js +40 -42
- package/lib/table/index.js +501 -152
- package/lib/tag/index.js +14 -12
- package/lib/tag-input/index.js +41 -47
- package/lib/timeline/index.js +0 -1
- package/lib/transfer/index.js +17 -22
- package/lib/tree/index.js +66 -73
- package/lib/upload/index.js +487 -136
- package/lib/virtual-render/index.js +51 -47
- package/package.json +1 -2
package/lib/upload/index.js
CHANGED
@@ -752,6 +752,354 @@ 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
|
+
|
755
1103
|
/***/ })
|
756
1104
|
|
757
1105
|
/******/ });
|
@@ -825,32 +1173,36 @@ var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
|
825
1173
|
var y = x => () => x
|
826
1174
|
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 });
|
827
1175
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
|
828
|
-
function asyncGeneratorStep(
|
1176
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
829
1177
|
try {
|
830
|
-
var
|
831
|
-
|
832
|
-
} catch (
|
833
|
-
|
1178
|
+
var info = gen[key](arg);
|
1179
|
+
var value = info.value;
|
1180
|
+
} catch (error) {
|
1181
|
+
reject(error);
|
1182
|
+
return;
|
1183
|
+
}
|
1184
|
+
if (info.done) {
|
1185
|
+
resolve(value);
|
1186
|
+
} else {
|
1187
|
+
Promise.resolve(value).then(_next, _throw);
|
834
1188
|
}
|
835
|
-
i.done ? t(u) : Promise.resolve(u).then(r, o);
|
836
1189
|
}
|
837
|
-
function _asyncToGenerator(
|
1190
|
+
function _asyncToGenerator(fn) {
|
838
1191
|
return function () {
|
839
|
-
var
|
840
|
-
|
841
|
-
return new Promise(function (
|
842
|
-
var
|
843
|
-
function _next(
|
844
|
-
asyncGeneratorStep(
|
1192
|
+
var self = this,
|
1193
|
+
args = arguments;
|
1194
|
+
return new Promise(function (resolve, reject) {
|
1195
|
+
var gen = fn.apply(self, args);
|
1196
|
+
function _next(value) {
|
1197
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
845
1198
|
}
|
846
|
-
function _throw(
|
847
|
-
asyncGeneratorStep(
|
1199
|
+
function _throw(err) {
|
1200
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
848
1201
|
}
|
849
|
-
_next(
|
1202
|
+
_next(undefined);
|
850
1203
|
});
|
851
1204
|
};
|
852
1205
|
}
|
853
|
-
|
854
1206
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
855
1207
|
function _typeof(o) {
|
856
1208
|
"@babel/helpers - typeof";
|
@@ -861,7 +1213,6 @@ function _typeof(o) {
|
|
861
1213
|
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
862
1214
|
}, _typeof(o);
|
863
1215
|
}
|
864
|
-
|
865
1216
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
866
1217
|
|
867
1218
|
function toPrimitive(t, r) {
|
@@ -874,30 +1225,36 @@ function toPrimitive(t, r) {
|
|
874
1225
|
}
|
875
1226
|
return ("string" === r ? String : Number)(t);
|
876
1227
|
}
|
877
|
-
|
878
1228
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
879
1229
|
|
880
1230
|
|
881
1231
|
function toPropertyKey(t) {
|
882
1232
|
var i = toPrimitive(t, "string");
|
883
|
-
return "symbol" == _typeof(i) ? i : i
|
1233
|
+
return "symbol" == _typeof(i) ? i : String(i);
|
884
1234
|
}
|
885
|
-
|
886
1235
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
887
1236
|
|
888
|
-
function _defineProperty(
|
889
|
-
|
890
|
-
|
891
|
-
|
892
|
-
|
893
|
-
|
894
|
-
|
1237
|
+
function _defineProperty(obj, key, value) {
|
1238
|
+
key = toPropertyKey(key);
|
1239
|
+
if (key in obj) {
|
1240
|
+
Object.defineProperty(obj, key, {
|
1241
|
+
value: value,
|
1242
|
+
enumerable: true,
|
1243
|
+
configurable: true,
|
1244
|
+
writable: true
|
1245
|
+
});
|
1246
|
+
} else {
|
1247
|
+
obj[key] = value;
|
1248
|
+
}
|
1249
|
+
return obj;
|
895
1250
|
}
|
896
|
-
|
897
1251
|
;// CONCATENATED MODULE: external "vue"
|
898
1252
|
var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
899
1253
|
var external_vue_y = x => () => x
|
900
1254
|
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);
|
901
1258
|
;// CONCATENATED MODULE: external "../config-provider"
|
902
1259
|
var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
903
1260
|
var config_provider_y = x => () => x
|
@@ -1127,10 +1484,9 @@ var types = [ETypes.FORMDATA, ETypes.BINARY];
|
|
1127
1484
|
}
|
1128
1485
|
});
|
1129
1486
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
1130
|
-
function _arrayWithHoles(
|
1131
|
-
if (Array.isArray(
|
1487
|
+
function _arrayWithHoles(arr) {
|
1488
|
+
if (Array.isArray(arr)) return arr;
|
1132
1489
|
}
|
1133
|
-
|
1134
1490
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
1135
1491
|
function _iterableToArrayLimit(r, l) {
|
1136
1492
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
@@ -1159,38 +1515,34 @@ function _iterableToArrayLimit(r, l) {
|
|
1159
1515
|
return a;
|
1160
1516
|
}
|
1161
1517
|
}
|
1162
|
-
|
1163
1518
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
1164
|
-
function _arrayLikeToArray(
|
1165
|
-
(
|
1166
|
-
for (var
|
1167
|
-
return
|
1519
|
+
function _arrayLikeToArray(arr, len) {
|
1520
|
+
if (len == null || len > arr.length) len = arr.length;
|
1521
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
1522
|
+
return arr2;
|
1168
1523
|
}
|
1169
|
-
|
1170
1524
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
1171
1525
|
|
1172
|
-
function _unsupportedIterableToArray(
|
1173
|
-
if (
|
1174
|
-
|
1175
|
-
|
1176
|
-
|
1177
|
-
|
1526
|
+
function _unsupportedIterableToArray(o, minLen) {
|
1527
|
+
if (!o) return;
|
1528
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
1529
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
1530
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
1531
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
1532
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
1178
1533
|
}
|
1179
|
-
|
1180
1534
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
1181
1535
|
function _nonIterableRest() {
|
1182
1536
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
1183
1537
|
}
|
1184
|
-
|
1185
1538
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
1186
1539
|
|
1187
1540
|
|
1188
1541
|
|
1189
1542
|
|
1190
|
-
function _slicedToArray(
|
1191
|
-
return _arrayWithHoles(
|
1543
|
+
function _slicedToArray(arr, i) {
|
1544
|
+
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
1192
1545
|
}
|
1193
|
-
|
1194
1546
|
;// CONCATENATED MODULE: external "../icon"
|
1195
1547
|
var icon_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1196
1548
|
var icon_y = x => () => x
|
@@ -1674,29 +2026,25 @@ const button_less_namespaceObject = button_less_x({ });
|
|
1674
2026
|
}));
|
1675
2027
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
|
1676
2028
|
|
1677
|
-
function _arrayWithoutHoles(
|
1678
|
-
if (Array.isArray(
|
2029
|
+
function _arrayWithoutHoles(arr) {
|
2030
|
+
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
1679
2031
|
}
|
1680
|
-
|
1681
2032
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/iterableToArray.js
|
1682
|
-
function _iterableToArray(
|
1683
|
-
if (
|
2033
|
+
function _iterableToArray(iter) {
|
2034
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
1684
2035
|
}
|
1685
|
-
|
1686
2036
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
|
1687
2037
|
function _nonIterableSpread() {
|
1688
2038
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
1689
2039
|
}
|
1690
|
-
|
1691
2040
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
|
1692
2041
|
|
1693
2042
|
|
1694
2043
|
|
1695
2044
|
|
1696
|
-
function _toConsumableArray(
|
1697
|
-
return _arrayWithoutHoles(
|
2045
|
+
function _toConsumableArray(arr) {
|
2046
|
+
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
1698
2047
|
}
|
1699
|
-
|
1700
2048
|
// EXTERNAL MODULE: ../../node_modules/spark-md5/spark-md5.js
|
1701
2049
|
var spark_md5 = __webpack_require__(4791);
|
1702
2050
|
var spark_md5_default = /*#__PURE__*/__webpack_require__.n(spark_md5);
|
@@ -1704,8 +2052,7 @@ var spark_md5_default = /*#__PURE__*/__webpack_require__.n(spark_md5);
|
|
1704
2052
|
|
1705
2053
|
|
1706
2054
|
|
1707
|
-
|
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); }
|
2055
|
+
|
1709
2056
|
/*
|
1710
2057
|
* Tencent is pleased to support the open source community by making
|
1711
2058
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -1848,28 +2195,28 @@ var ajaxUpload = function ajaxUpload(option) {
|
|
1848
2195
|
// 该方法用于在不同的浏览器使用不同的方式
|
1849
2196
|
var blobSlice = File.prototype.slice || File.prototype.mozSlice || File.prototype.webkitSlice;
|
1850
2197
|
var ajaxSliceUpload = /*#__PURE__*/function () {
|
1851
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
2198
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee(option) {
|
1852
2199
|
var chunkSize, file, blockCount, hash, progressList;
|
1853
|
-
return
|
1854
|
-
while (1) switch (_context.
|
2200
|
+
return regenerator_default().wrap(function _callee$(_context) {
|
2201
|
+
while (1) switch (_context.prev = _context.next) {
|
1855
2202
|
case 0:
|
1856
2203
|
chunkSize = option.chunkSize * 1024 * 1024;
|
1857
2204
|
file = option.file;
|
1858
2205
|
if (file) {
|
1859
|
-
_context.
|
2206
|
+
_context.next = 4;
|
1860
2207
|
break;
|
1861
2208
|
}
|
1862
2209
|
throw new Error('File not found');
|
1863
|
-
case
|
2210
|
+
case 4:
|
1864
2211
|
blockCount = Math.ceil(file.size / chunkSize);
|
1865
|
-
_context.
|
2212
|
+
_context.next = 7;
|
1866
2213
|
return hashFile(file, chunkSize);
|
1867
|
-
case
|
1868
|
-
hash = _context.
|
2214
|
+
case 7:
|
2215
|
+
hash = _context.sent;
|
1869
2216
|
progressList = [];
|
1870
2217
|
sliceSend(option, file, blockCount, hash, progressList, chunkSize);
|
1871
2218
|
// 所有分片上传后,请求合并分片文件
|
1872
|
-
_context.
|
2219
|
+
_context.next = 12;
|
1873
2220
|
return Promise.all(progressList).then(function () {
|
1874
2221
|
// 合并chunks
|
1875
2222
|
var data = {
|
@@ -1899,8 +2246,9 @@ var ajaxSliceUpload = /*#__PURE__*/function () {
|
|
1899
2246
|
req.setRequestHeader('Content-type', 'application/JSON');
|
1900
2247
|
req.send(JSON.stringify(data));
|
1901
2248
|
});
|
1902
|
-
case
|
1903
|
-
|
2249
|
+
case 12:
|
2250
|
+
case "end":
|
2251
|
+
return _context.stop();
|
1904
2252
|
}
|
1905
2253
|
}, _callee);
|
1906
2254
|
}));
|
@@ -2043,8 +2391,7 @@ var hashFile = function hashFile(file, chunkSize) {
|
|
2043
2391
|
;// CONCATENATED MODULE: ../../packages/upload/src/use-file-handler.ts
|
2044
2392
|
|
2045
2393
|
|
2046
|
-
|
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); }
|
2394
|
+
|
2048
2395
|
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; }
|
2049
2396
|
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; }
|
2050
2397
|
/*
|
@@ -2145,10 +2492,10 @@ function buildFileId(index) {
|
|
2145
2492
|
return _handleRemove.apply(this, arguments);
|
2146
2493
|
}
|
2147
2494
|
function _handleRemove() {
|
2148
|
-
_handleRemove = _asyncToGenerator(/*#__PURE__*/
|
2495
|
+
_handleRemove = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee(file) {
|
2149
2496
|
var uploadFile, remove, _props$beforeRemove, before;
|
2150
|
-
return
|
2151
|
-
while (1) switch (_context.
|
2497
|
+
return regenerator_default().wrap(function _callee$(_context) {
|
2498
|
+
while (1) switch (_context.prev = _context.next) {
|
2152
2499
|
case 0:
|
2153
2500
|
uploadFile = file instanceof File ? findFile(file) : file;
|
2154
2501
|
remove = function remove(file) {
|
@@ -2160,22 +2507,23 @@ function buildFileId(index) {
|
|
2160
2507
|
}
|
2161
2508
|
};
|
2162
2509
|
if (!props.beforeRemove) {
|
2163
|
-
_context.
|
2510
|
+
_context.next = 9;
|
2164
2511
|
break;
|
2165
2512
|
}
|
2166
|
-
_context.
|
2513
|
+
_context.next = 5;
|
2167
2514
|
return (_props$beforeRemove = props.beforeRemove) === null || _props$beforeRemove === void 0 ? void 0 : _props$beforeRemove.call(props, uploadFile, fileList.value);
|
2168
|
-
case
|
2169
|
-
before = _context.
|
2515
|
+
case 5:
|
2516
|
+
before = _context.sent;
|
2170
2517
|
if (before !== false) {
|
2171
2518
|
remove(uploadFile);
|
2172
2519
|
}
|
2173
|
-
_context.
|
2520
|
+
_context.next = 10;
|
2174
2521
|
break;
|
2175
|
-
case
|
2522
|
+
case 9:
|
2176
2523
|
remove(uploadFile);
|
2177
|
-
case
|
2178
|
-
|
2524
|
+
case 10:
|
2525
|
+
case "end":
|
2526
|
+
return _context.stop();
|
2179
2527
|
}
|
2180
2528
|
}, _callee);
|
2181
2529
|
}));
|
@@ -2185,23 +2533,24 @@ function buildFileId(index) {
|
|
2185
2533
|
return _handleError.apply(this, arguments);
|
2186
2534
|
}
|
2187
2535
|
function _handleError() {
|
2188
|
-
_handleError = _asyncToGenerator(/*#__PURE__*/
|
2536
|
+
_handleError = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee2(err, rawFile, res) {
|
2189
2537
|
var file;
|
2190
|
-
return
|
2191
|
-
while (1) switch (_context2.
|
2538
|
+
return regenerator_default().wrap(function _callee2$(_context2) {
|
2539
|
+
while (1) switch (_context2.prev = _context2.next) {
|
2192
2540
|
case 0:
|
2193
2541
|
file = findFile(rawFile);
|
2194
2542
|
if (file) {
|
2195
|
-
_context2.
|
2543
|
+
_context2.next = 3;
|
2196
2544
|
break;
|
2197
2545
|
}
|
2198
|
-
return _context2.
|
2199
|
-
case
|
2546
|
+
return _context2.abrupt("return");
|
2547
|
+
case 3:
|
2200
2548
|
file.status = 'fail';
|
2201
2549
|
file.statusText = err.message;
|
2202
2550
|
file.response = res;
|
2203
|
-
case
|
2204
|
-
|
2551
|
+
case 6:
|
2552
|
+
case "end":
|
2553
|
+
return _context2.stop();
|
2205
2554
|
}
|
2206
2555
|
}, _callee2);
|
2207
2556
|
}));
|
@@ -2211,22 +2560,23 @@ function buildFileId(index) {
|
|
2211
2560
|
return _handleSuccess.apply(this, arguments);
|
2212
2561
|
}
|
2213
2562
|
function _handleSuccess() {
|
2214
|
-
_handleSuccess = _asyncToGenerator(/*#__PURE__*/
|
2563
|
+
_handleSuccess = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee3(res, rawFile) {
|
2215
2564
|
var file;
|
2216
|
-
return
|
2217
|
-
while (1) switch (_context3.
|
2565
|
+
return regenerator_default().wrap(function _callee3$(_context3) {
|
2566
|
+
while (1) switch (_context3.prev = _context3.next) {
|
2218
2567
|
case 0:
|
2219
2568
|
file = findFile(rawFile);
|
2220
2569
|
if (file) {
|
2221
|
-
_context3.
|
2570
|
+
_context3.next = 3;
|
2222
2571
|
break;
|
2223
2572
|
}
|
2224
|
-
return _context3.
|
2225
|
-
case
|
2573
|
+
return _context3.abrupt("return");
|
2574
|
+
case 3:
|
2226
2575
|
file.status = 'success';
|
2227
2576
|
file.response = res;
|
2228
|
-
case
|
2229
|
-
|
2577
|
+
case 5:
|
2578
|
+
case "end":
|
2579
|
+
return _context3.stop();
|
2230
2580
|
}
|
2231
2581
|
}, _callee3);
|
2232
2582
|
}));
|
@@ -2236,23 +2586,24 @@ function buildFileId(index) {
|
|
2236
2586
|
return _handleProgress.apply(this, arguments);
|
2237
2587
|
}
|
2238
2588
|
function _handleProgress() {
|
2239
|
-
_handleProgress = _asyncToGenerator(/*#__PURE__*/
|
2589
|
+
_handleProgress = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee4(event, rawFile) {
|
2240
2590
|
var file;
|
2241
|
-
return
|
2242
|
-
while (1) switch (_context4.
|
2591
|
+
return regenerator_default().wrap(function _callee4$(_context4) {
|
2592
|
+
while (1) switch (_context4.prev = _context4.next) {
|
2243
2593
|
case 0:
|
2244
2594
|
// TODO slideUpload progress
|
2245
2595
|
file = findFile(rawFile);
|
2246
2596
|
if (file) {
|
2247
|
-
_context4.
|
2597
|
+
_context4.next = 3;
|
2248
2598
|
break;
|
2249
2599
|
}
|
2250
|
-
return _context4.
|
2251
|
-
case
|
2600
|
+
return _context4.abrupt("return");
|
2601
|
+
case 3:
|
2252
2602
|
file.status = 'uploading';
|
2253
2603
|
file.percentage = Math.round(event.percent);
|
2254
|
-
case
|
2255
|
-
|
2604
|
+
case 5:
|
2605
|
+
case "end":
|
2606
|
+
return _context4.stop();
|
2256
2607
|
}
|
2257
2608
|
}, _callee4);
|
2258
2609
|
}));
|
@@ -2286,11 +2637,10 @@ function buildFileId(index) {
|
|
2286
2637
|
|
2287
2638
|
|
2288
2639
|
|
2289
|
-
|
2290
|
-
function
|
2291
|
-
function
|
2292
|
-
function
|
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; }
|
2640
|
+
|
2641
|
+
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = upload_unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
2642
|
+
function upload_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return upload_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return upload_arrayLikeToArray(o, minLen); }
|
2643
|
+
function upload_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
2294
2644
|
/*
|
2295
2645
|
* Tencent is pleased to support the open source community by making
|
2296
2646
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -2417,41 +2767,42 @@ function upload_arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.l
|
|
2417
2767
|
return _upload.apply(this, arguments);
|
2418
2768
|
}
|
2419
2769
|
function _upload() {
|
2420
|
-
_upload = _asyncToGenerator(/*#__PURE__*/
|
2421
|
-
var beforeResult, _props$beforeUpload
|
2422
|
-
return
|
2423
|
-
while (1) switch (_context.
|
2770
|
+
_upload = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee(file, sendFiles) {
|
2771
|
+
var beforeResult, _props$beforeUpload;
|
2772
|
+
return regenerator_default().wrap(function _callee$(_context) {
|
2773
|
+
while (1) switch (_context.prev = _context.next) {
|
2424
2774
|
case 0:
|
2425
2775
|
if (props.beforeUpload) {
|
2426
|
-
_context.
|
2776
|
+
_context.next = 2;
|
2427
2777
|
break;
|
2428
2778
|
}
|
2429
|
-
return _context.
|
2430
|
-
case 1:
|
2431
|
-
_context.p = 1;
|
2432
|
-
_context.n = 2;
|
2433
|
-
return (_props$beforeUpload = props.beforeUpload) === null || _props$beforeUpload === void 0 ? void 0 : _props$beforeUpload.call(props, file, sendFiles);
|
2779
|
+
return _context.abrupt("return", send(file, sendFiles));
|
2434
2780
|
case 2:
|
2435
|
-
|
2436
|
-
_context.
|
2781
|
+
_context.prev = 2;
|
2782
|
+
_context.next = 5;
|
2783
|
+
return (_props$beforeUpload = props.beforeUpload) === null || _props$beforeUpload === void 0 ? void 0 : _props$beforeUpload.call(props, file, sendFiles);
|
2784
|
+
case 5:
|
2785
|
+
beforeResult = _context.sent;
|
2786
|
+
_context.next = 11;
|
2437
2787
|
break;
|
2438
|
-
case
|
2439
|
-
_context.
|
2440
|
-
|
2788
|
+
case 8:
|
2789
|
+
_context.prev = 8;
|
2790
|
+
_context.t0 = _context["catch"](2);
|
2441
2791
|
beforeResult = false;
|
2442
|
-
case
|
2792
|
+
case 11:
|
2443
2793
|
if (!(beforeResult === false)) {
|
2444
|
-
_context.
|
2794
|
+
_context.next = 14;
|
2445
2795
|
break;
|
2446
2796
|
}
|
2447
2797
|
handleRemove(file);
|
2448
|
-
return _context.
|
2449
|
-
case
|
2798
|
+
return _context.abrupt("return");
|
2799
|
+
case 14:
|
2450
2800
|
send(file, sendFiles);
|
2451
|
-
case
|
2452
|
-
|
2801
|
+
case 15:
|
2802
|
+
case "end":
|
2803
|
+
return _context.stop();
|
2453
2804
|
}
|
2454
|
-
}, _callee, null, [[
|
2805
|
+
}, _callee, null, [[2, 8]]);
|
2455
2806
|
}));
|
2456
2807
|
return _upload.apply(this, arguments);
|
2457
2808
|
}
|