bm-admin-ui 1.0.30-alpha → 1.0.32-alpha

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/index.js CHANGED
@@ -46134,7 +46134,7 @@ var process = {
46134
46134
  fileList: {},
46135
46135
  onepViewImageHover: {},
46136
46136
  previewVisible: false,
46137
- onepViewImage: "",
46137
+ onepViewImage: {},
46138
46138
  extraConfigs: {
46139
46139
  maxSize: 5,
46140
46140
  maxCount: 5,
@@ -46146,7 +46146,6 @@ var process = {
46146
46146
  picClass: "",
46147
46147
  alignCenter: false,
46148
46148
  canNotViewAccept: ".rar,.zip",
46149
- fileDetail: true,
46150
46149
  myBtn: false
46151
46150
  },
46152
46151
  uploadConfigs: {
@@ -46185,7 +46184,22 @@ var process = {
46185
46184
  }, 1e3);
46186
46185
  methods.customUploadRequest(file);
46187
46186
  }
46188
- }
46187
+ },
46188
+ pictureFileTypes: [
46189
+ "img",
46190
+ "image",
46191
+ "png",
46192
+ "PNG",
46193
+ "image/png",
46194
+ "jpg",
46195
+ "JPG",
46196
+ "jpeg",
46197
+ "JPEG",
46198
+ "image/jpeg",
46199
+ "gif",
46200
+ "GIF",
46201
+ "image/gif"
46202
+ ]
46189
46203
  });
46190
46204
  const methods = {
46191
46205
  updateUploadProgress(file, progress) {
@@ -46224,18 +46238,18 @@ var process = {
46224
46238
  if (methods.fileIsDelete(file)) {
46225
46239
  return;
46226
46240
  }
46227
- emit("successFile", data);
46228
46241
  state.fileList[file.uid].status = "success";
46229
46242
  let uri = data?.url;
46230
- let item = state.extraConfigs.fileDetail ? {
46243
+ let item = {
46231
46244
  name: file.name,
46232
46245
  size: file.size,
46233
46246
  type: file.type,
46234
46247
  uid: file.uid,
46235
46248
  url: uri
46236
- } : uri;
46249
+ };
46237
46250
  state.uploadedList.push(item);
46238
46251
  state.fileList[file.uid].url = uri;
46252
+ emit("successFile", data);
46239
46253
  emit("success", state.uploadedList);
46240
46254
  emit("update", state.uploadedList);
46241
46255
  },
@@ -46249,10 +46263,13 @@ var process = {
46249
46263
  emit("error", error);
46250
46264
  },
46251
46265
  async deleteFile(uid) {
46252
- const index = state.uploadedList.findIndex((ele) => state.extraConfigs.fileDetail ? ele === state.fileList[uid].url : ele.url === state.fileList[uid].url);
46253
- emit("deleteFile", state.fileList[uid]);
46254
- state.uploadedList.splice(index, 1);
46266
+ let targetFile = state.fileList[uid];
46255
46267
  delete state.fileList[uid];
46268
+ const index = state.uploadedList.findIndex((ele) => ele.url === targetFile.url);
46269
+ if (index !== -1) {
46270
+ state.uploadedList.splice(index, 1);
46271
+ }
46272
+ emit("deleteFile", targetFile);
46256
46273
  emit("delete", state.uploadedList);
46257
46274
  emit("update", state.uploadedList);
46258
46275
  },
@@ -46263,24 +46280,9 @@ var process = {
46263
46280
  state.onepViewImageHover[uid] = false;
46264
46281
  },
46265
46282
  viewOnePicture(item) {
46266
- if ([
46267
- "img",
46268
- "image",
46269
- "png",
46270
- "PNG",
46271
- "image/png",
46272
- "jpg",
46273
- "JPG",
46274
- "jpeg",
46275
- "JPEG",
46276
- "image/jpeg",
46277
- "gif",
46278
- "GIF",
46279
- "image/gif"
46280
- ].includes(item.type.toLowerCase())) {
46283
+ if (state.pictureFileTypes.includes(item.type.toLowerCase())) {
46281
46284
  state.previewVisible = true;
46282
46285
  state.onepViewImage = item;
46283
- return;
46284
46286
  }
46285
46287
  emit("previewFile", item);
46286
46288
  },
@@ -46424,57 +46426,53 @@ var process = {
46424
46426
  const _hoisted_6$1 = ["src"];
46425
46427
  const _hoisted_7$1 = ["src"];
46426
46428
  const _hoisted_8$1 = ["src"];
46427
- const _hoisted_9 = ["src"];
46428
- const _hoisted_10 = {
46429
- key: 6,
46430
- class: "bm-upload__picture-result__cover"
46431
- };
46432
- const _hoisted_11 = ["onClick"];
46433
- const _hoisted_12 = ["onClick"];
46434
- const _hoisted_13 = ["onMouseenter", "onMouseleave"];
46435
- const _hoisted_14 = /* @__PURE__ */ require$$1$1.createElementVNode("div", { class: "bm-upload__picture-error__image" }, null, -1);
46436
- const _hoisted_15 = /* @__PURE__ */ require$$1$1.createElementVNode("div", null, "\u4E0A\u4F20\u9519\u8BEF", -1);
46437
- const _hoisted_16 = {
46429
+ const _hoisted_9 = ["onClick"];
46430
+ const _hoisted_10 = ["onClick"];
46431
+ const _hoisted_11 = ["onMouseenter", "onMouseleave"];
46432
+ const _hoisted_12 = /* @__PURE__ */ require$$1$1.createElementVNode("div", { class: "bm-upload__picture-error__image" }, null, -1);
46433
+ const _hoisted_13 = /* @__PURE__ */ require$$1$1.createElementVNode("div", null, "\u4E0A\u4F20\u9519\u8BEF", -1);
46434
+ const _hoisted_14 = {
46438
46435
  key: 0,
46439
46436
  class: "bm-upload__picture-result__cover"
46440
46437
  };
46441
- const _hoisted_17 = ["onClick"];
46442
- const _hoisted_18 = ["onClick"];
46443
- const _hoisted_19 = {
46438
+ const _hoisted_15 = ["onClick"];
46439
+ const _hoisted_16 = ["onClick"];
46440
+ const _hoisted_17 = {
46444
46441
  key: 0,
46445
46442
  style: { "font-size": "24px", "color": "#9393a3" }
46446
46443
  };
46447
- const _hoisted_20 = { class: "ant-upload-text bm-upload__text" };
46448
- const _hoisted_21 = {
46444
+ const _hoisted_18 = { class: "ant-upload-text bm-upload__text" };
46445
+ const _hoisted_19 = {
46449
46446
  key: 0,
46450
46447
  class: "bm-upload__tips"
46451
46448
  };
46452
- const _hoisted_22 = { key: 1 };
46453
- const _hoisted_23 = {
46449
+ const _hoisted_20 = { key: 1 };
46450
+ const _hoisted_21 = {
46454
46451
  key: 0,
46455
46452
  class: "bm-upload__tips"
46456
46453
  };
46457
- const _hoisted_24 = {
46454
+ const _hoisted_22 = {
46458
46455
  key: 2,
46459
46456
  class: "bm-upload__file-list"
46460
46457
  };
46461
- const _hoisted_25 = { class: "bm-upload__file__detail" };
46462
- const _hoisted_26 = /* @__PURE__ */ require$$1$1.createElementVNode("div", { class: "bm-upload__file__icon" }, [
46458
+ const _hoisted_23 = { class: "bm-upload__file__detail" };
46459
+ const _hoisted_24 = /* @__PURE__ */ require$$1$1.createElementVNode("div", { class: "bm-upload__file__icon" }, [
46463
46460
  /* @__PURE__ */ require$$1$1.createElementVNode("div", { class: "bm-upload__attachment" })
46464
46461
  ], -1);
46465
- const _hoisted_27 = { class: "bm-upload__file__name" };
46466
- const _hoisted_28 = { class: "bm-upload__file__progress-tools" };
46467
- const _hoisted_29 = ["onClick"];
46468
- const _hoisted_30 = ["onClick"];
46469
- const _hoisted_31 = {
46462
+ const _hoisted_25 = { class: "bm-upload__file__name" };
46463
+ const _hoisted_26 = { class: "bm-upload__file__progress-tools" };
46464
+ const _hoisted_27 = ["onClick"];
46465
+ const _hoisted_28 = ["onClick"];
46466
+ const _hoisted_29 = {
46470
46467
  key: 0,
46471
46468
  class: "bm-upload__progress"
46472
46469
  };
46473
- const _hoisted_32 = { style: { "padding-top": "20px" } };
46474
- const _hoisted_33 = ["src"];
46475
- const _hoisted_34 = ["title", "src"];
46470
+ const _hoisted_30 = { style: { "padding-top": "20px" } };
46471
+ const _hoisted_31 = ["src"];
46472
+ const _hoisted_32 = ["title", "src"];
46476
46473
  function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
46477
46474
  const _component_a_progress = require$$1$1.resolveComponent("a-progress");
46475
+ const _component_a_image = require$$1$1.resolveComponent("a-image");
46478
46476
  const _component_PlusOutlined = require$$1$1.resolveComponent("PlusOutlined");
46479
46477
  const _component_UploadOutlined = require$$1$1.resolveComponent("UploadOutlined");
46480
46478
  const _component_a_button = require$$1$1.resolveComponent("a-button");
@@ -46487,145 +46485,141 @@ var process = {
46487
46485
  "bm-upload--picture-card--has-tips": !($setup.uploadDisabled && _ctx.extraConfigs?.hideDisabledBtn) && !_ctx.extraConfigs.myBtn && _ctx.uploadConfigs.listType === "picture-card" && _ctx.extraConfigs.tips && _ctx.extraConfigs.showTips
46488
46486
  }])
46489
46487
  }, [
46490
- _ctx.uploadConfigs.listType === "picture-card" ? (require$$1$1.openBlock(true), require$$1$1.createElementBlock(require$$1$1.Fragment, { key: 0 }, require$$1$1.renderList(_ctx.fileList, (item) => {
46491
- return require$$1$1.openBlock(), require$$1$1.createElementBlock("div", {
46492
- key: item,
46493
- class: require$$1$1.normalizeClass(["bm-upload__picture", { "bm-upload__picture--error": item.status === "error" }])
46494
- }, [
46495
- require$$1$1.createCommentVNode(" \u4E0A\u4F20\u4E2D "),
46496
- item.progress < 100 && item.status !== "error" ? (require$$1$1.openBlock(), require$$1$1.createElementBlock("div", _hoisted_1$2, [
46497
- _hoisted_2$2,
46498
- require$$1$1.createVNode(_component_a_progress, {
46499
- type: "line",
46500
- "stroke-width": 2,
46501
- "show-info": false,
46502
- "stroke-color": _ctx.uploadBarColor,
46503
- percent: item.uid?.progress
46504
- }, null, 8, ["stroke-color", "percent"])
46505
- ])) : require$$1$1.createCommentVNode("v-if", true),
46506
- require$$1$1.createCommentVNode(" \u56FE\u7247\u5C55\u793A "),
46507
- item.progress >= 100 && item.status !== "error" ? (require$$1$1.openBlock(), require$$1$1.createElementBlock(require$$1$1.Fragment, { key: 1 }, [
46508
- !_ctx.uploadConfigs.showSlotList ? (require$$1$1.openBlock(), require$$1$1.createElementBlock("div", {
46509
- key: 0,
46510
- class: "bm-upload__picture-result",
46511
- onMouseenter: ($event) => _ctx.pictureHoverEnter(item.uid),
46512
- onMouseleave: ($event) => _ctx.pictureHoverLeave(item.uid),
46513
- onClick: _cache[0] || (_cache[0] = (e) => e.stopPropagation())
46514
- }, [
46515
- ["pdf", "PDF", "application/pdf"].includes(item.type) ? (require$$1$1.openBlock(), require$$1$1.createElementBlock("img", {
46488
+ _ctx.uploadConfigs.listType === "picture-card" ? (require$$1$1.openBlock(), require$$1$1.createElementBlock(require$$1$1.Fragment, { key: 0 }, [
46489
+ require$$1$1.createCommentVNode(" \u4E0D\u8981\u4F7F\u7528 a-image-preview-group \u5305\u88F9\uFF0C\u4E0D\u7136\u4F1A\u51FA\u73B0\u91CD\u590D\u56FE\u7247\u548C\u7A7A\u767D\u56FE\u7247 "),
46490
+ require$$1$1.createCommentVNode(" <a-image-preview-group> "),
46491
+ (require$$1$1.openBlock(true), require$$1$1.createElementBlock(require$$1$1.Fragment, null, require$$1$1.renderList(_ctx.fileList, (item) => {
46492
+ return require$$1$1.openBlock(), require$$1$1.createElementBlock("div", {
46493
+ key: item,
46494
+ class: require$$1$1.normalizeClass(["bm-upload__picture", { "bm-upload__picture--error": item.status === "error" }])
46495
+ }, [
46496
+ require$$1$1.createCommentVNode(" \u4E0A\u4F20\u4E2D "),
46497
+ item.progress < 100 && item.status !== "error" ? (require$$1$1.openBlock(), require$$1$1.createElementBlock("div", _hoisted_1$2, [
46498
+ _hoisted_2$2,
46499
+ require$$1$1.createVNode(_component_a_progress, {
46500
+ type: "line",
46501
+ "stroke-width": 2,
46502
+ "show-info": false,
46503
+ "stroke-color": _ctx.uploadBarColor,
46504
+ percent: item.uid?.progress
46505
+ }, null, 8, ["stroke-color", "percent"])
46506
+ ])) : require$$1$1.createCommentVNode("v-if", true),
46507
+ require$$1$1.createCommentVNode(" \u56FE\u7247\u5C55\u793A "),
46508
+ item.progress >= 100 && item.status !== "error" ? (require$$1$1.openBlock(), require$$1$1.createElementBlock(require$$1$1.Fragment, { key: 1 }, [
46509
+ !_ctx.uploadConfigs.showSlotList ? (require$$1$1.openBlock(), require$$1$1.createElementBlock("div", {
46516
46510
  key: 0,
46517
- class: "bm-upload__picture-result__image",
46518
- src: $setup.icons.pdf,
46519
- alt: "avatar"
46520
- }, null, 8, _hoisted_4$1)) : [
46521
- "xlsx",
46522
- "XLSX",
46523
- "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
46524
- ].includes(item.type) ? (require$$1$1.openBlock(), require$$1$1.createElementBlock("img", {
46525
- key: 1,
46526
- class: "bm-upload__picture-result__image",
46527
- src: $setup.icons.excel,
46528
- alt: "avatar"
46529
- }, null, 8, _hoisted_5$1)) : [
46530
- "ppt",
46531
- "PPT",
46532
- "application/vnd.ms-powerpoint",
46533
- "pptx",
46534
- "PPTX",
46535
- "application/vnd.openxmlformats-officedocument.presentationml.presentation"
46536
- ].includes(item.type) ? (require$$1$1.openBlock(), require$$1$1.createElementBlock("img", {
46537
- key: 2,
46538
- class: "bm-upload__picture-result__image",
46539
- src: $setup.icons.ppt,
46540
- alt: "avatar"
46541
- }, null, 8, _hoisted_6$1)) : [
46542
- "doc",
46543
- "DOC",
46544
- "application/msword",
46545
- "docx",
46546
- "DOCX",
46547
- "application/vnd.openxmlformats-officedocument.wordprocessingml.document"
46548
- ].includes(item.type) ? (require$$1$1.openBlock(), require$$1$1.createElementBlock("img", {
46549
- key: 3,
46550
- class: "bm-upload__picture-result__image",
46551
- src: $setup.icons.doc,
46552
- alt: "avatar"
46553
- }, null, 8, _hoisted_7$1)) : [
46554
- "img",
46555
- "image",
46556
- "png",
46557
- "PNG",
46558
- "image/png",
46559
- "jpg",
46560
- "JPG",
46561
- "jpeg",
46562
- "JPEG",
46563
- "image/jpeg",
46564
- "gif",
46565
- "GIF",
46566
- "image/gif"
46567
- ].includes(item.type) ? (require$$1$1.openBlock(), require$$1$1.createElementBlock("img", {
46568
- key: 4,
46569
- class: "bm-upload__picture-result__image",
46570
- src: item.url,
46571
- alt: "avatar"
46572
- }, null, 8, _hoisted_8$1)) : (require$$1$1.openBlock(), require$$1$1.createElementBlock("img", {
46573
- key: 5,
46574
- class: "bm-upload__picture-result__image",
46575
- src: $setup.icons.others,
46576
- alt: "avatar"
46577
- }, null, 8, _hoisted_9)),
46578
- _ctx.onepViewImageHover[item.uid] ? (require$$1$1.openBlock(), require$$1$1.createElementBlock("div", _hoisted_10, [
46579
- !_ctx.extraConfigs.canNotViewAccept?.includes(item?.type) ? (require$$1$1.openBlock(), require$$1$1.createElementBlock("div", {
46511
+ class: "bm-upload__picture-result",
46512
+ onMouseenter: ($event) => _ctx.pictureHoverEnter(item.uid),
46513
+ onMouseleave: ($event) => _ctx.pictureHoverLeave(item.uid),
46514
+ onClick: _cache[0] || (_cache[0] = (e) => e.stopPropagation())
46515
+ }, [
46516
+ ["pdf", "PDF", "application/pdf"].includes(item.type) ? (require$$1$1.openBlock(), require$$1$1.createElementBlock("img", {
46580
46517
  key: 0,
46581
- class: "bm-upload__picture-result__icon bm-upload__picture-result__icon--view",
46582
- onClick: ($event) => _ctx.viewOnePicture(item)
46583
- }, null, 8, _hoisted_11)) : require$$1$1.createCommentVNode("v-if", true),
46584
- !(_ctx.extraConfigs.hidenDelBtn ?? false) ? (require$$1$1.openBlock(), require$$1$1.createElementBlock("div", {
46518
+ class: "bm-upload__picture-result__image",
46519
+ src: $setup.icons.pdf,
46520
+ alt: "\u56FE\u7247"
46521
+ }, null, 8, _hoisted_4$1)) : [
46522
+ "xlsx",
46523
+ "XLSX",
46524
+ "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
46525
+ ].includes(item.type) ? (require$$1$1.openBlock(), require$$1$1.createElementBlock("img", {
46585
46526
  key: 1,
46527
+ class: "bm-upload__picture-result__image",
46528
+ src: $setup.icons.excel,
46529
+ alt: "\u56FE\u7247"
46530
+ }, null, 8, _hoisted_5$1)) : [
46531
+ "ppt",
46532
+ "PPT",
46533
+ "application/vnd.ms-powerpoint",
46534
+ "pptx",
46535
+ "PPTX",
46536
+ "application/vnd.openxmlformats-officedocument.presentationml.presentation"
46537
+ ].includes(item.type) ? (require$$1$1.openBlock(), require$$1$1.createElementBlock("img", {
46538
+ key: 2,
46539
+ class: "bm-upload__picture-result__image",
46540
+ src: $setup.icons.ppt,
46541
+ alt: "\u56FE\u7247"
46542
+ }, null, 8, _hoisted_6$1)) : [
46543
+ "doc",
46544
+ "DOC",
46545
+ "application/msword",
46546
+ "docx",
46547
+ "DOCX",
46548
+ "application/vnd.openxmlformats-officedocument.wordprocessingml.document"
46549
+ ].includes(item.type) ? (require$$1$1.openBlock(), require$$1$1.createElementBlock("img", {
46550
+ key: 3,
46551
+ class: "bm-upload__picture-result__image",
46552
+ src: $setup.icons.doc,
46553
+ alt: "\u56FE\u7247"
46554
+ }, null, 8, _hoisted_7$1)) : _ctx.pictureFileTypes.includes(item.type) ? (require$$1$1.openBlock(), require$$1$1.createBlock(_component_a_image, {
46555
+ key: 4,
46556
+ class: "bm-upload__picture-result__image",
46557
+ src: item.url,
46558
+ alt: "\u56FE\u7247"
46559
+ }, null, 8, ["src"])) : (require$$1$1.openBlock(), require$$1$1.createElementBlock("img", {
46560
+ key: 5,
46561
+ class: "bm-upload__picture-result__image",
46562
+ src: $setup.icons.others,
46563
+ alt: "\u56FE\u7247"
46564
+ }, null, 8, _hoisted_8$1)),
46565
+ _ctx.onepViewImageHover[item.uid] ? (require$$1$1.openBlock(), require$$1$1.createElementBlock("div", {
46566
+ key: 6,
46567
+ class: require$$1$1.normalizeClass(["bm-upload__picture-result__cover", {
46568
+ isPicture: _ctx.pictureFileTypes.includes(item.type)
46569
+ }])
46570
+ }, [
46571
+ !_ctx.extraConfigs.canNotViewAccept?.includes(item?.type) ? (require$$1$1.openBlock(), require$$1$1.createElementBlock("div", {
46572
+ key: 0,
46573
+ class: "bm-upload__picture-result__icon bm-upload__picture-result__icon--view",
46574
+ onClick: ($event) => _ctx.viewOnePicture(item)
46575
+ }, null, 8, _hoisted_9)) : require$$1$1.createCommentVNode("v-if", true),
46576
+ !(_ctx.extraConfigs.hidenDelBtn ?? false) ? (require$$1$1.openBlock(), require$$1$1.createElementBlock("div", {
46577
+ key: 1,
46578
+ class: "bm-upload__picture-result__icon bm-upload__picture-result__icon--delete",
46579
+ onClick: ($event) => _ctx.deleteFile(item.uid)
46580
+ }, null, 8, _hoisted_10)) : require$$1$1.createCommentVNode("v-if", true)
46581
+ ], 2)) : require$$1$1.createCommentVNode("v-if", true)
46582
+ ], 40, _hoisted_3$1)) : require$$1$1.renderSlot(_ctx.$slots, "file", {
46583
+ key: 1,
46584
+ file: item
46585
+ })
46586
+ ], 2112)) : require$$1$1.createCommentVNode("v-if", true),
46587
+ require$$1$1.createCommentVNode(" \u56FE\u7247\u9519\u8BEF\u5C55\u793A "),
46588
+ item.status === "error" ? (require$$1$1.openBlock(), require$$1$1.createElementBlock("div", {
46589
+ key: 2,
46590
+ class: "bm-upload__picture-error",
46591
+ onMouseenter: ($event) => _ctx.pictureHoverEnter(item.uid),
46592
+ onMouseleave: ($event) => _ctx.pictureHoverLeave(item.uid),
46593
+ onClick: _cache[1] || (_cache[1] = (e) => e.stopPropagation())
46594
+ }, [
46595
+ _hoisted_12,
46596
+ _hoisted_13,
46597
+ _ctx.onepViewImageHover[item.uid] ? (require$$1$1.openBlock(), require$$1$1.createElementBlock("div", _hoisted_14, [
46598
+ require$$1$1.createElementVNode("div", {
46599
+ class: "bm-upload__picture-result__icon bm-upload__picture-result__icon--retry",
46600
+ onClick: (e) => _ctx.reUpload(e, item.uid)
46601
+ }, null, 8, _hoisted_15),
46602
+ require$$1$1.createElementVNode("div", {
46586
46603
  class: "bm-upload__picture-result__icon bm-upload__picture-result__icon--delete",
46587
46604
  onClick: ($event) => _ctx.deleteFile(item.uid)
46588
- }, null, 8, _hoisted_12)) : require$$1$1.createCommentVNode("v-if", true)
46605
+ }, null, 8, _hoisted_16)
46589
46606
  ])) : require$$1$1.createCommentVNode("v-if", true)
46590
- ], 40, _hoisted_3$1)) : require$$1$1.renderSlot(_ctx.$slots, "file", {
46591
- key: 1,
46592
- file: item
46593
- })
46594
- ], 2112)) : require$$1$1.createCommentVNode("v-if", true),
46595
- require$$1$1.createCommentVNode(" \u56FE\u7247\u9519\u8BEF\u5C55\u793A "),
46596
- item.status === "error" ? (require$$1$1.openBlock(), require$$1$1.createElementBlock("div", {
46597
- key: 2,
46598
- class: "bm-upload__picture-error",
46599
- onMouseenter: ($event) => _ctx.pictureHoverEnter(item.uid),
46600
- onMouseleave: ($event) => _ctx.pictureHoverLeave(item.uid),
46601
- onClick: _cache[1] || (_cache[1] = (e) => e.stopPropagation())
46602
- }, [
46603
- _hoisted_14,
46604
- _hoisted_15,
46605
- _ctx.onepViewImageHover[item.uid] ? (require$$1$1.openBlock(), require$$1$1.createElementBlock("div", _hoisted_16, [
46606
- require$$1$1.createElementVNode("div", {
46607
- class: "bm-upload__picture-result__icon bm-upload__picture-result__icon--retry",
46608
- onClick: (e) => _ctx.reUpload(e, item.uid)
46609
- }, null, 8, _hoisted_17),
46610
- require$$1$1.createElementVNode("div", {
46611
- class: "bm-upload__picture-result__icon bm-upload__picture-result__icon--delete",
46612
- onClick: ($event) => _ctx.deleteFile(item.uid)
46613
- }, null, 8, _hoisted_18)
46614
- ])) : require$$1$1.createCommentVNode("v-if", true)
46615
- ], 40, _hoisted_13)) : require$$1$1.createCommentVNode("v-if", true)
46616
- ], 2);
46617
- }), 128)) : require$$1$1.createCommentVNode("v-if", true),
46607
+ ], 40, _hoisted_11)) : require$$1$1.createCommentVNode("v-if", true)
46608
+ ], 2);
46609
+ }), 128)),
46610
+ require$$1$1.createCommentVNode(" </a-image-preview-group> ")
46611
+ ], 2112)) : require$$1$1.createCommentVNode("v-if", true),
46618
46612
  !($setup.uploadDisabled && _ctx.extraConfigs?.hideDisabledBtn) ? (require$$1$1.openBlock(), require$$1$1.createBlock(_component_a_upload, require$$1$1.mergeProps({ key: 1 }, _ctx.uploadConfigs, {
46619
46613
  class: { "bm--upload__custom-button": _ctx.extraConfigs.myBtn },
46620
46614
  onReject: _ctx.handleReject
46621
46615
  }), {
46622
46616
  default: require$$1$1.withCtx(() => [
46623
46617
  _ctx.extraConfigs.myBtn ? require$$1$1.renderSlot(_ctx.$slots, "myBtn", { key: 0 }) : (require$$1$1.openBlock(), require$$1$1.createElementBlock(require$$1$1.Fragment, { key: 1 }, [
46624
- _ctx.uploadConfigs.listType === "picture-card" ? (require$$1$1.openBlock(), require$$1$1.createElementBlock("div", _hoisted_19, [
46618
+ _ctx.uploadConfigs.listType === "picture-card" ? (require$$1$1.openBlock(), require$$1$1.createElementBlock("div", _hoisted_17, [
46625
46619
  require$$1$1.createVNode(_component_PlusOutlined),
46626
- require$$1$1.createElementVNode("div", _hoisted_20, require$$1$1.toDisplayString(_ctx.uploadConfigs.text || "\u4E0A\u4F20\u56FE\u7247"), 1),
46627
- _ctx.extraConfigs.tips && _ctx.extraConfigs.showTips ? (require$$1$1.openBlock(), require$$1$1.createElementBlock("div", _hoisted_21, require$$1$1.toDisplayString(_ctx.extraConfigs.tips), 1)) : require$$1$1.createCommentVNode("v-if", true)
46628
- ])) : _ctx.uploadConfigs.listType === "text" ? (require$$1$1.openBlock(), require$$1$1.createElementBlock("div", _hoisted_22, [
46620
+ require$$1$1.createElementVNode("div", _hoisted_18, require$$1$1.toDisplayString(_ctx.uploadConfigs.text || "\u4E0A\u4F20\u56FE\u7247"), 1),
46621
+ _ctx.extraConfigs.tips && _ctx.extraConfigs.showTips ? (require$$1$1.openBlock(), require$$1$1.createElementBlock("div", _hoisted_19, require$$1$1.toDisplayString(_ctx.extraConfigs.tips), 1)) : require$$1$1.createCommentVNode("v-if", true)
46622
+ ])) : _ctx.uploadConfigs.listType === "text" ? (require$$1$1.openBlock(), require$$1$1.createElementBlock("div", _hoisted_20, [
46629
46623
  require$$1$1.createVNode(_component_a_button, {
46630
46624
  class: require$$1$1.normalizeClass(_ctx.extraConfigs.btnClass),
46631
46625
  disabled: $setup.uploadDisabled && !_ctx.extraConfigs?.hideDisabledBtn
@@ -46636,39 +46630,39 @@ var process = {
46636
46630
  ]),
46637
46631
  _: 1
46638
46632
  }, 8, ["class", "disabled"]),
46639
- _ctx.extraConfigs.tips && _ctx.extraConfigs.showTips ? (require$$1$1.openBlock(), require$$1$1.createElementBlock("div", _hoisted_23, require$$1$1.toDisplayString(_ctx.extraConfigs.tips), 1)) : require$$1$1.createCommentVNode("v-if", true)
46633
+ _ctx.extraConfigs.tips && _ctx.extraConfigs.showTips ? (require$$1$1.openBlock(), require$$1$1.createElementBlock("div", _hoisted_21, require$$1$1.toDisplayString(_ctx.extraConfigs.tips), 1)) : require$$1$1.createCommentVNode("v-if", true)
46640
46634
  ])) : require$$1$1.createCommentVNode("v-if", true)
46641
46635
  ], 2112))
46642
46636
  ]),
46643
46637
  _: 3
46644
46638
  }, 16, ["class", "onReject"])) : require$$1$1.createCommentVNode("v-if", true),
46645
- _ctx.uploadConfigs.listType === "text" && !_ctx.uploadConfigs.showSlotList ? (require$$1$1.openBlock(), require$$1$1.createElementBlock("div", _hoisted_24, [
46639
+ _ctx.uploadConfigs.listType === "text" && !_ctx.uploadConfigs.showSlotList ? (require$$1$1.openBlock(), require$$1$1.createElementBlock("div", _hoisted_22, [
46646
46640
  (require$$1$1.openBlock(true), require$$1$1.createElementBlock(require$$1$1.Fragment, null, require$$1$1.renderList(_ctx.fileList, (item) => {
46647
46641
  return require$$1$1.openBlock(), require$$1$1.createElementBlock("div", {
46648
46642
  key: item,
46649
46643
  class: "bm-upload__file"
46650
46644
  }, [
46651
46645
  !_ctx.uploadConfigs.showSlotList ? (require$$1$1.openBlock(), require$$1$1.createElementBlock(require$$1$1.Fragment, { key: 0 }, [
46652
- require$$1$1.createElementVNode("div", _hoisted_25, [
46653
- _hoisted_26,
46654
- require$$1$1.createElementVNode("div", _hoisted_27, [
46646
+ require$$1$1.createElementVNode("div", _hoisted_23, [
46647
+ _hoisted_24,
46648
+ require$$1$1.createElementVNode("div", _hoisted_25, [
46655
46649
  require$$1$1.createVNode(_component_OverTooltips, {
46656
46650
  title: item.name
46657
46651
  }, null, 8, ["title"])
46658
46652
  ]),
46659
- require$$1$1.createElementVNode("div", _hoisted_28, [
46653
+ require$$1$1.createElementVNode("div", _hoisted_26, [
46660
46654
  item.status === "error" ? (require$$1$1.openBlock(), require$$1$1.createElementBlock("div", {
46661
46655
  key: 0,
46662
46656
  class: "bm-upload__error-reload",
46663
46657
  onClick: (e) => _ctx.reUpload(e, item.uid)
46664
- }, null, 8, _hoisted_29)) : require$$1$1.createCommentVNode("v-if", true),
46658
+ }, null, 8, _hoisted_27)) : require$$1$1.createCommentVNode("v-if", true),
46665
46659
  require$$1$1.createElementVNode("div", {
46666
46660
  class: "bm-upload__trash",
46667
46661
  onClick: ($event) => _ctx.deleteFile(item.uid)
46668
- }, null, 8, _hoisted_30)
46662
+ }, null, 8, _hoisted_28)
46669
46663
  ])
46670
46664
  ]),
46671
- !item.isDoneDeloy || item.progress < 100 || item.status === "error" ? (require$$1$1.openBlock(), require$$1$1.createElementBlock("div", _hoisted_31, [
46665
+ !item.isDoneDeloy || item.progress < 100 || item.status === "error" ? (require$$1$1.openBlock(), require$$1$1.createElementBlock("div", _hoisted_29, [
46672
46666
  require$$1$1.createVNode(_component_a_progress, {
46673
46667
  type: "line",
46674
46668
  "stroke-width": 2,
@@ -46691,32 +46685,18 @@ var process = {
46691
46685
  onCancel: _ctx.handleClosePictureView
46692
46686
  }, {
46693
46687
  default: require$$1$1.withCtx(() => [
46694
- require$$1$1.createElementVNode("div", _hoisted_32, [
46695
- [
46696
- "img",
46697
- "image",
46698
- "png",
46699
- "PNG",
46700
- "image/png",
46701
- "jpg",
46702
- "JPG",
46703
- "jpeg",
46704
- "JPEG",
46705
- "image/jpeg",
46706
- "gif",
46707
- "GIF",
46708
- "image/gif"
46709
- ].includes(_ctx.onepViewImage.type) ? (require$$1$1.openBlock(), require$$1$1.createElementBlock("img", {
46688
+ require$$1$1.createElementVNode("div", _hoisted_30, [
46689
+ _ctx.pictureFileTypes.includes(_ctx.onepViewImage.type) ? (require$$1$1.openBlock(), require$$1$1.createElementBlock("img", {
46710
46690
  key: 0,
46711
46691
  style: { "width": "100%" },
46712
46692
  src: _ctx.onepViewImage.url,
46713
46693
  alt: ""
46714
- }, null, 8, _hoisted_33)) : (require$$1$1.openBlock(), require$$1$1.createElementBlock("iframe", {
46694
+ }, null, 8, _hoisted_31)) : (require$$1$1.openBlock(), require$$1$1.createElementBlock("iframe", {
46715
46695
  key: 1,
46716
46696
  title: _ctx.onepViewImage.type,
46717
46697
  style: { "width": "100%", "min-height": "600px" },
46718
46698
  src: _ctx.onepViewImage.url
46719
- }, null, 8, _hoisted_34))
46699
+ }, null, 8, _hoisted_32))
46720
46700
  ])
46721
46701
  ]),
46722
46702
  _: 1
@@ -42,9 +42,9 @@ declare const BmFloatTable: import("bm-admin-ui/es/utils/with-install").SFCWithI
42
42
  gridOptions: import("vue").ComputedRef<any>;
43
43
  gridEvents: import("vue").ComputedRef<any>;
44
44
  pager: import("vue").ComputedRef<any>;
45
- simpleImage: import("vue").Ref<(string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
45
+ simpleImage: import("vue").Ref<JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
46
46
  [key: string]: any;
47
- }> | null | undefined) | JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
47
+ }> | null | undefined) | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
48
48
  [key: string]: any;
49
49
  }> | null | undefined)[]>;
50
50
  floatRefsId: import("vue").Ref<{}>;
@@ -42,9 +42,9 @@ declare const _default: {
42
42
  gridOptions: import("vue").ComputedRef<any>;
43
43
  gridEvents: import("vue").ComputedRef<any>;
44
44
  pager: import("vue").ComputedRef<any>;
45
- simpleImage: import("vue").Ref<(string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
45
+ simpleImage: import("vue").Ref<JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
46
46
  [key: string]: any;
47
- }> | null | undefined) | JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
47
+ }> | null | undefined) | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
48
48
  [key: string]: any;
49
49
  }> | null | undefined)[]>;
50
50
  floatRefsId: import("vue").Ref<{}>;
@@ -40,9 +40,9 @@ declare const _default: import("vue").DefineComponent<{
40
40
  searchVal: import("vue").Ref<string>;
41
41
  selectAll: import("vue").Ref<boolean>;
42
42
  indeterminate: import("vue").Ref<boolean>;
43
- emptyPic: import("vue").Ref<(string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
43
+ emptyPic: import("vue").Ref<JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
44
44
  [key: string]: any;
45
- }> | null | undefined) | JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
45
+ }> | null | undefined) | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
46
46
  [key: string]: any;
47
47
  }> | null | undefined)[]>;
48
48
  listChecked: import("vue").Ref<{}>;
@@ -100,7 +100,7 @@ declare const BmUpload: import("bm-admin-ui/es/utils/with-install").SFCWithInsta
100
100
  fileList: import("vue").Ref<{}>;
101
101
  onepViewImageHover: import("vue").Ref<{}>;
102
102
  previewVisible: import("vue").Ref<boolean>;
103
- onepViewImage: import("vue").Ref<string>;
103
+ onepViewImage: import("vue").Ref<{}>;
104
104
  extraConfigs: import("vue").Ref<{
105
105
  maxSize: number;
106
106
  maxCount: number;
@@ -112,7 +112,6 @@ declare const BmUpload: import("bm-admin-ui/es/utils/with-install").SFCWithInsta
112
112
  picClass: string;
113
113
  alignCenter: boolean;
114
114
  canNotViewAccept: string;
115
- fileDetail: boolean;
116
115
  myBtn: boolean;
117
116
  }>;
118
117
  uploadConfigs: import("vue").Ref<{
@@ -131,6 +130,7 @@ declare const BmUpload: import("bm-admin-ui/es/utils/with-install").SFCWithInsta
131
130
  data: any;
132
131
  }) => Promise<void>;
133
132
  }>;
133
+ pictureFileTypes: import("vue").Ref<string[]>;
134
134
  };
135
135
  }>;
136
136
  export { BmUpload };