From 5ae09ce20e8cf39a75df8ed0285872c7d98e043f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=98=B1=E8=BE=BE?= Date: Sun, 23 Mar 2025 16:20:19 +0800 Subject: [PATCH] =?UTF-8?q?refactor(survey):=20=E4=BC=98=E5=8C=96=E9=97=AE?= =?UTF-8?q?=E5=8D=B7=E9=A2=84=E8=A7=88=E9=A1=B5=E9=9D=A2=E6=A0=B7=E5=BC=8F?= =?UTF-8?q?=E5=92=8C=E5=B8=83=E5=B1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 调整了 Choice、Completion 和 FileUpload 组件的样式- 优化了预览页面的滚动和固定元素布局 - 添加了底部支持信息的固定显示- 统一了样式和间距,提高了页面的视觉效果和用户体验 --- .../Design/components/Questions/Choice.vue | 16 ++++----- .../components/Questions/Completion.vue | 4 +-- .../components/Questions/FileUpload.vue | 18 +++++----- src/views/Survey/views/Create/Index.vue | 1 + src/views/Survey/views/Preview/Index.vue | 36 +++++++++++++------ 5 files changed, 44 insertions(+), 31 deletions(-) diff --git a/src/views/Design/components/Questions/Choice.vue b/src/views/Design/components/Questions/Choice.vue index f671f27..0723a69 100644 --- a/src/views/Design/components/Questions/Choice.vue +++ b/src/views/Design/components/Questions/Choice.vue @@ -167,17 +167,13 @@ const emitValue = () => { & .other-input { width: 100%; - height: 89px; - background: #ffffff; - padding: 3px 5px; - border: 1px solid #ccc; - border-radius: 8px; + min-height: 89px; + margin-top: 4px; + margin-bottom: 10px; + padding: 12px; + border: 1px solid #f4f4f4; + border-radius: 5px; outline: none; - // 禁止拖动 - -webkit-user-select: none; - -moz-user-select: none; - //textarea禁止扩大 - resize: none; } } diff --git a/src/views/Design/components/Questions/Completion.vue b/src/views/Design/components/Questions/Completion.vue index 90f102a..6f50df2 100644 --- a/src/views/Design/components/Questions/Completion.vue +++ b/src/views/Design/components/Questions/Completion.vue @@ -70,8 +70,8 @@ const emitValue = () => { .cont { .other_input { width: 100%; - min-height: 40px; - margin-top: 12px; + height: 89px; + margin-top: 10px; margin-bottom: 10px; padding: 12px; border: 1px solid #f4f4f4; diff --git a/src/views/Design/components/Questions/FileUpload.vue b/src/views/Design/components/Questions/FileUpload.vue index 1938982..8c1ca62 100644 --- a/src/views/Design/components/Questions/FileUpload.vue +++ b/src/views/Design/components/Questions/FileUpload.vue @@ -93,7 +93,7 @@ const emitValue = () => { @@ -102,21 +102,21 @@ const emitValue = () => { diff --git a/src/views/Survey/views/Create/Index.vue b/src/views/Survey/views/Create/Index.vue index e05eaf6..eb94ce7 100644 --- a/src/views/Survey/views/Create/Index.vue +++ b/src/views/Survey/views/Create/Index.vue @@ -944,6 +944,7 @@ onMounted(async () => { .survey-action { position: fixed; + z-index: 1; bottom: 0; display: flex; flex-direction: row; diff --git a/src/views/Survey/views/Preview/Index.vue b/src/views/Survey/views/Preview/Index.vue index bee8fe4..bae629e 100644 --- a/src/views/Survey/views/Preview/Index.vue +++ b/src/views/Survey/views/Preview/Index.vue @@ -475,13 +475,13 @@ @change-answer="onRelation($event, question)" /> -
- 由数字科技中心YIP提供支持 -
+ - +
+ 由数字科技中心YIP提供支持 +