From 3f108ab9b7e03e4ec05a02e239e6b51360b1f950 Mon Sep 17 00:00:00 2001 From: 670788339 <670788339@qq.com> Date: Tue, 4 Nov 2025 18:26:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Course/courseTag.vue | 22 ++++++++++++++++++++++ src/views/portal/course/Index.vue | 9 +++++++++ 2 files changed, 31 insertions(+) diff --git a/src/components/Course/courseTag.vue b/src/components/Course/courseTag.vue index 6a96b6f0..7dc8e892 100644 --- a/src/components/Course/courseTag.vue +++ b/src/components/Course/courseTag.vue @@ -345,4 +345,26 @@ export default { line-height: 25px; /* 垂直居中文字 */ box-sizing: border-box; /* 确保padding包含在height内 */ } + +::v-deep(.el-select__tags) { + display: flex; + flex-wrap: wrap; + align-items: center; +} + +::v-deep(.el-tag) { + flex: 0 0 calc(50% - 8px); + max-width: calc(50% - 8px); + box-sizing: border-box; + margin-right: 8px; + margin-bottom: 4px; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} + +::v-deep(.el-select__input) { + flex: 1; + min-width: 60px; +} diff --git a/src/views/portal/course/Index.vue b/src/views/portal/course/Index.vue index be245c02..2eaa8c3a 100644 --- a/src/views/portal/course/Index.vue +++ b/src/views/portal/course/Index.vue @@ -1754,6 +1754,15 @@ handleClearTags() {