sctj-components 1.0.83 → 1.0.84
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/lib/sctj-components.es.js +16 -10
- package/lib/sctj-components.umd.js +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
|
@@ -130,7 +130,7 @@ const _sfc_main$v = {
|
|
|
130
130
|
};
|
|
131
131
|
const index$2 = "";
|
|
132
132
|
const index$1 = "";
|
|
133
|
-
const
|
|
133
|
+
const index_vue_vue_type_style_index_0_scoped_3ae88961_lang = "";
|
|
134
134
|
const index_vue_vue_type_style_index_1_lang = "";
|
|
135
135
|
const _hoisted_1$m = { class: "upload-file" };
|
|
136
136
|
const _hoisted_2$f = { class: "el-upload__tip" };
|
|
@@ -217,6 +217,7 @@ const _sfc_main$u = {
|
|
|
217
217
|
const uploadList = ref$1([]);
|
|
218
218
|
const fileList = ref$1([]);
|
|
219
219
|
const previewVisible = ref$1(false);
|
|
220
|
+
const previewVisibleImg = ref$1(false);
|
|
220
221
|
const previewUrl = ref$1("");
|
|
221
222
|
const previewType = ref$1("");
|
|
222
223
|
const loadingInstance = ref$1(null);
|
|
@@ -357,6 +358,11 @@ const _sfc_main$u = {
|
|
|
357
358
|
ElMessage.error(`\u6682\u4E0D\u652F\u6301${fileExt}\u6587\u4EF6\u7C7B\u578B\u7684\u5728\u7EBF\u9884\u89C8,\u8BF7\u4E0B\u8F7D\u540E\u67E5\u770B\uFF01`);
|
|
358
359
|
return;
|
|
359
360
|
}
|
|
361
|
+
if (previewType.value === "image") {
|
|
362
|
+
previewUrl.value = [file.url];
|
|
363
|
+
previewVisibleImg.value = true;
|
|
364
|
+
return;
|
|
365
|
+
}
|
|
360
366
|
previewUrl.value = file.url;
|
|
361
367
|
previewVisible.value = true;
|
|
362
368
|
};
|
|
@@ -369,8 +375,8 @@ const _sfc_main$u = {
|
|
|
369
375
|
const _component_el_button = resolveComponent("el-button");
|
|
370
376
|
const _component_el_upload = resolveComponent("el-upload");
|
|
371
377
|
const _component_el_icon = resolveComponent("el-icon");
|
|
372
|
-
const _component_el_image = resolveComponent("el-image");
|
|
373
378
|
const _component_el_dialog = resolveComponent("el-dialog");
|
|
379
|
+
const _component_el_image_viewer = resolveComponent("el-image-viewer");
|
|
374
380
|
return openBlock(), createElementBlock("div", _hoisted_1$m, [
|
|
375
381
|
!__props.disabled ? (openBlock(), createBlock(_component_el_upload, mergeProps({
|
|
376
382
|
key: 0,
|
|
@@ -502,22 +508,22 @@ const _sfc_main$u = {
|
|
|
502
508
|
previewType.value === "xlsx" ? (openBlock(), createBlock(unref(VueOfficeExcel), {
|
|
503
509
|
key: 2,
|
|
504
510
|
src: previewUrl.value
|
|
505
|
-
}, null, 8, ["src"])) : createCommentVNode("", true),
|
|
506
|
-
previewType.value === "image" ? (openBlock(), createBlock(_component_el_image, {
|
|
507
|
-
key: 3,
|
|
508
|
-
src: previewUrl.value,
|
|
509
|
-
style: { "width": "100%", "height": "99%" },
|
|
510
|
-
fit: "contain"
|
|
511
511
|
}, null, 8, ["src"])) : createCommentVNode("", true)
|
|
512
512
|
])
|
|
513
513
|
]),
|
|
514
514
|
_: 1
|
|
515
|
-
}, 8, ["modelValue"])
|
|
515
|
+
}, 8, ["modelValue"]),
|
|
516
|
+
previewVisibleImg.value ? (openBlock(), createBlock(_component_el_image_viewer, {
|
|
517
|
+
key: 2,
|
|
518
|
+
"url-list": previewUrl.value,
|
|
519
|
+
"show-progress": "",
|
|
520
|
+
onClose: _cache[1] || (_cache[1] = ($event) => previewVisibleImg.value = false)
|
|
521
|
+
}, null, 8, ["url-list"])) : createCommentVNode("", true)
|
|
516
522
|
]);
|
|
517
523
|
};
|
|
518
524
|
}
|
|
519
525
|
};
|
|
520
|
-
const SCTJFileUpload = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-
|
|
526
|
+
const SCTJFileUpload = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-3ae88961"]]);
|
|
521
527
|
const index_vue_vue_type_style_index_0_scoped_672e5149_lang = "";
|
|
522
528
|
const _hoisted_1$l = { class: "component-upload-image" };
|
|
523
529
|
const _hoisted_2$e = {
|