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/es/components/float-table/index.d.ts +2 -2
- package/es/components/float-table/src/float-table.vue.d.ts +2 -2
- package/es/components/staffs-selector/src/multipleCmp.vue.d.ts +2 -2
- package/es/components/upload/index.d.ts +2 -2
- package/es/components/upload/index.js +188 -208
- package/es/components/upload/src/upload.vue.d.ts +2 -2
- package/index.esm.js +187 -207
- package/index.js +187 -207
- package/lib/components/float-table/index.d.ts +2 -2
- package/lib/components/float-table/src/float-table.vue.d.ts +2 -2
- package/lib/components/staffs-selector/src/multipleCmp.vue.d.ts +2 -2
- package/lib/components/upload/index.d.ts +2 -2
- package/lib/components/upload/index.js +187 -207
- package/lib/components/upload/src/upload.vue.d.ts +2 -2
- package/package.json +1 -1
- package/theme-chalk/feedback.css +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/upload.css +1 -1
- package/types/components/float-table/index.d.ts +2 -2
- package/types/components/float-table/src/float-table.vue.d.ts +2 -2
- package/types/components/staffs-selector/src/multipleCmp.vue.d.ts +2 -2
- package/types/components/upload/index.d.ts +2 -2
- package/types/components/upload/src/upload.vue.d.ts +2 -2
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,
|
|
@@ -46138,7 +46138,6 @@ const _sfc_main$3 = {
|
|
|
46138
46138
|
picClass: "",
|
|
46139
46139
|
alignCenter: false,
|
|
46140
46140
|
canNotViewAccept: ".rar,.zip",
|
|
46141
|
-
fileDetail: true,
|
|
46142
46141
|
myBtn: false
|
|
46143
46142
|
},
|
|
46144
46143
|
uploadConfigs: {
|
|
@@ -46177,7 +46176,22 @@ const _sfc_main$3 = {
|
|
|
46177
46176
|
}, 1e3);
|
|
46178
46177
|
methods.customUploadRequest(file);
|
|
46179
46178
|
}
|
|
46180
|
-
}
|
|
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
|
+
]
|
|
46181
46195
|
});
|
|
46182
46196
|
const methods = {
|
|
46183
46197
|
updateUploadProgress(file, progress) {
|
|
@@ -46216,18 +46230,18 @@ const _sfc_main$3 = {
|
|
|
46216
46230
|
if (methods.fileIsDelete(file)) {
|
|
46217
46231
|
return;
|
|
46218
46232
|
}
|
|
46219
|
-
emit("successFile", data);
|
|
46220
46233
|
state.fileList[file.uid].status = "success";
|
|
46221
46234
|
let uri = data?.url;
|
|
46222
|
-
let item =
|
|
46235
|
+
let item = {
|
|
46223
46236
|
name: file.name,
|
|
46224
46237
|
size: file.size,
|
|
46225
46238
|
type: file.type,
|
|
46226
46239
|
uid: file.uid,
|
|
46227
46240
|
url: uri
|
|
46228
|
-
}
|
|
46241
|
+
};
|
|
46229
46242
|
state.uploadedList.push(item);
|
|
46230
46243
|
state.fileList[file.uid].url = uri;
|
|
46244
|
+
emit("successFile", data);
|
|
46231
46245
|
emit("success", state.uploadedList);
|
|
46232
46246
|
emit("update", state.uploadedList);
|
|
46233
46247
|
},
|
|
@@ -46241,10 +46255,13 @@ const _sfc_main$3 = {
|
|
|
46241
46255
|
emit("error", error);
|
|
46242
46256
|
},
|
|
46243
46257
|
async deleteFile(uid) {
|
|
46244
|
-
|
|
46245
|
-
emit("deleteFile", state.fileList[uid]);
|
|
46246
|
-
state.uploadedList.splice(index, 1);
|
|
46258
|
+
let targetFile = state.fileList[uid];
|
|
46247
46259
|
delete state.fileList[uid];
|
|
46260
|
+
const index = state.uploadedList.findIndex((ele) => ele.url === targetFile.url);
|
|
46261
|
+
if (index !== -1) {
|
|
46262
|
+
state.uploadedList.splice(index, 1);
|
|
46263
|
+
}
|
|
46264
|
+
emit("deleteFile", targetFile);
|
|
46248
46265
|
emit("delete", state.uploadedList);
|
|
46249
46266
|
emit("update", state.uploadedList);
|
|
46250
46267
|
},
|
|
@@ -46255,24 +46272,9 @@ const _sfc_main$3 = {
|
|
|
46255
46272
|
state.onepViewImageHover[uid] = false;
|
|
46256
46273
|
},
|
|
46257
46274
|
viewOnePicture(item) {
|
|
46258
|
-
if (
|
|
46259
|
-
"img",
|
|
46260
|
-
"image",
|
|
46261
|
-
"png",
|
|
46262
|
-
"PNG",
|
|
46263
|
-
"image/png",
|
|
46264
|
-
"jpg",
|
|
46265
|
-
"JPG",
|
|
46266
|
-
"jpeg",
|
|
46267
|
-
"JPEG",
|
|
46268
|
-
"image/jpeg",
|
|
46269
|
-
"gif",
|
|
46270
|
-
"GIF",
|
|
46271
|
-
"image/gif"
|
|
46272
|
-
].includes(item.type.toLowerCase())) {
|
|
46275
|
+
if (state.pictureFileTypes.includes(item.type.toLowerCase())) {
|
|
46273
46276
|
state.previewVisible = true;
|
|
46274
46277
|
state.onepViewImage = item;
|
|
46275
|
-
return;
|
|
46276
46278
|
}
|
|
46277
46279
|
emit("previewFile", item);
|
|
46278
46280
|
},
|
|
@@ -46416,57 +46418,53 @@ const _hoisted_5$1 = ["src"];
|
|
|
46416
46418
|
const _hoisted_6$1 = ["src"];
|
|
46417
46419
|
const _hoisted_7$1 = ["src"];
|
|
46418
46420
|
const _hoisted_8$1 = ["src"];
|
|
46419
|
-
const _hoisted_9 = ["
|
|
46420
|
-
const _hoisted_10 =
|
|
46421
|
-
|
|
46422
|
-
|
|
46423
|
-
|
|
46424
|
-
const
|
|
46425
|
-
const _hoisted_12 = ["onClick"];
|
|
46426
|
-
const _hoisted_13 = ["onMouseenter", "onMouseleave"];
|
|
46427
|
-
const _hoisted_14 = /* @__PURE__ */ createElementVNode("div", { class: "bm-upload__picture-error__image" }, null, -1);
|
|
46428
|
-
const _hoisted_15 = /* @__PURE__ */ createElementVNode("div", null, "\u4E0A\u4F20\u9519\u8BEF", -1);
|
|
46429
|
-
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 = {
|
|
46430
46427
|
key: 0,
|
|
46431
46428
|
class: "bm-upload__picture-result__cover"
|
|
46432
46429
|
};
|
|
46433
|
-
const
|
|
46434
|
-
const
|
|
46435
|
-
const
|
|
46430
|
+
const _hoisted_15 = ["onClick"];
|
|
46431
|
+
const _hoisted_16 = ["onClick"];
|
|
46432
|
+
const _hoisted_17 = {
|
|
46436
46433
|
key: 0,
|
|
46437
46434
|
style: { "font-size": "24px", "color": "#9393a3" }
|
|
46438
46435
|
};
|
|
46439
|
-
const
|
|
46440
|
-
const
|
|
46436
|
+
const _hoisted_18 = { class: "ant-upload-text bm-upload__text" };
|
|
46437
|
+
const _hoisted_19 = {
|
|
46441
46438
|
key: 0,
|
|
46442
46439
|
class: "bm-upload__tips"
|
|
46443
46440
|
};
|
|
46444
|
-
const
|
|
46445
|
-
const
|
|
46441
|
+
const _hoisted_20 = { key: 1 };
|
|
46442
|
+
const _hoisted_21 = {
|
|
46446
46443
|
key: 0,
|
|
46447
46444
|
class: "bm-upload__tips"
|
|
46448
46445
|
};
|
|
46449
|
-
const
|
|
46446
|
+
const _hoisted_22 = {
|
|
46450
46447
|
key: 2,
|
|
46451
46448
|
class: "bm-upload__file-list"
|
|
46452
46449
|
};
|
|
46453
|
-
const
|
|
46454
|
-
const
|
|
46450
|
+
const _hoisted_23 = { class: "bm-upload__file__detail" };
|
|
46451
|
+
const _hoisted_24 = /* @__PURE__ */ createElementVNode("div", { class: "bm-upload__file__icon" }, [
|
|
46455
46452
|
/* @__PURE__ */ createElementVNode("div", { class: "bm-upload__attachment" })
|
|
46456
46453
|
], -1);
|
|
46457
|
-
const
|
|
46458
|
-
const
|
|
46459
|
-
const
|
|
46460
|
-
const
|
|
46461
|
-
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 = {
|
|
46462
46459
|
key: 0,
|
|
46463
46460
|
class: "bm-upload__progress"
|
|
46464
46461
|
};
|
|
46465
|
-
const
|
|
46466
|
-
const
|
|
46467
|
-
const
|
|
46462
|
+
const _hoisted_30 = { style: { "padding-top": "20px" } };
|
|
46463
|
+
const _hoisted_31 = ["src"];
|
|
46464
|
+
const _hoisted_32 = ["title", "src"];
|
|
46468
46465
|
function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
46469
46466
|
const _component_a_progress = resolveComponent("a-progress");
|
|
46467
|
+
const _component_a_image = resolveComponent("a-image");
|
|
46470
46468
|
const _component_PlusOutlined = resolveComponent("PlusOutlined");
|
|
46471
46469
|
const _component_UploadOutlined = resolveComponent("UploadOutlined");
|
|
46472
46470
|
const _component_a_button = resolveComponent("a-button");
|
|
@@ -46479,145 +46477,141 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
46479
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
|
|
46480
46478
|
}])
|
|
46481
46479
|
}, [
|
|
46482
|
-
_ctx.uploadConfigs.listType === "picture-card" ? (openBlock(
|
|
46483
|
-
|
|
46484
|
-
|
|
46485
|
-
|
|
46486
|
-
|
|
46487
|
-
|
|
46488
|
-
|
|
46489
|
-
|
|
46490
|
-
|
|
46491
|
-
|
|
46492
|
-
|
|
46493
|
-
|
|
46494
|
-
|
|
46495
|
-
|
|
46496
|
-
|
|
46497
|
-
|
|
46498
|
-
|
|
46499
|
-
|
|
46500
|
-
|
|
46501
|
-
|
|
46502
|
-
|
|
46503
|
-
|
|
46504
|
-
onMouseleave: ($event) => _ctx.pictureHoverLeave(item.uid),
|
|
46505
|
-
onClick: _cache[0] || (_cache[0] = (e) => e.stopPropagation())
|
|
46506
|
-
}, [
|
|
46507
|
-
["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", {
|
|
46508
46502
|
key: 0,
|
|
46509
|
-
class: "bm-upload__picture-
|
|
46510
|
-
|
|
46511
|
-
|
|
46512
|
-
|
|
46513
|
-
|
|
46514
|
-
"
|
|
46515
|
-
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
|
|
46516
|
-
].includes(item.type) ? (openBlock(), createElementBlock("img", {
|
|
46517
|
-
key: 1,
|
|
46518
|
-
class: "bm-upload__picture-result__image",
|
|
46519
|
-
src: $setup.icons.excel,
|
|
46520
|
-
alt: "avatar"
|
|
46521
|
-
}, null, 8, _hoisted_5$1)) : [
|
|
46522
|
-
"ppt",
|
|
46523
|
-
"PPT",
|
|
46524
|
-
"application/vnd.ms-powerpoint",
|
|
46525
|
-
"pptx",
|
|
46526
|
-
"PPTX",
|
|
46527
|
-
"application/vnd.openxmlformats-officedocument.presentationml.presentation"
|
|
46528
|
-
].includes(item.type) ? (openBlock(), createElementBlock("img", {
|
|
46529
|
-
key: 2,
|
|
46530
|
-
class: "bm-upload__picture-result__image",
|
|
46531
|
-
src: $setup.icons.ppt,
|
|
46532
|
-
alt: "avatar"
|
|
46533
|
-
}, null, 8, _hoisted_6$1)) : [
|
|
46534
|
-
"doc",
|
|
46535
|
-
"DOC",
|
|
46536
|
-
"application/msword",
|
|
46537
|
-
"docx",
|
|
46538
|
-
"DOCX",
|
|
46539
|
-
"application/vnd.openxmlformats-officedocument.wordprocessingml.document"
|
|
46540
|
-
].includes(item.type) ? (openBlock(), createElementBlock("img", {
|
|
46541
|
-
key: 3,
|
|
46542
|
-
class: "bm-upload__picture-result__image",
|
|
46543
|
-
src: $setup.icons.doc,
|
|
46544
|
-
alt: "avatar"
|
|
46545
|
-
}, null, 8, _hoisted_7$1)) : [
|
|
46546
|
-
"img",
|
|
46547
|
-
"image",
|
|
46548
|
-
"png",
|
|
46549
|
-
"PNG",
|
|
46550
|
-
"image/png",
|
|
46551
|
-
"jpg",
|
|
46552
|
-
"JPG",
|
|
46553
|
-
"jpeg",
|
|
46554
|
-
"JPEG",
|
|
46555
|
-
"image/jpeg",
|
|
46556
|
-
"gif",
|
|
46557
|
-
"GIF",
|
|
46558
|
-
"image/gif"
|
|
46559
|
-
].includes(item.type) ? (openBlock(), createElementBlock("img", {
|
|
46560
|
-
key: 4,
|
|
46561
|
-
class: "bm-upload__picture-result__image",
|
|
46562
|
-
src: item.url,
|
|
46563
|
-
alt: "avatar"
|
|
46564
|
-
}, null, 8, _hoisted_8$1)) : (openBlock(), createElementBlock("img", {
|
|
46565
|
-
key: 5,
|
|
46566
|
-
class: "bm-upload__picture-result__image",
|
|
46567
|
-
src: $setup.icons.others,
|
|
46568
|
-
alt: "avatar"
|
|
46569
|
-
}, null, 8, _hoisted_9)),
|
|
46570
|
-
_ctx.onepViewImageHover[item.uid] ? (openBlock(), createElementBlock("div", _hoisted_10, [
|
|
46571
|
-
!_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", {
|
|
46572
46509
|
key: 0,
|
|
46573
|
-
class: "bm-upload__picture-
|
|
46574
|
-
|
|
46575
|
-
|
|
46576
|
-
|
|
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", {
|
|
46577
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", {
|
|
46578
46595
|
class: "bm-upload__picture-result__icon bm-upload__picture-result__icon--delete",
|
|
46579
46596
|
onClick: ($event) => _ctx.deleteFile(item.uid)
|
|
46580
|
-
}, null, 8,
|
|
46597
|
+
}, null, 8, _hoisted_16)
|
|
46581
46598
|
])) : createCommentVNode("v-if", true)
|
|
46582
|
-
], 40,
|
|
46583
|
-
|
|
46584
|
-
|
|
46585
|
-
|
|
46586
|
-
|
|
46587
|
-
createCommentVNode(" \u56FE\u7247\u9519\u8BEF\u5C55\u793A "),
|
|
46588
|
-
item.status === "error" ? (openBlock(), 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_14,
|
|
46596
|
-
_hoisted_15,
|
|
46597
|
-
_ctx.onepViewImageHover[item.uid] ? (openBlock(), createElementBlock("div", _hoisted_16, [
|
|
46598
|
-
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_17),
|
|
46602
|
-
createElementVNode("div", {
|
|
46603
|
-
class: "bm-upload__picture-result__icon bm-upload__picture-result__icon--delete",
|
|
46604
|
-
onClick: ($event) => _ctx.deleteFile(item.uid)
|
|
46605
|
-
}, null, 8, _hoisted_18)
|
|
46606
|
-
])) : createCommentVNode("v-if", true)
|
|
46607
|
-
], 40, _hoisted_13)) : createCommentVNode("v-if", true)
|
|
46608
|
-
], 2);
|
|
46609
|
-
}), 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),
|
|
46610
46604
|
!($setup.uploadDisabled && _ctx.extraConfigs?.hideDisabledBtn) ? (openBlock(), createBlock(_component_a_upload, mergeProps$1({ key: 1 }, _ctx.uploadConfigs, {
|
|
46611
46605
|
class: { "bm--upload__custom-button": _ctx.extraConfigs.myBtn },
|
|
46612
46606
|
onReject: _ctx.handleReject
|
|
46613
46607
|
}), {
|
|
46614
46608
|
default: withCtx(() => [
|
|
46615
46609
|
_ctx.extraConfigs.myBtn ? renderSlot(_ctx.$slots, "myBtn", { key: 0 }) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
46616
|
-
_ctx.uploadConfigs.listType === "picture-card" ? (openBlock(), createElementBlock("div",
|
|
46610
|
+
_ctx.uploadConfigs.listType === "picture-card" ? (openBlock(), createElementBlock("div", _hoisted_17, [
|
|
46617
46611
|
createVNode(_component_PlusOutlined),
|
|
46618
|
-
createElementVNode("div",
|
|
46619
|
-
_ctx.extraConfigs.tips && _ctx.extraConfigs.showTips ? (openBlock(), createElementBlock("div",
|
|
46620
|
-
])) : _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, [
|
|
46621
46615
|
createVNode(_component_a_button, {
|
|
46622
46616
|
class: normalizeClass(_ctx.extraConfigs.btnClass),
|
|
46623
46617
|
disabled: $setup.uploadDisabled && !_ctx.extraConfigs?.hideDisabledBtn
|
|
@@ -46628,39 +46622,39 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
46628
46622
|
]),
|
|
46629
46623
|
_: 1
|
|
46630
46624
|
}, 8, ["class", "disabled"]),
|
|
46631
|
-
_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)
|
|
46632
46626
|
])) : createCommentVNode("v-if", true)
|
|
46633
46627
|
], 2112))
|
|
46634
46628
|
]),
|
|
46635
46629
|
_: 3
|
|
46636
46630
|
}, 16, ["class", "onReject"])) : createCommentVNode("v-if", true),
|
|
46637
|
-
_ctx.uploadConfigs.listType === "text" && !_ctx.uploadConfigs.showSlotList ? (openBlock(), createElementBlock("div",
|
|
46631
|
+
_ctx.uploadConfigs.listType === "text" && !_ctx.uploadConfigs.showSlotList ? (openBlock(), createElementBlock("div", _hoisted_22, [
|
|
46638
46632
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.fileList, (item) => {
|
|
46639
46633
|
return openBlock(), createElementBlock("div", {
|
|
46640
46634
|
key: item,
|
|
46641
46635
|
class: "bm-upload__file"
|
|
46642
46636
|
}, [
|
|
46643
46637
|
!_ctx.uploadConfigs.showSlotList ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
46644
|
-
createElementVNode("div",
|
|
46645
|
-
|
|
46646
|
-
createElementVNode("div",
|
|
46638
|
+
createElementVNode("div", _hoisted_23, [
|
|
46639
|
+
_hoisted_24,
|
|
46640
|
+
createElementVNode("div", _hoisted_25, [
|
|
46647
46641
|
createVNode(_component_OverTooltips, {
|
|
46648
46642
|
title: item.name
|
|
46649
46643
|
}, null, 8, ["title"])
|
|
46650
46644
|
]),
|
|
46651
|
-
createElementVNode("div",
|
|
46645
|
+
createElementVNode("div", _hoisted_26, [
|
|
46652
46646
|
item.status === "error" ? (openBlock(), createElementBlock("div", {
|
|
46653
46647
|
key: 0,
|
|
46654
46648
|
class: "bm-upload__error-reload",
|
|
46655
46649
|
onClick: (e) => _ctx.reUpload(e, item.uid)
|
|
46656
|
-
}, null, 8,
|
|
46650
|
+
}, null, 8, _hoisted_27)) : createCommentVNode("v-if", true),
|
|
46657
46651
|
createElementVNode("div", {
|
|
46658
46652
|
class: "bm-upload__trash",
|
|
46659
46653
|
onClick: ($event) => _ctx.deleteFile(item.uid)
|
|
46660
|
-
}, null, 8,
|
|
46654
|
+
}, null, 8, _hoisted_28)
|
|
46661
46655
|
])
|
|
46662
46656
|
]),
|
|
46663
|
-
!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, [
|
|
46664
46658
|
createVNode(_component_a_progress, {
|
|
46665
46659
|
type: "line",
|
|
46666
46660
|
"stroke-width": 2,
|
|
@@ -46683,32 +46677,18 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
46683
46677
|
onCancel: _ctx.handleClosePictureView
|
|
46684
46678
|
}, {
|
|
46685
46679
|
default: withCtx(() => [
|
|
46686
|
-
createElementVNode("div",
|
|
46687
|
-
|
|
46688
|
-
"img",
|
|
46689
|
-
"image",
|
|
46690
|
-
"png",
|
|
46691
|
-
"PNG",
|
|
46692
|
-
"image/png",
|
|
46693
|
-
"jpg",
|
|
46694
|
-
"JPG",
|
|
46695
|
-
"jpeg",
|
|
46696
|
-
"JPEG",
|
|
46697
|
-
"image/jpeg",
|
|
46698
|
-
"gif",
|
|
46699
|
-
"GIF",
|
|
46700
|
-
"image/gif"
|
|
46701
|
-
].includes(_ctx.onepViewImage.type) ? (openBlock(), createElementBlock("img", {
|
|
46680
|
+
createElementVNode("div", _hoisted_30, [
|
|
46681
|
+
_ctx.pictureFileTypes.includes(_ctx.onepViewImage.type) ? (openBlock(), createElementBlock("img", {
|
|
46702
46682
|
key: 0,
|
|
46703
46683
|
style: { "width": "100%" },
|
|
46704
46684
|
src: _ctx.onepViewImage.url,
|
|
46705
46685
|
alt: ""
|
|
46706
|
-
}, null, 8,
|
|
46686
|
+
}, null, 8, _hoisted_31)) : (openBlock(), createElementBlock("iframe", {
|
|
46707
46687
|
key: 1,
|
|
46708
46688
|
title: _ctx.onepViewImage.type,
|
|
46709
46689
|
style: { "width": "100%", "min-height": "600px" },
|
|
46710
46690
|
src: _ctx.onepViewImage.url
|
|
46711
|
-
}, null, 8,
|
|
46691
|
+
}, null, 8, _hoisted_32))
|
|
46712
46692
|
])
|
|
46713
46693
|
]),
|
|
46714
46694
|
_: 1
|