From 562fa7d478ddfabce5c3d296c4087be641415be7 Mon Sep 17 00:00:00 2001 From: "du.meimei" Date: Tue, 25 Mar 2025 19:11:58 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E9=97=AE=E5=8D=B7=E6=A0=87=E9=A2=98?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components.d.ts | 2 +- src/views/Home/components/LastSurvey/Index.vue | 9 ++++++++- src/views/Survey/Index.vue | 10 ++++++++++ 3 files changed, 19 insertions(+), 2 deletions(-) diff --git a/components.d.ts b/components.d.ts index bee3929..cc91605 100644 --- a/components.d.ts +++ b/components.d.ts @@ -2,7 +2,7 @@ // @ts-nocheck // Generated by unplugin-vue-components // Read more: https://github.com/vuejs/core/pull/3399 -export {}; +export {} /* prettier-ignore */ declare module 'vue' { diff --git a/src/views/Home/components/LastSurvey/Index.vue b/src/views/Home/components/LastSurvey/Index.vue index 67ac6ce..87adc4e 100644 --- a/src/views/Home/components/LastSurvey/Index.vue +++ b/src/views/Home/components/LastSurvey/Index.vue @@ -19,7 +19,7 @@ class="survey_con_title flex align-center" @click="$router.push({ path: '/preview', query: { sn: survey.sn } })" > -

+

{{ survey.answer_num }}份

@@ -194,6 +194,13 @@ const setImg = (code) => { line-height: 15px; text-align: center; } + .title { + display: inline-block; + max-width: 200px; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + } } .survey_con_label { diff --git a/src/views/Survey/Index.vue b/src/views/Survey/Index.vue index ccda9a5..3817063 100644 --- a/src/views/Survey/Index.vue +++ b/src/views/Survey/Index.vue @@ -366,8 +366,18 @@ onMounted(() => { } .survey_item_info_title { + display: flex; .el-text { font-size: 15px; + + // 添加以下样式处理文本溢出 + &:first-child { + display: inline-block; + max-width: 200px; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + } } & > :nth-child(2) {