bkui-vue 2.0.1-beta.110 → 2.0.1-beta.112
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +54 -54
- package/dist/index.esm.js +23106 -23099
- package/dist/index.umd.js +54 -54
- package/dist/style.css +1 -1
- package/lib/affix/index.d.ts +57 -111
- package/lib/affix/index.js +17 -17
- package/lib/alert/index.d.ts +73 -126
- package/lib/alert/index.js +20 -20
- package/lib/animate-number/index.d.ts +33 -96
- package/lib/animate-number/index.js +8 -7
- package/lib/backtop/index.d.ts +69 -117
- package/lib/backtop/index.js +11 -10
- package/lib/badge/index.d.ts +119 -152
- package/lib/badge/index.js +19 -19
- package/lib/breadcrumb/index.d.ts +67 -119
- package/lib/breadcrumb/index.js +17 -17
- package/lib/button/button.d.ts +2 -2
- package/lib/button/index.d.ts +121 -156
- package/lib/button/index.js +19 -20
- package/lib/card/index.d.ts +128 -157
- package/lib/card/index.js +20 -22
- package/lib/cascader/cascader.d.ts +5 -5
- package/lib/cascader/index.d.ts +395 -356
- package/lib/cascader/index.js +74 -805
- package/lib/checkbox/checkbox.d.ts +1 -1
- package/lib/checkbox/index.d.ts +143 -175
- package/lib/checkbox/index.js +45 -45
- package/lib/code-diff/index.d.ts +65 -82
- package/lib/code-diff/index.js +381 -438
- package/lib/collapse/index.d.ts +156 -175
- package/lib/collapse/index.js +28 -27
- package/lib/collapse-transition/index.d.ts +19 -94
- package/lib/collapse-transition/index.js +4 -3
- package/lib/color-picker/color-picker.d.ts +1 -1
- package/lib/color-picker/index.d.ts +144 -165
- package/lib/color-picker/index.js +50 -294
- package/lib/config-provider/index.d.ts +160 -227
- package/lib/config-provider/index.js +17 -17
- package/lib/container/container.d.ts +1 -1
- package/lib/container/index.d.ts +74 -85
- package/lib/container/index.js +28 -26
- package/lib/date-picker/base/picker-dropdown.d.ts +1 -1
- package/lib/date-picker/base/time-spinner.d.ts +3 -3
- package/lib/date-picker/date-picker.d.ts +4 -4
- package/lib/date-picker/index.d.ts +382 -352
- package/lib/date-picker/index.js +154 -150
- package/lib/date-picker/panel/date-range.d.ts +1 -1
- package/lib/date-picker/panel/date.d.ts +1 -1
- package/lib/date-picker/panel/time-range.d.ts +2 -2
- package/lib/date-picker/panel/time.d.ts +2 -2
- package/lib/date-picker/time-picker.d.ts +4 -4
- package/lib/dialog/index.d.ts +299 -269
- package/lib/dialog/index.js +227 -228
- package/lib/directives/index.d.ts +1 -0
- package/lib/directives/index.js +29 -29
- package/lib/divider/index.d.ts +57 -111
- package/lib/divider/index.js +3 -2
- package/lib/dropdown/dropdown.d.ts +1 -1
- package/lib/dropdown/index.d.ts +94 -136
- package/lib/dropdown/index.js +24 -22
- package/lib/exception/index.d.ts +41 -102
- package/lib/exception/index.js +21 -21
- package/lib/fixed-navbar/index.d.ts +59 -113
- package/lib/fixed-navbar/index.js +3 -2
- package/lib/form/form.d.ts +1 -1
- package/lib/form/index.d.ts +80 -132
- package/lib/form/index.js +21 -22
- package/lib/icon/angle-double-down-line.js +17 -17
- package/lib/icon/angle-double-left-line.js +17 -17
- package/lib/icon/angle-double-left.js +17 -17
- package/lib/icon/angle-double-right-line.js +17 -17
- package/lib/icon/angle-double-right.js +17 -17
- package/lib/icon/angle-double-up-line.js +17 -17
- package/lib/icon/angle-down-fill.js +17 -17
- package/lib/icon/angle-down-line.js +17 -17
- package/lib/icon/angle-down.js +17 -17
- package/lib/icon/angle-left.js +17 -17
- package/lib/icon/angle-right.js +17 -17
- package/lib/icon/angle-up-fill.js +17 -17
- package/lib/icon/angle-up.js +17 -17
- package/lib/icon/archive-fill.js +17 -17
- package/lib/icon/arrows-left.js +17 -17
- package/lib/icon/arrows-right.js +17 -17
- package/lib/icon/assistant.js +17 -17
- package/lib/icon/audio-fill.js +17 -17
- package/lib/icon/bk.js +17 -17
- package/lib/icon/circle.js +17 -17
- package/lib/icon/close-line.js +17 -17
- package/lib/icon/close.js +17 -17
- package/lib/icon/code.js +17 -17
- package/lib/icon/cog-shape.js +17 -17
- package/lib/icon/collapse-left.js +17 -17
- package/lib/icon/copy-shape.js +17 -17
- package/lib/icon/copy.js +17 -17
- package/lib/icon/data-shape.js +17 -17
- package/lib/icon/del.js +17 -17
- package/lib/icon/doc-fill.js +17 -17
- package/lib/icon/done.js +17 -17
- package/lib/icon/down-shape.js +17 -17
- package/lib/icon/down-small.js +17 -17
- package/lib/icon/edit-line.js +17 -17
- package/lib/icon/ellipsis.js +17 -17
- package/lib/icon/enlarge-line.js +17 -17
- package/lib/icon/error.js +17 -17
- package/lib/icon/excel-fill.js +17 -17
- package/lib/icon/exclamation-circle-shape.js +17 -17
- package/lib/icon/eye.js +17 -17
- package/lib/icon/filliscreen-line.js +17 -17
- package/lib/icon/fix-line.js +17 -17
- package/lib/icon/fix-shape.js +17 -17
- package/lib/icon/folder-open.js +17 -17
- package/lib/icon/folder-shape-open.js +17 -17
- package/lib/icon/folder-shape.js +17 -17
- package/lib/icon/folder.js +17 -17
- package/lib/icon/funnel.js +17 -17
- package/lib/icon/grag-fill.js +17 -17
- package/lib/icon/help-document-fill.js +17 -17
- package/lib/icon/help-fill.js +17 -17
- package/lib/icon/help.js +17 -17
- package/lib/icon/image-fill.js +17 -17
- package/lib/icon/img-error.js +17 -17
- package/lib/icon/img-placehoulder.js +17 -17
- package/lib/icon/info-line.js +17 -17
- package/lib/icon/info.js +17 -17
- package/lib/icon/left-shape.js +17 -17
- package/lib/icon/left-turn-line.js +17 -17
- package/lib/icon/loading.js +17 -17
- package/lib/icon/narrow-line.js +17 -17
- package/lib/icon/original.js +17 -17
- package/lib/icon/pdf-fill.js +17 -17
- package/lib/icon/play-shape.js +17 -17
- package/lib/icon/plus.js +17 -17
- package/lib/icon/ppt-fill.js +17 -17
- package/lib/icon/qq.js +17 -17
- package/lib/icon/right-shape.js +17 -17
- package/lib/icon/right-turn-line.js +17 -17
- package/lib/icon/search.js +17 -17
- package/lib/icon/share.js +17 -17
- package/lib/icon/spinner.js +17 -17
- package/lib/icon/success.js +17 -17
- package/lib/icon/switcher-loading.js +17 -17
- package/lib/icon/text-all.js +17 -17
- package/lib/icon/text-file.js +17 -17
- package/lib/icon/text-fill.js +17 -17
- package/lib/icon/transfer.js +17 -17
- package/lib/icon/tree-application-shape.js +17 -17
- package/lib/icon/unfull-screen.js +17 -17
- package/lib/icon/unvisible.js +17 -17
- package/lib/icon/up-shape.js +17 -17
- package/lib/icon/upload.js +17 -17
- package/lib/icon/video-fill.js +17 -17
- package/lib/icon/warn.js +17 -17
- package/lib/icon/weixin-pro.js +17 -17
- package/lib/icon/weixin.js +17 -17
- package/lib/image/index.d.ts +113 -149
- package/lib/image/index.js +27 -26
- package/lib/index.js +1 -1
- package/lib/info-box/index.js +232 -233
- package/lib/input/index.d.ts +326 -293
- package/lib/input/index.js +46 -48
- package/lib/link/index.d.ts +73 -122
- package/lib/link/index.js +2 -2
- package/lib/loading/index.d.ts +130 -156
- package/lib/loading/index.js +32 -33
- package/lib/loading/loading.d.ts +1 -1
- package/lib/menu/index.d.ts +55 -116
- package/lib/menu/index.js +26 -25
- package/lib/message/index.js +24 -25
- package/lib/message/messageConstructor.d.ts +5 -5
- package/lib/modal/index.d.ts +171 -185
- package/lib/modal/index.js +19 -19
- package/lib/navigation/index.d.ts +152 -188
- package/lib/navigation/index.js +9 -7
- package/lib/notify/index.js +20 -21
- package/lib/overflow-title/index.d.ts +343 -256
- package/lib/overflow-title/index.js +11 -10
- package/lib/pagination/index.d.ts +185 -199
- package/lib/pagination/index.js +49 -56
- package/lib/pagination/pagination.d.ts +1 -1
- package/lib/plugin-popover/index.d.ts +1 -1
- package/lib/plugin-popover/index.js +4 -3898
- package/lib/pop-confirm/index.d.ts +119 -157
- package/lib/pop-confirm/index.js +5 -4
- package/lib/pop-confirm/pop-confirm.d.ts +5 -5
- package/lib/pop-confirm/props.d.ts +1 -1
- package/lib/popover/content.d.ts +1 -1
- package/lib/popover/index.d.ts +421 -359
- package/lib/popover/index.js +241 -264
- package/lib/popover2/index.d.ts +8 -83
- package/lib/popover2/index.js +2 -2
- package/lib/process/index.d.ts +93 -137
- package/lib/process/index.js +226 -226
- package/lib/progress/index.d.ts +178 -187
- package/lib/progress/index.js +22 -21
- package/lib/progress/progress.d.ts +2 -2
- package/lib/radio/index.d.ts +91 -140
- package/lib/radio/index.js +46 -48
- package/lib/rate/index.d.ts +55 -112
- package/lib/rate/index.js +19 -20
- package/lib/resize-layout/index.d.ts +168 -192
- package/lib/resize-layout/index.js +20 -21
- package/lib/resize-layout/resize-layout.d.ts +2 -2
- package/lib/scrollbar/index.js +38 -38
- package/lib/search-select/index.d.ts +678 -895
- package/lib/search-select/index.js +274 -274
- package/lib/search-select/input.d.ts +2 -2
- package/lib/search-select/search-select.d.ts +133 -188
- package/lib/search-select/selected.d.ts +133 -188
- package/lib/select/index.d.ts +1380 -1221
- package/lib/select/index.js +336 -334
- package/lib/select/select.d.ts +134 -171
- package/lib/select/selectTagInput.d.ts +2 -2
- package/lib/shared/index.js +54 -56
- package/lib/sideslider/index.d.ts +197 -201
- package/lib/sideslider/index.js +227 -228
- package/lib/slider/index.d.ts +214 -210
- package/lib/slider/index.js +226 -225
- package/lib/steps/index.d.ts +110 -149
- package/lib/steps/index.js +230 -231
- package/lib/swiper/index.d.ts +81 -127
- package/lib/swiper/index.js +18 -18
- package/lib/switcher/index.d.ts +152 -174
- package/lib/switcher/index.js +20 -22
- package/lib/tab/index.d.ts +151 -183
- package/lib/tab/index.js +20 -19
- package/lib/table/components/table-column.d.ts +1 -1
- package/lib/table/hooks/use-columns.d.ts +1 -1
- package/lib/table/hooks/use-layout.d.ts +2 -2
- package/lib/table/hooks/use-rows.d.ts +1 -1
- package/lib/table/index.d.ts +459 -364
- package/lib/table/index.js +336 -348
- package/lib/table/table.d.ts +3 -3
- package/lib/table-column/index.d.ts +104 -150
- package/lib/table-column/index.js +7 -731
- package/lib/tag/index.d.ts +95 -142
- package/lib/tag/index.js +19 -19
- package/lib/tag-input/index.d.ts +750 -533
- package/lib/tag-input/index.js +151 -151
- package/lib/tag-input/tag-input.d.ts +9 -9
- package/lib/tag-input/tag-props.d.ts +1 -1
- package/lib/tag-input/tag-render.d.ts +2 -2
- package/lib/time-picker/index.d.ts +439 -386
- package/lib/timeline/index.d.ts +64 -131
- package/lib/timeline/index.js +6 -6
- package/lib/transfer/index.d.ts +192 -207
- package/lib/transfer/transfer.d.ts +1 -1
- package/lib/tree/index.d.ts +350 -308
- package/lib/tree/index.js +71 -74
- package/lib/tree/tree.d.ts +1 -1
- package/lib/tree/use-tree-init.d.ts +1 -1
- package/lib/upload/index.d.ts +311 -273
- package/lib/upload/index.js +261 -264
- package/lib/upload/upload.d.ts +2 -2
- package/lib/virtual-render/index.d.ts +333 -241
- package/lib/virtual-render/index.js +29 -29
- package/lib/virtual-render/virtual-render.d.ts +1 -1
- package/package.json +1 -1
package/lib/upload/index.js
CHANGED
@@ -761,304 +761,304 @@ var _typeof = (__webpack_require__(7425)["default"]);
|
|
761
761
|
function _regeneratorRuntime() {
|
762
762
|
"use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
763
763
|
module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
|
764
|
-
return
|
764
|
+
return e;
|
765
765
|
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
766
|
-
var
|
767
|
-
|
768
|
-
|
769
|
-
|
770
|
-
|
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;
|
771
772
|
},
|
772
|
-
|
773
|
-
|
774
|
-
|
775
|
-
|
776
|
-
function define(
|
777
|
-
return Object.defineProperty(
|
778
|
-
value:
|
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,
|
779
780
|
enumerable: !0,
|
780
781
|
configurable: !0,
|
781
782
|
writable: !0
|
782
|
-
}),
|
783
|
+
}), t[e];
|
783
784
|
}
|
784
785
|
try {
|
785
786
|
define({}, "");
|
786
|
-
} catch (
|
787
|
-
define = function define(
|
788
|
-
return
|
787
|
+
} catch (t) {
|
788
|
+
define = function define(t, e, r) {
|
789
|
+
return t[e] = r;
|
789
790
|
};
|
790
791
|
}
|
791
|
-
function wrap(
|
792
|
-
var
|
793
|
-
|
794
|
-
|
795
|
-
return
|
796
|
-
value: makeInvokeMethod(
|
797
|
-
}),
|
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;
|
798
799
|
}
|
799
|
-
function tryCatch(
|
800
|
+
function tryCatch(t, e, r) {
|
800
801
|
try {
|
801
802
|
return {
|
802
803
|
type: "normal",
|
803
|
-
arg:
|
804
|
+
arg: t.call(e, r)
|
804
805
|
};
|
805
|
-
} catch (
|
806
|
+
} catch (t) {
|
806
807
|
return {
|
807
808
|
type: "throw",
|
808
|
-
arg:
|
809
|
+
arg: t
|
809
810
|
};
|
810
811
|
}
|
811
812
|
}
|
812
|
-
|
813
|
-
var
|
813
|
+
e.wrap = wrap;
|
814
|
+
var h = "suspendedStart",
|
815
|
+
l = "suspendedYield",
|
816
|
+
f = "executing",
|
817
|
+
s = "completed",
|
818
|
+
y = {};
|
814
819
|
function Generator() {}
|
815
820
|
function GeneratorFunction() {}
|
816
821
|
function GeneratorFunctionPrototype() {}
|
817
|
-
var
|
818
|
-
define(
|
822
|
+
var p = {};
|
823
|
+
define(p, a, function () {
|
819
824
|
return this;
|
820
825
|
});
|
821
|
-
var
|
822
|
-
|
823
|
-
|
824
|
-
var
|
825
|
-
function defineIteratorMethods(
|
826
|
-
["next", "throw", "return"].forEach(function (
|
827
|
-
define(
|
828
|
-
return this._invoke(
|
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);
|
829
834
|
});
|
830
835
|
});
|
831
836
|
}
|
832
|
-
function AsyncIterator(
|
833
|
-
function invoke(
|
834
|
-
var
|
835
|
-
if ("throw" !==
|
836
|
-
var
|
837
|
-
|
838
|
-
return
|
839
|
-
invoke("next",
|
840
|
-
}, function (
|
841
|
-
invoke("throw",
|
842
|
-
}) :
|
843
|
-
|
844
|
-
}, function (
|
845
|
-
return invoke("throw",
|
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);
|
846
851
|
});
|
847
852
|
}
|
848
|
-
|
853
|
+
a(c.arg);
|
849
854
|
}
|
850
|
-
var
|
851
|
-
|
852
|
-
value: function value(
|
855
|
+
var r;
|
856
|
+
o(this, "_invoke", {
|
857
|
+
value: function value(t, n) {
|
853
858
|
function callInvokeWithMethodAndArg() {
|
854
|
-
return new
|
855
|
-
invoke(
|
859
|
+
return new e(function (e, r) {
|
860
|
+
invoke(t, n, e, r);
|
856
861
|
});
|
857
862
|
}
|
858
|
-
return
|
863
|
+
return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
859
864
|
}
|
860
865
|
});
|
861
866
|
}
|
862
|
-
function makeInvokeMethod(
|
863
|
-
var
|
864
|
-
return function (
|
865
|
-
if (
|
866
|
-
if (
|
867
|
-
if ("throw" ===
|
868
|
-
return
|
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
|
+
};
|
869
877
|
}
|
870
|
-
for (
|
871
|
-
var
|
872
|
-
if (
|
873
|
-
var
|
874
|
-
if (
|
875
|
-
if (
|
876
|
-
return
|
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;
|
877
885
|
}
|
878
886
|
}
|
879
|
-
if ("next" ===
|
880
|
-
if (
|
881
|
-
|
882
|
-
} else "return" ===
|
883
|
-
|
884
|
-
var
|
885
|
-
if ("normal" ===
|
886
|
-
if (
|
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;
|
887
895
|
return {
|
888
|
-
value:
|
889
|
-
done:
|
896
|
+
value: p.arg,
|
897
|
+
done: n.done
|
890
898
|
};
|
891
899
|
}
|
892
|
-
"throw" ===
|
900
|
+
"throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
|
893
901
|
}
|
894
902
|
};
|
895
903
|
}
|
896
|
-
function maybeInvokeDelegate(
|
897
|
-
var
|
898
|
-
|
899
|
-
if (
|
900
|
-
var
|
901
|
-
if ("throw" ===
|
902
|
-
var
|
903
|
-
return
|
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);
|
904
912
|
}
|
905
|
-
function pushTryEntry(
|
906
|
-
var
|
907
|
-
tryLoc:
|
913
|
+
function pushTryEntry(t) {
|
914
|
+
var e = {
|
915
|
+
tryLoc: t[0]
|
908
916
|
};
|
909
|
-
1 in
|
917
|
+
1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
|
910
918
|
}
|
911
|
-
function resetTryEntry(
|
912
|
-
var
|
913
|
-
|
919
|
+
function resetTryEntry(t) {
|
920
|
+
var e = t.completion || {};
|
921
|
+
e.type = "normal", delete e.arg, t.completion = e;
|
914
922
|
}
|
915
|
-
function Context(
|
923
|
+
function Context(t) {
|
916
924
|
this.tryEntries = [{
|
917
925
|
tryLoc: "root"
|
918
|
-
}],
|
926
|
+
}], t.forEach(pushTryEntry, this), this.reset(!0);
|
919
927
|
}
|
920
|
-
function values(
|
921
|
-
if (
|
922
|
-
var
|
923
|
-
if (
|
924
|
-
if ("function" == typeof
|
925
|
-
if (!isNaN(
|
926
|
-
var
|
927
|
-
|
928
|
-
for (; ++
|
929
|
-
return next.value =
|
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;
|
930
938
|
};
|
931
|
-
return
|
939
|
+
return i.next = i;
|
932
940
|
}
|
933
941
|
}
|
934
|
-
|
935
|
-
next: doneResult
|
936
|
-
};
|
937
|
-
}
|
938
|
-
function doneResult() {
|
939
|
-
return {
|
940
|
-
value: undefined,
|
941
|
-
done: !0
|
942
|
-
};
|
942
|
+
throw new TypeError(_typeof(e) + " is not iterable");
|
943
943
|
}
|
944
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype,
|
944
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
|
945
945
|
value: GeneratorFunctionPrototype,
|
946
946
|
configurable: !0
|
947
|
-
}),
|
947
|
+
}), o(GeneratorFunctionPrototype, "constructor", {
|
948
948
|
value: GeneratorFunction,
|
949
949
|
configurable: !0
|
950
|
-
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype,
|
951
|
-
var
|
952
|
-
return !!
|
953
|
-
},
|
954
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(
|
955
|
-
},
|
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
956
|
return {
|
957
|
-
__await:
|
957
|
+
__await: t
|
958
958
|
};
|
959
|
-
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype,
|
959
|
+
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
|
960
960
|
return this;
|
961
|
-
}),
|
962
|
-
void 0 ===
|
963
|
-
var
|
964
|
-
return
|
965
|
-
return
|
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
966
|
});
|
967
|
-
}, defineIteratorMethods(
|
967
|
+
}, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
|
968
968
|
return this;
|
969
|
-
}), define(
|
969
|
+
}), define(g, "toString", function () {
|
970
970
|
return "[object Generator]";
|
971
|
-
}),
|
972
|
-
var
|
973
|
-
|
974
|
-
for (var
|
975
|
-
return
|
976
|
-
for (;
|
977
|
-
var
|
978
|
-
if (
|
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
979
|
}
|
980
980
|
return next.done = !0, next;
|
981
981
|
};
|
982
|
-
},
|
982
|
+
}, e.values = values, Context.prototype = {
|
983
983
|
constructor: Context,
|
984
|
-
reset: function reset(
|
985
|
-
if (this.prev = 0, this.next = 0, this.sent = this._sent =
|
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
986
|
},
|
987
987
|
stop: function stop() {
|
988
988
|
this.done = !0;
|
989
|
-
var
|
990
|
-
if ("throw" ===
|
989
|
+
var t = this.tryEntries[0].completion;
|
990
|
+
if ("throw" === t.type) throw t.arg;
|
991
991
|
return this.rval;
|
992
992
|
},
|
993
|
-
dispatchException: function dispatchException(
|
994
|
-
if (this.done) throw
|
995
|
-
var
|
996
|
-
function handle(
|
997
|
-
return
|
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
998
|
}
|
999
|
-
for (var
|
1000
|
-
var
|
1001
|
-
|
1002
|
-
if ("root" ===
|
1003
|
-
if (
|
1004
|
-
var
|
1005
|
-
|
1006
|
-
if (
|
1007
|
-
if (this.prev <
|
1008
|
-
if (this.prev <
|
1009
|
-
} else if (
|
1010
|
-
if (this.prev <
|
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
1011
|
} else {
|
1012
|
-
if (!
|
1013
|
-
if (this.prev <
|
1012
|
+
if (!u) throw new Error("try statement without catch or finally");
|
1013
|
+
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
1014
1014
|
}
|
1015
1015
|
}
|
1016
1016
|
}
|
1017
1017
|
},
|
1018
|
-
abrupt: function abrupt(
|
1019
|
-
for (var
|
1020
|
-
var
|
1021
|
-
if (
|
1022
|
-
var
|
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
1023
|
break;
|
1024
1024
|
}
|
1025
1025
|
}
|
1026
|
-
|
1027
|
-
var
|
1028
|
-
return
|
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
1029
|
},
|
1030
|
-
complete: function complete(
|
1031
|
-
if ("throw" ===
|
1032
|
-
return "break" ===
|
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
1033
|
},
|
1034
|
-
finish: function finish(
|
1035
|
-
for (var
|
1036
|
-
var
|
1037
|
-
if (
|
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
1038
|
}
|
1039
1039
|
},
|
1040
|
-
"catch": function _catch(
|
1041
|
-
for (var
|
1042
|
-
var
|
1043
|
-
if (
|
1044
|
-
var
|
1045
|
-
if ("throw" ===
|
1046
|
-
var
|
1047
|
-
resetTryEntry(
|
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
1048
|
}
|
1049
|
-
return
|
1049
|
+
return o;
|
1050
1050
|
}
|
1051
1051
|
}
|
1052
1052
|
throw new Error("illegal catch attempt");
|
1053
1053
|
},
|
1054
|
-
delegateYield: function delegateYield(
|
1054
|
+
delegateYield: function delegateYield(e, r, n) {
|
1055
1055
|
return this.delegate = {
|
1056
|
-
iterator: values(
|
1057
|
-
resultName:
|
1058
|
-
nextLoc:
|
1059
|
-
}, "next" === this.method && (this.arg =
|
1056
|
+
iterator: values(e),
|
1057
|
+
resultName: r,
|
1058
|
+
nextLoc: n
|
1059
|
+
}, "next" === this.method && (this.arg = t), y;
|
1060
1060
|
}
|
1061
|
-
},
|
1061
|
+
}, e;
|
1062
1062
|
}
|
1063
1063
|
module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
1064
1064
|
|
@@ -1067,14 +1067,14 @@ module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.e
|
|
1067
1067
|
/***/ 7425:
|
1068
1068
|
/***/ ((module) => {
|
1069
1069
|
|
1070
|
-
function _typeof(
|
1070
|
+
function _typeof(o) {
|
1071
1071
|
"@babel/helpers - typeof";
|
1072
1072
|
|
1073
|
-
return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (
|
1074
|
-
return typeof
|
1075
|
-
} : function (
|
1076
|
-
return
|
1077
|
-
}, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(
|
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
1078
|
}
|
1079
1079
|
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
1080
1080
|
|
@@ -1204,38 +1204,38 @@ function _asyncToGenerator(fn) {
|
|
1204
1204
|
};
|
1205
1205
|
}
|
1206
1206
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
1207
|
-
function _typeof(
|
1207
|
+
function _typeof(o) {
|
1208
1208
|
"@babel/helpers - typeof";
|
1209
1209
|
|
1210
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (
|
1211
|
-
return typeof
|
1212
|
-
} : function (
|
1213
|
-
return
|
1214
|
-
}, _typeof(
|
1210
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
1211
|
+
return typeof o;
|
1212
|
+
} : function (o) {
|
1213
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
1214
|
+
}, _typeof(o);
|
1215
1215
|
}
|
1216
1216
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
1217
1217
|
|
1218
|
-
function
|
1219
|
-
if (
|
1220
|
-
var
|
1221
|
-
if (
|
1222
|
-
var
|
1223
|
-
if (
|
1218
|
+
function toPrimitive(t, r) {
|
1219
|
+
if ("object" != _typeof(t) || !t) return t;
|
1220
|
+
var e = t[Symbol.toPrimitive];
|
1221
|
+
if (void 0 !== e) {
|
1222
|
+
var i = e.call(t, r || "default");
|
1223
|
+
if ("object" != _typeof(i)) return i;
|
1224
1224
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
1225
1225
|
}
|
1226
|
-
return (
|
1226
|
+
return ("string" === r ? String : Number)(t);
|
1227
1227
|
}
|
1228
1228
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
1229
1229
|
|
1230
1230
|
|
1231
|
-
function
|
1232
|
-
var
|
1233
|
-
return _typeof(
|
1231
|
+
function toPropertyKey(t) {
|
1232
|
+
var i = toPrimitive(t, "string");
|
1233
|
+
return "symbol" == _typeof(i) ? i : String(i);
|
1234
1234
|
}
|
1235
1235
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
1236
1236
|
|
1237
1237
|
function _defineProperty(obj, key, value) {
|
1238
|
-
key =
|
1238
|
+
key = toPropertyKey(key);
|
1239
1239
|
if (key in obj) {
|
1240
1240
|
Object.defineProperty(obj, key, {
|
1241
1241
|
value: value,
|
@@ -1488,31 +1488,31 @@ function _arrayWithHoles(arr) {
|
|
1488
1488
|
if (Array.isArray(arr)) return arr;
|
1489
1489
|
}
|
1490
1490
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
1491
|
-
function _iterableToArrayLimit(
|
1492
|
-
var
|
1493
|
-
if (null !=
|
1494
|
-
var
|
1495
|
-
|
1496
|
-
|
1497
|
-
|
1498
|
-
|
1499
|
-
|
1500
|
-
|
1491
|
+
function _iterableToArrayLimit(r, l) {
|
1492
|
+
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
1493
|
+
if (null != t) {
|
1494
|
+
var e,
|
1495
|
+
n,
|
1496
|
+
i,
|
1497
|
+
u,
|
1498
|
+
a = [],
|
1499
|
+
f = !0,
|
1500
|
+
o = !1;
|
1501
1501
|
try {
|
1502
|
-
if (
|
1503
|
-
if (Object(
|
1504
|
-
|
1505
|
-
} else for (; !(
|
1506
|
-
} catch (
|
1507
|
-
|
1502
|
+
if (i = (t = t.call(r)).next, 0 === l) {
|
1503
|
+
if (Object(t) !== t) return;
|
1504
|
+
f = !1;
|
1505
|
+
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
1506
|
+
} catch (r) {
|
1507
|
+
o = !0, n = r;
|
1508
1508
|
} finally {
|
1509
1509
|
try {
|
1510
|
-
if (!
|
1510
|
+
if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
|
1511
1511
|
} finally {
|
1512
|
-
if (
|
1512
|
+
if (o) throw n;
|
1513
1513
|
}
|
1514
1514
|
}
|
1515
|
-
return
|
1515
|
+
return a;
|
1516
1516
|
}
|
1517
1517
|
}
|
1518
1518
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
@@ -1624,8 +1624,7 @@ function _isSlot(s) {
|
|
1624
1624
|
return isPhotowall.value && !multiple.value;
|
1625
1625
|
});
|
1626
1626
|
var classNames = (0,external_vue_namespaceObject.computed)(function () {
|
1627
|
-
|
1628
|
-
return (0,shared_namespaceObject.classes)((_classes = {}, _defineProperty(_classes, classBlock, true), _defineProperty(_classes, "".concat(classBlock, "--").concat(theme.value), true), _defineProperty(_classes, "".concat(classBlock, "--disabled"), disabled.value), _classes));
|
1627
|
+
return (0,shared_namespaceObject.classes)(_defineProperty(_defineProperty(_defineProperty({}, classBlock, true), "".concat(classBlock, "--").concat(theme.value), true), "".concat(classBlock, "--disabled"), disabled.value));
|
1629
1628
|
});
|
1630
1629
|
function formatSize(value) {
|
1631
1630
|
var uints = ['Bytes', 'KB', 'MB', 'GB', 'TB'];
|
@@ -1647,8 +1646,7 @@ function _isSlot(s) {
|
|
1647
1646
|
return (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.TransitionGroup, {
|
1648
1647
|
"name": "".concat(classBlock, "__item")
|
1649
1648
|
}, _isSlot(_slot = props.files.map(function (file) {
|
1650
|
-
var
|
1651
|
-
var classNames = (0,shared_namespaceObject.classes)((_classes2 = {}, _defineProperty(_classes2, "".concat(classBlock, "__item"), true), _defineProperty(_classes2, "".concat(classBlock, "__item-picture"), true), _defineProperty(_classes2, "".concat(classBlock, "__item--").concat(file.status), true), _classes2));
|
1649
|
+
var classNames = (0,shared_namespaceObject.classes)(_defineProperty(_defineProperty(_defineProperty({}, "".concat(classBlock, "__item"), true), "".concat(classBlock, "__item-picture"), true), "".concat(classBlock, "__item--").concat(file.status), true));
|
1652
1650
|
return (0,external_vue_namespaceObject.createVNode)("li", {
|
1653
1651
|
"key": file.uid,
|
1654
1652
|
"class": classNames
|
@@ -1695,8 +1693,7 @@ function _isSlot(s) {
|
|
1695
1693
|
return (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.TransitionGroup, {
|
1696
1694
|
"name": "".concat(classBlock, "__item")
|
1697
1695
|
}, _isSlot(_slot2 = props.files.map(function (file) {
|
1698
|
-
var
|
1699
|
-
var classNames = (0,shared_namespaceObject.classes)((_classes3 = {}, _defineProperty(_classes3, "".concat(classBlock, "__item"), true), _defineProperty(_classes3, "".concat(classBlock, "__item--").concat(file.status), true), _classes3));
|
1696
|
+
var classNames = (0,shared_namespaceObject.classes)(_defineProperty(_defineProperty({}, "".concat(classBlock, "__item"), true), "".concat(classBlock, "__item--").concat(file.status), true));
|
1700
1697
|
return (0,external_vue_namespaceObject.createVNode)("li", {
|
1701
1698
|
"key": file.uid,
|
1702
1699
|
"class": classNames
|
@@ -1872,8 +1869,8 @@ const button_less_namespaceObject = button_less_x({ });
|
|
1872
1869
|
});
|
1873
1870
|
var inputEl = (0,external_vue_namespaceObject.ref)(null);
|
1874
1871
|
var classNames = (0,external_vue_namespaceObject.computed)(function () {
|
1875
|
-
var _file$value, _file$value2, _file$value3
|
1876
|
-
return (0,shared_namespaceObject.classes)((
|
1872
|
+
var _file$value, _file$value2, _file$value3;
|
1873
|
+
return (0,shared_namespaceObject.classes)(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, classBlock, true), "".concat(classBlock, "--").concat(theme.value), true), "".concat(classBlock, "--single-picture"), isSinglePicture.value), "".concat(classBlock, "--has-file"), (_file$value = file.value) !== null && _file$value !== void 0 ? _file$value : false), "".concat(classBlock, "--").concat((_file$value2 = file.value) === null || _file$value2 === void 0 ? void 0 : _file$value2.status), (_file$value3 = file.value) !== null && _file$value3 !== void 0 ? _file$value3 : false), "".concat(classBlock, "--dragover"), dragover.value), "".concat(classBlock, "--disabled"), disabled.value));
|
1877
1874
|
});
|
1878
1875
|
var invoke = function invoke() {
|
1879
1876
|
inputEl.value.value = null;
|
@@ -2198,7 +2195,7 @@ var ajaxUpload = function ajaxUpload(option) {
|
|
2198
2195
|
// 该方法用于在不同的浏览器使用不同的方式
|
2199
2196
|
var blobSlice = File.prototype.slice || File.prototype.mozSlice || File.prototype.webkitSlice;
|
2200
2197
|
var ajaxSliceUpload = /*#__PURE__*/function () {
|
2201
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee(option) {
|
2198
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee(option) {
|
2202
2199
|
var chunkSize, file, blockCount, hash, progressList;
|
2203
2200
|
return regenerator_default().wrap(function _callee$(_context) {
|
2204
2201
|
while (1) switch (_context.prev = _context.next) {
|
@@ -2495,7 +2492,7 @@ function buildFileId(index) {
|
|
2495
2492
|
return _handleRemove.apply(this, arguments);
|
2496
2493
|
}
|
2497
2494
|
function _handleRemove() {
|
2498
|
-
_handleRemove = _asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee(file) {
|
2495
|
+
_handleRemove = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee(file) {
|
2499
2496
|
var uploadFile, remove, _props$beforeRemove, before;
|
2500
2497
|
return regenerator_default().wrap(function _callee$(_context) {
|
2501
2498
|
while (1) switch (_context.prev = _context.next) {
|
@@ -2536,7 +2533,7 @@ function buildFileId(index) {
|
|
2536
2533
|
return _handleError.apply(this, arguments);
|
2537
2534
|
}
|
2538
2535
|
function _handleError() {
|
2539
|
-
_handleError = _asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee2(err, rawFile, res) {
|
2536
|
+
_handleError = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee2(err, rawFile, res) {
|
2540
2537
|
var file;
|
2541
2538
|
return regenerator_default().wrap(function _callee2$(_context2) {
|
2542
2539
|
while (1) switch (_context2.prev = _context2.next) {
|
@@ -2563,7 +2560,7 @@ function buildFileId(index) {
|
|
2563
2560
|
return _handleSuccess.apply(this, arguments);
|
2564
2561
|
}
|
2565
2562
|
function _handleSuccess() {
|
2566
|
-
_handleSuccess = _asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee3(res, rawFile) {
|
2563
|
+
_handleSuccess = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee3(res, rawFile) {
|
2567
2564
|
var file;
|
2568
2565
|
return regenerator_default().wrap(function _callee3$(_context3) {
|
2569
2566
|
while (1) switch (_context3.prev = _context3.next) {
|
@@ -2589,7 +2586,7 @@ function buildFileId(index) {
|
|
2589
2586
|
return _handleProgress.apply(this, arguments);
|
2590
2587
|
}
|
2591
2588
|
function _handleProgress() {
|
2592
|
-
_handleProgress = _asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee4(event, rawFile) {
|
2589
|
+
_handleProgress = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee4(event, rawFile) {
|
2593
2590
|
var file;
|
2594
2591
|
return regenerator_default().wrap(function _callee4$(_context4) {
|
2595
2592
|
while (1) switch (_context4.prev = _context4.next) {
|
@@ -2641,9 +2638,9 @@ function buildFileId(index) {
|
|
2641
2638
|
|
2642
2639
|
|
2643
2640
|
|
2644
|
-
function _createForOfIteratorHelper(
|
2645
|
-
function upload_unsupportedIterableToArray(
|
2646
|
-
function upload_arrayLikeToArray(
|
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; }
|
2647
2644
|
/*
|
2648
2645
|
* Tencent is pleased to support the open source community by making
|
2649
2646
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -2696,8 +2693,8 @@ function upload_arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.l
|
|
2696
2693
|
return isPhotowall.value && !props.multiple;
|
2697
2694
|
});
|
2698
2695
|
var classNames = (0,external_vue_namespaceObject.computed)(function () {
|
2699
|
-
var _props$extCls
|
2700
|
-
return (0,shared_namespaceObject.classes)((
|
2696
|
+
var _props$extCls;
|
2697
|
+
return (0,shared_namespaceObject.classes)(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(resolveClassName(CLASS_PREFIX)), true), "".concat(resolveClassName(CLASS_PREFIX), "--").concat(props.theme), true), "".concat(resolveClassName(CLASS_PREFIX), "--disabled"), props.disabled), "".concat(resolveClassName(CLASS_PREFIX), "--single-picture"), isSinglePhoto.value), props.extCls, (_props$extCls = props.extCls) !== null && _props$extCls !== void 0 ? _props$extCls : false));
|
2701
2698
|
});
|
2702
2699
|
var triggerProps = (0,external_vue_namespaceObject.computed)(function () {
|
2703
2700
|
return {
|
@@ -2770,7 +2767,7 @@ function upload_arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.l
|
|
2770
2767
|
return _upload.apply(this, arguments);
|
2771
2768
|
}
|
2772
2769
|
function _upload() {
|
2773
|
-
_upload = _asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee(file, sendFiles) {
|
2770
|
+
_upload = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee(file, sendFiles) {
|
2774
2771
|
var beforeResult, _props$beforeUpload;
|
2775
2772
|
return regenerator_default().wrap(function _callee$(_context) {
|
2776
2773
|
while (1) switch (_context.prev = _context.next) {
|
@@ -2884,7 +2881,7 @@ function upload_arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.l
|
|
2884
2881
|
Object.keys(reqs).forEach(function (uid) {
|
2885
2882
|
if (reqs[uid] instanceof XMLHttpRequest) {
|
2886
2883
|
var xhr = reqs[uid];
|
2887
|
-
xhr === null || xhr === void 0
|
2884
|
+
xhr === null || xhr === void 0 || xhr.abort();
|
2888
2885
|
}
|
2889
2886
|
delete requests.value[uid];
|
2890
2887
|
});
|