From 572180234f1f82a96c75511a5e51938758be1699 Mon Sep 17 00:00:00 2001 From: BTMuli Date: Sat, 28 Feb 2026 18:10:20 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20=E8=B0=83=E6=95=B4=E6=B5=AE?= =?UTF-8?q?=E7=AA=97=E4=BF=A1=E6=81=AF=E6=98=BE=E7=A4=BA=E9=80=BB=E8=BE=91?= =?UTF-8?q?=EF=BC=8C=E4=BC=98=E5=8C=96=E8=87=AA=E5=AE=9A=E4=B9=89=E8=A1=A8?= =?UTF-8?q?=E6=83=85label=E6=98=BE=E7=A4=BA=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/viewPost/tp-emoticon.vue | 9 ++++++--- src/components/viewPost/vp-overlay-image.vue | 17 ++++++++++------- 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/src/components/viewPost/tp-emoticon.vue b/src/components/viewPost/tp-emoticon.vue index 147a914f..7f7bf6eb 100644 --- a/src/components/viewPost/tp-emoticon.vue +++ b/src/components/viewPost/tp-emoticon.vue @@ -8,9 +8,7 @@ @click="handleEmoticonClick" @error="handleEmoticonError" /> -
- 自定义表情 -
+
自定义表情
@@ -86,6 +84,11 @@ const image = computed(() => ({ size: props.data.insert.custom_emoticon.size.file_size, }, })); +const showLabel = computed(() => { + if (props.data.insert.custom_emoticon.size.width > 100) return true; + if (!emoticonEl.value) return false; + return emoticonEl.value.clientWidth > 100; +}); console.log("tp-emoticon", props.data.insert.custom_emoticon); diff --git a/src/components/viewPost/vp-overlay-image.vue b/src/components/viewPost/vp-overlay-image.vue index fc0c476b..a8bf5fc5 100644 --- a/src/components/viewPost/vp-overlay-image.vue +++ b/src/components/viewPost/vp-overlay-image.vue @@ -30,7 +30,10 @@ 大小: {{ bytesToSize(props.image.attributes.size ?? 0) }} - + 尺寸: {{ props.image.attributes.width }}x{{ props.image.attributes.height }} @@ -41,19 +44,19 @@
- + mdi-format-color-fill - mdi-magnify - mdi-content-copy - mdi-download - mdi-close + mdi-magnify + mdi-content-copy + mdi-download + mdi-close
-