bkui-vue 2.0.2-beta.45 → 2.0.2-beta.46

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