From b5a81503a82c70464054366dd93ddf896e6ca3aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=9B=AE=E6=A3=83?= Date: Fri, 22 Mar 2024 17:14:37 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=A9=20=E8=84=91=E6=B5=8B=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F&=E9=80=BB=E8=BE=91=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/func/confirm.vue | 3 + src/components/main/t-postcard.vue | 22 +++++- src/pages/common/PostCollect.vue | 123 ++++++++++++++++++++++------- src/types/Component/Confirm.d.ts | 4 +- 4 files changed, 121 insertions(+), 31 deletions(-) diff --git a/src/components/func/confirm.vue b/src/components/func/confirm.vue index b9612967..2bcdb170 100644 --- a/src/components/func/confirm.vue +++ b/src/components/func/confirm.vue @@ -85,6 +85,9 @@ async function displayBox( data.text = params.text ?? ""; data.mode = params.mode ?? "confirm"; data.otcancel = params.otcancel ?? true; + if (params.mode === "input" && params.input) { + inputVal.value = params.input; + } show.value = true; // 等待确认框关闭,返回关闭后的confirmVal return await new Promise((resolve) => { diff --git a/src/components/main/t-postcard.vue b/src/components/main/t-postcard.vue index 461cb7e2..21f5b3e2 100644 --- a/src/components/main/t-postcard.vue +++ b/src/components/main/t-postcard.vue @@ -42,21 +42,30 @@ {{ card.forum.name }} + +
+ +