From 64cccbccf82e4eb7b11a181c481b26de12e33d99 Mon Sep 17 00:00:00 2001 From: popWheat <49830650+j10ccc@users.noreply.github.com> Date: Tue, 12 Nov 2024 11:50:33 +0800 Subject: [PATCH] refactor(questionnaire): rewrite in hooks (#152) --- src/components/Questionnaire/index.scss | 5 +-- src/components/Questionnaire/index.vue | 42 ++++++++++--------------- src/constants/updateInfo.ts | 1 + 3 files changed, 20 insertions(+), 28 deletions(-) diff --git a/src/components/Questionnaire/index.scss b/src/components/Questionnaire/index.scss index 43a26353..b2448e89 100644 --- a/src/components/Questionnaire/index.scss +++ b/src/components/Questionnaire/index.scss @@ -29,10 +29,11 @@ max-height: 500px; margin-top: 0.5rem; border-top: 2Px solid var(--wjh-color-border); - transition: all 0.3s; + transition: max-height 0.3s; } .questionnaire-title { + flex: 1; font-size: 1.3rem; display: flex; align-items: center; @@ -64,4 +65,4 @@ line-height: 200%; } -} +} \ No newline at end of file diff --git a/src/components/Questionnaire/index.vue b/src/components/Questionnaire/index.vue index fe229345..3342cb60 100644 --- a/src/components/Questionnaire/index.vue +++ b/src/components/Questionnaire/index.vue @@ -5,12 +5,12 @@ icon-name="questionnaire" > - + 调查问卷 -