From 08c8488b67df59e02f0a160f6be2153b7004a462 Mon Sep 17 00:00:00 2001 From: rd <1344903914@qq.com> Date: Wed, 20 Aug 2025 10:16:59 +0800 Subject: [PATCH] =?UTF-8?q?feat:=201.=E5=B0=81=E8=A3=85=E5=A4=9A=E8=A1=8C?= =?UTF-8?q?=E6=A0=87=E7=AD=BE=E5=B1=95=E5=BC=80=E6=94=B6=E8=B5=B7=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=EF=BC=9B=202.=E9=A6=96=E9=A1=B5=E5=BC=80=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/expandable-tags/index.vue | 205 ++++++++++++++++++++++ src/components/expandable-tags/style.scss | 40 +++++ src/views/home/index.vue | 31 +++- src/views/home/style.scss | 6 + 4 files changed, 279 insertions(+), 3 deletions(-) create mode 100644 src/components/expandable-tags/index.vue create mode 100644 src/components/expandable-tags/style.scss diff --git a/src/components/expandable-tags/index.vue b/src/components/expandable-tags/index.vue new file mode 100644 index 0000000..446c32c --- /dev/null +++ b/src/components/expandable-tags/index.vue @@ -0,0 +1,205 @@ + + + diff --git a/src/components/expandable-tags/style.scss b/src/components/expandable-tags/style.scss new file mode 100644 index 0000000..93ba986 --- /dev/null +++ b/src/components/expandable-tags/style.scss @@ -0,0 +1,40 @@ +.expandable-tags-container { + width: 100%; + overflow: hidden; + .cts { + font-family: $font-family-regular; + font-size: 12px; + font-style: normal; + font-weight: 400; + } + .tag-list { + display: flex; + flex-wrap: wrap; + gap: 8px; + transition: all 0.3s; + .tag-item { + padding: 0 8px; + background-color: #f6f4ff; + border-radius: 4px; + transition: all 0.3s; + &.clickable { + cursor: pointer; + &:hover { + box-shadow: 0 4px 8px 0 rgba(109, 76, 254, 0.1); + } + } + } + .expand-btn { + transition: all 0.3s; + } + &.expand { + max-height: none !important; + .expand-btn { + .icon { + transform: rotate(180deg); + transition: all 0.3s; + } + } + } + } +} diff --git a/src/views/home/index.vue b/src/views/home/index.vue index 2b04cc1..77266a1 100644 --- a/src/views/home/index.vue +++ b/src/views/home/index.vue @@ -1,7 +1,8 @@ -