From 59c1fc9621745300504e092f4c03a717102f7877 Mon Sep 17 00:00:00 2001 From: BTMuli Date: Thu, 18 Sep 2025 23:19:59 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20=E4=BC=98=E5=8C=96=E6=BB=9A?= =?UTF-8?q?=E5=8A=A8=E6=88=AA=E5=B1=8F=E5=A4=84=E7=90=86=EF=BC=8C=E8=B0=83?= =?UTF-8?q?=E6=95=B4=E6=8A=BD=E5=A5=96=E6=B5=AE=E7=AA=97UI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/app/t-postcard.vue | 1 - src/components/viewPost/tp-backupText.vue | 15 +- .../viewPost/vp-overlay-lottery.vue | 165 ++++++++++++------ src/utils/TGShare.ts | 6 +- 4 files changed, 120 insertions(+), 67 deletions(-) diff --git a/src/components/app/t-postcard.vue b/src/components/app/t-postcard.vue index e3badf7c..3f4d7414 100644 --- a/src/components/app/t-postcard.vue +++ b/src/components/app/t-postcard.vue @@ -262,7 +262,6 @@ function getPostCard(item: TGApp.BBS.Post.FullData): RenderCard { commonCard.subtitle = `${startTime} - ${endTime}`; commonCard.status = statusInfo; } - console.log(commonCard); return commonCard; } diff --git a/src/components/viewPost/tp-backupText.vue b/src/components/viewPost/tp-backupText.vue index 5eb2a397..e0aabb23 100644 --- a/src/components/viewPost/tp-backupText.vue +++ b/src/components/viewPost/tp-backupText.vue @@ -5,7 +5,7 @@ class="tp-backup-lottery" :title="`ID: ${props.data.insert.lottery.id}`" > - mdi-gift + mdi-gift-outline {{ props.data.insert.lottery.toast }} diff --git a/src/utils/TGShare.ts b/src/utils/TGShare.ts index d998814a..7841c1b4 100644 --- a/src/utils/TGShare.ts +++ b/src/utils/TGShare.ts @@ -1,7 +1,7 @@ /** * @file utils/TGShare.ts * @description 生成分享截图并保存到本地 - * @since Beta v0.7.7 + * @since Beta v0.8.2 */ import showSnackbar from "@comp/func/snackbar.js"; @@ -86,7 +86,7 @@ function getShareImgBgColor(): string { /** * @description 生成分享截图 - * @since Beta v0.7.7 + * @since Beta v0.8.2 * @param {string} fileName - 文件名 * @param {HTMLElement} element - 元素 * @param {number} scale - 缩放比例 @@ -103,7 +103,7 @@ export async function generateShareImg( const maxHeight = element.style.maxHeight; if (scrollable) element.style.maxHeight = "100%"; const width = element.clientWidth + 30; - const height = element.clientHeight + 30; + const height = (scrollable ? element.scrollHeight : element.clientHeight) + 30; canvas.width = width * scale; canvas.height = height * scale; const opts = {