From c10f2c91bdadf8a222dcd68ac11ae1b9be4afc83 Mon Sep 17 00:00:00 2001
From: rd <1344903914@qq.com>
Date: Thu, 7 Aug 2025 11:47:02 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20=E8=BD=AE=E6=92=AD=E5=9B=BE=E4=BA=A4?=
=?UTF-8?q?=E4=BA=92=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../check/components/content-card/index.vue | 37 +++++++++++++------
.../check/components/content-card/style.scss | 28 ++++++++++----
2 files changed, 46 insertions(+), 19 deletions(-)
diff --git a/src/views/creative-generation-workshop/manuscript/check/components/content-card/index.vue b/src/views/creative-generation-workshop/manuscript/check/components/content-card/index.vue
index cc047d7..65111b7 100644
--- a/src/views/creative-generation-workshop/manuscript/check/components/content-card/index.vue
+++ b/src/views/creative-generation-workshop/manuscript/check/components/content-card/index.vue
@@ -104,6 +104,18 @@ export default {
const handleSelectImage = (item) => {
emit('selectImage', item);
};
+ const onDeleteImage = (e, item, index) => {
+ e.stopPropagation();
+
+ const _newFiles = cloneDeep(props.modelValue.files);
+ _newFiles.splice(index, 1);
+
+ if (item.id === props.selectedImageInfo.id) {
+ emit('selectImage', _newFiles.length ? _newFiles[0] : {});
+ }
+
+ emit('filesChange', _newFiles);
+ };
const renderUpload = (UploadBtn, action = 'upload') => {
return (
@@ -228,14 +240,14 @@ export default {
width={370}
height={370}
preview={false}
- class="flex items-center justify-center mb-16px"
+ class="flex items-center justify-center mb-8px"
fit="contain"
v-slots={{
error: () => ,
}}
/>
-