From 6ee3160e61061db0816a5006f5e5dada6686b815 Mon Sep 17 00:00:00 2001 From: justin3go Date: Sat, 15 Apr 2023 11:52:30 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E9=80=82=E9=85=8Diphone5=E6=9C=BA?= =?UTF-8?q?=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/commonCard.vue | 25 +++++++++--------- src/components/quickEntryCard.vue | 2 +- src/pages/index/index.vue | 10 ++++++- src/pages/me/index.vue | 44 +++++++++++++++---------------- 4 files changed, 45 insertions(+), 36 deletions(-) diff --git a/src/components/commonCard.vue b/src/components/commonCard.vue index 935bffe..bb5f11f 100644 --- a/src/components/commonCard.vue +++ b/src/components/commonCard.vue @@ -8,15 +8,6 @@ - @@ -64,8 +64,7 @@ const props = withDefaults(defineProps(), { secondBtnData: "", }); const emit = defineEmits(); -const btnContainerWidth = props.secondBtn ? "160px" : "80px"; -const btnContainerMarginLeft = props.secondBtn ? "60%" : "80%"; +const btnContainerWidth = props.secondBtn ? "170px" : "80px"; function clickAction() { emit("clickAction"); @@ -132,10 +131,12 @@ function secondBtnClick() { } .actions { width: 100%; + display: flex; + direction: rtl; .btn-container { display: flex; width: v-bind(btnContainerWidth); - margin: 20px 0 0 v-bind(btnContainerMarginLeft); + margin: 20px 0 0 0; } } } diff --git a/src/components/quickEntryCard.vue b/src/components/quickEntryCard.vue index 17aea59..baf152c 100644 --- a/src/components/quickEntryCard.vue +++ b/src/components/quickEntryCard.vue @@ -19,7 +19,7 @@ interface propsI { const props = withDefaults(defineProps(), { containerHeight: "80px", - containerWidth: "190px", + containerWidth: "48vw", }); const height = props.containerHeight; const width = props.containerWidth; diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index 124f718..d7362b4 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -23,7 +23,7 @@ {{ questionnaireCount }} - 待填问卷 + 待填