bkui-vue 0.0.2-beta.75 → 0.0.2-beta.78

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (144) hide show
  1. package/dist/index.cjs.js +48 -48
  2. package/dist/index.esm.js +8323 -8377
  3. package/dist/index.umd.js +48 -48
  4. package/lib/affix/index.js +5 -3
  5. package/lib/alert/index.js +2 -3
  6. package/lib/backtop/index.js +2 -2
  7. package/lib/badge/index.js +3 -4
  8. package/lib/breadcrumb/index.js +4 -4
  9. package/lib/button/index.js +6 -6
  10. package/lib/card/index.js +16 -5
  11. package/lib/cascader/index.js +70 -53
  12. package/lib/checkbox/index.js +4 -4
  13. package/lib/collapse/index.js +58 -6
  14. package/lib/color-picker/index.js +14 -11
  15. package/lib/config-provider/index.js +51 -3
  16. package/lib/container/index.js +55 -7
  17. package/lib/date-picker/index.js +202 -156
  18. package/lib/dialog/index.js +140 -431
  19. package/lib/directives/index.js +59 -19
  20. package/lib/dropdown/index.js +8 -8
  21. package/lib/exception/index.js +5 -5
  22. package/lib/form/index.js +22 -16
  23. package/lib/icon/angle-double-down-line.js +84 -374
  24. package/lib/icon/angle-double-left-line.js +84 -374
  25. package/lib/icon/angle-double-left.js +84 -374
  26. package/lib/icon/angle-double-right-line.js +84 -374
  27. package/lib/icon/angle-double-right.js +84 -374
  28. package/lib/icon/angle-double-up-line.js +84 -374
  29. package/lib/icon/angle-down-fill.js +84 -374
  30. package/lib/icon/angle-down-line.js +84 -374
  31. package/lib/icon/angle-down.js +84 -374
  32. package/lib/icon/angle-left.js +84 -374
  33. package/lib/icon/angle-right.js +84 -374
  34. package/lib/icon/angle-up-fill.js +84 -374
  35. package/lib/icon/angle-up.js +84 -374
  36. package/lib/icon/archive-fill.js +84 -374
  37. package/lib/icon/arrows-left.js +84 -374
  38. package/lib/icon/arrows-right.js +84 -374
  39. package/lib/icon/assistant.js +84 -374
  40. package/lib/icon/audio-fill.js +84 -374
  41. package/lib/icon/bk.js +84 -374
  42. package/lib/icon/circle.js +84 -374
  43. package/lib/icon/close-line.js +84 -374
  44. package/lib/icon/close.js +84 -374
  45. package/lib/icon/code.js +84 -374
  46. package/lib/icon/cog-shape.js +84 -374
  47. package/lib/icon/collapse-left.js +84 -374
  48. package/lib/icon/copy-shape.js +84 -374
  49. package/lib/icon/copy.js +84 -374
  50. package/lib/icon/data-shape.js +84 -374
  51. package/lib/icon/del.js +84 -374
  52. package/lib/icon/doc-fill.js +84 -374
  53. package/lib/icon/done.js +84 -374
  54. package/lib/icon/down-shape.js +84 -374
  55. package/lib/icon/down-small.js +84 -374
  56. package/lib/icon/edit-line.js +84 -374
  57. package/lib/icon/ellipsis.js +84 -374
  58. package/lib/icon/enlarge-line.js +84 -374
  59. package/lib/icon/error.js +84 -374
  60. package/lib/icon/excel-fill.js +84 -374
  61. package/lib/icon/exclamation-circle-shape.js +84 -374
  62. package/lib/icon/eye.js +84 -374
  63. package/lib/icon/filliscreen-line.js +84 -374
  64. package/lib/icon/fix-line.js +84 -374
  65. package/lib/icon/fix-shape.js +84 -374
  66. package/lib/icon/folder-open.js +84 -374
  67. package/lib/icon/folder-shape-open.js +84 -374
  68. package/lib/icon/folder-shape.js +84 -374
  69. package/lib/icon/folder.js +84 -374
  70. package/lib/icon/funnel.js +84 -374
  71. package/lib/icon/help-document-fill.js +84 -374
  72. package/lib/icon/help-fill.js +84 -374
  73. package/lib/icon/help.js +84 -374
  74. package/lib/icon/image-fill.js +131 -382
  75. package/lib/icon/img-error.js +131 -382
  76. package/lib/icon/img-placehoulder.js +131 -382
  77. package/lib/icon/index.js +563 -531
  78. package/lib/icon/info-line.js +131 -382
  79. package/lib/icon/info.js +131 -382
  80. package/lib/icon/left-shape.js +131 -382
  81. package/lib/icon/left-turn-line.js +131 -382
  82. package/lib/icon/narrow-line.js +131 -382
  83. package/lib/icon/original.js +131 -382
  84. package/lib/icon/pdf-fill.js +131 -382
  85. package/lib/icon/play-shape.js +131 -382
  86. package/lib/icon/plus.js +131 -382
  87. package/lib/icon/ppt-fill.js +131 -382
  88. package/lib/icon/qq.js +131 -382
  89. package/lib/icon/right-shape.js +131 -382
  90. package/lib/icon/right-turn-line.js +131 -382
  91. package/lib/icon/search.js +131 -382
  92. package/lib/icon/share.js +131 -382
  93. package/lib/icon/spinner.js +131 -382
  94. package/lib/icon/success.js +131 -382
  95. package/lib/icon/switcher-loading.js +131 -382
  96. package/lib/icon/text-file.js +131 -382
  97. package/lib/icon/text-fill.js +131 -382
  98. package/lib/icon/transfer.js +131 -382
  99. package/lib/icon/tree-application-shape.js +131 -382
  100. package/lib/icon/unfull-screen.js +131 -382
  101. package/lib/icon/unvisible.js +131 -382
  102. package/lib/icon/up-shape.js +131 -382
  103. package/lib/icon/upload.js +131 -382
  104. package/lib/icon/video-fill.js +131 -382
  105. package/lib/icon/warn.js +131 -382
  106. package/lib/icon/weixin-pro.js +131 -382
  107. package/lib/icon/weixin.js +131 -382
  108. package/lib/image/index.js +57 -9
  109. package/lib/info-box/index.js +145 -436
  110. package/lib/input/index.js +105 -415
  111. package/lib/link/index.js +2 -2
  112. package/lib/loading/index.js +18 -16
  113. package/lib/menu/index.js +22 -23
  114. package/lib/message/index.js +62 -57
  115. package/lib/modal/index.js +77 -18
  116. package/lib/navigation/index.js +11 -11
  117. package/lib/notify/index.js +51 -48
  118. package/lib/overflow-title/index.js +6 -5
  119. package/lib/plugin-popover/index.js +202 -364
  120. package/lib/popover/index.js +202 -364
  121. package/lib/process/index.js +55 -395
  122. package/lib/progress/index.js +51 -48
  123. package/lib/radio/index.js +4 -4
  124. package/lib/rate/index.js +2 -2
  125. package/lib/resize-layout/index.js +4 -5
  126. package/lib/search-select/index.js +179 -486
  127. package/lib/select/index.js +148 -479
  128. package/lib/shared/index.js +176 -352
  129. package/lib/sideslider/index.js +82 -373
  130. package/lib/slider/index.js +48 -386
  131. package/lib/steps/index.js +67 -405
  132. package/lib/swiper/index.js +10 -10
  133. package/lib/switcher/index.js +2 -2
  134. package/lib/tab/index.js +63 -8
  135. package/lib/table/index.js +262 -424
  136. package/lib/table-column/index.js +7 -6
  137. package/lib/tag/index.js +2 -2
  138. package/lib/tag-input/index.js +29 -21
  139. package/lib/timeline/index.js +6 -7
  140. package/lib/transfer/index.js +8 -8
  141. package/lib/tree/index.js +139 -319
  142. package/lib/upload/index.js +104 -423
  143. package/lib/virtual-render/index.js +60 -16
  144. package/package.json +2 -1
@@ -1168,6 +1168,37 @@ __webpack_require__.d(__webpack_exports__, {
1168
1168
  var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
1169
1169
  var y = x => () => x
1170
1170
  const external_shared_namespaceObject = x({ ["classes"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.classes, ["isNullOrUndef"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.isNullOrUndef, ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.withInstall });
1171
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
1172
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
1173
+ try {
1174
+ var info = gen[key](arg);
1175
+ var value = info.value;
1176
+ } catch (error) {
1177
+ reject(error);
1178
+ return;
1179
+ }
1180
+ if (info.done) {
1181
+ resolve(value);
1182
+ } else {
1183
+ Promise.resolve(value).then(_next, _throw);
1184
+ }
1185
+ }
1186
+ function _asyncToGenerator(fn) {
1187
+ return function () {
1188
+ var self = this,
1189
+ args = arguments;
1190
+ return new Promise(function (resolve, reject) {
1191
+ var gen = fn.apply(self, args);
1192
+ function _next(value) {
1193
+ asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
1194
+ }
1195
+ function _throw(err) {
1196
+ asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
1197
+ }
1198
+ _next(undefined);
1199
+ });
1200
+ };
1201
+ }
1171
1202
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
1172
1203
  function _typeof(obj) {
1173
1204
  "@babel/helpers - typeof";
@@ -1220,378 +1251,6 @@ const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => __WEBP
1220
1251
  // EXTERNAL MODULE: ../../node_modules/@babel/runtime/regenerator/index.js
1221
1252
  var regenerator = __webpack_require__(2841);
1222
1253
  var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
1223
- ;// CONCATENATED MODULE: ../../node_modules/tslib/tslib.es6.mjs
1224
- /******************************************************************************
1225
- Copyright (c) Microsoft Corporation.
1226
-
1227
- Permission to use, copy, modify, and/or distribute this software for any
1228
- purpose with or without fee is hereby granted.
1229
-
1230
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
1231
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
1232
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
1233
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
1234
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
1235
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1236
- PERFORMANCE OF THIS SOFTWARE.
1237
- ***************************************************************************** */
1238
- /* global Reflect, Promise, SuppressedError, Symbol */
1239
-
1240
- var extendStatics = function(d, b) {
1241
- extendStatics = Object.setPrototypeOf ||
1242
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
1243
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
1244
- return extendStatics(d, b);
1245
- };
1246
-
1247
- function __extends(d, b) {
1248
- if (typeof b !== "function" && b !== null)
1249
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
1250
- extendStatics(d, b);
1251
- function __() { this.constructor = d; }
1252
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
1253
- }
1254
-
1255
- var __assign = function() {
1256
- __assign = Object.assign || function __assign(t) {
1257
- for (var s, i = 1, n = arguments.length; i < n; i++) {
1258
- s = arguments[i];
1259
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
1260
- }
1261
- return t;
1262
- }
1263
- return __assign.apply(this, arguments);
1264
- }
1265
-
1266
- function __rest(s, e) {
1267
- var t = {};
1268
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
1269
- t[p] = s[p];
1270
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
1271
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
1272
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
1273
- t[p[i]] = s[p[i]];
1274
- }
1275
- return t;
1276
- }
1277
-
1278
- function __decorate(decorators, target, key, desc) {
1279
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1280
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
1281
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
1282
- return c > 3 && r && Object.defineProperty(target, key, r), r;
1283
- }
1284
-
1285
- function __param(paramIndex, decorator) {
1286
- return function (target, key) { decorator(target, key, paramIndex); }
1287
- }
1288
-
1289
- function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
1290
- function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
1291
- var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
1292
- var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
1293
- var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
1294
- var _, done = false;
1295
- for (var i = decorators.length - 1; i >= 0; i--) {
1296
- var context = {};
1297
- for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
1298
- for (var p in contextIn.access) context.access[p] = contextIn.access[p];
1299
- context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
1300
- var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
1301
- if (kind === "accessor") {
1302
- if (result === void 0) continue;
1303
- if (result === null || typeof result !== "object") throw new TypeError("Object expected");
1304
- if (_ = accept(result.get)) descriptor.get = _;
1305
- if (_ = accept(result.set)) descriptor.set = _;
1306
- if (_ = accept(result.init)) initializers.unshift(_);
1307
- }
1308
- else if (_ = accept(result)) {
1309
- if (kind === "field") initializers.unshift(_);
1310
- else descriptor[key] = _;
1311
- }
1312
- }
1313
- if (target) Object.defineProperty(target, contextIn.name, descriptor);
1314
- done = true;
1315
- };
1316
-
1317
- function __runInitializers(thisArg, initializers, value) {
1318
- var useValue = arguments.length > 2;
1319
- for (var i = 0; i < initializers.length; i++) {
1320
- value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
1321
- }
1322
- return useValue ? value : void 0;
1323
- };
1324
-
1325
- function __propKey(x) {
1326
- return typeof x === "symbol" ? x : "".concat(x);
1327
- };
1328
-
1329
- function __setFunctionName(f, name, prefix) {
1330
- if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
1331
- return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
1332
- };
1333
-
1334
- function __metadata(metadataKey, metadataValue) {
1335
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
1336
- }
1337
-
1338
- function __awaiter(thisArg, _arguments, P, generator) {
1339
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
1340
- return new (P || (P = Promise))(function (resolve, reject) {
1341
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
1342
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
1343
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
1344
- step((generator = generator.apply(thisArg, _arguments || [])).next());
1345
- });
1346
- }
1347
-
1348
- function __generator(thisArg, body) {
1349
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
1350
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
1351
- function verb(n) { return function (v) { return step([n, v]); }; }
1352
- function step(op) {
1353
- if (f) throw new TypeError("Generator is already executing.");
1354
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
1355
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
1356
- if (y = 0, t) op = [op[0] & 2, t.value];
1357
- switch (op[0]) {
1358
- case 0: case 1: t = op; break;
1359
- case 4: _.label++; return { value: op[1], done: false };
1360
- case 5: _.label++; y = op[1]; op = [0]; continue;
1361
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
1362
- default:
1363
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
1364
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
1365
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
1366
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
1367
- if (t[2]) _.ops.pop();
1368
- _.trys.pop(); continue;
1369
- }
1370
- op = body.call(thisArg, _);
1371
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
1372
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
1373
- }
1374
- }
1375
-
1376
- var __createBinding = Object.create ? (function(o, m, k, k2) {
1377
- if (k2 === undefined) k2 = k;
1378
- var desc = Object.getOwnPropertyDescriptor(m, k);
1379
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
1380
- desc = { enumerable: true, get: function() { return m[k]; } };
1381
- }
1382
- Object.defineProperty(o, k2, desc);
1383
- }) : (function(o, m, k, k2) {
1384
- if (k2 === undefined) k2 = k;
1385
- o[k2] = m[k];
1386
- });
1387
-
1388
- function __exportStar(m, o) {
1389
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);
1390
- }
1391
-
1392
- function __values(o) {
1393
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
1394
- if (m) return m.call(o);
1395
- if (o && typeof o.length === "number") return {
1396
- next: function () {
1397
- if (o && i >= o.length) o = void 0;
1398
- return { value: o && o[i++], done: !o };
1399
- }
1400
- };
1401
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
1402
- }
1403
-
1404
- function __read(o, n) {
1405
- var m = typeof Symbol === "function" && o[Symbol.iterator];
1406
- if (!m) return o;
1407
- var i = m.call(o), r, ar = [], e;
1408
- try {
1409
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
1410
- }
1411
- catch (error) { e = { error: error }; }
1412
- finally {
1413
- try {
1414
- if (r && !r.done && (m = i["return"])) m.call(i);
1415
- }
1416
- finally { if (e) throw e.error; }
1417
- }
1418
- return ar;
1419
- }
1420
-
1421
- /** @deprecated */
1422
- function __spread() {
1423
- for (var ar = [], i = 0; i < arguments.length; i++)
1424
- ar = ar.concat(__read(arguments[i]));
1425
- return ar;
1426
- }
1427
-
1428
- /** @deprecated */
1429
- function __spreadArrays() {
1430
- for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
1431
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
1432
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
1433
- r[k] = a[j];
1434
- return r;
1435
- }
1436
-
1437
- function __spreadArray(to, from, pack) {
1438
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
1439
- if (ar || !(i in from)) {
1440
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
1441
- ar[i] = from[i];
1442
- }
1443
- }
1444
- return to.concat(ar || Array.prototype.slice.call(from));
1445
- }
1446
-
1447
- function __await(v) {
1448
- return this instanceof __await ? (this.v = v, this) : new __await(v);
1449
- }
1450
-
1451
- function __asyncGenerator(thisArg, _arguments, generator) {
1452
- if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
1453
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
1454
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
1455
- function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
1456
- function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
1457
- function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
1458
- function fulfill(value) { resume("next", value); }
1459
- function reject(value) { resume("throw", value); }
1460
- function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
1461
- }
1462
-
1463
- function __asyncDelegator(o) {
1464
- var i, p;
1465
- return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
1466
- function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }
1467
- }
1468
-
1469
- function __asyncValues(o) {
1470
- if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
1471
- var m = o[Symbol.asyncIterator], i;
1472
- return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
1473
- function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
1474
- function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
1475
- }
1476
-
1477
- function __makeTemplateObject(cooked, raw) {
1478
- if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
1479
- return cooked;
1480
- };
1481
-
1482
- var __setModuleDefault = Object.create ? (function(o, v) {
1483
- Object.defineProperty(o, "default", { enumerable: true, value: v });
1484
- }) : function(o, v) {
1485
- o["default"] = v;
1486
- };
1487
-
1488
- function __importStar(mod) {
1489
- if (mod && mod.__esModule) return mod;
1490
- var result = {};
1491
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
1492
- __setModuleDefault(result, mod);
1493
- return result;
1494
- }
1495
-
1496
- function __importDefault(mod) {
1497
- return (mod && mod.__esModule) ? mod : { default: mod };
1498
- }
1499
-
1500
- function __classPrivateFieldGet(receiver, state, kind, f) {
1501
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
1502
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
1503
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
1504
- }
1505
-
1506
- function __classPrivateFieldSet(receiver, state, value, kind, f) {
1507
- if (kind === "m") throw new TypeError("Private method is not writable");
1508
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
1509
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
1510
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
1511
- }
1512
-
1513
- function __classPrivateFieldIn(state, receiver) {
1514
- if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object");
1515
- return typeof state === "function" ? receiver === state : state.has(receiver);
1516
- }
1517
-
1518
- function __addDisposableResource(env, value, async) {
1519
- if (value !== null && value !== void 0) {
1520
- if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");
1521
- var dispose;
1522
- if (async) {
1523
- if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
1524
- dispose = value[Symbol.asyncDispose];
1525
- }
1526
- if (dispose === void 0) {
1527
- if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");
1528
- dispose = value[Symbol.dispose];
1529
- }
1530
- if (typeof dispose !== "function") throw new TypeError("Object not disposable.");
1531
- env.stack.push({ value: value, dispose: dispose, async: async });
1532
- }
1533
- else if (async) {
1534
- env.stack.push({ async: true });
1535
- }
1536
- return value;
1537
- }
1538
-
1539
- var _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
1540
- var e = new Error(message);
1541
- return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
1542
- };
1543
-
1544
- function __disposeResources(env) {
1545
- function fail(e) {
1546
- env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
1547
- env.hasError = true;
1548
- }
1549
- function next() {
1550
- while (env.stack.length) {
1551
- var rec = env.stack.pop();
1552
- try {
1553
- var result = rec.dispose && rec.dispose.call(rec.value);
1554
- if (rec.async) return Promise.resolve(result).then(next, function(e) { fail(e); return next(); });
1555
- }
1556
- catch (e) {
1557
- fail(e);
1558
- }
1559
- }
1560
- if (env.hasError) throw env.error;
1561
- }
1562
- return next();
1563
- }
1564
-
1565
- /* harmony default export */ const tslib_es6 = ({
1566
- __extends,
1567
- __assign,
1568
- __rest,
1569
- __decorate,
1570
- __param,
1571
- __metadata,
1572
- __awaiter,
1573
- __generator,
1574
- __createBinding,
1575
- __exportStar,
1576
- __values,
1577
- __read,
1578
- __spread,
1579
- __spreadArrays,
1580
- __spreadArray,
1581
- __await,
1582
- __asyncGenerator,
1583
- __asyncDelegator,
1584
- __asyncValues,
1585
- __makeTemplateObject,
1586
- __importStar,
1587
- __importDefault,
1588
- __classPrivateFieldGet,
1589
- __classPrivateFieldSet,
1590
- __classPrivateFieldIn,
1591
- __addDisposableResource,
1592
- __disposeResources,
1593
- });
1594
-
1595
1254
  ;// CONCATENATED MODULE: ../../packages/upload/src/upload.type.ts
1596
1255
  /*
1597
1256
  * Tencent is pleased to support the open source community by making
@@ -1952,7 +1611,7 @@ function _isSlot(s) {
1952
1611
  return (0,external_vue_namespaceObject.createVNode)("li", {
1953
1612
  "key": file.uid,
1954
1613
  "class": classNames
1955
- }, [(slots === null || slots === void 0 ? void 0 : slots.file) ? slots.file({
1614
+ }, [slots !== null && slots !== void 0 && slots.file ? slots.file({
1956
1615
  file: file
1957
1616
  }) : PhotoItem(file)]);
1958
1617
  })) ? _slot : {
@@ -1995,7 +1654,7 @@ function _isSlot(s) {
1995
1654
  return (0,external_vue_namespaceObject.createVNode)("li", {
1996
1655
  "key": file.uid,
1997
1656
  "class": classNames
1998
- }, [(slots === null || slots === void 0 ? void 0 : slots.file) ? slots.file({
1657
+ }, [slots !== null && slots !== void 0 && slots.file ? slots.file({
1999
1658
  file: file
2000
1659
  }) : NormalItem(file)]);
2001
1660
  })) ? _slot2 : {
@@ -2005,8 +1664,8 @@ function _isSlot(s) {
2005
1664
  });
2006
1665
  };
2007
1666
  var FileIcon = function FileIcon(file) {
2008
- var _a;
2009
- var rawType = (_a = file === null || file === void 0 ? void 0 : file.raw) === null || _a === void 0 ? void 0 : _a.type;
1667
+ var _file$raw;
1668
+ var rawType = file === null || file === void 0 || (_file$raw = file.raw) === null || _file$raw === void 0 ? void 0 : _file$raw.type;
2010
1669
  var _ref2 = (rawType === null || rawType === void 0 ? void 0 : rawType.split('/')) || '',
2011
1670
  _ref3 = _slicedToArray(_ref2, 1),
2012
1671
  type = _ref3[0];
@@ -2069,8 +1728,8 @@ function _isSlot(s) {
2069
1728
  }, null)])])];
2070
1729
  };
2071
1730
  return function () {
2072
- var _a;
2073
- return (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [isSinglePhoto.value ? (slots === null || slots === void 0 ? void 0 : slots.innerTrigger) && (slots === null || slots === void 0 ? void 0 : slots.innerTrigger((_a = props.files) === null || _a === void 0 ? void 0 : _a[0])) : (0,external_vue_namespaceObject.createVNode)("ul", {
1731
+ var _props$files;
1732
+ return (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [isSinglePhoto.value ? (slots === null || slots === void 0 ? void 0 : slots.innerTrigger) && (slots === null || slots === void 0 ? void 0 : slots.innerTrigger((_props$files = props.files) === null || _props$files === void 0 ? void 0 : _props$files[0])) : (0,external_vue_namespaceObject.createVNode)("ul", {
2074
1733
  "class": classNames.value
2075
1734
  }, [isPhotowall.value ? Photowall() : Normal(), (slots === null || slots === void 0 ? void 0 : slots.innerTrigger) && (slots === null || slots === void 0 ? void 0 : slots.innerTrigger())])]);
2076
1735
  };
@@ -2156,9 +1815,8 @@ const external_button_namespaceObject = external_button_x({ ["default"]: () => _
2156
1815
  });
2157
1816
  var inputEl = (0,external_vue_namespaceObject.ref)(null);
2158
1817
  var classNames = (0,external_vue_namespaceObject.computed)(function () {
2159
- var _classes;
2160
- var _a, _b, _c;
2161
- return (0,external_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"), (_a = file.value) !== null && _a !== void 0 ? _a : false), _defineProperty(_classes, "".concat(classBlock, "--").concat((_b = file.value) === null || _b === void 0 ? void 0 : _b.status), (_c = file.value) !== null && _c !== void 0 ? _c : false), _defineProperty(_classes, "".concat(classBlock, "--dragover"), dragover.value), _defineProperty(_classes, "".concat(classBlock, "--disabled"), disabled.value), _classes));
1818
+ var _file$value, _file$value2, _file$value3, _classes;
1819
+ return (0,external_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));
2162
1820
  });
2163
1821
  var invoke = function invoke() {
2164
1822
  inputEl.value.value = null;
@@ -2301,13 +1959,13 @@ const external_button_namespaceObject = external_button_x({ ["default"]: () => _
2301
1959
  if (isPicture.value) return Picture();
2302
1960
  };
2303
1961
  return function () {
2304
- var _a;
1962
+ var _slots$default;
2305
1963
  return (0,external_vue_namespaceObject.createVNode)("div", {
2306
1964
  "class": classNames.value,
2307
1965
  "tabindex": "0",
2308
1966
  "onClick": handleClick,
2309
1967
  "onKeydown": handleKeydown
2310
- }, [slots.trigger ? [slots.trigger(), (_a = slots === null || slots === void 0 ? void 0 : slots["default"]) === null || _a === void 0 ? void 0 : _a.call(slots)] : Trigger(), (0,external_vue_namespaceObject.createVNode)("input", {
1968
+ }, [slots.trigger ? [slots.trigger(), slots === null || slots === void 0 || (_slots$default = slots["default"]) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots)] : Trigger(), (0,external_vue_namespaceObject.createVNode)("input", {
2311
1969
  "ref": inputEl,
2312
1970
  "class": "".concat(classBlock, "__input-file"),
2313
1971
  "tabindex": "-1",
@@ -2383,7 +2041,7 @@ function getRes(xhr) {
2383
2041
  }
2384
2042
  try {
2385
2043
  return JSON.parse(res);
2386
- } catch (_a) {
2044
+ } catch (_unused) {
2387
2045
  return res;
2388
2046
  }
2389
2047
  }
@@ -2473,8 +2131,8 @@ var ajaxUpload = function ajaxUpload(option) {
2473
2131
  };
2474
2132
  // 该方法用于在不同的浏览器使用不同的方式
2475
2133
  var blobSlice = File.prototype.slice || File.prototype.mozSlice || File.prototype.webkitSlice;
2476
- var ajaxSliceUpload = function ajaxSliceUpload(option) {
2477
- return __awaiter(void 0, void 0, void 0, /*#__PURE__*/regenerator_default().mark(function _callee() {
2134
+ var ajaxSliceUpload = /*#__PURE__*/function () {
2135
+ var _ref = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee(option) {
2478
2136
  var chunkSize, file, blockCount, hash, progressList;
2479
2137
  return regenerator_default().wrap(function _callee$(_context) {
2480
2138
  while (1) switch (_context.prev = _context.next) {
@@ -2526,7 +2184,10 @@ var ajaxSliceUpload = function ajaxSliceUpload(option) {
2526
2184
  }
2527
2185
  }, _callee);
2528
2186
  }));
2529
- };
2187
+ return function ajaxSliceUpload(_x) {
2188
+ return _ref.apply(this, arguments);
2189
+ };
2190
+ }();
2530
2191
  // 请求分片上传,保存在progressList中
2531
2192
  var sliceSend = function sliceSend(option, file, blockCount, hash, progressList, chunkSize) {
2532
2193
  var _loop = function _loop(i) {
@@ -2658,6 +2319,10 @@ var hashFile = function hashFile(file, chunkSize) {
2658
2319
  };
2659
2320
  ;// CONCATENATED MODULE: ../../packages/upload/src/use-file-handler.ts
2660
2321
 
2322
+
2323
+
2324
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
2325
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
2661
2326
  /*
2662
2327
  * Tencent is pleased to support the open source community by making
2663
2328
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
@@ -2685,24 +2350,23 @@ var hashFile = function hashFile(file, chunkSize) {
2685
2350
  */
2686
2351
 
2687
2352
 
2688
-
2689
2353
  function buildFileId(index) {
2690
2354
  return Date.now() + index;
2691
2355
  }
2692
2356
  /* harmony default export */ const use_file_handler = (function (props, hooks) {
2693
2357
  var maxImgSize = (0,external_vue_namespaceObject.computed)(function () {
2694
- var _a;
2358
+ var _props$size;
2695
2359
  if (typeof props.size === 'number') {
2696
2360
  return props.size;
2697
2361
  }
2698
- return (_a = props === null || props === void 0 ? void 0 : props.size) === null || _a === void 0 ? void 0 : _a.maxImgSize;
2362
+ return props === null || props === void 0 || (_props$size = props.size) === null || _props$size === void 0 ? void 0 : _props$size.maxImgSize;
2699
2363
  });
2700
2364
  var maxFileSize = (0,external_vue_namespaceObject.computed)(function () {
2701
- var _a;
2365
+ var _props$size2;
2702
2366
  if (typeof props.size === 'number') {
2703
2367
  return props.size;
2704
2368
  }
2705
- return (_a = props === null || props === void 0 ? void 0 : props.size) === null || _a === void 0 ? void 0 : _a.maxImgSize;
2369
+ return props === null || props === void 0 || (_props$size2 = props.size) === null || _props$size2 === void 0 ? void 0 : _props$size2.maxImgSize;
2706
2370
  });
2707
2371
  // 文件列表,包括选择的和已上传
2708
2372
  var fileList = (0,external_vue_namespaceObject.ref)([]);
@@ -2713,7 +2377,7 @@ function buildFileId(index) {
2713
2377
  }
2714
2378
  var activeIndex = 0;
2715
2379
  function handlePreprocess(file) {
2716
- var _a;
2380
+ var _props$validateName;
2717
2381
  activeIndex += 1;
2718
2382
  file.uid = buildFileId(activeIndex);
2719
2383
  var uploadFile = {
@@ -2735,7 +2399,7 @@ function buildFileId(index) {
2735
2399
  uploadFile.isPic = true;
2736
2400
  }
2737
2401
  // 文件名称校验
2738
- if (props.validateName && !((_a = props.validateName) === null || _a === void 0 ? void 0 : _a.test(uploadFile.name))) {
2402
+ if (props.validateName && !((_props$validateName = props.validateName) !== null && _props$validateName !== void 0 && _props$validateName.test(uploadFile.name))) {
2739
2403
  uploadFile.status = EUploadStatus.FAIL;
2740
2404
  uploadFile.statusText = 'invalid filename';
2741
2405
  error = new Error(uploadFile.statusText);
@@ -2753,19 +2417,21 @@ function buildFileId(index) {
2753
2417
  fileList.value.push(uploadFile);
2754
2418
  return error;
2755
2419
  }
2756
- function handleRemove(file) {
2757
- var _a;
2758
- return __awaiter(this, void 0, void 0, /*#__PURE__*/regenerator_default().mark(function _callee() {
2759
- var uploadFile, remove, before;
2420
+ function handleRemove(_x) {
2421
+ return _handleRemove.apply(this, arguments);
2422
+ }
2423
+ function _handleRemove() {
2424
+ _handleRemove = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee(file) {
2425
+ var uploadFile, remove, _props$beforeRemove, before;
2760
2426
  return regenerator_default().wrap(function _callee$(_context) {
2761
2427
  while (1) switch (_context.prev = _context.next) {
2762
2428
  case 0:
2763
2429
  uploadFile = file instanceof File ? findFile(file) : file;
2764
2430
  remove = function remove(file) {
2765
- var _a;
2431
+ var _file$url;
2766
2432
  hooks.onRemove(file, fileList.value);
2767
2433
  fileList.value.splice(fileList.value.indexOf(uploadFile), 1);
2768
- if ((_a = file.url) === null || _a === void 0 ? void 0 : _a.startsWith('blob:')) {
2434
+ if ((_file$url = file.url) !== null && _file$url !== void 0 && _file$url.startsWith('blob:')) {
2769
2435
  URL.revokeObjectURL(file.url);
2770
2436
  }
2771
2437
  };
@@ -2774,7 +2440,7 @@ function buildFileId(index) {
2774
2440
  break;
2775
2441
  }
2776
2442
  _context.next = 5;
2777
- return (_a = props.beforeRemove) === null || _a === void 0 ? void 0 : _a.call(props, uploadFile, fileList.value);
2443
+ return (_props$beforeRemove = props.beforeRemove) === null || _props$beforeRemove === void 0 ? void 0 : _props$beforeRemove.call(props, uploadFile, fileList.value);
2778
2444
  case 5:
2779
2445
  before = _context.sent;
2780
2446
  if (before !== false) {
@@ -2790,9 +2456,13 @@ function buildFileId(index) {
2790
2456
  }
2791
2457
  }, _callee);
2792
2458
  }));
2459
+ return _handleRemove.apply(this, arguments);
2793
2460
  }
2794
- function handleError(err, rawFile, res) {
2795
- return __awaiter(this, void 0, void 0, /*#__PURE__*/regenerator_default().mark(function _callee2() {
2461
+ function handleError(_x2, _x3, _x4) {
2462
+ return _handleError.apply(this, arguments);
2463
+ }
2464
+ function _handleError() {
2465
+ _handleError = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee2(err, rawFile, res) {
2796
2466
  var file;
2797
2467
  return regenerator_default().wrap(function _callee2$(_context2) {
2798
2468
  while (1) switch (_context2.prev = _context2.next) {
@@ -2813,9 +2483,13 @@ function buildFileId(index) {
2813
2483
  }
2814
2484
  }, _callee2);
2815
2485
  }));
2486
+ return _handleError.apply(this, arguments);
2487
+ }
2488
+ function handleSuccess(_x5, _x6) {
2489
+ return _handleSuccess.apply(this, arguments);
2816
2490
  }
2817
- function handleSuccess(res, rawFile) {
2818
- return __awaiter(this, void 0, void 0, /*#__PURE__*/regenerator_default().mark(function _callee3() {
2491
+ function _handleSuccess() {
2492
+ _handleSuccess = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee3(res, rawFile) {
2819
2493
  var file;
2820
2494
  return regenerator_default().wrap(function _callee3$(_context3) {
2821
2495
  while (1) switch (_context3.prev = _context3.next) {
@@ -2835,9 +2509,13 @@ function buildFileId(index) {
2835
2509
  }
2836
2510
  }, _callee3);
2837
2511
  }));
2512
+ return _handleSuccess.apply(this, arguments);
2838
2513
  }
2839
- function handleProgress(event, rawFile) {
2840
- return __awaiter(this, void 0, void 0, /*#__PURE__*/regenerator_default().mark(function _callee4() {
2514
+ function handleProgress(_x7, _x8) {
2515
+ return _handleProgress.apply(this, arguments);
2516
+ }
2517
+ function _handleProgress() {
2518
+ _handleProgress = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee4(event, rawFile) {
2841
2519
  var file;
2842
2520
  return regenerator_default().wrap(function _callee4$(_context4) {
2843
2521
  while (1) switch (_context4.prev = _context4.next) {
@@ -2858,16 +2536,17 @@ function buildFileId(index) {
2858
2536
  }
2859
2537
  }, _callee4);
2860
2538
  }));
2539
+ return _handleProgress.apply(this, arguments);
2861
2540
  }
2862
2541
  (0,external_vue_namespaceObject.watch)(function () {
2863
2542
  return props.files;
2864
2543
  }, function (files) {
2865
2544
  fileList.value = files.map(function (file) {
2866
- var _a, _b;
2545
+ var _file$uid, _file$status;
2867
2546
  activeIndex += 1;
2868
- return Object.assign(Object.assign({}, file), {
2869
- uid: (_a = file.uid) !== null && _a !== void 0 ? _a : buildFileId(activeIndex),
2870
- status: (_b = file.status) !== null && _b !== void 0 ? _b : EUploadStatus.SUCCESS
2547
+ return _objectSpread(_objectSpread({}, file), {}, {
2548
+ uid: (_file$uid = file.uid) !== null && _file$uid !== void 0 ? _file$uid : buildFileId(activeIndex),
2549
+ status: (_file$status = file.status) !== null && _file$status !== void 0 ? _file$status : EUploadStatus.SUCCESS
2871
2550
  });
2872
2551
  });
2873
2552
  }, {
@@ -2887,6 +2566,7 @@ function buildFileId(index) {
2887
2566
 
2888
2567
 
2889
2568
 
2569
+
2890
2570
  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; } } }; }
2891
2571
  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); }
2892
2572
  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; }
@@ -2923,7 +2603,6 @@ function upload_arrayLikeToArray(arr, len) { if (len == null || len > arr.length
2923
2603
 
2924
2604
 
2925
2605
 
2926
-
2927
2606
  /* harmony default export */ const upload = ((0,external_vue_namespaceObject.defineComponent)({
2928
2607
  name: 'Upload',
2929
2608
  props: props,
@@ -2940,9 +2619,8 @@ function upload_arrayLikeToArray(arr, len) { if (len == null || len > arr.length
2940
2619
  return isPhotowall.value && !props.multiple;
2941
2620
  });
2942
2621
  var classNames = (0,external_vue_namespaceObject.computed)(function () {
2943
- var _classes;
2944
- var _a;
2945
- return (0,external_shared_namespaceObject.classes)((_classes = {}, _defineProperty(_classes, CLASS_PREFIX, true), _defineProperty(_classes, "".concat(CLASS_PREFIX, "--").concat(props.theme), true), _defineProperty(_classes, "".concat(CLASS_PREFIX, "--disabled"), props.disabled), _defineProperty(_classes, "".concat(CLASS_PREFIX, "--single-picture"), isSinglePhoto.value), _defineProperty(_classes, props.extCls, (_a = props.extCls) !== null && _a !== void 0 ? _a : false), _classes));
2622
+ var _props$extCls, _classes;
2623
+ return (0,external_shared_namespaceObject.classes)((_classes = {}, _defineProperty(_classes, CLASS_PREFIX, true), _defineProperty(_classes, "".concat(CLASS_PREFIX, "--").concat(props.theme), true), _defineProperty(_classes, "".concat(CLASS_PREFIX, "--disabled"), props.disabled), _defineProperty(_classes, "".concat(CLASS_PREFIX, "--single-picture"), isSinglePhoto.value), _defineProperty(_classes, props.extCls, (_props$extCls = props.extCls) !== null && _props$extCls !== void 0 ? _props$extCls : false), _classes));
2946
2624
  });
2947
2625
  var triggerProps = (0,external_vue_namespaceObject.computed)(function () {
2948
2626
  return {
@@ -3002,10 +2680,12 @@ function upload_arrayLikeToArray(arr, len) { if (len == null || len > arr.length
3002
2680
  function handleRetry(file) {
3003
2681
  send(file.raw);
3004
2682
  }
3005
- function upload(file, sendFiles) {
3006
- var _a;
3007
- return __awaiter(this, void 0, void 0, /*#__PURE__*/regenerator_default().mark(function _callee() {
3008
- var beforeResult;
2683
+ function upload(_x, _x2) {
2684
+ return _upload.apply(this, arguments);
2685
+ }
2686
+ function _upload() {
2687
+ _upload = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee(file, sendFiles) {
2688
+ var beforeResult, _props$beforeUpload;
3009
2689
  return regenerator_default().wrap(function _callee$(_context) {
3010
2690
  while (1) switch (_context.prev = _context.next) {
3011
2691
  case 0:
@@ -3017,7 +2697,7 @@ function upload_arrayLikeToArray(arr, len) { if (len == null || len > arr.length
3017
2697
  case 2:
3018
2698
  _context.prev = 2;
3019
2699
  _context.next = 5;
3020
- return (_a = props.beforeUpload) === null || _a === void 0 ? void 0 : _a.call(props, file);
2700
+ return (_props$beforeUpload = props.beforeUpload) === null || _props$beforeUpload === void 0 ? void 0 : _props$beforeUpload.call(props, file);
3021
2701
  case 5:
3022
2702
  beforeResult = _context.sent;
3023
2703
  _context.next = 11;
@@ -3041,6 +2721,7 @@ function upload_arrayLikeToArray(arr, len) { if (len == null || len > arr.length
3041
2721
  }
3042
2722
  }, _callee, null, [[2, 8]]);
3043
2723
  }));
2724
+ return _upload.apply(this, arguments);
3044
2725
  }
3045
2726
  function send(file, sendFiles) {
3046
2727
  var headers = props.headers,
@@ -3074,9 +2755,9 @@ function upload_arrayLikeToArray(arr, len) { if (len == null || len > arr.length
3074
2755
  emit('progress', event, file, fileList.value);
3075
2756
  },
3076
2757
  onSuccess: function onSuccess(res) {
3077
- var _a;
2758
+ var _props$handleResCode;
3078
2759
  var result = res;
3079
- if ((_a = props === null || props === void 0 ? void 0 : props.handleResCode) === null || _a === void 0 ? void 0 : _a.call(props, result)) {
2760
+ if (props !== null && props !== void 0 && (_props$handleResCode = props.handleResCode) !== null && _props$handleResCode !== void 0 && _props$handleResCode.call(props, result)) {
3080
2761
  handleSuccess(res, file);
3081
2762
  emit('success', res, file, fileList.value);
3082
2763
  } else {
@@ -3123,7 +2804,7 @@ function upload_arrayLikeToArray(arr, len) { if (len == null || len > arr.length
3123
2804
  (0,external_vue_namespaceObject.onBeforeUnmount)(function () {
3124
2805
  fileList.value.forEach(function (_ref2) {
3125
2806
  var url = _ref2.url;
3126
- if (url === null || url === void 0 ? void 0 : url.startsWith('blob:')) URL.revokeObjectURL(url);
2807
+ if (url !== null && url !== void 0 && url.startsWith('blob:')) URL.revokeObjectURL(url);
3127
2808
  });
3128
2809
  });
3129
2810
  expose({