bkui-vue 2.0.1-beta.112 → 2.0.1-beta.113
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 +13942 -13951
- package/dist/index.umd.js +54 -54
- package/dist/style.css +1 -1
- package/lib/affix/index.d.ts +111 -57
- package/lib/affix/index.js +17 -17
- package/lib/alert/index.d.ts +126 -73
- package/lib/alert/index.js +20 -20
- package/lib/animate-number/index.d.ts +96 -33
- package/lib/animate-number/index.js +7 -8
- package/lib/backtop/index.d.ts +117 -69
- package/lib/backtop/index.js +10 -11
- package/lib/badge/index.d.ts +152 -119
- package/lib/badge/index.js +19 -19
- package/lib/breadcrumb/index.d.ts +119 -67
- package/lib/breadcrumb/index.js +17 -17
- package/lib/button/button.d.ts +2 -2
- package/lib/button/index.d.ts +155 -119
- package/lib/button/index.js +20 -19
- package/lib/card/index.d.ts +157 -128
- package/lib/card/index.js +22 -20
- package/lib/cascader/cascader.d.ts +3 -3
- package/lib/cascader/index.d.ts +354 -393
- package/lib/cascader/index.js +57 -59
- package/lib/checkbox/checkbox.d.ts +1 -1
- package/lib/checkbox/index.d.ts +175 -143
- package/lib/checkbox/index.js +45 -45
- package/lib/code-diff/index.d.ts +82 -65
- package/lib/code-diff/index.js +438 -381
- package/lib/collapse/index.d.ts +175 -156
- package/lib/collapse/index.js +27 -28
- package/lib/collapse-transition/index.d.ts +94 -19
- package/lib/collapse-transition/index.js +3 -4
- package/lib/color-picker/color-picker.d.ts +1 -1
- package/lib/color-picker/index.d.ts +165 -144
- package/lib/color-picker/index.js +40 -42
- package/lib/config-provider/index.d.ts +227 -160
- package/lib/config-provider/index.js +17 -17
- package/lib/container/container.d.ts +1 -1
- package/lib/container/index.d.ts +85 -74
- package/lib/container/index.js +26 -28
- 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 +351 -380
- package/lib/date-picker/index.js +79 -80
- 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 +269 -299
- package/lib/dialog/index.js +228 -227
- package/lib/directives/index.js +29 -29
- package/lib/divider/index.d.ts +111 -57
- package/lib/divider/index.js +2 -3
- package/lib/dropdown/dropdown.d.ts +1 -1
- package/lib/dropdown/index.d.ts +136 -94
- package/lib/dropdown/index.js +22 -24
- package/lib/exception/index.d.ts +102 -41
- package/lib/exception/index.js +21 -21
- package/lib/fixed-navbar/index.d.ts +113 -59
- package/lib/fixed-navbar/index.js +2 -3
- package/lib/form/form.d.ts +1 -1
- package/lib/form/index.d.ts +132 -80
- package/lib/form/index.js +22 -21
- 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 +149 -113
- package/lib/image/index.js +26 -27
- package/lib/index.js +1 -1
- package/lib/info-box/index.js +233 -232
- package/lib/input/index.d.ts +293 -326
- package/lib/input/index.js +48 -46
- package/lib/link/index.d.ts +122 -73
- package/lib/link/index.js +2 -2
- package/lib/loading/index.d.ts +156 -130
- package/lib/loading/index.js +33 -32
- package/lib/loading/loading.d.ts +1 -1
- package/lib/menu/index.d.ts +116 -55
- package/lib/menu/index.js +25 -26
- package/lib/message/index.js +25 -24
- package/lib/message/messageConstructor.d.ts +5 -5
- package/lib/modal/index.d.ts +185 -171
- package/lib/modal/index.js +19 -19
- package/lib/navigation/index.d.ts +188 -152
- package/lib/navigation/index.js +7 -9
- package/lib/notify/index.js +21 -20
- package/lib/overflow-title/index.d.ts +256 -343
- package/lib/overflow-title/index.js +10 -11
- package/lib/pagination/index.d.ts +198 -184
- package/lib/pagination/index.js +56 -49
- package/lib/pop-confirm/index.d.ts +153 -115
- package/lib/pop-confirm/index.js +4 -5
- package/lib/pop-confirm/pop-confirm.d.ts +1 -1
- package/lib/popover/content.d.ts +1 -1
- package/lib/popover/index.d.ts +359 -421
- package/lib/popover/index.js +122 -220
- package/lib/popover2/index.d.ts +83 -8
- package/lib/popover2/index.js +2 -2
- package/lib/process/index.d.ts +137 -93
- package/lib/process/index.js +226 -226
- package/lib/progress/index.d.ts +187 -178
- package/lib/progress/index.js +21 -22
- package/lib/progress/progress.d.ts +2 -2
- package/lib/radio/index.d.ts +140 -91
- package/lib/radio/index.js +48 -46
- package/lib/rate/index.d.ts +112 -55
- package/lib/rate/index.js +20 -19
- package/lib/resize-layout/index.d.ts +192 -168
- package/lib/resize-layout/index.js +21 -20
- package/lib/resize-layout/resize-layout.d.ts +2 -2
- package/lib/scrollbar/index.js +38 -38
- package/lib/search-select/index.d.ts +901 -684
- 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 +188 -133
- package/lib/search-select/selected.d.ts +188 -133
- package/lib/select/index.d.ts +1333 -1491
- package/lib/select/index.js +280 -279
- package/lib/select/select.d.ts +169 -132
- package/lib/select/selectTagInput.d.ts +2 -2
- package/lib/shared/index.js +56 -54
- package/lib/sideslider/index.d.ts +201 -197
- package/lib/sideslider/index.js +228 -227
- package/lib/slider/index.d.ts +210 -214
- package/lib/slider/index.js +225 -226
- package/lib/steps/index.d.ts +149 -110
- package/lib/steps/index.js +231 -230
- package/lib/swiper/index.d.ts +127 -81
- package/lib/swiper/index.js +18 -18
- package/lib/switcher/index.d.ts +174 -152
- package/lib/switcher/index.js +22 -20
- package/lib/tab/index.d.ts +183 -151
- package/lib/tab/index.js +19 -20
- 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 +362 -457
- package/lib/table/index.js +348 -336
- package/lib/table/table.d.ts +1 -1
- package/lib/table-column/index.d.ts +150 -104
- package/lib/tag/index.d.ts +142 -95
- package/lib/tag/index.js +19 -19
- package/lib/tag-input/index.d.ts +540 -755
- package/lib/tag-input/index.js +58 -52
- package/lib/tag-input/tag-input.d.ts +5 -5
- package/lib/time-picker/index.d.ts +386 -439
- package/lib/timeline/index.d.ts +131 -64
- package/lib/timeline/index.js +6 -6
- package/lib/transfer/index.d.ts +206 -191
- package/lib/tree/index.d.ts +308 -350
- package/lib/tree/index.js +74 -71
- package/lib/tree/tree.d.ts +1 -1
- package/lib/tree/use-tree-init.d.ts +1 -1
- package/lib/upload/index.d.ts +273 -311
- package/lib/upload/index.js +264 -261
- package/lib/upload/upload.d.ts +2 -2
- package/lib/virtual-render/index.d.ts +241 -333
- 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 exports;
|
765
765
|
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
766
|
-
var
|
767
|
-
|
768
|
-
|
769
|
-
|
770
|
-
|
771
|
-
t[e] = r.value;
|
766
|
+
var exports = {},
|
767
|
+
Op = Object.prototype,
|
768
|
+
hasOwn = Op.hasOwnProperty,
|
769
|
+
defineProperty = Object.defineProperty || function (obj, key, desc) {
|
770
|
+
obj[key] = desc.value;
|
772
771
|
},
|
773
|
-
|
774
|
-
|
775
|
-
|
776
|
-
|
777
|
-
function define(
|
778
|
-
return Object.defineProperty(
|
779
|
-
value:
|
772
|
+
$Symbol = "function" == typeof Symbol ? Symbol : {},
|
773
|
+
iteratorSymbol = $Symbol.iterator || "@@iterator",
|
774
|
+
asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
|
775
|
+
toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
776
|
+
function define(obj, key, value) {
|
777
|
+
return Object.defineProperty(obj, key, {
|
778
|
+
value: value,
|
780
779
|
enumerable: !0,
|
781
780
|
configurable: !0,
|
782
781
|
writable: !0
|
783
|
-
}),
|
782
|
+
}), obj[key];
|
784
783
|
}
|
785
784
|
try {
|
786
785
|
define({}, "");
|
787
|
-
} catch (
|
788
|
-
define = function define(
|
789
|
-
return
|
786
|
+
} catch (err) {
|
787
|
+
define = function define(obj, key, value) {
|
788
|
+
return obj[key] = value;
|
790
789
|
};
|
791
790
|
}
|
792
|
-
function wrap(
|
793
|
-
var
|
794
|
-
|
795
|
-
|
796
|
-
return
|
797
|
-
value: makeInvokeMethod(
|
798
|
-
}),
|
791
|
+
function wrap(innerFn, outerFn, self, tryLocsList) {
|
792
|
+
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
|
793
|
+
generator = Object.create(protoGenerator.prototype),
|
794
|
+
context = new Context(tryLocsList || []);
|
795
|
+
return defineProperty(generator, "_invoke", {
|
796
|
+
value: makeInvokeMethod(innerFn, self, context)
|
797
|
+
}), generator;
|
799
798
|
}
|
800
|
-
function tryCatch(
|
799
|
+
function tryCatch(fn, obj, arg) {
|
801
800
|
try {
|
802
801
|
return {
|
803
802
|
type: "normal",
|
804
|
-
arg:
|
803
|
+
arg: fn.call(obj, arg)
|
805
804
|
};
|
806
|
-
} catch (
|
805
|
+
} catch (err) {
|
807
806
|
return {
|
808
807
|
type: "throw",
|
809
|
-
arg:
|
808
|
+
arg: err
|
810
809
|
};
|
811
810
|
}
|
812
811
|
}
|
813
|
-
|
814
|
-
var
|
815
|
-
l = "suspendedYield",
|
816
|
-
f = "executing",
|
817
|
-
s = "completed",
|
818
|
-
y = {};
|
812
|
+
exports.wrap = wrap;
|
813
|
+
var ContinueSentinel = {};
|
819
814
|
function Generator() {}
|
820
815
|
function GeneratorFunction() {}
|
821
816
|
function GeneratorFunctionPrototype() {}
|
822
|
-
var
|
823
|
-
define(
|
817
|
+
var IteratorPrototype = {};
|
818
|
+
define(IteratorPrototype, iteratorSymbol, function () {
|
824
819
|
return this;
|
825
820
|
});
|
826
|
-
var
|
827
|
-
|
828
|
-
|
829
|
-
var
|
830
|
-
function defineIteratorMethods(
|
831
|
-
["next", "throw", "return"].forEach(function (
|
832
|
-
define(
|
833
|
-
return this._invoke(
|
821
|
+
var getProto = Object.getPrototypeOf,
|
822
|
+
NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
823
|
+
NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
|
824
|
+
var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
|
825
|
+
function defineIteratorMethods(prototype) {
|
826
|
+
["next", "throw", "return"].forEach(function (method) {
|
827
|
+
define(prototype, method, function (arg) {
|
828
|
+
return this._invoke(method, arg);
|
834
829
|
});
|
835
830
|
});
|
836
831
|
}
|
837
|
-
function AsyncIterator(
|
838
|
-
function invoke(
|
839
|
-
var
|
840
|
-
if ("throw" !==
|
841
|
-
var
|
842
|
-
|
843
|
-
return
|
844
|
-
invoke("next",
|
845
|
-
}, function (
|
846
|
-
invoke("throw",
|
847
|
-
}) :
|
848
|
-
|
849
|
-
}, function (
|
850
|
-
return invoke("throw",
|
832
|
+
function AsyncIterator(generator, PromiseImpl) {
|
833
|
+
function invoke(method, arg, resolve, reject) {
|
834
|
+
var record = tryCatch(generator[method], generator, arg);
|
835
|
+
if ("throw" !== record.type) {
|
836
|
+
var result = record.arg,
|
837
|
+
value = result.value;
|
838
|
+
return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
|
839
|
+
invoke("next", value, resolve, reject);
|
840
|
+
}, function (err) {
|
841
|
+
invoke("throw", err, resolve, reject);
|
842
|
+
}) : PromiseImpl.resolve(value).then(function (unwrapped) {
|
843
|
+
result.value = unwrapped, resolve(result);
|
844
|
+
}, function (error) {
|
845
|
+
return invoke("throw", error, resolve, reject);
|
851
846
|
});
|
852
847
|
}
|
853
|
-
|
848
|
+
reject(record.arg);
|
854
849
|
}
|
855
|
-
var
|
856
|
-
|
857
|
-
value: function value(
|
850
|
+
var previousPromise;
|
851
|
+
defineProperty(this, "_invoke", {
|
852
|
+
value: function value(method, arg) {
|
858
853
|
function callInvokeWithMethodAndArg() {
|
859
|
-
return new
|
860
|
-
invoke(
|
854
|
+
return new PromiseImpl(function (resolve, reject) {
|
855
|
+
invoke(method, arg, resolve, reject);
|
861
856
|
});
|
862
857
|
}
|
863
|
-
return
|
858
|
+
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
864
859
|
}
|
865
860
|
});
|
866
861
|
}
|
867
|
-
function makeInvokeMethod(
|
868
|
-
var
|
869
|
-
return function (
|
870
|
-
if (
|
871
|
-
if (
|
872
|
-
if ("throw" ===
|
873
|
-
return
|
874
|
-
value: t,
|
875
|
-
done: !0
|
876
|
-
};
|
862
|
+
function makeInvokeMethod(innerFn, self, context) {
|
863
|
+
var state = "suspendedStart";
|
864
|
+
return function (method, arg) {
|
865
|
+
if ("executing" === state) throw new Error("Generator is already running");
|
866
|
+
if ("completed" === state) {
|
867
|
+
if ("throw" === method) throw arg;
|
868
|
+
return doneResult();
|
877
869
|
}
|
878
|
-
for (
|
879
|
-
var
|
880
|
-
if (
|
881
|
-
var
|
882
|
-
if (
|
883
|
-
if (
|
884
|
-
return
|
870
|
+
for (context.method = method, context.arg = arg;;) {
|
871
|
+
var delegate = context.delegate;
|
872
|
+
if (delegate) {
|
873
|
+
var delegateResult = maybeInvokeDelegate(delegate, context);
|
874
|
+
if (delegateResult) {
|
875
|
+
if (delegateResult === ContinueSentinel) continue;
|
876
|
+
return delegateResult;
|
885
877
|
}
|
886
878
|
}
|
887
|
-
if ("next" ===
|
888
|
-
if (
|
889
|
-
|
890
|
-
} else "return" ===
|
891
|
-
|
892
|
-
var
|
893
|
-
if ("normal" ===
|
894
|
-
if (
|
879
|
+
if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
|
880
|
+
if ("suspendedStart" === state) throw state = "completed", context.arg;
|
881
|
+
context.dispatchException(context.arg);
|
882
|
+
} else "return" === context.method && context.abrupt("return", context.arg);
|
883
|
+
state = "executing";
|
884
|
+
var record = tryCatch(innerFn, self, context);
|
885
|
+
if ("normal" === record.type) {
|
886
|
+
if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
|
895
887
|
return {
|
896
|
-
value:
|
897
|
-
done:
|
888
|
+
value: record.arg,
|
889
|
+
done: context.done
|
898
890
|
};
|
899
891
|
}
|
900
|
-
"throw" ===
|
892
|
+
"throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
|
901
893
|
}
|
902
894
|
};
|
903
895
|
}
|
904
|
-
function maybeInvokeDelegate(
|
905
|
-
var
|
906
|
-
|
907
|
-
if (
|
908
|
-
var
|
909
|
-
if ("throw" ===
|
910
|
-
var
|
911
|
-
return
|
896
|
+
function maybeInvokeDelegate(delegate, context) {
|
897
|
+
var methodName = context.method,
|
898
|
+
method = delegate.iterator[methodName];
|
899
|
+
if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
|
900
|
+
var record = tryCatch(method, delegate.iterator, context.arg);
|
901
|
+
if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
|
902
|
+
var info = record.arg;
|
903
|
+
return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
|
912
904
|
}
|
913
|
-
function pushTryEntry(
|
914
|
-
var
|
915
|
-
tryLoc:
|
905
|
+
function pushTryEntry(locs) {
|
906
|
+
var entry = {
|
907
|
+
tryLoc: locs[0]
|
916
908
|
};
|
917
|
-
1 in
|
909
|
+
1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
|
918
910
|
}
|
919
|
-
function resetTryEntry(
|
920
|
-
var
|
921
|
-
|
911
|
+
function resetTryEntry(entry) {
|
912
|
+
var record = entry.completion || {};
|
913
|
+
record.type = "normal", delete record.arg, entry.completion = record;
|
922
914
|
}
|
923
|
-
function Context(
|
915
|
+
function Context(tryLocsList) {
|
924
916
|
this.tryEntries = [{
|
925
917
|
tryLoc: "root"
|
926
|
-
}],
|
918
|
+
}], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
|
927
919
|
}
|
928
|
-
function values(
|
929
|
-
if (
|
930
|
-
var
|
931
|
-
if (
|
932
|
-
if ("function" == typeof
|
933
|
-
if (!isNaN(
|
934
|
-
var
|
935
|
-
|
936
|
-
for (; ++
|
937
|
-
return next.value =
|
920
|
+
function values(iterable) {
|
921
|
+
if (iterable) {
|
922
|
+
var iteratorMethod = iterable[iteratorSymbol];
|
923
|
+
if (iteratorMethod) return iteratorMethod.call(iterable);
|
924
|
+
if ("function" == typeof iterable.next) return iterable;
|
925
|
+
if (!isNaN(iterable.length)) {
|
926
|
+
var i = -1,
|
927
|
+
next = function next() {
|
928
|
+
for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
|
929
|
+
return next.value = undefined, next.done = !0, next;
|
938
930
|
};
|
939
|
-
return
|
931
|
+
return next.next = next;
|
940
932
|
}
|
941
933
|
}
|
942
|
-
|
934
|
+
return {
|
935
|
+
next: doneResult
|
936
|
+
};
|
937
|
+
}
|
938
|
+
function doneResult() {
|
939
|
+
return {
|
940
|
+
value: undefined,
|
941
|
+
done: !0
|
942
|
+
};
|
943
943
|
}
|
944
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype,
|
944
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
|
945
945
|
value: GeneratorFunctionPrototype,
|
946
946
|
configurable: !0
|
947
|
-
}),
|
947
|
+
}), defineProperty(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, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
|
951
|
+
var ctor = "function" == typeof genFun && genFun.constructor;
|
952
|
+
return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
|
953
|
+
}, exports.mark = function (genFun) {
|
954
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
|
955
|
+
}, exports.awrap = function (arg) {
|
956
956
|
return {
|
957
|
-
__await:
|
957
|
+
__await: arg
|
958
958
|
};
|
959
|
-
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype,
|
959
|
+
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
|
960
960
|
return this;
|
961
|
-
}),
|
962
|
-
void 0 ===
|
963
|
-
var
|
964
|
-
return
|
965
|
-
return
|
961
|
+
}), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
962
|
+
void 0 === PromiseImpl && (PromiseImpl = Promise);
|
963
|
+
var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
|
964
|
+
return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
|
965
|
+
return result.done ? result.value : iter.next();
|
966
966
|
});
|
967
|
-
}, defineIteratorMethods(
|
967
|
+
}, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
|
968
968
|
return this;
|
969
|
-
}), define(
|
969
|
+
}), define(Gp, "toString", function () {
|
970
970
|
return "[object Generator]";
|
971
|
-
}),
|
972
|
-
var
|
973
|
-
|
974
|
-
for (var
|
975
|
-
return
|
976
|
-
for (;
|
977
|
-
var
|
978
|
-
if (
|
971
|
+
}), exports.keys = function (val) {
|
972
|
+
var object = Object(val),
|
973
|
+
keys = [];
|
974
|
+
for (var key in object) keys.push(key);
|
975
|
+
return keys.reverse(), function next() {
|
976
|
+
for (; keys.length;) {
|
977
|
+
var key = keys.pop();
|
978
|
+
if (key in object) return next.value = key, next.done = !1, next;
|
979
979
|
}
|
980
980
|
return next.done = !0, next;
|
981
981
|
};
|
982
|
-
},
|
982
|
+
}, exports.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(skipTempReset) {
|
985
|
+
if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
|
986
986
|
},
|
987
987
|
stop: function stop() {
|
988
988
|
this.done = !0;
|
989
|
-
var
|
990
|
-
if ("throw" ===
|
989
|
+
var rootRecord = this.tryEntries[0].completion;
|
990
|
+
if ("throw" === rootRecord.type) throw rootRecord.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(exception) {
|
994
|
+
if (this.done) throw exception;
|
995
|
+
var context = this;
|
996
|
+
function handle(loc, caught) {
|
997
|
+
return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
|
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 i = this.tryEntries.length - 1; i >= 0; --i) {
|
1000
|
+
var entry = this.tryEntries[i],
|
1001
|
+
record = entry.completion;
|
1002
|
+
if ("root" === entry.tryLoc) return handle("end");
|
1003
|
+
if (entry.tryLoc <= this.prev) {
|
1004
|
+
var hasCatch = hasOwn.call(entry, "catchLoc"),
|
1005
|
+
hasFinally = hasOwn.call(entry, "finallyLoc");
|
1006
|
+
if (hasCatch && hasFinally) {
|
1007
|
+
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
1008
|
+
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
1009
|
+
} else if (hasCatch) {
|
1010
|
+
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
1011
1011
|
} else {
|
1012
|
-
if (!
|
1013
|
-
if (this.prev <
|
1012
|
+
if (!hasFinally) throw new Error("try statement without catch or finally");
|
1013
|
+
if (this.prev < entry.finallyLoc) return handle(entry.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(type, arg) {
|
1019
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
1020
|
+
var entry = this.tryEntries[i];
|
1021
|
+
if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
|
1022
|
+
var finallyEntry = entry;
|
1023
1023
|
break;
|
1024
1024
|
}
|
1025
1025
|
}
|
1026
|
-
|
1027
|
-
var
|
1028
|
-
return
|
1026
|
+
finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
|
1027
|
+
var record = finallyEntry ? finallyEntry.completion : {};
|
1028
|
+
return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
|
1029
1029
|
},
|
1030
|
-
complete: function complete(
|
1031
|
-
if ("throw" ===
|
1032
|
-
return "break" ===
|
1030
|
+
complete: function complete(record, afterLoc) {
|
1031
|
+
if ("throw" === record.type) throw record.arg;
|
1032
|
+
return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
|
1033
1033
|
},
|
1034
|
-
finish: function finish(
|
1035
|
-
for (var
|
1036
|
-
var
|
1037
|
-
if (
|
1034
|
+
finish: function finish(finallyLoc) {
|
1035
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
1036
|
+
var entry = this.tryEntries[i];
|
1037
|
+
if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
|
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(tryLoc) {
|
1041
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
1042
|
+
var entry = this.tryEntries[i];
|
1043
|
+
if (entry.tryLoc === tryLoc) {
|
1044
|
+
var record = entry.completion;
|
1045
|
+
if ("throw" === record.type) {
|
1046
|
+
var thrown = record.arg;
|
1047
|
+
resetTryEntry(entry);
|
1048
1048
|
}
|
1049
|
-
return
|
1049
|
+
return thrown;
|
1050
1050
|
}
|
1051
1051
|
}
|
1052
1052
|
throw new Error("illegal catch attempt");
|
1053
1053
|
},
|
1054
|
-
delegateYield: function delegateYield(
|
1054
|
+
delegateYield: function delegateYield(iterable, resultName, nextLoc) {
|
1055
1055
|
return this.delegate = {
|
1056
|
-
iterator: values(
|
1057
|
-
resultName:
|
1058
|
-
nextLoc:
|
1059
|
-
}, "next" === this.method && (this.arg =
|
1056
|
+
iterator: values(iterable),
|
1057
|
+
resultName: resultName,
|
1058
|
+
nextLoc: nextLoc
|
1059
|
+
}, "next" === this.method && (this.arg = undefined), ContinueSentinel;
|
1060
1060
|
}
|
1061
|
-
},
|
1061
|
+
}, exports;
|
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(obj) {
|
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 (obj) {
|
1074
|
+
return typeof obj;
|
1075
|
+
} : function (obj) {
|
1076
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
1077
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj);
|
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(obj) {
|
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 (obj) {
|
1211
|
+
return typeof obj;
|
1212
|
+
} : function (obj) {
|
1213
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
1214
|
+
}, _typeof(obj);
|
1215
1215
|
}
|
1216
1216
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
1217
1217
|
|
1218
|
-
function
|
1219
|
-
if ("object"
|
1220
|
-
var
|
1221
|
-
if (
|
1222
|
-
var
|
1223
|
-
if ("object"
|
1218
|
+
function _toPrimitive(input, hint) {
|
1219
|
+
if (_typeof(input) !== "object" || input === null) return input;
|
1220
|
+
var prim = input[Symbol.toPrimitive];
|
1221
|
+
if (prim !== undefined) {
|
1222
|
+
var res = prim.call(input, hint || "default");
|
1223
|
+
if (_typeof(res) !== "object") return res;
|
1224
1224
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
1225
1225
|
}
|
1226
|
-
return ("string"
|
1226
|
+
return (hint === "string" ? String : Number)(input);
|
1227
1227
|
}
|
1228
1228
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
1229
1229
|
|
1230
1230
|
|
1231
|
-
function
|
1232
|
-
var
|
1233
|
-
return "symbol"
|
1231
|
+
function _toPropertyKey(arg) {
|
1232
|
+
var key = _toPrimitive(arg, "string");
|
1233
|
+
return _typeof(key) === "symbol" ? key : String(key);
|
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(arr, i) {
|
1492
|
+
var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
|
1493
|
+
if (null != _i) {
|
1494
|
+
var _s,
|
1495
|
+
_e,
|
1496
|
+
_x,
|
1497
|
+
_r,
|
1498
|
+
_arr = [],
|
1499
|
+
_n = !0,
|
1500
|
+
_d = !1;
|
1501
1501
|
try {
|
1502
|
-
if (
|
1503
|
-
if (Object(
|
1504
|
-
|
1505
|
-
} else for (; !(
|
1506
|
-
} catch (
|
1507
|
-
|
1502
|
+
if (_x = (_i = _i.call(arr)).next, 0 === i) {
|
1503
|
+
if (Object(_i) !== _i) return;
|
1504
|
+
_n = !1;
|
1505
|
+
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
|
1506
|
+
} catch (err) {
|
1507
|
+
_d = !0, _e = err;
|
1508
1508
|
} finally {
|
1509
1509
|
try {
|
1510
|
-
if (!
|
1510
|
+
if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return;
|
1511
1511
|
} finally {
|
1512
|
-
if (
|
1512
|
+
if (_d) throw _e;
|
1513
1513
|
}
|
1514
1514
|
}
|
1515
|
-
return
|
1515
|
+
return _arr;
|
1516
1516
|
}
|
1517
1517
|
}
|
1518
1518
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
@@ -1624,7 +1624,8 @@ function _isSlot(s) {
|
|
1624
1624
|
return isPhotowall.value && !multiple.value;
|
1625
1625
|
});
|
1626
1626
|
var classNames = (0,external_vue_namespaceObject.computed)(function () {
|
1627
|
-
|
1627
|
+
var _classes;
|
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));
|
1628
1629
|
});
|
1629
1630
|
function formatSize(value) {
|
1630
1631
|
var uints = ['Bytes', 'KB', 'MB', 'GB', 'TB'];
|
@@ -1646,7 +1647,8 @@ function _isSlot(s) {
|
|
1646
1647
|
return (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.TransitionGroup, {
|
1647
1648
|
"name": "".concat(classBlock, "__item")
|
1648
1649
|
}, _isSlot(_slot = props.files.map(function (file) {
|
1649
|
-
var
|
1650
|
+
var _classes2;
|
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));
|
1650
1652
|
return (0,external_vue_namespaceObject.createVNode)("li", {
|
1651
1653
|
"key": file.uid,
|
1652
1654
|
"class": classNames
|
@@ -1693,7 +1695,8 @@ function _isSlot(s) {
|
|
1693
1695
|
return (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.TransitionGroup, {
|
1694
1696
|
"name": "".concat(classBlock, "__item")
|
1695
1697
|
}, _isSlot(_slot2 = props.files.map(function (file) {
|
1696
|
-
var
|
1698
|
+
var _classes3;
|
1699
|
+
var classNames = (0,shared_namespaceObject.classes)((_classes3 = {}, _defineProperty(_classes3, "".concat(classBlock, "__item"), true), _defineProperty(_classes3, "".concat(classBlock, "__item--").concat(file.status), true), _classes3));
|
1697
1700
|
return (0,external_vue_namespaceObject.createVNode)("li", {
|
1698
1701
|
"key": file.uid,
|
1699
1702
|
"class": classNames
|
@@ -1869,8 +1872,8 @@ const button_less_namespaceObject = button_less_x({ });
|
|
1869
1872
|
});
|
1870
1873
|
var inputEl = (0,external_vue_namespaceObject.ref)(null);
|
1871
1874
|
var classNames = (0,external_vue_namespaceObject.computed)(function () {
|
1872
|
-
var _file$value, _file$value2, _file$value3;
|
1873
|
-
return (0,shared_namespaceObject.classes)(
|
1875
|
+
var _file$value, _file$value2, _file$value3, _classes;
|
1876
|
+
return (0,shared_namespaceObject.classes)((_classes = {}, _defineProperty(_classes, classBlock, true), _defineProperty(_classes, "".concat(classBlock, "--").concat(theme.value), true), _defineProperty(_classes, "".concat(classBlock, "--single-picture"), isSinglePicture.value), _defineProperty(_classes, "".concat(classBlock, "--has-file"), (_file$value = file.value) !== null && _file$value !== void 0 ? _file$value : false), _defineProperty(_classes, "".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), _defineProperty(_classes, "".concat(classBlock, "--dragover"), dragover.value), _defineProperty(_classes, "".concat(classBlock, "--disabled"), disabled.value), _classes));
|
1874
1877
|
});
|
1875
1878
|
var invoke = function invoke() {
|
1876
1879
|
inputEl.value.value = null;
|
@@ -2195,7 +2198,7 @@ var ajaxUpload = function ajaxUpload(option) {
|
|
2195
2198
|
// 该方法用于在不同的浏览器使用不同的方式
|
2196
2199
|
var blobSlice = File.prototype.slice || File.prototype.mozSlice || File.prototype.webkitSlice;
|
2197
2200
|
var ajaxSliceUpload = /*#__PURE__*/function () {
|
2198
|
-
var _ref = _asyncToGenerator(
|
2201
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee(option) {
|
2199
2202
|
var chunkSize, file, blockCount, hash, progressList;
|
2200
2203
|
return regenerator_default().wrap(function _callee$(_context) {
|
2201
2204
|
while (1) switch (_context.prev = _context.next) {
|
@@ -2492,7 +2495,7 @@ function buildFileId(index) {
|
|
2492
2495
|
return _handleRemove.apply(this, arguments);
|
2493
2496
|
}
|
2494
2497
|
function _handleRemove() {
|
2495
|
-
_handleRemove = _asyncToGenerator(
|
2498
|
+
_handleRemove = _asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee(file) {
|
2496
2499
|
var uploadFile, remove, _props$beforeRemove, before;
|
2497
2500
|
return regenerator_default().wrap(function _callee$(_context) {
|
2498
2501
|
while (1) switch (_context.prev = _context.next) {
|
@@ -2533,7 +2536,7 @@ function buildFileId(index) {
|
|
2533
2536
|
return _handleError.apply(this, arguments);
|
2534
2537
|
}
|
2535
2538
|
function _handleError() {
|
2536
|
-
_handleError = _asyncToGenerator(
|
2539
|
+
_handleError = _asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee2(err, rawFile, res) {
|
2537
2540
|
var file;
|
2538
2541
|
return regenerator_default().wrap(function _callee2$(_context2) {
|
2539
2542
|
while (1) switch (_context2.prev = _context2.next) {
|
@@ -2560,7 +2563,7 @@ function buildFileId(index) {
|
|
2560
2563
|
return _handleSuccess.apply(this, arguments);
|
2561
2564
|
}
|
2562
2565
|
function _handleSuccess() {
|
2563
|
-
_handleSuccess = _asyncToGenerator(
|
2566
|
+
_handleSuccess = _asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee3(res, rawFile) {
|
2564
2567
|
var file;
|
2565
2568
|
return regenerator_default().wrap(function _callee3$(_context3) {
|
2566
2569
|
while (1) switch (_context3.prev = _context3.next) {
|
@@ -2586,7 +2589,7 @@ function buildFileId(index) {
|
|
2586
2589
|
return _handleProgress.apply(this, arguments);
|
2587
2590
|
}
|
2588
2591
|
function _handleProgress() {
|
2589
|
-
_handleProgress = _asyncToGenerator(
|
2592
|
+
_handleProgress = _asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee4(event, rawFile) {
|
2590
2593
|
var file;
|
2591
2594
|
return regenerator_default().wrap(function _callee4$(_context4) {
|
2592
2595
|
while (1) switch (_context4.prev = _context4.next) {
|
@@ -2638,9 +2641,9 @@ function buildFileId(index) {
|
|
2638
2641
|
|
2639
2642
|
|
2640
2643
|
|
2641
|
-
function _createForOfIteratorHelper(
|
2642
|
-
function upload_unsupportedIterableToArray(
|
2643
|
-
function upload_arrayLikeToArray(
|
2644
|
+
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; } } }; }
|
2645
|
+
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; } }
|
2646
|
+
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
2647
|
/*
|
2645
2648
|
* Tencent is pleased to support the open source community by making
|
2646
2649
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -2693,8 +2696,8 @@ function upload_arrayLikeToArray(arr, len) { if (len == null || len > arr.length
|
|
2693
2696
|
return isPhotowall.value && !props.multiple;
|
2694
2697
|
});
|
2695
2698
|
var classNames = (0,external_vue_namespaceObject.computed)(function () {
|
2696
|
-
var _props$extCls;
|
2697
|
-
return (0,shared_namespaceObject.classes)(
|
2699
|
+
var _props$extCls, _classes;
|
2700
|
+
return (0,shared_namespaceObject.classes)((_classes = {}, _defineProperty(_classes, "".concat(resolveClassName(CLASS_PREFIX)), true), _defineProperty(_classes, "".concat(resolveClassName(CLASS_PREFIX), "--").concat(props.theme), true), _defineProperty(_classes, "".concat(resolveClassName(CLASS_PREFIX), "--disabled"), props.disabled), _defineProperty(_classes, "".concat(resolveClassName(CLASS_PREFIX), "--single-picture"), isSinglePhoto.value), _defineProperty(_classes, props.extCls, (_props$extCls = props.extCls) !== null && _props$extCls !== void 0 ? _props$extCls : false), _classes));
|
2698
2701
|
});
|
2699
2702
|
var triggerProps = (0,external_vue_namespaceObject.computed)(function () {
|
2700
2703
|
return {
|
@@ -2767,7 +2770,7 @@ function upload_arrayLikeToArray(arr, len) { if (len == null || len > arr.length
|
|
2767
2770
|
return _upload.apply(this, arguments);
|
2768
2771
|
}
|
2769
2772
|
function _upload() {
|
2770
|
-
_upload = _asyncToGenerator(
|
2773
|
+
_upload = _asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee(file, sendFiles) {
|
2771
2774
|
var beforeResult, _props$beforeUpload;
|
2772
2775
|
return regenerator_default().wrap(function _callee$(_context) {
|
2773
2776
|
while (1) switch (_context.prev = _context.next) {
|
@@ -2881,7 +2884,7 @@ function upload_arrayLikeToArray(arr, len) { if (len == null || len > arr.length
|
|
2881
2884
|
Object.keys(reqs).forEach(function (uid) {
|
2882
2885
|
if (reqs[uid] instanceof XMLHttpRequest) {
|
2883
2886
|
var xhr = reqs[uid];
|
2884
|
-
xhr === null || xhr === void 0
|
2887
|
+
xhr === null || xhr === void 0 ? void 0 : xhr.abort();
|
2885
2888
|
}
|
2886
2889
|
delete requests.value[uid];
|
2887
2890
|
});
|