bkui-vue 2.0.1-beta.113 → 2.0.1-beta.115
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 +13951 -13942
- 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 +47 -39
- package/lib/alert/index.d.ts +73 -126
- package/lib/alert/index.js +50 -42
- package/lib/animate-number/index.d.ts +33 -96
- package/lib/animate-number/index.js +21 -16
- package/lib/backtop/index.d.ts +69 -117
- package/lib/backtop/index.js +42 -31
- package/lib/badge/index.d.ts +119 -152
- package/lib/badge/index.js +43 -37
- package/lib/breadcrumb/index.d.ts +67 -119
- package/lib/breadcrumb/index.js +48 -40
- package/lib/button/button.d.ts +2 -2
- package/lib/button/index.d.ts +119 -155
- package/lib/button/index.js +55 -46
- package/lib/card/index.d.ts +128 -157
- package/lib/card/index.js +67 -55
- package/lib/cascader/cascader.d.ts +3 -3
- package/lib/cascader/index.d.ts +393 -354
- package/lib/cascader/index.js +149 -119
- package/lib/checkbox/checkbox.d.ts +1 -1
- package/lib/checkbox/index.d.ts +143 -175
- package/lib/checkbox/index.js +89 -79
- package/lib/code-diff/index.d.ts +65 -82
- package/lib/code-diff/index.js +464 -517
- package/lib/collapse/index.d.ts +156 -175
- package/lib/collapse/index.js +67 -60
- package/lib/collapse-transition/index.d.ts +19 -94
- package/lib/collapse-transition/index.js +23 -16
- 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 +98 -82
- package/lib/config-provider/index.d.ts +160 -227
- package/lib/config-provider/index.js +51 -43
- package/lib/container/container.d.ts +1 -1
- package/lib/container/index.d.ts +74 -85
- package/lib/container/index.js +55 -47
- 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 +380 -351
- package/lib/date-picker/index.js +171 -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 +323 -310
- package/lib/directives/index.js +344 -336
- package/lib/divider/index.d.ts +57 -111
- package/lib/divider/index.js +23 -16
- package/lib/dropdown/dropdown.d.ts +1 -1
- package/lib/dropdown/index.d.ts +94 -136
- package/lib/dropdown/index.js +66 -52
- package/lib/exception/index.d.ts +41 -102
- package/lib/exception/index.js +76 -70
- package/lib/fixed-navbar/index.d.ts +59 -113
- package/lib/fixed-navbar/index.js +22 -15
- package/lib/form/form.d.ts +1 -1
- package/lib/form/index.d.ts +80 -132
- package/lib/form/index.js +104 -83
- package/lib/icon/angle-double-down-line.js +31 -29
- package/lib/icon/angle-double-left-line.js +31 -29
- package/lib/icon/angle-double-left.js +31 -29
- package/lib/icon/angle-double-right-line.js +31 -29
- package/lib/icon/angle-double-right.js +31 -29
- package/lib/icon/angle-double-up-line.js +31 -29
- package/lib/icon/angle-down-fill.js +31 -29
- package/lib/icon/angle-down-line.js +31 -29
- package/lib/icon/angle-down.js +31 -29
- package/lib/icon/angle-left.js +31 -29
- package/lib/icon/angle-right.js +31 -29
- package/lib/icon/angle-up-fill.js +31 -29
- package/lib/icon/angle-up.js +31 -29
- package/lib/icon/archive-fill.js +31 -29
- package/lib/icon/arrows-left.js +31 -29
- package/lib/icon/arrows-right.js +31 -29
- package/lib/icon/assistant.js +31 -29
- package/lib/icon/audio-fill.js +31 -29
- package/lib/icon/bk.js +31 -29
- package/lib/icon/circle.js +31 -29
- package/lib/icon/close-line.js +31 -29
- package/lib/icon/close.js +31 -29
- package/lib/icon/code.js +31 -29
- package/lib/icon/cog-shape.js +31 -29
- package/lib/icon/collapse-left.js +31 -29
- package/lib/icon/copy-shape.js +31 -29
- package/lib/icon/copy.js +31 -29
- package/lib/icon/data-shape.js +31 -29
- package/lib/icon/del.js +31 -29
- package/lib/icon/doc-fill.js +31 -29
- package/lib/icon/done.js +31 -29
- package/lib/icon/down-shape.js +31 -29
- package/lib/icon/down-small.js +31 -29
- package/lib/icon/edit-line.js +31 -29
- package/lib/icon/ellipsis.js +31 -29
- package/lib/icon/enlarge-line.js +31 -29
- package/lib/icon/error.js +31 -29
- package/lib/icon/excel-fill.js +31 -29
- package/lib/icon/exclamation-circle-shape.js +31 -29
- package/lib/icon/eye.js +31 -29
- package/lib/icon/filliscreen-line.js +31 -29
- package/lib/icon/fix-line.js +31 -29
- package/lib/icon/fix-shape.js +31 -29
- package/lib/icon/folder-open.js +31 -29
- package/lib/icon/folder-shape-open.js +31 -29
- package/lib/icon/folder-shape.js +31 -29
- package/lib/icon/folder.js +31 -29
- package/lib/icon/funnel.js +31 -29
- package/lib/icon/grag-fill.js +31 -29
- package/lib/icon/help-document-fill.js +31 -29
- package/lib/icon/help-fill.js +31 -29
- package/lib/icon/help.js +31 -29
- package/lib/icon/image-fill.js +31 -29
- package/lib/icon/img-error.js +31 -29
- package/lib/icon/img-placehoulder.js +31 -29
- package/lib/icon/info-line.js +31 -29
- package/lib/icon/info.js +31 -29
- package/lib/icon/left-shape.js +31 -29
- package/lib/icon/left-turn-line.js +31 -29
- package/lib/icon/loading.js +31 -29
- package/lib/icon/narrow-line.js +31 -29
- package/lib/icon/original.js +31 -29
- package/lib/icon/pdf-fill.js +31 -29
- package/lib/icon/play-shape.js +31 -29
- package/lib/icon/plus.js +31 -29
- package/lib/icon/ppt-fill.js +31 -29
- package/lib/icon/qq.js +31 -29
- package/lib/icon/right-shape.js +31 -29
- package/lib/icon/right-turn-line.js +31 -29
- package/lib/icon/search.js +31 -29
- package/lib/icon/share.js +31 -29
- package/lib/icon/spinner.js +31 -29
- package/lib/icon/success.js +31 -29
- package/lib/icon/switcher-loading.js +31 -29
- package/lib/icon/text-all.js +31 -29
- package/lib/icon/text-file.js +31 -29
- package/lib/icon/text-fill.js +31 -29
- package/lib/icon/transfer.js +31 -29
- package/lib/icon/tree-application-shape.js +31 -29
- package/lib/icon/unfull-screen.js +31 -29
- package/lib/icon/unvisible.js +31 -29
- package/lib/icon/up-shape.js +31 -29
- package/lib/icon/upload.js +31 -29
- package/lib/icon/video-fill.js +31 -29
- package/lib/icon/warn.js +31 -29
- package/lib/icon/weixin-pro.js +31 -29
- package/lib/icon/weixin.js +31 -29
- package/lib/image/index.d.ts +113 -149
- package/lib/image/index.js +76 -61
- package/lib/index.js +1 -1
- package/lib/info-box/index.js +328 -315
- package/lib/input/index.d.ts +326 -293
- package/lib/input/index.js +91 -83
- package/lib/link/index.d.ts +73 -122
- package/lib/link/index.js +27 -19
- package/lib/loading/index.d.ts +130 -156
- package/lib/loading/index.js +56 -51
- package/lib/loading/loading.d.ts +1 -1
- package/lib/locale/index.js +3 -3
- package/lib/menu/index.d.ts +55 -116
- package/lib/menu/index.js +67 -58
- package/lib/message/index.js +72 -67
- package/lib/message/messageConstructor.d.ts +5 -5
- package/lib/modal/index.d.ts +171 -185
- package/lib/modal/index.js +58 -48
- package/lib/navigation/index.d.ts +152 -188
- package/lib/navigation/index.js +35 -25
- package/lib/notify/index.js +57 -48
- package/lib/overflow-title/index.d.ts +343 -256
- package/lib/overflow-title/index.js +51 -38
- package/lib/pagination/index.d.ts +184 -198
- package/lib/pagination/index.js +112 -103
- package/lib/plugin-popover/index.js +7 -5
- package/lib/plugins/index.js +7 -5
- package/lib/pop-confirm/index.d.ts +115 -153
- package/lib/pop-confirm/index.js +53 -36
- package/lib/pop-confirm/pop-confirm.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 +291 -179
- package/lib/popover2/index.d.ts +8 -83
- package/lib/popover2/index.js +15 -11
- package/lib/process/index.d.ts +93 -137
- package/lib/process/index.js +299 -295
- package/lib/progress/index.d.ts +178 -187
- package/lib/progress/index.js +47 -40
- package/lib/progress/progress.d.ts +2 -2
- package/lib/radio/index.d.ts +91 -140
- package/lib/radio/index.js +85 -79
- package/lib/rate/index.d.ts +55 -112
- package/lib/rate/index.js +44 -39
- package/lib/resize-layout/index.d.ts +168 -192
- package/lib/resize-layout/index.js +50 -43
- package/lib/resize-layout/resize-layout.d.ts +2 -2
- package/lib/scrollbar/index.js +63 -63
- package/lib/search-select/index.d.ts +678 -895
- package/lib/search-select/index.js +397 -379
- 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 +1375 -1217
- package/lib/select/index.js +456 -419
- package/lib/select/select.d.ts +132 -169
- package/lib/select/selectTagInput.d.ts +2 -2
- package/lib/shared/index.js +109 -103
- package/lib/sideslider/index.d.ts +197 -201
- package/lib/sideslider/index.js +312 -303
- package/lib/slider/index.d.ts +214 -210
- package/lib/slider/index.js +305 -294
- package/lib/steps/index.d.ts +110 -149
- package/lib/steps/index.js +303 -298
- package/lib/swiper/index.d.ts +81 -127
- package/lib/swiper/index.js +42 -36
- package/lib/switcher/index.d.ts +152 -174
- package/lib/switcher/index.js +50 -44
- package/lib/tab/index.d.ts +151 -183
- package/lib/tab/index.js +72 -59
- 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 +457 -362
- package/lib/table/index.js +589 -547
- package/lib/table/table.d.ts +1 -1
- package/lib/table-column/index.d.ts +104 -150
- package/lib/table-column/index.js +13 -9
- package/lib/tag/index.d.ts +95 -142
- package/lib/tag/index.js +56 -46
- package/lib/tag-input/index.d.ts +744 -529
- package/lib/tag-input/index.js +148 -128
- package/lib/tag-input/tag-input.d.ts +5 -5
- package/lib/time-picker/index.d.ts +439 -386
- package/lib/time-picker/index.js +13 -9
- package/lib/timeline/index.d.ts +64 -131
- package/lib/timeline/index.js +27 -21
- package/lib/transfer/index.d.ts +191 -206
- package/lib/transfer/index.js +56 -40
- package/lib/tree/index.d.ts +350 -308
- package/lib/tree/index.js +171 -150
- 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 +474 -465
- package/lib/upload/upload.d.ts +2 -2
- package/lib/virtual-render/index.d.ts +333 -241
- package/lib/virtual-render/index.js +84 -72
- package/lib/virtual-render/virtual-render.d.ts +1 -1
- package/package.json +1 -1
package/lib/upload/index.js
CHANGED
@@ -10,7 +10,355 @@ import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_button_a2ea7c9a__ from "../bu
|
|
10
10
|
import "../button/button.less";
|
11
11
|
/******/ var __webpack_modules__ = ({
|
12
12
|
|
13
|
-
/***/
|
13
|
+
/***/ 4319:
|
14
|
+
/***/ ((module) => {
|
15
|
+
|
16
|
+
function _typeof(o) {
|
17
|
+
"@babel/helpers - typeof";
|
18
|
+
|
19
|
+
return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
20
|
+
return typeof o;
|
21
|
+
} : function (o) {
|
22
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
23
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(o);
|
24
|
+
}
|
25
|
+
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
26
|
+
|
27
|
+
/***/ }),
|
28
|
+
|
29
|
+
/***/ 5799:
|
30
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
31
|
+
|
32
|
+
// TODO(Babel 8): Remove this file.
|
33
|
+
|
34
|
+
var runtime = __webpack_require__(7048)();
|
35
|
+
module.exports = runtime;
|
36
|
+
|
37
|
+
// Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
|
38
|
+
try {
|
39
|
+
regeneratorRuntime = runtime;
|
40
|
+
} catch (accidentalStrictMode) {
|
41
|
+
if (typeof globalThis === "object") {
|
42
|
+
globalThis.regeneratorRuntime = runtime;
|
43
|
+
} else {
|
44
|
+
Function("r", "regeneratorRuntime = r")(runtime);
|
45
|
+
}
|
46
|
+
}
|
47
|
+
|
48
|
+
|
49
|
+
/***/ }),
|
50
|
+
|
51
|
+
/***/ 7048:
|
52
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
53
|
+
|
54
|
+
var _typeof = (__webpack_require__(4319)["default"]);
|
55
|
+
function _regeneratorRuntime() {
|
56
|
+
"use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
57
|
+
module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
|
58
|
+
return e;
|
59
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
60
|
+
var t,
|
61
|
+
e = {},
|
62
|
+
r = Object.prototype,
|
63
|
+
n = r.hasOwnProperty,
|
64
|
+
o = Object.defineProperty || function (t, e, r) {
|
65
|
+
t[e] = r.value;
|
66
|
+
},
|
67
|
+
i = "function" == typeof Symbol ? Symbol : {},
|
68
|
+
a = i.iterator || "@@iterator",
|
69
|
+
c = i.asyncIterator || "@@asyncIterator",
|
70
|
+
u = i.toStringTag || "@@toStringTag";
|
71
|
+
function define(t, e, r) {
|
72
|
+
return Object.defineProperty(t, e, {
|
73
|
+
value: r,
|
74
|
+
enumerable: !0,
|
75
|
+
configurable: !0,
|
76
|
+
writable: !0
|
77
|
+
}), t[e];
|
78
|
+
}
|
79
|
+
try {
|
80
|
+
define({}, "");
|
81
|
+
} catch (t) {
|
82
|
+
define = function define(t, e, r) {
|
83
|
+
return t[e] = r;
|
84
|
+
};
|
85
|
+
}
|
86
|
+
function wrap(t, e, r, n) {
|
87
|
+
var i = e && e.prototype instanceof Generator ? e : Generator,
|
88
|
+
a = Object.create(i.prototype),
|
89
|
+
c = new Context(n || []);
|
90
|
+
return o(a, "_invoke", {
|
91
|
+
value: makeInvokeMethod(t, r, c)
|
92
|
+
}), a;
|
93
|
+
}
|
94
|
+
function tryCatch(t, e, r) {
|
95
|
+
try {
|
96
|
+
return {
|
97
|
+
type: "normal",
|
98
|
+
arg: t.call(e, r)
|
99
|
+
};
|
100
|
+
} catch (t) {
|
101
|
+
return {
|
102
|
+
type: "throw",
|
103
|
+
arg: t
|
104
|
+
};
|
105
|
+
}
|
106
|
+
}
|
107
|
+
e.wrap = wrap;
|
108
|
+
var h = "suspendedStart",
|
109
|
+
l = "suspendedYield",
|
110
|
+
f = "executing",
|
111
|
+
s = "completed",
|
112
|
+
y = {};
|
113
|
+
function Generator() {}
|
114
|
+
function GeneratorFunction() {}
|
115
|
+
function GeneratorFunctionPrototype() {}
|
116
|
+
var p = {};
|
117
|
+
define(p, a, function () {
|
118
|
+
return this;
|
119
|
+
});
|
120
|
+
var d = Object.getPrototypeOf,
|
121
|
+
v = d && d(d(values([])));
|
122
|
+
v && v !== r && n.call(v, a) && (p = v);
|
123
|
+
var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
|
124
|
+
function defineIteratorMethods(t) {
|
125
|
+
["next", "throw", "return"].forEach(function (e) {
|
126
|
+
define(t, e, function (t) {
|
127
|
+
return this._invoke(e, t);
|
128
|
+
});
|
129
|
+
});
|
130
|
+
}
|
131
|
+
function AsyncIterator(t, e) {
|
132
|
+
function invoke(r, o, i, a) {
|
133
|
+
var c = tryCatch(t[r], t, o);
|
134
|
+
if ("throw" !== c.type) {
|
135
|
+
var u = c.arg,
|
136
|
+
h = u.value;
|
137
|
+
return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
|
138
|
+
invoke("next", t, i, a);
|
139
|
+
}, function (t) {
|
140
|
+
invoke("throw", t, i, a);
|
141
|
+
}) : e.resolve(h).then(function (t) {
|
142
|
+
u.value = t, i(u);
|
143
|
+
}, function (t) {
|
144
|
+
return invoke("throw", t, i, a);
|
145
|
+
});
|
146
|
+
}
|
147
|
+
a(c.arg);
|
148
|
+
}
|
149
|
+
var r;
|
150
|
+
o(this, "_invoke", {
|
151
|
+
value: function value(t, n) {
|
152
|
+
function callInvokeWithMethodAndArg() {
|
153
|
+
return new e(function (e, r) {
|
154
|
+
invoke(t, n, e, r);
|
155
|
+
});
|
156
|
+
}
|
157
|
+
return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
158
|
+
}
|
159
|
+
});
|
160
|
+
}
|
161
|
+
function makeInvokeMethod(e, r, n) {
|
162
|
+
var o = h;
|
163
|
+
return function (i, a) {
|
164
|
+
if (o === f) throw new Error("Generator is already running");
|
165
|
+
if (o === s) {
|
166
|
+
if ("throw" === i) throw a;
|
167
|
+
return {
|
168
|
+
value: t,
|
169
|
+
done: !0
|
170
|
+
};
|
171
|
+
}
|
172
|
+
for (n.method = i, n.arg = a;;) {
|
173
|
+
var c = n.delegate;
|
174
|
+
if (c) {
|
175
|
+
var u = maybeInvokeDelegate(c, n);
|
176
|
+
if (u) {
|
177
|
+
if (u === y) continue;
|
178
|
+
return u;
|
179
|
+
}
|
180
|
+
}
|
181
|
+
if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
|
182
|
+
if (o === h) throw o = s, n.arg;
|
183
|
+
n.dispatchException(n.arg);
|
184
|
+
} else "return" === n.method && n.abrupt("return", n.arg);
|
185
|
+
o = f;
|
186
|
+
var p = tryCatch(e, r, n);
|
187
|
+
if ("normal" === p.type) {
|
188
|
+
if (o = n.done ? s : l, p.arg === y) continue;
|
189
|
+
return {
|
190
|
+
value: p.arg,
|
191
|
+
done: n.done
|
192
|
+
};
|
193
|
+
}
|
194
|
+
"throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
|
195
|
+
}
|
196
|
+
};
|
197
|
+
}
|
198
|
+
function maybeInvokeDelegate(e, r) {
|
199
|
+
var n = r.method,
|
200
|
+
o = e.iterator[n];
|
201
|
+
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;
|
202
|
+
var i = tryCatch(o, e.iterator, r.arg);
|
203
|
+
if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
|
204
|
+
var a = i.arg;
|
205
|
+
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);
|
206
|
+
}
|
207
|
+
function pushTryEntry(t) {
|
208
|
+
var e = {
|
209
|
+
tryLoc: t[0]
|
210
|
+
};
|
211
|
+
1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
|
212
|
+
}
|
213
|
+
function resetTryEntry(t) {
|
214
|
+
var e = t.completion || {};
|
215
|
+
e.type = "normal", delete e.arg, t.completion = e;
|
216
|
+
}
|
217
|
+
function Context(t) {
|
218
|
+
this.tryEntries = [{
|
219
|
+
tryLoc: "root"
|
220
|
+
}], t.forEach(pushTryEntry, this), this.reset(!0);
|
221
|
+
}
|
222
|
+
function values(e) {
|
223
|
+
if (e || "" === e) {
|
224
|
+
var r = e[a];
|
225
|
+
if (r) return r.call(e);
|
226
|
+
if ("function" == typeof e.next) return e;
|
227
|
+
if (!isNaN(e.length)) {
|
228
|
+
var o = -1,
|
229
|
+
i = function next() {
|
230
|
+
for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
|
231
|
+
return next.value = t, next.done = !0, next;
|
232
|
+
};
|
233
|
+
return i.next = i;
|
234
|
+
}
|
235
|
+
}
|
236
|
+
throw new TypeError(_typeof(e) + " is not iterable");
|
237
|
+
}
|
238
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
|
239
|
+
value: GeneratorFunctionPrototype,
|
240
|
+
configurable: !0
|
241
|
+
}), o(GeneratorFunctionPrototype, "constructor", {
|
242
|
+
value: GeneratorFunction,
|
243
|
+
configurable: !0
|
244
|
+
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
|
245
|
+
var e = "function" == typeof t && t.constructor;
|
246
|
+
return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
|
247
|
+
}, e.mark = function (t) {
|
248
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
|
249
|
+
}, e.awrap = function (t) {
|
250
|
+
return {
|
251
|
+
__await: t
|
252
|
+
};
|
253
|
+
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
|
254
|
+
return this;
|
255
|
+
}), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
|
256
|
+
void 0 === i && (i = Promise);
|
257
|
+
var a = new AsyncIterator(wrap(t, r, n, o), i);
|
258
|
+
return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
|
259
|
+
return t.done ? t.value : a.next();
|
260
|
+
});
|
261
|
+
}, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
|
262
|
+
return this;
|
263
|
+
}), define(g, "toString", function () {
|
264
|
+
return "[object Generator]";
|
265
|
+
}), e.keys = function (t) {
|
266
|
+
var e = Object(t),
|
267
|
+
r = [];
|
268
|
+
for (var n in e) r.push(n);
|
269
|
+
return r.reverse(), function next() {
|
270
|
+
for (; r.length;) {
|
271
|
+
var t = r.pop();
|
272
|
+
if (t in e) return next.value = t, next.done = !1, next;
|
273
|
+
}
|
274
|
+
return next.done = !0, next;
|
275
|
+
};
|
276
|
+
}, e.values = values, Context.prototype = {
|
277
|
+
constructor: Context,
|
278
|
+
reset: function reset(e) {
|
279
|
+
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);
|
280
|
+
},
|
281
|
+
stop: function stop() {
|
282
|
+
this.done = !0;
|
283
|
+
var t = this.tryEntries[0].completion;
|
284
|
+
if ("throw" === t.type) throw t.arg;
|
285
|
+
return this.rval;
|
286
|
+
},
|
287
|
+
dispatchException: function dispatchException(e) {
|
288
|
+
if (this.done) throw e;
|
289
|
+
var r = this;
|
290
|
+
function handle(n, o) {
|
291
|
+
return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
|
292
|
+
}
|
293
|
+
for (var o = this.tryEntries.length - 1; o >= 0; --o) {
|
294
|
+
var i = this.tryEntries[o],
|
295
|
+
a = i.completion;
|
296
|
+
if ("root" === i.tryLoc) return handle("end");
|
297
|
+
if (i.tryLoc <= this.prev) {
|
298
|
+
var c = n.call(i, "catchLoc"),
|
299
|
+
u = n.call(i, "finallyLoc");
|
300
|
+
if (c && u) {
|
301
|
+
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
302
|
+
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
303
|
+
} else if (c) {
|
304
|
+
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
305
|
+
} else {
|
306
|
+
if (!u) throw new Error("try statement without catch or finally");
|
307
|
+
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
308
|
+
}
|
309
|
+
}
|
310
|
+
}
|
311
|
+
},
|
312
|
+
abrupt: function abrupt(t, e) {
|
313
|
+
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
|
314
|
+
var o = this.tryEntries[r];
|
315
|
+
if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
|
316
|
+
var i = o;
|
317
|
+
break;
|
318
|
+
}
|
319
|
+
}
|
320
|
+
i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
|
321
|
+
var a = i ? i.completion : {};
|
322
|
+
return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
|
323
|
+
},
|
324
|
+
complete: function complete(t, e) {
|
325
|
+
if ("throw" === t.type) throw t.arg;
|
326
|
+
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;
|
327
|
+
},
|
328
|
+
finish: function finish(t) {
|
329
|
+
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
330
|
+
var r = this.tryEntries[e];
|
331
|
+
if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
|
332
|
+
}
|
333
|
+
},
|
334
|
+
"catch": function _catch(t) {
|
335
|
+
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
336
|
+
var r = this.tryEntries[e];
|
337
|
+
if (r.tryLoc === t) {
|
338
|
+
var n = r.completion;
|
339
|
+
if ("throw" === n.type) {
|
340
|
+
var o = n.arg;
|
341
|
+
resetTryEntry(r);
|
342
|
+
}
|
343
|
+
return o;
|
344
|
+
}
|
345
|
+
}
|
346
|
+
throw new Error("illegal catch attempt");
|
347
|
+
},
|
348
|
+
delegateYield: function delegateYield(e, r, n) {
|
349
|
+
return this.delegate = {
|
350
|
+
iterator: values(e),
|
351
|
+
resultName: r,
|
352
|
+
nextLoc: n
|
353
|
+
}, "next" === this.method && (this.arg = t), y;
|
354
|
+
}
|
355
|
+
}, e;
|
356
|
+
}
|
357
|
+
module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
358
|
+
|
359
|
+
/***/ }),
|
360
|
+
|
361
|
+
/***/ 8110:
|
14
362
|
/***/ ((module) => {
|
15
363
|
|
16
364
|
(function (factory) {
|
@@ -752,354 +1100,6 @@ import "../button/button.less";
|
|
752
1100
|
}));
|
753
1101
|
|
754
1102
|
|
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 exports;
|
765
|
-
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
766
|
-
var exports = {},
|
767
|
-
Op = Object.prototype,
|
768
|
-
hasOwn = Op.hasOwnProperty,
|
769
|
-
defineProperty = Object.defineProperty || function (obj, key, desc) {
|
770
|
-
obj[key] = desc.value;
|
771
|
-
},
|
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,
|
779
|
-
enumerable: !0,
|
780
|
-
configurable: !0,
|
781
|
-
writable: !0
|
782
|
-
}), obj[key];
|
783
|
-
}
|
784
|
-
try {
|
785
|
-
define({}, "");
|
786
|
-
} catch (err) {
|
787
|
-
define = function define(obj, key, value) {
|
788
|
-
return obj[key] = value;
|
789
|
-
};
|
790
|
-
}
|
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;
|
798
|
-
}
|
799
|
-
function tryCatch(fn, obj, arg) {
|
800
|
-
try {
|
801
|
-
return {
|
802
|
-
type: "normal",
|
803
|
-
arg: fn.call(obj, arg)
|
804
|
-
};
|
805
|
-
} catch (err) {
|
806
|
-
return {
|
807
|
-
type: "throw",
|
808
|
-
arg: err
|
809
|
-
};
|
810
|
-
}
|
811
|
-
}
|
812
|
-
exports.wrap = wrap;
|
813
|
-
var ContinueSentinel = {};
|
814
|
-
function Generator() {}
|
815
|
-
function GeneratorFunction() {}
|
816
|
-
function GeneratorFunctionPrototype() {}
|
817
|
-
var IteratorPrototype = {};
|
818
|
-
define(IteratorPrototype, iteratorSymbol, function () {
|
819
|
-
return this;
|
820
|
-
});
|
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);
|
829
|
-
});
|
830
|
-
});
|
831
|
-
}
|
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);
|
846
|
-
});
|
847
|
-
}
|
848
|
-
reject(record.arg);
|
849
|
-
}
|
850
|
-
var previousPromise;
|
851
|
-
defineProperty(this, "_invoke", {
|
852
|
-
value: function value(method, arg) {
|
853
|
-
function callInvokeWithMethodAndArg() {
|
854
|
-
return new PromiseImpl(function (resolve, reject) {
|
855
|
-
invoke(method, arg, resolve, reject);
|
856
|
-
});
|
857
|
-
}
|
858
|
-
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
859
|
-
}
|
860
|
-
});
|
861
|
-
}
|
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();
|
869
|
-
}
|
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;
|
877
|
-
}
|
878
|
-
}
|
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;
|
887
|
-
return {
|
888
|
-
value: record.arg,
|
889
|
-
done: context.done
|
890
|
-
};
|
891
|
-
}
|
892
|
-
"throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
|
893
|
-
}
|
894
|
-
};
|
895
|
-
}
|
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);
|
904
|
-
}
|
905
|
-
function pushTryEntry(locs) {
|
906
|
-
var entry = {
|
907
|
-
tryLoc: locs[0]
|
908
|
-
};
|
909
|
-
1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
|
910
|
-
}
|
911
|
-
function resetTryEntry(entry) {
|
912
|
-
var record = entry.completion || {};
|
913
|
-
record.type = "normal", delete record.arg, entry.completion = record;
|
914
|
-
}
|
915
|
-
function Context(tryLocsList) {
|
916
|
-
this.tryEntries = [{
|
917
|
-
tryLoc: "root"
|
918
|
-
}], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
|
919
|
-
}
|
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;
|
930
|
-
};
|
931
|
-
return next.next = next;
|
932
|
-
}
|
933
|
-
}
|
934
|
-
return {
|
935
|
-
next: doneResult
|
936
|
-
};
|
937
|
-
}
|
938
|
-
function doneResult() {
|
939
|
-
return {
|
940
|
-
value: undefined,
|
941
|
-
done: !0
|
942
|
-
};
|
943
|
-
}
|
944
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
|
945
|
-
value: GeneratorFunctionPrototype,
|
946
|
-
configurable: !0
|
947
|
-
}), defineProperty(GeneratorFunctionPrototype, "constructor", {
|
948
|
-
value: GeneratorFunction,
|
949
|
-
configurable: !0
|
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
|
-
return {
|
957
|
-
__await: arg
|
958
|
-
};
|
959
|
-
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
|
960
|
-
return this;
|
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
|
-
});
|
967
|
-
}, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
|
968
|
-
return this;
|
969
|
-
}), define(Gp, "toString", function () {
|
970
|
-
return "[object Generator]";
|
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
|
-
}
|
980
|
-
return next.done = !0, next;
|
981
|
-
};
|
982
|
-
}, exports.values = values, Context.prototype = {
|
983
|
-
constructor: Context,
|
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
|
-
},
|
987
|
-
stop: function stop() {
|
988
|
-
this.done = !0;
|
989
|
-
var rootRecord = this.tryEntries[0].completion;
|
990
|
-
if ("throw" === rootRecord.type) throw rootRecord.arg;
|
991
|
-
return this.rval;
|
992
|
-
},
|
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
|
-
}
|
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
|
-
} else {
|
1012
|
-
if (!hasFinally) throw new Error("try statement without catch or finally");
|
1013
|
-
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
1014
|
-
}
|
1015
|
-
}
|
1016
|
-
}
|
1017
|
-
},
|
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
|
-
break;
|
1024
|
-
}
|
1025
|
-
}
|
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
|
-
},
|
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
|
-
},
|
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
|
-
}
|
1039
|
-
},
|
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
|
-
}
|
1049
|
-
return thrown;
|
1050
|
-
}
|
1051
|
-
}
|
1052
|
-
throw new Error("illegal catch attempt");
|
1053
|
-
},
|
1054
|
-
delegateYield: function delegateYield(iterable, resultName, nextLoc) {
|
1055
|
-
return this.delegate = {
|
1056
|
-
iterator: values(iterable),
|
1057
|
-
resultName: resultName,
|
1058
|
-
nextLoc: nextLoc
|
1059
|
-
}, "next" === this.method && (this.arg = undefined), ContinueSentinel;
|
1060
|
-
}
|
1061
|
-
}, exports;
|
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(obj) {
|
1071
|
-
"@babel/helpers - typeof";
|
1072
|
-
|
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
|
-
}
|
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
1103
|
/***/ })
|
1104
1104
|
|
1105
1105
|
/******/ });
|
@@ -1160,19 +1160,19 @@ try {
|
|
1160
1160
|
/******/
|
1161
1161
|
/************************************************************************/
|
1162
1162
|
var __webpack_exports__ = {};
|
1163
|
-
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
|
1164
|
-
(() => {
|
1165
1163
|
|
1166
1164
|
// EXPORTS
|
1167
1165
|
__webpack_require__.d(__webpack_exports__, {
|
1168
1166
|
"default": () => (/* binding */ src)
|
1169
1167
|
});
|
1170
1168
|
|
1171
|
-
;//
|
1172
|
-
var x = y => {
|
1173
|
-
var
|
1174
|
-
|
1175
|
-
|
1169
|
+
;// external "../shared"
|
1170
|
+
var x = (y) => {
|
1171
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
1172
|
+
}
|
1173
|
+
var y = (x) => (() => (x))
|
1174
|
+
const shared_namespaceObject = x({ ["classes"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.classes), ["isNullOrUndef"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.isNullOrUndef), ["withInstall"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstall) });
|
1175
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
|
1176
1176
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
1177
1177
|
try {
|
1178
1178
|
var info = gen[key](arg);
|
@@ -1203,39 +1203,39 @@ function _asyncToGenerator(fn) {
|
|
1203
1203
|
});
|
1204
1204
|
};
|
1205
1205
|
}
|
1206
|
-
;//
|
1207
|
-
function _typeof(
|
1206
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
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
|
-
;//
|
1217
|
-
|
1218
|
-
function
|
1219
|
-
if (
|
1220
|
-
var
|
1221
|
-
if (
|
1222
|
-
var
|
1223
|
-
if (
|
1216
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
1217
|
+
|
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
|
+
;// ../../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
|
+
;// ../../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,
|
@@ -1248,18 +1248,22 @@ function _defineProperty(obj, key, value) {
|
|
1248
1248
|
}
|
1249
1249
|
return obj;
|
1250
1250
|
}
|
1251
|
-
;//
|
1252
|
-
var external_vue_x = y => {
|
1253
|
-
var
|
1254
|
-
|
1251
|
+
;// external "vue"
|
1252
|
+
var external_vue_x = (y) => {
|
1253
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
1254
|
+
}
|
1255
|
+
var external_vue_y = (x) => (() => (x))
|
1256
|
+
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
1257
|
// EXTERNAL MODULE: ../../node_modules/@babel/runtime/regenerator/index.js
|
1256
|
-
var regenerator = __webpack_require__(
|
1258
|
+
var regenerator = __webpack_require__(5799);
|
1257
1259
|
var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
|
1258
|
-
;//
|
1259
|
-
var config_provider_x = y => {
|
1260
|
-
var
|
1261
|
-
|
1262
|
-
|
1260
|
+
;// external "../config-provider"
|
1261
|
+
var config_provider_x = (y) => {
|
1262
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
1263
|
+
}
|
1264
|
+
var config_provider_y = (x) => (() => (x))
|
1265
|
+
const config_provider_namespaceObject = config_provider_x({ ["useLocale"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.useLocale), ["usePrefix"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.usePrefix) });
|
1266
|
+
;// ../../packages/upload/src/upload.type.ts
|
1263
1267
|
/*
|
1264
1268
|
* Tencent is pleased to support the open source community by making
|
1265
1269
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -1304,7 +1308,7 @@ var EUploadStatus;
|
|
1304
1308
|
EUploadStatus["SUCCESS"] = "success";
|
1305
1309
|
EUploadStatus["UPLOADING"] = "uploading";
|
1306
1310
|
})(EUploadStatus || (EUploadStatus = {}));
|
1307
|
-
;//
|
1311
|
+
;// ../../packages/upload/src/props.ts
|
1308
1312
|
/*
|
1309
1313
|
* Tencent is pleased to support the open source community by making
|
1310
1314
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -1483,45 +1487,45 @@ var types = [ETypes.FORMDATA, ETypes.BINARY];
|
|
1483
1487
|
"default": true
|
1484
1488
|
}
|
1485
1489
|
});
|
1486
|
-
;//
|
1490
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
1487
1491
|
function _arrayWithHoles(arr) {
|
1488
1492
|
if (Array.isArray(arr)) return arr;
|
1489
1493
|
}
|
1490
|
-
;//
|
1491
|
-
function _iterableToArrayLimit(
|
1492
|
-
var
|
1493
|
-
if (null !=
|
1494
|
-
var
|
1495
|
-
|
1496
|
-
|
1497
|
-
|
1498
|
-
|
1499
|
-
|
1500
|
-
|
1494
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
1495
|
+
function _iterableToArrayLimit(r, l) {
|
1496
|
+
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
1497
|
+
if (null != t) {
|
1498
|
+
var e,
|
1499
|
+
n,
|
1500
|
+
i,
|
1501
|
+
u,
|
1502
|
+
a = [],
|
1503
|
+
f = !0,
|
1504
|
+
o = !1;
|
1501
1505
|
try {
|
1502
|
-
if (
|
1503
|
-
if (Object(
|
1504
|
-
|
1505
|
-
} else for (; !(
|
1506
|
-
} catch (
|
1507
|
-
|
1506
|
+
if (i = (t = t.call(r)).next, 0 === l) {
|
1507
|
+
if (Object(t) !== t) return;
|
1508
|
+
f = !1;
|
1509
|
+
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
1510
|
+
} catch (r) {
|
1511
|
+
o = !0, n = r;
|
1508
1512
|
} finally {
|
1509
1513
|
try {
|
1510
|
-
if (!
|
1514
|
+
if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
|
1511
1515
|
} finally {
|
1512
|
-
if (
|
1516
|
+
if (o) throw n;
|
1513
1517
|
}
|
1514
1518
|
}
|
1515
|
-
return
|
1519
|
+
return a;
|
1516
1520
|
}
|
1517
1521
|
}
|
1518
|
-
;//
|
1522
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
1519
1523
|
function _arrayLikeToArray(arr, len) {
|
1520
1524
|
if (len == null || len > arr.length) len = arr.length;
|
1521
1525
|
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
1522
1526
|
return arr2;
|
1523
1527
|
}
|
1524
|
-
;//
|
1528
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
1525
1529
|
|
1526
1530
|
function _unsupportedIterableToArray(o, minLen) {
|
1527
1531
|
if (!o) return;
|
@@ -1531,11 +1535,11 @@ function _unsupportedIterableToArray(o, minLen) {
|
|
1531
1535
|
if (n === "Map" || n === "Set") return Array.from(o);
|
1532
1536
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
1533
1537
|
}
|
1534
|
-
;//
|
1538
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
1535
1539
|
function _nonIterableRest() {
|
1536
1540
|
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
1541
|
}
|
1538
|
-
;//
|
1542
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
1539
1543
|
|
1540
1544
|
|
1541
1545
|
|
@@ -1543,19 +1547,25 @@ function _nonIterableRest() {
|
|
1543
1547
|
function _slicedToArray(arr, i) {
|
1544
1548
|
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
1545
1549
|
}
|
1546
|
-
;//
|
1547
|
-
var icon_x = y => {
|
1548
|
-
var
|
1549
|
-
|
1550
|
-
|
1551
|
-
|
1552
|
-
|
1553
|
-
|
1554
|
-
|
1555
|
-
|
1556
|
-
var
|
1550
|
+
;// external "../icon"
|
1551
|
+
var icon_x = (y) => {
|
1552
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
1553
|
+
}
|
1554
|
+
var icon_y = (x) => (() => (x))
|
1555
|
+
const icon_namespaceObject = icon_x({ ["ArchiveFill"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.ArchiveFill), ["AudioFill"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.AudioFill), ["Del"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Del), ["Done"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Done), ["Eye"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Eye), ["ImageFill"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.ImageFill), ["Plus"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Plus), ["RightTurnLine"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.RightTurnLine), ["TextFill"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.TextFill), ["Upload"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Upload), ["VideoFill"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.VideoFill) });
|
1556
|
+
;// external "../progress"
|
1557
|
+
var progress_x = (y) => {
|
1558
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
1559
|
+
}
|
1560
|
+
var progress_y = (x) => (() => (x))
|
1561
|
+
const progress_namespaceObject = progress_x({ ["default"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_progress_f1b80a6c__["default"]) });
|
1562
|
+
;// external "../progress/progress.less"
|
1563
|
+
var progress_less_x = (y) => {
|
1564
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
1565
|
+
}
|
1566
|
+
var progress_less_y = (x) => (() => (x))
|
1557
1567
|
const progress_less_namespaceObject = progress_less_x({ });
|
1558
|
-
;//
|
1568
|
+
;// ../../packages/upload/src/upload-list.tsx
|
1559
1569
|
|
1560
1570
|
|
1561
1571
|
|
@@ -1624,8 +1634,7 @@ function _isSlot(s) {
|
|
1624
1634
|
return isPhotowall.value && !multiple.value;
|
1625
1635
|
});
|
1626
1636
|
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));
|
1637
|
+
return (0,shared_namespaceObject.classes)(_defineProperty(_defineProperty(_defineProperty({}, classBlock, true), "".concat(classBlock, "--").concat(theme.value), true), "".concat(classBlock, "--disabled"), disabled.value));
|
1629
1638
|
});
|
1630
1639
|
function formatSize(value) {
|
1631
1640
|
var uints = ['Bytes', 'KB', 'MB', 'GB', 'TB'];
|
@@ -1647,8 +1656,7 @@ function _isSlot(s) {
|
|
1647
1656
|
return (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.TransitionGroup, {
|
1648
1657
|
"name": "".concat(classBlock, "__item")
|
1649
1658
|
}, _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));
|
1659
|
+
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
1660
|
return (0,external_vue_namespaceObject.createVNode)("li", {
|
1653
1661
|
"key": file.uid,
|
1654
1662
|
"class": classNames
|
@@ -1695,8 +1703,7 @@ function _isSlot(s) {
|
|
1695
1703
|
return (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.TransitionGroup, {
|
1696
1704
|
"name": "".concat(classBlock, "__item")
|
1697
1705
|
}, _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));
|
1706
|
+
var classNames = (0,shared_namespaceObject.classes)(_defineProperty(_defineProperty({}, "".concat(classBlock, "__item"), true), "".concat(classBlock, "__item--").concat(file.status), true));
|
1700
1707
|
return (0,external_vue_namespaceObject.createVNode)("li", {
|
1701
1708
|
"key": file.uid,
|
1702
1709
|
"class": classNames
|
@@ -1781,15 +1788,19 @@ function _isSlot(s) {
|
|
1781
1788
|
};
|
1782
1789
|
}
|
1783
1790
|
}));
|
1784
|
-
;//
|
1785
|
-
var button_x = y => {
|
1786
|
-
var
|
1787
|
-
|
1788
|
-
|
1789
|
-
|
1790
|
-
|
1791
|
+
;// external "../button"
|
1792
|
+
var button_x = (y) => {
|
1793
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
1794
|
+
}
|
1795
|
+
var button_y = (x) => (() => (x))
|
1796
|
+
const button_namespaceObject = button_x({ ["default"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_button_a2ea7c9a__["default"]) });
|
1797
|
+
;// external "../button/button.less"
|
1798
|
+
var button_less_x = (y) => {
|
1799
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
1800
|
+
}
|
1801
|
+
var button_less_y = (x) => (() => (x))
|
1791
1802
|
const button_less_namespaceObject = button_less_x({ });
|
1792
|
-
;//
|
1803
|
+
;// ../../packages/upload/src/upload-trigger.tsx
|
1793
1804
|
|
1794
1805
|
|
1795
1806
|
/*
|
@@ -1872,8 +1883,8 @@ const button_less_namespaceObject = button_less_x({ });
|
|
1872
1883
|
});
|
1873
1884
|
var inputEl = (0,external_vue_namespaceObject.ref)(null);
|
1874
1885
|
var classNames = (0,external_vue_namespaceObject.computed)(function () {
|
1875
|
-
var _file$value, _file$value2, _file$value3
|
1876
|
-
return (0,shared_namespaceObject.classes)((
|
1886
|
+
var _file$value, _file$value2, _file$value3;
|
1887
|
+
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
1888
|
});
|
1878
1889
|
var invoke = function invoke() {
|
1879
1890
|
inputEl.value.value = null;
|
@@ -2027,20 +2038,20 @@ const button_less_namespaceObject = button_less_x({ });
|
|
2027
2038
|
};
|
2028
2039
|
}
|
2029
2040
|
}));
|
2030
|
-
;//
|
2041
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
|
2031
2042
|
|
2032
2043
|
function _arrayWithoutHoles(arr) {
|
2033
2044
|
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
2034
2045
|
}
|
2035
|
-
;//
|
2046
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/iterableToArray.js
|
2036
2047
|
function _iterableToArray(iter) {
|
2037
2048
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
2038
2049
|
}
|
2039
|
-
;//
|
2050
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
|
2040
2051
|
function _nonIterableSpread() {
|
2041
2052
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
2042
2053
|
}
|
2043
|
-
;//
|
2054
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
|
2044
2055
|
|
2045
2056
|
|
2046
2057
|
|
@@ -2049,9 +2060,9 @@ function _toConsumableArray(arr) {
|
|
2049
2060
|
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
2050
2061
|
}
|
2051
2062
|
// EXTERNAL MODULE: ../../node_modules/spark-md5/spark-md5.js
|
2052
|
-
var spark_md5 = __webpack_require__(
|
2063
|
+
var spark_md5 = __webpack_require__(8110);
|
2053
2064
|
var spark_md5_default = /*#__PURE__*/__webpack_require__.n(spark_md5);
|
2054
|
-
;//
|
2065
|
+
;// ../../packages/upload/src/use-ajax-upload.ts
|
2055
2066
|
|
2056
2067
|
|
2057
2068
|
|
@@ -2198,7 +2209,7 @@ var ajaxUpload = function ajaxUpload(option) {
|
|
2198
2209
|
// 该方法用于在不同的浏览器使用不同的方式
|
2199
2210
|
var blobSlice = File.prototype.slice || File.prototype.mozSlice || File.prototype.webkitSlice;
|
2200
2211
|
var ajaxSliceUpload = /*#__PURE__*/function () {
|
2201
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee(option) {
|
2212
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee(option) {
|
2202
2213
|
var chunkSize, file, blockCount, hash, progressList;
|
2203
2214
|
return regenerator_default().wrap(function _callee$(_context) {
|
2204
2215
|
while (1) switch (_context.prev = _context.next) {
|
@@ -2391,7 +2402,7 @@ var hashFile = function hashFile(file, chunkSize) {
|
|
2391
2402
|
console.log(err);
|
2392
2403
|
});
|
2393
2404
|
};
|
2394
|
-
;//
|
2405
|
+
;// ../../packages/upload/src/use-file-handler.ts
|
2395
2406
|
|
2396
2407
|
|
2397
2408
|
|
@@ -2495,7 +2506,7 @@ function buildFileId(index) {
|
|
2495
2506
|
return _handleRemove.apply(this, arguments);
|
2496
2507
|
}
|
2497
2508
|
function _handleRemove() {
|
2498
|
-
_handleRemove = _asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee(file) {
|
2509
|
+
_handleRemove = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee(file) {
|
2499
2510
|
var uploadFile, remove, _props$beforeRemove, before;
|
2500
2511
|
return regenerator_default().wrap(function _callee$(_context) {
|
2501
2512
|
while (1) switch (_context.prev = _context.next) {
|
@@ -2536,7 +2547,7 @@ function buildFileId(index) {
|
|
2536
2547
|
return _handleError.apply(this, arguments);
|
2537
2548
|
}
|
2538
2549
|
function _handleError() {
|
2539
|
-
_handleError = _asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee2(err, rawFile, res) {
|
2550
|
+
_handleError = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee2(err, rawFile, res) {
|
2540
2551
|
var file;
|
2541
2552
|
return regenerator_default().wrap(function _callee2$(_context2) {
|
2542
2553
|
while (1) switch (_context2.prev = _context2.next) {
|
@@ -2563,7 +2574,7 @@ function buildFileId(index) {
|
|
2563
2574
|
return _handleSuccess.apply(this, arguments);
|
2564
2575
|
}
|
2565
2576
|
function _handleSuccess() {
|
2566
|
-
_handleSuccess = _asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee3(res, rawFile) {
|
2577
|
+
_handleSuccess = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee3(res, rawFile) {
|
2567
2578
|
var file;
|
2568
2579
|
return regenerator_default().wrap(function _callee3$(_context3) {
|
2569
2580
|
while (1) switch (_context3.prev = _context3.next) {
|
@@ -2589,7 +2600,7 @@ function buildFileId(index) {
|
|
2589
2600
|
return _handleProgress.apply(this, arguments);
|
2590
2601
|
}
|
2591
2602
|
function _handleProgress() {
|
2592
|
-
_handleProgress = _asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee4(event, rawFile) {
|
2603
|
+
_handleProgress = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee4(event, rawFile) {
|
2593
2604
|
var file;
|
2594
2605
|
return regenerator_default().wrap(function _callee4$(_context4) {
|
2595
2606
|
while (1) switch (_context4.prev = _context4.next) {
|
@@ -2636,14 +2647,14 @@ function buildFileId(index) {
|
|
2636
2647
|
handleProgress: handleProgress
|
2637
2648
|
};
|
2638
2649
|
});
|
2639
|
-
;//
|
2650
|
+
;// ../../packages/upload/src/upload.tsx
|
2640
2651
|
|
2641
2652
|
|
2642
2653
|
|
2643
2654
|
|
2644
|
-
function _createForOfIteratorHelper(
|
2645
|
-
function upload_unsupportedIterableToArray(
|
2646
|
-
function upload_arrayLikeToArray(
|
2655
|
+
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; } } }; }
|
2656
|
+
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); }
|
2657
|
+
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
2658
|
/*
|
2648
2659
|
* Tencent is pleased to support the open source community by making
|
2649
2660
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -2696,8 +2707,8 @@ function upload_arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.l
|
|
2696
2707
|
return isPhotowall.value && !props.multiple;
|
2697
2708
|
});
|
2698
2709
|
var classNames = (0,external_vue_namespaceObject.computed)(function () {
|
2699
|
-
var _props$extCls
|
2700
|
-
return (0,shared_namespaceObject.classes)((
|
2710
|
+
var _props$extCls;
|
2711
|
+
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
2712
|
});
|
2702
2713
|
var triggerProps = (0,external_vue_namespaceObject.computed)(function () {
|
2703
2714
|
return {
|
@@ -2770,7 +2781,7 @@ function upload_arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.l
|
|
2770
2781
|
return _upload.apply(this, arguments);
|
2771
2782
|
}
|
2772
2783
|
function _upload() {
|
2773
|
-
_upload = _asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee(file, sendFiles) {
|
2784
|
+
_upload = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee(file, sendFiles) {
|
2774
2785
|
var beforeResult, _props$beforeUpload;
|
2775
2786
|
return regenerator_default().wrap(function _callee$(_context) {
|
2776
2787
|
while (1) switch (_context.prev = _context.next) {
|
@@ -2884,7 +2895,7 @@ function upload_arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.l
|
|
2884
2895
|
Object.keys(reqs).forEach(function (uid) {
|
2885
2896
|
if (reqs[uid] instanceof XMLHttpRequest) {
|
2886
2897
|
var xhr = reqs[uid];
|
2887
|
-
xhr === null || xhr === void 0
|
2898
|
+
xhr === null || xhr === void 0 || xhr.abort();
|
2888
2899
|
}
|
2889
2900
|
delete requests.value[uid];
|
2890
2901
|
});
|
@@ -2930,7 +2941,7 @@ function upload_arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.l
|
|
2930
2941
|
};
|
2931
2942
|
}
|
2932
2943
|
}));
|
2933
|
-
;//
|
2944
|
+
;// ../../packages/upload/src/index.ts
|
2934
2945
|
/*
|
2935
2946
|
* Tencent is pleased to support the open source community by making
|
2936
2947
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -2960,7 +2971,5 @@ function upload_arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.l
|
|
2960
2971
|
|
2961
2972
|
var Upload = (0,shared_namespaceObject.withInstall)(upload);
|
2962
2973
|
/* harmony default export */ const src = (Upload);
|
2963
|
-
})();
|
2964
|
-
|
2965
2974
|
var __webpack_exports__default = __webpack_exports__["default"];
|
2966
2975
|
export { __webpack_exports__default as default };
|