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.
Files changed (154) hide show
  1. package/dist/index.cjs.js +42 -47
  2. package/dist/index.esm.js +7009 -7201
  3. package/dist/index.umd.js +45 -50
  4. package/lib/affix/index.js +14 -12
  5. package/lib/alert/index.js +14 -12
  6. package/lib/animate-number/index.js +12 -11
  7. package/lib/backtop/index.js +11 -10
  8. package/lib/badge/index.js +14 -12
  9. package/lib/breadcrumb/index.js +14 -12
  10. package/lib/button/index.js +14 -12
  11. package/lib/card/index.js +14 -12
  12. package/lib/cascader/index.js +101 -94
  13. package/lib/checkbox/index.js +35 -37
  14. package/lib/code-diff/index.js +674 -1170
  15. package/lib/collapse/index.js +42 -44
  16. package/lib/collapse-transition/index.js +4 -3
  17. package/lib/color-picker/index.js +60 -59
  18. package/lib/config-provider/index.js +14 -12
  19. package/lib/container/index.js +25 -21
  20. package/lib/date-picker/index.js +51 -58
  21. package/lib/dialog/index.js +441 -43
  22. package/lib/directives/index.js +34 -37
  23. package/lib/divider/index.js +3 -2
  24. package/lib/dropdown/index.js +21 -17
  25. package/lib/exception/index.js +17 -14
  26. package/lib/fixed-navbar/index.js +3 -2
  27. package/lib/form/index.js +34 -37
  28. package/lib/icon/angle-double-down-line.js +36 -29
  29. package/lib/icon/angle-double-left-line.js +36 -29
  30. package/lib/icon/angle-double-left.js +36 -29
  31. package/lib/icon/angle-double-right-line.js +36 -29
  32. package/lib/icon/angle-double-right.js +36 -29
  33. package/lib/icon/angle-double-up-line.js +36 -29
  34. package/lib/icon/angle-down-fill.js +36 -29
  35. package/lib/icon/angle-down-line.js +36 -29
  36. package/lib/icon/angle-down.js +36 -29
  37. package/lib/icon/angle-left.js +36 -29
  38. package/lib/icon/angle-right.js +36 -29
  39. package/lib/icon/angle-up-fill.js +36 -29
  40. package/lib/icon/angle-up.js +36 -29
  41. package/lib/icon/archive-fill.js +36 -29
  42. package/lib/icon/arrows-left.js +36 -29
  43. package/lib/icon/arrows-right.js +36 -29
  44. package/lib/icon/assistant.js +36 -29
  45. package/lib/icon/audio-fill.js +36 -29
  46. package/lib/icon/bk.js +36 -29
  47. package/lib/icon/circle.js +36 -29
  48. package/lib/icon/close-line.js +36 -29
  49. package/lib/icon/close.js +36 -29
  50. package/lib/icon/code.js +36 -29
  51. package/lib/icon/cog-shape.js +36 -29
  52. package/lib/icon/collapse-left.js +36 -29
  53. package/lib/icon/copy-shape.js +36 -29
  54. package/lib/icon/copy.js +36 -29
  55. package/lib/icon/data-shape.js +36 -29
  56. package/lib/icon/del.js +36 -29
  57. package/lib/icon/doc-fill.js +36 -29
  58. package/lib/icon/done.js +36 -29
  59. package/lib/icon/down-shape.js +36 -29
  60. package/lib/icon/down-small.js +36 -29
  61. package/lib/icon/edit-line.js +36 -29
  62. package/lib/icon/ellipsis.js +36 -29
  63. package/lib/icon/enlarge-line.js +36 -29
  64. package/lib/icon/error.js +36 -29
  65. package/lib/icon/excel-fill.js +36 -29
  66. package/lib/icon/exclamation-circle-shape.js +36 -29
  67. package/lib/icon/eye.js +36 -29
  68. package/lib/icon/filliscreen-line.js +36 -29
  69. package/lib/icon/fix-line.js +36 -29
  70. package/lib/icon/fix-shape.js +36 -29
  71. package/lib/icon/folder-open.js +36 -29
  72. package/lib/icon/folder-shape-open.js +36 -29
  73. package/lib/icon/folder-shape.js +36 -29
  74. package/lib/icon/folder.js +36 -29
  75. package/lib/icon/funnel.js +36 -29
  76. package/lib/icon/grag-fill.js +36 -29
  77. package/lib/icon/help-document-fill.js +36 -29
  78. package/lib/icon/help-fill.js +36 -29
  79. package/lib/icon/help.js +36 -29
  80. package/lib/icon/image-fill.js +36 -29
  81. package/lib/icon/img-error.js +36 -29
  82. package/lib/icon/img-placehoulder.js +36 -29
  83. package/lib/icon/info-line.js +36 -29
  84. package/lib/icon/info.js +36 -29
  85. package/lib/icon/left-shape.js +36 -29
  86. package/lib/icon/left-turn-line.js +36 -29
  87. package/lib/icon/loading.js +36 -29
  88. package/lib/icon/narrow-line.js +36 -29
  89. package/lib/icon/original.js +36 -29
  90. package/lib/icon/pdf-fill.js +36 -29
  91. package/lib/icon/play-shape.js +36 -29
  92. package/lib/icon/plus.js +36 -29
  93. package/lib/icon/ppt-fill.js +36 -29
  94. package/lib/icon/qq.js +36 -29
  95. package/lib/icon/right-shape.js +36 -29
  96. package/lib/icon/right-turn-line.js +36 -29
  97. package/lib/icon/search.js +36 -29
  98. package/lib/icon/share.js +36 -29
  99. package/lib/icon/spinner.js +36 -29
  100. package/lib/icon/success.js +36 -29
  101. package/lib/icon/switcher-loading.js +36 -29
  102. package/lib/icon/text-all.js +36 -29
  103. package/lib/icon/text-file.js +36 -29
  104. package/lib/icon/text-fill.js +36 -29
  105. package/lib/icon/transfer.js +36 -29
  106. package/lib/icon/tree-application-shape.js +36 -29
  107. package/lib/icon/unfull-screen.js +36 -29
  108. package/lib/icon/unvisible.js +36 -29
  109. package/lib/icon/up-shape.js +36 -29
  110. package/lib/icon/upload.js +36 -29
  111. package/lib/icon/video-fill.js +36 -29
  112. package/lib/icon/warn.js +36 -29
  113. package/lib/icon/weixin-pro.js +36 -29
  114. package/lib/icon/weixin.js +36 -29
  115. package/lib/image/index.js +47 -49
  116. package/lib/index.js +1 -1
  117. package/lib/info-box/index.js +461 -62
  118. package/lib/input/index.js +60 -62
  119. package/lib/link/index.js +2 -2
  120. package/lib/loading/index.js +25 -22
  121. package/lib/menu/index.js +34 -36
  122. package/lib/message/index.js +31 -34
  123. package/lib/modal/index.js +14 -12
  124. package/lib/navigation/index.js +9 -7
  125. package/lib/notify/index.js +14 -12
  126. package/lib/overflow-title/index.js +10 -9
  127. package/lib/pagination/index.js +29 -32
  128. package/lib/pop-confirm/index.js +5 -4
  129. package/lib/popover/index.js +136 -209
  130. package/lib/popover2/index.js +2 -2
  131. package/lib/process/index.js +452 -59
  132. package/lib/progress/index.js +19 -16
  133. package/lib/radio/index.js +34 -37
  134. package/lib/rate/index.js +14 -12
  135. package/lib/resize-layout/index.js +20 -18
  136. package/lib/scrollbar/index.js +58 -51
  137. package/lib/search-select/index.js +595 -222
  138. package/lib/select/index.js +463 -111
  139. package/lib/shared/index.js +95 -83
  140. package/lib/sideslider/index.js +441 -43
  141. package/lib/slider/index.js +446 -49
  142. package/lib/steps/index.js +458 -60
  143. package/lib/swiper/index.js +17 -15
  144. package/lib/switcher/index.js +14 -12
  145. package/lib/tab/index.js +40 -42
  146. package/lib/table/index.js +501 -152
  147. package/lib/tag/index.js +14 -12
  148. package/lib/tag-input/index.js +41 -47
  149. package/lib/timeline/index.js +0 -1
  150. package/lib/transfer/index.js +17 -22
  151. package/lib/tree/index.js +66 -73
  152. package/lib/upload/index.js +487 -136
  153. package/lib/virtual-render/index.js +51 -47
  154. package/package.json +1 -2
@@ -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(n, t, e, r, o, a, c) {
1176
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
829
1177
  try {
830
- var i = n[a](c),
831
- u = i.value;
832
- } catch (n) {
833
- return void e(n);
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(n) {
1190
+ function _asyncToGenerator(fn) {
838
1191
  return function () {
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);
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(n) {
847
- asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
1199
+ function _throw(err) {
1200
+ asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
848
1201
  }
849
- _next(void 0);
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(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;
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(r) {
1131
- if (Array.isArray(r)) return r;
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(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;
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(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
- }
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(r, e) {
1191
- return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
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(r) {
1678
- if (Array.isArray(r)) return _arrayLikeToArray(r);
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(r) {
1683
- if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
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(r) {
1697
- return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
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
- 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); }
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__*/_regenerator().m(function _callee(option) {
2198
+ var _ref = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee(option) {
1852
2199
  var chunkSize, file, blockCount, hash, progressList;
1853
- return _regenerator().w(function (_context) {
1854
- while (1) switch (_context.n) {
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.n = 1;
2206
+ _context.next = 4;
1860
2207
  break;
1861
2208
  }
1862
2209
  throw new Error('File not found');
1863
- case 1:
2210
+ case 4:
1864
2211
  blockCount = Math.ceil(file.size / chunkSize);
1865
- _context.n = 2;
2212
+ _context.next = 7;
1866
2213
  return hashFile(file, chunkSize);
1867
- case 2:
1868
- hash = _context.v;
2214
+ case 7:
2215
+ hash = _context.sent;
1869
2216
  progressList = [];
1870
2217
  sliceSend(option, file, blockCount, hash, progressList, chunkSize);
1871
2218
  // 所有分片上传后,请求合并分片文件
1872
- _context.n = 3;
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 3:
1903
- return _context.a(2);
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
- 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); }
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__*/use_file_handler_regenerator().m(function _callee(file) {
2495
+ _handleRemove = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee(file) {
2149
2496
  var uploadFile, remove, _props$beforeRemove, before;
2150
- return use_file_handler_regenerator().w(function (_context) {
2151
- while (1) switch (_context.n) {
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.n = 2;
2510
+ _context.next = 9;
2164
2511
  break;
2165
2512
  }
2166
- _context.n = 1;
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 1:
2169
- before = _context.v;
2515
+ case 5:
2516
+ before = _context.sent;
2170
2517
  if (before !== false) {
2171
2518
  remove(uploadFile);
2172
2519
  }
2173
- _context.n = 3;
2520
+ _context.next = 10;
2174
2521
  break;
2175
- case 2:
2522
+ case 9:
2176
2523
  remove(uploadFile);
2177
- case 3:
2178
- return _context.a(2);
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__*/use_file_handler_regenerator().m(function _callee2(err, rawFile, res) {
2536
+ _handleError = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee2(err, rawFile, res) {
2189
2537
  var file;
2190
- return use_file_handler_regenerator().w(function (_context2) {
2191
- while (1) switch (_context2.n) {
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.n = 1;
2543
+ _context2.next = 3;
2196
2544
  break;
2197
2545
  }
2198
- return _context2.a(2);
2199
- case 1:
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 2:
2204
- return _context2.a(2);
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__*/use_file_handler_regenerator().m(function _callee3(res, rawFile) {
2563
+ _handleSuccess = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee3(res, rawFile) {
2215
2564
  var file;
2216
- return use_file_handler_regenerator().w(function (_context3) {
2217
- while (1) switch (_context3.n) {
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.n = 1;
2570
+ _context3.next = 3;
2222
2571
  break;
2223
2572
  }
2224
- return _context3.a(2);
2225
- case 1:
2573
+ return _context3.abrupt("return");
2574
+ case 3:
2226
2575
  file.status = 'success';
2227
2576
  file.response = res;
2228
- case 2:
2229
- return _context3.a(2);
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__*/use_file_handler_regenerator().m(function _callee4(event, rawFile) {
2589
+ _handleProgress = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee4(event, rawFile) {
2240
2590
  var file;
2241
- return use_file_handler_regenerator().w(function (_context4) {
2242
- while (1) switch (_context4.n) {
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.n = 1;
2597
+ _context4.next = 3;
2248
2598
  break;
2249
2599
  }
2250
- return _context4.a(2);
2251
- case 1:
2600
+ return _context4.abrupt("return");
2601
+ case 3:
2252
2602
  file.status = 'uploading';
2253
2603
  file.percentage = Math.round(event.percent);
2254
- case 2:
2255
- return _context4.a(2);
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
- 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; }
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__*/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) {
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.n = 1;
2776
+ _context.next = 2;
2427
2777
  break;
2428
2778
  }
2429
- return _context.a(2, send(file, sendFiles));
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
- beforeResult = _context.v;
2436
- _context.n = 4;
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 3:
2439
- _context.p = 3;
2440
- _t = _context.v;
2788
+ case 8:
2789
+ _context.prev = 8;
2790
+ _context.t0 = _context["catch"](2);
2441
2791
  beforeResult = false;
2442
- case 4:
2792
+ case 11:
2443
2793
  if (!(beforeResult === false)) {
2444
- _context.n = 5;
2794
+ _context.next = 14;
2445
2795
  break;
2446
2796
  }
2447
2797
  handleRemove(file);
2448
- return _context.a(2);
2449
- case 5:
2798
+ return _context.abrupt("return");
2799
+ case 14:
2450
2800
  send(file, sendFiles);
2451
- case 6:
2452
- return _context.a(2);
2801
+ case 15:
2802
+ case "end":
2803
+ return _context.stop();
2453
2804
  }
2454
- }, _callee, null, [[1, 3]]);
2805
+ }, _callee, null, [[2, 8]]);
2455
2806
  }));
2456
2807
  return _upload.apply(this, arguments);
2457
2808
  }