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/es/components/upload/index.d.ts +2 -1
- package/es/components/upload/index.js +179 -201
- package/es/components/upload/src/upload.vue.d.ts +2 -1
- package/index.esm.js +178 -200
- package/index.js +178 -200
- package/lib/components/upload/index.d.ts +2 -1
- package/lib/components/upload/index.js +178 -200
- package/lib/components/upload/src/upload.vue.d.ts +2 -1
- package/package.json +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/upload.css +1 -1
- package/types/components/upload/index.d.ts +2 -1
- package/types/components/upload/src/upload.vue.d.ts +2 -1
package/index.esm.js
CHANGED
|
@@ -46126,7 +46126,7 @@ const _sfc_main$3 = {
|
|
|
46126
46126
|
fileList: {},
|
|
46127
46127
|
onepViewImageHover: {},
|
|
46128
46128
|
previewVisible: false,
|
|
46129
|
-
onepViewImage:
|
|
46129
|
+
onepViewImage: {},
|
|
46130
46130
|
extraConfigs: {
|
|
46131
46131
|
maxSize: 5,
|
|
46132
46132
|
maxCount: 5,
|
|
@@ -46176,7 +46176,22 @@ const _sfc_main$3 = {
|
|
|
46176
46176
|
}, 1e3);
|
|
46177
46177
|
methods.customUploadRequest(file);
|
|
46178
46178
|
}
|
|
46179
|
-
}
|
|
46179
|
+
},
|
|
46180
|
+
pictureFileTypes: [
|
|
46181
|
+
"img",
|
|
46182
|
+
"image",
|
|
46183
|
+
"png",
|
|
46184
|
+
"PNG",
|
|
46185
|
+
"image/png",
|
|
46186
|
+
"jpg",
|
|
46187
|
+
"JPG",
|
|
46188
|
+
"jpeg",
|
|
46189
|
+
"JPEG",
|
|
46190
|
+
"image/jpeg",
|
|
46191
|
+
"gif",
|
|
46192
|
+
"GIF",
|
|
46193
|
+
"image/gif"
|
|
46194
|
+
]
|
|
46180
46195
|
});
|
|
46181
46196
|
const methods = {
|
|
46182
46197
|
updateUploadProgress(file, progress) {
|
|
@@ -46257,24 +46272,9 @@ const _sfc_main$3 = {
|
|
|
46257
46272
|
state.onepViewImageHover[uid] = false;
|
|
46258
46273
|
},
|
|
46259
46274
|
viewOnePicture(item) {
|
|
46260
|
-
if (
|
|
46261
|
-
"img",
|
|
46262
|
-
"image",
|
|
46263
|
-
"png",
|
|
46264
|
-
"PNG",
|
|
46265
|
-
"image/png",
|
|
46266
|
-
"jpg",
|
|
46267
|
-
"JPG",
|
|
46268
|
-
"jpeg",
|
|
46269
|
-
"JPEG",
|
|
46270
|
-
"image/jpeg",
|
|
46271
|
-
"gif",
|
|
46272
|
-
"GIF",
|
|
46273
|
-
"image/gif"
|
|
46274
|
-
].includes(item.type.toLowerCase())) {
|
|
46275
|
+
if (state.pictureFileTypes.includes(item.type.toLowerCase())) {
|
|
46275
46276
|
state.previewVisible = true;
|
|
46276
46277
|
state.onepViewImage = item;
|
|
46277
|
-
return;
|
|
46278
46278
|
}
|
|
46279
46279
|
emit("previewFile", item);
|
|
46280
46280
|
},
|
|
@@ -46418,57 +46418,53 @@ const _hoisted_5$1 = ["src"];
|
|
|
46418
46418
|
const _hoisted_6$1 = ["src"];
|
|
46419
46419
|
const _hoisted_7$1 = ["src"];
|
|
46420
46420
|
const _hoisted_8$1 = ["src"];
|
|
46421
|
-
const _hoisted_9 = ["
|
|
46422
|
-
const _hoisted_10 =
|
|
46423
|
-
|
|
46424
|
-
|
|
46425
|
-
|
|
46426
|
-
const
|
|
46427
|
-
const _hoisted_12 = ["onClick"];
|
|
46428
|
-
const _hoisted_13 = ["onMouseenter", "onMouseleave"];
|
|
46429
|
-
const _hoisted_14 = /* @__PURE__ */ createElementVNode("div", { class: "bm-upload__picture-error__image" }, null, -1);
|
|
46430
|
-
const _hoisted_15 = /* @__PURE__ */ createElementVNode("div", null, "\u4E0A\u4F20\u9519\u8BEF", -1);
|
|
46431
|
-
const _hoisted_16 = {
|
|
46421
|
+
const _hoisted_9 = ["onClick"];
|
|
46422
|
+
const _hoisted_10 = ["onClick"];
|
|
46423
|
+
const _hoisted_11 = ["onMouseenter", "onMouseleave"];
|
|
46424
|
+
const _hoisted_12 = /* @__PURE__ */ createElementVNode("div", { class: "bm-upload__picture-error__image" }, null, -1);
|
|
46425
|
+
const _hoisted_13 = /* @__PURE__ */ createElementVNode("div", null, "\u4E0A\u4F20\u9519\u8BEF", -1);
|
|
46426
|
+
const _hoisted_14 = {
|
|
46432
46427
|
key: 0,
|
|
46433
46428
|
class: "bm-upload__picture-result__cover"
|
|
46434
46429
|
};
|
|
46435
|
-
const
|
|
46436
|
-
const
|
|
46437
|
-
const
|
|
46430
|
+
const _hoisted_15 = ["onClick"];
|
|
46431
|
+
const _hoisted_16 = ["onClick"];
|
|
46432
|
+
const _hoisted_17 = {
|
|
46438
46433
|
key: 0,
|
|
46439
46434
|
style: { "font-size": "24px", "color": "#9393a3" }
|
|
46440
46435
|
};
|
|
46441
|
-
const
|
|
46442
|
-
const
|
|
46436
|
+
const _hoisted_18 = { class: "ant-upload-text bm-upload__text" };
|
|
46437
|
+
const _hoisted_19 = {
|
|
46443
46438
|
key: 0,
|
|
46444
46439
|
class: "bm-upload__tips"
|
|
46445
46440
|
};
|
|
46446
|
-
const
|
|
46447
|
-
const
|
|
46441
|
+
const _hoisted_20 = { key: 1 };
|
|
46442
|
+
const _hoisted_21 = {
|
|
46448
46443
|
key: 0,
|
|
46449
46444
|
class: "bm-upload__tips"
|
|
46450
46445
|
};
|
|
46451
|
-
const
|
|
46446
|
+
const _hoisted_22 = {
|
|
46452
46447
|
key: 2,
|
|
46453
46448
|
class: "bm-upload__file-list"
|
|
46454
46449
|
};
|
|
46455
|
-
const
|
|
46456
|
-
const
|
|
46450
|
+
const _hoisted_23 = { class: "bm-upload__file__detail" };
|
|
46451
|
+
const _hoisted_24 = /* @__PURE__ */ createElementVNode("div", { class: "bm-upload__file__icon" }, [
|
|
46457
46452
|
/* @__PURE__ */ createElementVNode("div", { class: "bm-upload__attachment" })
|
|
46458
46453
|
], -1);
|
|
46459
|
-
const
|
|
46460
|
-
const
|
|
46461
|
-
const
|
|
46462
|
-
const
|
|
46463
|
-
const
|
|
46454
|
+
const _hoisted_25 = { class: "bm-upload__file__name" };
|
|
46455
|
+
const _hoisted_26 = { class: "bm-upload__file__progress-tools" };
|
|
46456
|
+
const _hoisted_27 = ["onClick"];
|
|
46457
|
+
const _hoisted_28 = ["onClick"];
|
|
46458
|
+
const _hoisted_29 = {
|
|
46464
46459
|
key: 0,
|
|
46465
46460
|
class: "bm-upload__progress"
|
|
46466
46461
|
};
|
|
46467
|
-
const
|
|
46468
|
-
const
|
|
46469
|
-
const
|
|
46462
|
+
const _hoisted_30 = { style: { "padding-top": "20px" } };
|
|
46463
|
+
const _hoisted_31 = ["src"];
|
|
46464
|
+
const _hoisted_32 = ["title", "src"];
|
|
46470
46465
|
function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
46471
46466
|
const _component_a_progress = resolveComponent("a-progress");
|
|
46467
|
+
const _component_a_image = resolveComponent("a-image");
|
|
46472
46468
|
const _component_PlusOutlined = resolveComponent("PlusOutlined");
|
|
46473
46469
|
const _component_UploadOutlined = resolveComponent("UploadOutlined");
|
|
46474
46470
|
const _component_a_button = resolveComponent("a-button");
|
|
@@ -46481,145 +46477,141 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
46481
46477
|
"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
|
|
46482
46478
|
}])
|
|
46483
46479
|
}, [
|
|
46484
|
-
_ctx.uploadConfigs.listType === "picture-card" ? (openBlock(
|
|
46485
|
-
|
|
46486
|
-
|
|
46487
|
-
|
|
46488
|
-
|
|
46489
|
-
|
|
46490
|
-
|
|
46491
|
-
|
|
46492
|
-
|
|
46493
|
-
|
|
46494
|
-
|
|
46495
|
-
|
|
46496
|
-
|
|
46497
|
-
|
|
46498
|
-
|
|
46499
|
-
|
|
46500
|
-
|
|
46501
|
-
|
|
46502
|
-
|
|
46503
|
-
|
|
46504
|
-
|
|
46505
|
-
|
|
46506
|
-
onMouseleave: ($event) => _ctx.pictureHoverLeave(item.uid),
|
|
46507
|
-
onClick: _cache[0] || (_cache[0] = (e) => e.stopPropagation())
|
|
46508
|
-
}, [
|
|
46509
|
-
["pdf", "PDF", "application/pdf"].includes(item.type) ? (openBlock(), createElementBlock("img", {
|
|
46480
|
+
_ctx.uploadConfigs.listType === "picture-card" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
46481
|
+
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 "),
|
|
46482
|
+
createCommentVNode(" <a-image-preview-group> "),
|
|
46483
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.fileList, (item) => {
|
|
46484
|
+
return openBlock(), createElementBlock("div", {
|
|
46485
|
+
key: item,
|
|
46486
|
+
class: normalizeClass(["bm-upload__picture", { "bm-upload__picture--error": item.status === "error" }])
|
|
46487
|
+
}, [
|
|
46488
|
+
createCommentVNode(" \u4E0A\u4F20\u4E2D "),
|
|
46489
|
+
item.progress < 100 && item.status !== "error" ? (openBlock(), createElementBlock("div", _hoisted_1$2, [
|
|
46490
|
+
_hoisted_2$2,
|
|
46491
|
+
createVNode(_component_a_progress, {
|
|
46492
|
+
type: "line",
|
|
46493
|
+
"stroke-width": 2,
|
|
46494
|
+
"show-info": false,
|
|
46495
|
+
"stroke-color": _ctx.uploadBarColor,
|
|
46496
|
+
percent: item.uid?.progress
|
|
46497
|
+
}, null, 8, ["stroke-color", "percent"])
|
|
46498
|
+
])) : createCommentVNode("v-if", true),
|
|
46499
|
+
createCommentVNode(" \u56FE\u7247\u5C55\u793A "),
|
|
46500
|
+
item.progress >= 100 && item.status !== "error" ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
46501
|
+
!_ctx.uploadConfigs.showSlotList ? (openBlock(), createElementBlock("div", {
|
|
46510
46502
|
key: 0,
|
|
46511
|
-
class: "bm-upload__picture-
|
|
46512
|
-
|
|
46513
|
-
|
|
46514
|
-
|
|
46515
|
-
|
|
46516
|
-
"
|
|
46517
|
-
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
|
|
46518
|
-
].includes(item.type) ? (openBlock(), createElementBlock("img", {
|
|
46519
|
-
key: 1,
|
|
46520
|
-
class: "bm-upload__picture-result__image",
|
|
46521
|
-
src: $setup.icons.excel,
|
|
46522
|
-
alt: "avatar"
|
|
46523
|
-
}, null, 8, _hoisted_5$1)) : [
|
|
46524
|
-
"ppt",
|
|
46525
|
-
"PPT",
|
|
46526
|
-
"application/vnd.ms-powerpoint",
|
|
46527
|
-
"pptx",
|
|
46528
|
-
"PPTX",
|
|
46529
|
-
"application/vnd.openxmlformats-officedocument.presentationml.presentation"
|
|
46530
|
-
].includes(item.type) ? (openBlock(), createElementBlock("img", {
|
|
46531
|
-
key: 2,
|
|
46532
|
-
class: "bm-upload__picture-result__image",
|
|
46533
|
-
src: $setup.icons.ppt,
|
|
46534
|
-
alt: "avatar"
|
|
46535
|
-
}, null, 8, _hoisted_6$1)) : [
|
|
46536
|
-
"doc",
|
|
46537
|
-
"DOC",
|
|
46538
|
-
"application/msword",
|
|
46539
|
-
"docx",
|
|
46540
|
-
"DOCX",
|
|
46541
|
-
"application/vnd.openxmlformats-officedocument.wordprocessingml.document"
|
|
46542
|
-
].includes(item.type) ? (openBlock(), createElementBlock("img", {
|
|
46543
|
-
key: 3,
|
|
46544
|
-
class: "bm-upload__picture-result__image",
|
|
46545
|
-
src: $setup.icons.doc,
|
|
46546
|
-
alt: "avatar"
|
|
46547
|
-
}, null, 8, _hoisted_7$1)) : [
|
|
46548
|
-
"img",
|
|
46549
|
-
"image",
|
|
46550
|
-
"png",
|
|
46551
|
-
"PNG",
|
|
46552
|
-
"image/png",
|
|
46553
|
-
"jpg",
|
|
46554
|
-
"JPG",
|
|
46555
|
-
"jpeg",
|
|
46556
|
-
"JPEG",
|
|
46557
|
-
"image/jpeg",
|
|
46558
|
-
"gif",
|
|
46559
|
-
"GIF",
|
|
46560
|
-
"image/gif"
|
|
46561
|
-
].includes(item.type) ? (openBlock(), createElementBlock("img", {
|
|
46562
|
-
key: 4,
|
|
46563
|
-
class: "bm-upload__picture-result__image",
|
|
46564
|
-
src: item.url,
|
|
46565
|
-
alt: "avatar"
|
|
46566
|
-
}, null, 8, _hoisted_8$1)) : (openBlock(), createElementBlock("img", {
|
|
46567
|
-
key: 5,
|
|
46568
|
-
class: "bm-upload__picture-result__image",
|
|
46569
|
-
src: $setup.icons.others,
|
|
46570
|
-
alt: "avatar"
|
|
46571
|
-
}, null, 8, _hoisted_9)),
|
|
46572
|
-
_ctx.onepViewImageHover[item.uid] ? (openBlock(), createElementBlock("div", _hoisted_10, [
|
|
46573
|
-
!_ctx.extraConfigs.canNotViewAccept?.includes(item?.type) ? (openBlock(), createElementBlock("div", {
|
|
46503
|
+
class: "bm-upload__picture-result",
|
|
46504
|
+
onMouseenter: ($event) => _ctx.pictureHoverEnter(item.uid),
|
|
46505
|
+
onMouseleave: ($event) => _ctx.pictureHoverLeave(item.uid),
|
|
46506
|
+
onClick: _cache[0] || (_cache[0] = (e) => e.stopPropagation())
|
|
46507
|
+
}, [
|
|
46508
|
+
["pdf", "PDF", "application/pdf"].includes(item.type) ? (openBlock(), createElementBlock("img", {
|
|
46574
46509
|
key: 0,
|
|
46575
|
-
class: "bm-upload__picture-
|
|
46576
|
-
|
|
46577
|
-
|
|
46578
|
-
|
|
46510
|
+
class: "bm-upload__picture-result__image",
|
|
46511
|
+
src: $setup.icons.pdf,
|
|
46512
|
+
alt: "\u56FE\u7247"
|
|
46513
|
+
}, null, 8, _hoisted_4$1)) : [
|
|
46514
|
+
"xlsx",
|
|
46515
|
+
"XLSX",
|
|
46516
|
+
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
|
|
46517
|
+
].includes(item.type) ? (openBlock(), createElementBlock("img", {
|
|
46579
46518
|
key: 1,
|
|
46519
|
+
class: "bm-upload__picture-result__image",
|
|
46520
|
+
src: $setup.icons.excel,
|
|
46521
|
+
alt: "\u56FE\u7247"
|
|
46522
|
+
}, null, 8, _hoisted_5$1)) : [
|
|
46523
|
+
"ppt",
|
|
46524
|
+
"PPT",
|
|
46525
|
+
"application/vnd.ms-powerpoint",
|
|
46526
|
+
"pptx",
|
|
46527
|
+
"PPTX",
|
|
46528
|
+
"application/vnd.openxmlformats-officedocument.presentationml.presentation"
|
|
46529
|
+
].includes(item.type) ? (openBlock(), createElementBlock("img", {
|
|
46530
|
+
key: 2,
|
|
46531
|
+
class: "bm-upload__picture-result__image",
|
|
46532
|
+
src: $setup.icons.ppt,
|
|
46533
|
+
alt: "\u56FE\u7247"
|
|
46534
|
+
}, null, 8, _hoisted_6$1)) : [
|
|
46535
|
+
"doc",
|
|
46536
|
+
"DOC",
|
|
46537
|
+
"application/msword",
|
|
46538
|
+
"docx",
|
|
46539
|
+
"DOCX",
|
|
46540
|
+
"application/vnd.openxmlformats-officedocument.wordprocessingml.document"
|
|
46541
|
+
].includes(item.type) ? (openBlock(), createElementBlock("img", {
|
|
46542
|
+
key: 3,
|
|
46543
|
+
class: "bm-upload__picture-result__image",
|
|
46544
|
+
src: $setup.icons.doc,
|
|
46545
|
+
alt: "\u56FE\u7247"
|
|
46546
|
+
}, null, 8, _hoisted_7$1)) : _ctx.pictureFileTypes.includes(item.type) ? (openBlock(), createBlock(_component_a_image, {
|
|
46547
|
+
key: 4,
|
|
46548
|
+
class: "bm-upload__picture-result__image",
|
|
46549
|
+
src: item.url,
|
|
46550
|
+
alt: "\u56FE\u7247"
|
|
46551
|
+
}, null, 8, ["src"])) : (openBlock(), createElementBlock("img", {
|
|
46552
|
+
key: 5,
|
|
46553
|
+
class: "bm-upload__picture-result__image",
|
|
46554
|
+
src: $setup.icons.others,
|
|
46555
|
+
alt: "\u56FE\u7247"
|
|
46556
|
+
}, null, 8, _hoisted_8$1)),
|
|
46557
|
+
_ctx.onepViewImageHover[item.uid] ? (openBlock(), createElementBlock("div", {
|
|
46558
|
+
key: 6,
|
|
46559
|
+
class: normalizeClass(["bm-upload__picture-result__cover", {
|
|
46560
|
+
isPicture: _ctx.pictureFileTypes.includes(item.type)
|
|
46561
|
+
}])
|
|
46562
|
+
}, [
|
|
46563
|
+
!_ctx.extraConfigs.canNotViewAccept?.includes(item?.type) ? (openBlock(), createElementBlock("div", {
|
|
46564
|
+
key: 0,
|
|
46565
|
+
class: "bm-upload__picture-result__icon bm-upload__picture-result__icon--view",
|
|
46566
|
+
onClick: ($event) => _ctx.viewOnePicture(item)
|
|
46567
|
+
}, null, 8, _hoisted_9)) : createCommentVNode("v-if", true),
|
|
46568
|
+
!(_ctx.extraConfigs.hidenDelBtn ?? false) ? (openBlock(), createElementBlock("div", {
|
|
46569
|
+
key: 1,
|
|
46570
|
+
class: "bm-upload__picture-result__icon bm-upload__picture-result__icon--delete",
|
|
46571
|
+
onClick: ($event) => _ctx.deleteFile(item.uid)
|
|
46572
|
+
}, null, 8, _hoisted_10)) : createCommentVNode("v-if", true)
|
|
46573
|
+
], 2)) : createCommentVNode("v-if", true)
|
|
46574
|
+
], 40, _hoisted_3$1)) : renderSlot(_ctx.$slots, "file", {
|
|
46575
|
+
key: 1,
|
|
46576
|
+
file: item
|
|
46577
|
+
})
|
|
46578
|
+
], 2112)) : createCommentVNode("v-if", true),
|
|
46579
|
+
createCommentVNode(" \u56FE\u7247\u9519\u8BEF\u5C55\u793A "),
|
|
46580
|
+
item.status === "error" ? (openBlock(), createElementBlock("div", {
|
|
46581
|
+
key: 2,
|
|
46582
|
+
class: "bm-upload__picture-error",
|
|
46583
|
+
onMouseenter: ($event) => _ctx.pictureHoverEnter(item.uid),
|
|
46584
|
+
onMouseleave: ($event) => _ctx.pictureHoverLeave(item.uid),
|
|
46585
|
+
onClick: _cache[1] || (_cache[1] = (e) => e.stopPropagation())
|
|
46586
|
+
}, [
|
|
46587
|
+
_hoisted_12,
|
|
46588
|
+
_hoisted_13,
|
|
46589
|
+
_ctx.onepViewImageHover[item.uid] ? (openBlock(), createElementBlock("div", _hoisted_14, [
|
|
46590
|
+
createElementVNode("div", {
|
|
46591
|
+
class: "bm-upload__picture-result__icon bm-upload__picture-result__icon--retry",
|
|
46592
|
+
onClick: (e) => _ctx.reUpload(e, item.uid)
|
|
46593
|
+
}, null, 8, _hoisted_15),
|
|
46594
|
+
createElementVNode("div", {
|
|
46580
46595
|
class: "bm-upload__picture-result__icon bm-upload__picture-result__icon--delete",
|
|
46581
46596
|
onClick: ($event) => _ctx.deleteFile(item.uid)
|
|
46582
|
-
}, null, 8,
|
|
46597
|
+
}, null, 8, _hoisted_16)
|
|
46583
46598
|
])) : createCommentVNode("v-if", true)
|
|
46584
|
-
], 40,
|
|
46585
|
-
|
|
46586
|
-
|
|
46587
|
-
|
|
46588
|
-
|
|
46589
|
-
createCommentVNode(" \u56FE\u7247\u9519\u8BEF\u5C55\u793A "),
|
|
46590
|
-
item.status === "error" ? (openBlock(), createElementBlock("div", {
|
|
46591
|
-
key: 2,
|
|
46592
|
-
class: "bm-upload__picture-error",
|
|
46593
|
-
onMouseenter: ($event) => _ctx.pictureHoverEnter(item.uid),
|
|
46594
|
-
onMouseleave: ($event) => _ctx.pictureHoverLeave(item.uid),
|
|
46595
|
-
onClick: _cache[1] || (_cache[1] = (e) => e.stopPropagation())
|
|
46596
|
-
}, [
|
|
46597
|
-
_hoisted_14,
|
|
46598
|
-
_hoisted_15,
|
|
46599
|
-
_ctx.onepViewImageHover[item.uid] ? (openBlock(), createElementBlock("div", _hoisted_16, [
|
|
46600
|
-
createElementVNode("div", {
|
|
46601
|
-
class: "bm-upload__picture-result__icon bm-upload__picture-result__icon--retry",
|
|
46602
|
-
onClick: (e) => _ctx.reUpload(e, item.uid)
|
|
46603
|
-
}, null, 8, _hoisted_17),
|
|
46604
|
-
createElementVNode("div", {
|
|
46605
|
-
class: "bm-upload__picture-result__icon bm-upload__picture-result__icon--delete",
|
|
46606
|
-
onClick: ($event) => _ctx.deleteFile(item.uid)
|
|
46607
|
-
}, null, 8, _hoisted_18)
|
|
46608
|
-
])) : createCommentVNode("v-if", true)
|
|
46609
|
-
], 40, _hoisted_13)) : createCommentVNode("v-if", true)
|
|
46610
|
-
], 2);
|
|
46611
|
-
}), 128)) : createCommentVNode("v-if", true),
|
|
46599
|
+
], 40, _hoisted_11)) : createCommentVNode("v-if", true)
|
|
46600
|
+
], 2);
|
|
46601
|
+
}), 128)),
|
|
46602
|
+
createCommentVNode(" </a-image-preview-group> ")
|
|
46603
|
+
], 2112)) : createCommentVNode("v-if", true),
|
|
46612
46604
|
!($setup.uploadDisabled && _ctx.extraConfigs?.hideDisabledBtn) ? (openBlock(), createBlock(_component_a_upload, mergeProps$1({ key: 1 }, _ctx.uploadConfigs, {
|
|
46613
46605
|
class: { "bm--upload__custom-button": _ctx.extraConfigs.myBtn },
|
|
46614
46606
|
onReject: _ctx.handleReject
|
|
46615
46607
|
}), {
|
|
46616
46608
|
default: withCtx(() => [
|
|
46617
46609
|
_ctx.extraConfigs.myBtn ? renderSlot(_ctx.$slots, "myBtn", { key: 0 }) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
46618
|
-
_ctx.uploadConfigs.listType === "picture-card" ? (openBlock(), createElementBlock("div",
|
|
46610
|
+
_ctx.uploadConfigs.listType === "picture-card" ? (openBlock(), createElementBlock("div", _hoisted_17, [
|
|
46619
46611
|
createVNode(_component_PlusOutlined),
|
|
46620
|
-
createElementVNode("div",
|
|
46621
|
-
_ctx.extraConfigs.tips && _ctx.extraConfigs.showTips ? (openBlock(), createElementBlock("div",
|
|
46622
|
-
])) : _ctx.uploadConfigs.listType === "text" ? (openBlock(), createElementBlock("div",
|
|
46612
|
+
createElementVNode("div", _hoisted_18, toDisplayString(_ctx.uploadConfigs.text || "\u4E0A\u4F20\u56FE\u7247"), 1),
|
|
46613
|
+
_ctx.extraConfigs.tips && _ctx.extraConfigs.showTips ? (openBlock(), createElementBlock("div", _hoisted_19, toDisplayString(_ctx.extraConfigs.tips), 1)) : createCommentVNode("v-if", true)
|
|
46614
|
+
])) : _ctx.uploadConfigs.listType === "text" ? (openBlock(), createElementBlock("div", _hoisted_20, [
|
|
46623
46615
|
createVNode(_component_a_button, {
|
|
46624
46616
|
class: normalizeClass(_ctx.extraConfigs.btnClass),
|
|
46625
46617
|
disabled: $setup.uploadDisabled && !_ctx.extraConfigs?.hideDisabledBtn
|
|
@@ -46630,39 +46622,39 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
46630
46622
|
]),
|
|
46631
46623
|
_: 1
|
|
46632
46624
|
}, 8, ["class", "disabled"]),
|
|
46633
|
-
_ctx.extraConfigs.tips && _ctx.extraConfigs.showTips ? (openBlock(), createElementBlock("div",
|
|
46625
|
+
_ctx.extraConfigs.tips && _ctx.extraConfigs.showTips ? (openBlock(), createElementBlock("div", _hoisted_21, toDisplayString(_ctx.extraConfigs.tips), 1)) : createCommentVNode("v-if", true)
|
|
46634
46626
|
])) : createCommentVNode("v-if", true)
|
|
46635
46627
|
], 2112))
|
|
46636
46628
|
]),
|
|
46637
46629
|
_: 3
|
|
46638
46630
|
}, 16, ["class", "onReject"])) : createCommentVNode("v-if", true),
|
|
46639
|
-
_ctx.uploadConfigs.listType === "text" && !_ctx.uploadConfigs.showSlotList ? (openBlock(), createElementBlock("div",
|
|
46631
|
+
_ctx.uploadConfigs.listType === "text" && !_ctx.uploadConfigs.showSlotList ? (openBlock(), createElementBlock("div", _hoisted_22, [
|
|
46640
46632
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.fileList, (item) => {
|
|
46641
46633
|
return openBlock(), createElementBlock("div", {
|
|
46642
46634
|
key: item,
|
|
46643
46635
|
class: "bm-upload__file"
|
|
46644
46636
|
}, [
|
|
46645
46637
|
!_ctx.uploadConfigs.showSlotList ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
46646
|
-
createElementVNode("div",
|
|
46647
|
-
|
|
46648
|
-
createElementVNode("div",
|
|
46638
|
+
createElementVNode("div", _hoisted_23, [
|
|
46639
|
+
_hoisted_24,
|
|
46640
|
+
createElementVNode("div", _hoisted_25, [
|
|
46649
46641
|
createVNode(_component_OverTooltips, {
|
|
46650
46642
|
title: item.name
|
|
46651
46643
|
}, null, 8, ["title"])
|
|
46652
46644
|
]),
|
|
46653
|
-
createElementVNode("div",
|
|
46645
|
+
createElementVNode("div", _hoisted_26, [
|
|
46654
46646
|
item.status === "error" ? (openBlock(), createElementBlock("div", {
|
|
46655
46647
|
key: 0,
|
|
46656
46648
|
class: "bm-upload__error-reload",
|
|
46657
46649
|
onClick: (e) => _ctx.reUpload(e, item.uid)
|
|
46658
|
-
}, null, 8,
|
|
46650
|
+
}, null, 8, _hoisted_27)) : createCommentVNode("v-if", true),
|
|
46659
46651
|
createElementVNode("div", {
|
|
46660
46652
|
class: "bm-upload__trash",
|
|
46661
46653
|
onClick: ($event) => _ctx.deleteFile(item.uid)
|
|
46662
|
-
}, null, 8,
|
|
46654
|
+
}, null, 8, _hoisted_28)
|
|
46663
46655
|
])
|
|
46664
46656
|
]),
|
|
46665
|
-
!item.isDoneDeloy || item.progress < 100 || item.status === "error" ? (openBlock(), createElementBlock("div",
|
|
46657
|
+
!item.isDoneDeloy || item.progress < 100 || item.status === "error" ? (openBlock(), createElementBlock("div", _hoisted_29, [
|
|
46666
46658
|
createVNode(_component_a_progress, {
|
|
46667
46659
|
type: "line",
|
|
46668
46660
|
"stroke-width": 2,
|
|
@@ -46685,32 +46677,18 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
46685
46677
|
onCancel: _ctx.handleClosePictureView
|
|
46686
46678
|
}, {
|
|
46687
46679
|
default: withCtx(() => [
|
|
46688
|
-
createElementVNode("div",
|
|
46689
|
-
|
|
46690
|
-
"img",
|
|
46691
|
-
"image",
|
|
46692
|
-
"png",
|
|
46693
|
-
"PNG",
|
|
46694
|
-
"image/png",
|
|
46695
|
-
"jpg",
|
|
46696
|
-
"JPG",
|
|
46697
|
-
"jpeg",
|
|
46698
|
-
"JPEG",
|
|
46699
|
-
"image/jpeg",
|
|
46700
|
-
"gif",
|
|
46701
|
-
"GIF",
|
|
46702
|
-
"image/gif"
|
|
46703
|
-
].includes(_ctx.onepViewImage.type) ? (openBlock(), createElementBlock("img", {
|
|
46680
|
+
createElementVNode("div", _hoisted_30, [
|
|
46681
|
+
_ctx.pictureFileTypes.includes(_ctx.onepViewImage.type) ? (openBlock(), createElementBlock("img", {
|
|
46704
46682
|
key: 0,
|
|
46705
46683
|
style: { "width": "100%" },
|
|
46706
46684
|
src: _ctx.onepViewImage.url,
|
|
46707
46685
|
alt: ""
|
|
46708
|
-
}, null, 8,
|
|
46686
|
+
}, null, 8, _hoisted_31)) : (openBlock(), createElementBlock("iframe", {
|
|
46709
46687
|
key: 1,
|
|
46710
46688
|
title: _ctx.onepViewImage.type,
|
|
46711
46689
|
style: { "width": "100%", "min-height": "600px" },
|
|
46712
46690
|
src: _ctx.onepViewImage.url
|
|
46713
|
-
}, null, 8,
|
|
46691
|
+
}, null, 8, _hoisted_32))
|
|
46714
46692
|
])
|
|
46715
46693
|
]),
|
|
46716
46694
|
_: 1
|