bm-admin-ui 1.0.31-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,
@@ -46184,7 +46184,22 @@ var process = {
46184
46184
  }, 1e3);
46185
46185
  methods.customUploadRequest(file);
46186
46186
  }
46187
- }
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
+ ]
46188
46203
  });
46189
46204
  const methods = {
46190
46205
  updateUploadProgress(file, progress) {
@@ -46265,24 +46280,9 @@ var process = {
46265
46280
  state.onepViewImageHover[uid] = false;
46266
46281
  },
46267
46282
  viewOnePicture(item) {
46268
- if ([
46269
- "img",
46270
- "image",
46271
- "png",
46272
- "PNG",
46273
- "image/png",
46274
- "jpg",
46275
- "JPG",
46276
- "jpeg",
46277
- "JPEG",
46278
- "image/jpeg",
46279
- "gif",
46280
- "GIF",
46281
- "image/gif"
46282
- ].includes(item.type.toLowerCase())) {
46283
+ if (state.pictureFileTypes.includes(item.type.toLowerCase())) {
46283
46284
  state.previewVisible = true;
46284
46285
  state.onepViewImage = item;
46285
- return;
46286
46286
  }
46287
46287
  emit("previewFile", item);
46288
46288
  },
@@ -46426,57 +46426,53 @@ var process = {
46426
46426
  const _hoisted_6$1 = ["src"];
46427
46427
  const _hoisted_7$1 = ["src"];
46428
46428
  const _hoisted_8$1 = ["src"];
46429
- const _hoisted_9 = ["src"];
46430
- const _hoisted_10 = {
46431
- key: 6,
46432
- class: "bm-upload__picture-result__cover"
46433
- };
46434
- const _hoisted_11 = ["onClick"];
46435
- const _hoisted_12 = ["onClick"];
46436
- const _hoisted_13 = ["onMouseenter", "onMouseleave"];
46437
- const _hoisted_14 = /* @__PURE__ */ require$$1$1.createElementVNode("div", { class: "bm-upload__picture-error__image" }, null, -1);
46438
- const _hoisted_15 = /* @__PURE__ */ require$$1$1.createElementVNode("div", null, "\u4E0A\u4F20\u9519\u8BEF", -1);
46439
- 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 = {
46440
46435
  key: 0,
46441
46436
  class: "bm-upload__picture-result__cover"
46442
46437
  };
46443
- const _hoisted_17 = ["onClick"];
46444
- const _hoisted_18 = ["onClick"];
46445
- const _hoisted_19 = {
46438
+ const _hoisted_15 = ["onClick"];
46439
+ const _hoisted_16 = ["onClick"];
46440
+ const _hoisted_17 = {
46446
46441
  key: 0,
46447
46442
  style: { "font-size": "24px", "color": "#9393a3" }
46448
46443
  };
46449
- const _hoisted_20 = { class: "ant-upload-text bm-upload__text" };
46450
- const _hoisted_21 = {
46444
+ const _hoisted_18 = { class: "ant-upload-text bm-upload__text" };
46445
+ const _hoisted_19 = {
46451
46446
  key: 0,
46452
46447
  class: "bm-upload__tips"
46453
46448
  };
46454
- const _hoisted_22 = { key: 1 };
46455
- const _hoisted_23 = {
46449
+ const _hoisted_20 = { key: 1 };
46450
+ const _hoisted_21 = {
46456
46451
  key: 0,
46457
46452
  class: "bm-upload__tips"
46458
46453
  };
46459
- const _hoisted_24 = {
46454
+ const _hoisted_22 = {
46460
46455
  key: 2,
46461
46456
  class: "bm-upload__file-list"
46462
46457
  };
46463
- const _hoisted_25 = { class: "bm-upload__file__detail" };
46464
- 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" }, [
46465
46460
  /* @__PURE__ */ require$$1$1.createElementVNode("div", { class: "bm-upload__attachment" })
46466
46461
  ], -1);
46467
- const _hoisted_27 = { class: "bm-upload__file__name" };
46468
- const _hoisted_28 = { class: "bm-upload__file__progress-tools" };
46469
- const _hoisted_29 = ["onClick"];
46470
- const _hoisted_30 = ["onClick"];
46471
- 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 = {
46472
46467
  key: 0,
46473
46468
  class: "bm-upload__progress"
46474
46469
  };
46475
- const _hoisted_32 = { style: { "padding-top": "20px" } };
46476
- const _hoisted_33 = ["src"];
46477
- const _hoisted_34 = ["title", "src"];
46470
+ const _hoisted_30 = { style: { "padding-top": "20px" } };
46471
+ const _hoisted_31 = ["src"];
46472
+ const _hoisted_32 = ["title", "src"];
46478
46473
  function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
46479
46474
  const _component_a_progress = require$$1$1.resolveComponent("a-progress");
46475
+ const _component_a_image = require$$1$1.resolveComponent("a-image");
46480
46476
  const _component_PlusOutlined = require$$1$1.resolveComponent("PlusOutlined");
46481
46477
  const _component_UploadOutlined = require$$1$1.resolveComponent("UploadOutlined");
46482
46478
  const _component_a_button = require$$1$1.resolveComponent("a-button");
@@ -46489,145 +46485,141 @@ var process = {
46489
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
46490
46486
  }])
46491
46487
  }, [
46492
- _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) => {
46493
- return require$$1$1.openBlock(), require$$1$1.createElementBlock("div", {
46494
- key: item,
46495
- class: require$$1$1.normalizeClass(["bm-upload__picture", { "bm-upload__picture--error": item.status === "error" }])
46496
- }, [
46497
- require$$1$1.createCommentVNode(" \u4E0A\u4F20\u4E2D "),
46498
- item.progress < 100 && item.status !== "error" ? (require$$1$1.openBlock(), require$$1$1.createElementBlock("div", _hoisted_1$2, [
46499
- _hoisted_2$2,
46500
- require$$1$1.createVNode(_component_a_progress, {
46501
- type: "line",
46502
- "stroke-width": 2,
46503
- "show-info": false,
46504
- "stroke-color": _ctx.uploadBarColor,
46505
- percent: item.uid?.progress
46506
- }, null, 8, ["stroke-color", "percent"])
46507
- ])) : require$$1$1.createCommentVNode("v-if", true),
46508
- require$$1$1.createCommentVNode(" \u56FE\u7247\u5C55\u793A "),
46509
- item.progress >= 100 && item.status !== "error" ? (require$$1$1.openBlock(), require$$1$1.createElementBlock(require$$1$1.Fragment, { key: 1 }, [
46510
- !_ctx.uploadConfigs.showSlotList ? (require$$1$1.openBlock(), require$$1$1.createElementBlock("div", {
46511
- key: 0,
46512
- class: "bm-upload__picture-result",
46513
- onMouseenter: ($event) => _ctx.pictureHoverEnter(item.uid),
46514
- onMouseleave: ($event) => _ctx.pictureHoverLeave(item.uid),
46515
- onClick: _cache[0] || (_cache[0] = (e) => e.stopPropagation())
46516
- }, [
46517
- ["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", {
46518
46510
  key: 0,
46519
- class: "bm-upload__picture-result__image",
46520
- src: $setup.icons.pdf,
46521
- alt: "avatar"
46522
- }, null, 8, _hoisted_4$1)) : [
46523
- "xlsx",
46524
- "XLSX",
46525
- "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
46526
- ].includes(item.type) ? (require$$1$1.openBlock(), require$$1$1.createElementBlock("img", {
46527
- key: 1,
46528
- class: "bm-upload__picture-result__image",
46529
- src: $setup.icons.excel,
46530
- alt: "avatar"
46531
- }, null, 8, _hoisted_5$1)) : [
46532
- "ppt",
46533
- "PPT",
46534
- "application/vnd.ms-powerpoint",
46535
- "pptx",
46536
- "PPTX",
46537
- "application/vnd.openxmlformats-officedocument.presentationml.presentation"
46538
- ].includes(item.type) ? (require$$1$1.openBlock(), require$$1$1.createElementBlock("img", {
46539
- key: 2,
46540
- class: "bm-upload__picture-result__image",
46541
- src: $setup.icons.ppt,
46542
- alt: "avatar"
46543
- }, null, 8, _hoisted_6$1)) : [
46544
- "doc",
46545
- "DOC",
46546
- "application/msword",
46547
- "docx",
46548
- "DOCX",
46549
- "application/vnd.openxmlformats-officedocument.wordprocessingml.document"
46550
- ].includes(item.type) ? (require$$1$1.openBlock(), require$$1$1.createElementBlock("img", {
46551
- key: 3,
46552
- class: "bm-upload__picture-result__image",
46553
- src: $setup.icons.doc,
46554
- alt: "avatar"
46555
- }, null, 8, _hoisted_7$1)) : [
46556
- "img",
46557
- "image",
46558
- "png",
46559
- "PNG",
46560
- "image/png",
46561
- "jpg",
46562
- "JPG",
46563
- "jpeg",
46564
- "JPEG",
46565
- "image/jpeg",
46566
- "gif",
46567
- "GIF",
46568
- "image/gif"
46569
- ].includes(item.type) ? (require$$1$1.openBlock(), require$$1$1.createElementBlock("img", {
46570
- key: 4,
46571
- class: "bm-upload__picture-result__image",
46572
- src: item.url,
46573
- alt: "avatar"
46574
- }, null, 8, _hoisted_8$1)) : (require$$1$1.openBlock(), require$$1$1.createElementBlock("img", {
46575
- key: 5,
46576
- class: "bm-upload__picture-result__image",
46577
- src: $setup.icons.others,
46578
- alt: "avatar"
46579
- }, null, 8, _hoisted_9)),
46580
- _ctx.onepViewImageHover[item.uid] ? (require$$1$1.openBlock(), require$$1$1.createElementBlock("div", _hoisted_10, [
46581
- !_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", {
46582
46517
  key: 0,
46583
- class: "bm-upload__picture-result__icon bm-upload__picture-result__icon--view",
46584
- onClick: ($event) => _ctx.viewOnePicture(item)
46585
- }, null, 8, _hoisted_11)) : require$$1$1.createCommentVNode("v-if", true),
46586
- !(_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", {
46587
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", {
46588
46603
  class: "bm-upload__picture-result__icon bm-upload__picture-result__icon--delete",
46589
46604
  onClick: ($event) => _ctx.deleteFile(item.uid)
46590
- }, null, 8, _hoisted_12)) : require$$1$1.createCommentVNode("v-if", true)
46605
+ }, null, 8, _hoisted_16)
46591
46606
  ])) : require$$1$1.createCommentVNode("v-if", true)
46592
- ], 40, _hoisted_3$1)) : require$$1$1.renderSlot(_ctx.$slots, "file", {
46593
- key: 1,
46594
- file: item
46595
- })
46596
- ], 2112)) : require$$1$1.createCommentVNode("v-if", true),
46597
- require$$1$1.createCommentVNode(" \u56FE\u7247\u9519\u8BEF\u5C55\u793A "),
46598
- item.status === "error" ? (require$$1$1.openBlock(), require$$1$1.createElementBlock("div", {
46599
- key: 2,
46600
- class: "bm-upload__picture-error",
46601
- onMouseenter: ($event) => _ctx.pictureHoverEnter(item.uid),
46602
- onMouseleave: ($event) => _ctx.pictureHoverLeave(item.uid),
46603
- onClick: _cache[1] || (_cache[1] = (e) => e.stopPropagation())
46604
- }, [
46605
- _hoisted_14,
46606
- _hoisted_15,
46607
- _ctx.onepViewImageHover[item.uid] ? (require$$1$1.openBlock(), require$$1$1.createElementBlock("div", _hoisted_16, [
46608
- require$$1$1.createElementVNode("div", {
46609
- class: "bm-upload__picture-result__icon bm-upload__picture-result__icon--retry",
46610
- onClick: (e) => _ctx.reUpload(e, item.uid)
46611
- }, null, 8, _hoisted_17),
46612
- require$$1$1.createElementVNode("div", {
46613
- class: "bm-upload__picture-result__icon bm-upload__picture-result__icon--delete",
46614
- onClick: ($event) => _ctx.deleteFile(item.uid)
46615
- }, null, 8, _hoisted_18)
46616
- ])) : require$$1$1.createCommentVNode("v-if", true)
46617
- ], 40, _hoisted_13)) : require$$1$1.createCommentVNode("v-if", true)
46618
- ], 2);
46619
- }), 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),
46620
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, {
46621
46613
  class: { "bm--upload__custom-button": _ctx.extraConfigs.myBtn },
46622
46614
  onReject: _ctx.handleReject
46623
46615
  }), {
46624
46616
  default: require$$1$1.withCtx(() => [
46625
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 }, [
46626
- _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, [
46627
46619
  require$$1$1.createVNode(_component_PlusOutlined),
46628
- require$$1$1.createElementVNode("div", _hoisted_20, require$$1$1.toDisplayString(_ctx.uploadConfigs.text || "\u4E0A\u4F20\u56FE\u7247"), 1),
46629
- _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)
46630
- ])) : _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, [
46631
46623
  require$$1$1.createVNode(_component_a_button, {
46632
46624
  class: require$$1$1.normalizeClass(_ctx.extraConfigs.btnClass),
46633
46625
  disabled: $setup.uploadDisabled && !_ctx.extraConfigs?.hideDisabledBtn
@@ -46638,39 +46630,39 @@ var process = {
46638
46630
  ]),
46639
46631
  _: 1
46640
46632
  }, 8, ["class", "disabled"]),
46641
- _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)
46642
46634
  ])) : require$$1$1.createCommentVNode("v-if", true)
46643
46635
  ], 2112))
46644
46636
  ]),
46645
46637
  _: 3
46646
46638
  }, 16, ["class", "onReject"])) : require$$1$1.createCommentVNode("v-if", true),
46647
- _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, [
46648
46640
  (require$$1$1.openBlock(true), require$$1$1.createElementBlock(require$$1$1.Fragment, null, require$$1$1.renderList(_ctx.fileList, (item) => {
46649
46641
  return require$$1$1.openBlock(), require$$1$1.createElementBlock("div", {
46650
46642
  key: item,
46651
46643
  class: "bm-upload__file"
46652
46644
  }, [
46653
46645
  !_ctx.uploadConfigs.showSlotList ? (require$$1$1.openBlock(), require$$1$1.createElementBlock(require$$1$1.Fragment, { key: 0 }, [
46654
- require$$1$1.createElementVNode("div", _hoisted_25, [
46655
- _hoisted_26,
46656
- 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, [
46657
46649
  require$$1$1.createVNode(_component_OverTooltips, {
46658
46650
  title: item.name
46659
46651
  }, null, 8, ["title"])
46660
46652
  ]),
46661
- require$$1$1.createElementVNode("div", _hoisted_28, [
46653
+ require$$1$1.createElementVNode("div", _hoisted_26, [
46662
46654
  item.status === "error" ? (require$$1$1.openBlock(), require$$1$1.createElementBlock("div", {
46663
46655
  key: 0,
46664
46656
  class: "bm-upload__error-reload",
46665
46657
  onClick: (e) => _ctx.reUpload(e, item.uid)
46666
- }, null, 8, _hoisted_29)) : require$$1$1.createCommentVNode("v-if", true),
46658
+ }, null, 8, _hoisted_27)) : require$$1$1.createCommentVNode("v-if", true),
46667
46659
  require$$1$1.createElementVNode("div", {
46668
46660
  class: "bm-upload__trash",
46669
46661
  onClick: ($event) => _ctx.deleteFile(item.uid)
46670
- }, null, 8, _hoisted_30)
46662
+ }, null, 8, _hoisted_28)
46671
46663
  ])
46672
46664
  ]),
46673
- !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, [
46674
46666
  require$$1$1.createVNode(_component_a_progress, {
46675
46667
  type: "line",
46676
46668
  "stroke-width": 2,
@@ -46693,32 +46685,18 @@ var process = {
46693
46685
  onCancel: _ctx.handleClosePictureView
46694
46686
  }, {
46695
46687
  default: require$$1$1.withCtx(() => [
46696
- require$$1$1.createElementVNode("div", _hoisted_32, [
46697
- [
46698
- "img",
46699
- "image",
46700
- "png",
46701
- "PNG",
46702
- "image/png",
46703
- "jpg",
46704
- "JPG",
46705
- "jpeg",
46706
- "JPEG",
46707
- "image/jpeg",
46708
- "gif",
46709
- "GIF",
46710
- "image/gif"
46711
- ].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", {
46712
46690
  key: 0,
46713
46691
  style: { "width": "100%" },
46714
46692
  src: _ctx.onepViewImage.url,
46715
46693
  alt: ""
46716
- }, 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", {
46717
46695
  key: 1,
46718
46696
  title: _ctx.onepViewImage.type,
46719
46697
  style: { "width": "100%", "min-height": "600px" },
46720
46698
  src: _ctx.onepViewImage.url
46721
- }, null, 8, _hoisted_34))
46699
+ }, null, 8, _hoisted_32))
46722
46700
  ])
46723
46701
  ]),
46724
46702
  _: 1
@@ -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;
@@ -130,6 +130,7 @@ declare const BmUpload: import("bm-admin-ui/es/utils/with-install").SFCWithInsta
130
130
  data: any;
131
131
  }) => Promise<void>;
132
132
  }>;
133
+ pictureFileTypes: import("vue").Ref<string[]>;
133
134
  };
134
135
  }>;
135
136
  export { BmUpload };