From 8df2d459323ce2a2b956f19de91fdd697694d081 Mon Sep 17 00:00:00 2001
From: KellerCai <2233768403@qq.com>
Date: Sun, 9 Oct 2022 23:04:46 +0800
Subject: [PATCH] feat: upgrade tags view (#20)
---
src/layout/components/TagsView/ScrollPane.vue | 82 +++++++++++++++++--
src/layout/components/TagsView/index.vue | 5 +-
src/styles/variables.css | 1 +
3 files changed, 78 insertions(+), 10 deletions(-)
diff --git a/src/layout/components/TagsView/ScrollPane.vue b/src/layout/components/TagsView/ScrollPane.vue
index eec31e4..438f4af 100644
--- a/src/layout/components/TagsView/ScrollPane.vue
+++ b/src/layout/components/TagsView/ScrollPane.vue
@@ -1,15 +1,81 @@
+
+
-
-
-
+
diff --git a/src/layout/components/TagsView/index.vue b/src/layout/components/TagsView/index.vue
index 11b0436..1bae2d7 100644
--- a/src/layout/components/TagsView/index.vue
+++ b/src/layout/components/TagsView/index.vue
@@ -198,6 +198,7 @@ onMounted(() => {
height: 26px;
line-height: 26px;
border: 1px solid var(--v3-tagsview-tag-border-color);
+ border-radius: var(--v3-tagsview-tag-border-radius);
color: var(--v3-tagsview-tag-text-color);
background-color: var(--v3-tagsview-tag-bg-color);
padding: 0 8px;
@@ -205,10 +206,10 @@ onMounted(() => {
margin-left: 5px;
margin-top: 4px;
&:first-of-type {
- margin-left: 15px;
+ margin-left: 5px;
}
&:last-of-type {
- margin-right: 15px;
+ margin-right: 5px;
}
&.active {
background-color: var(--v3-tagsview-tag-active-bg-color);
diff --git a/src/styles/variables.css b/src/styles/variables.css
index 2c71c15..5383f70 100644
--- a/src/styles/variables.css
+++ b/src/styles/variables.css
@@ -24,6 +24,7 @@
--v3-tagsview-tag-active-text-color: #ffffff;
--v3-tagsview-tag-bg-color: #ffffff;
--v3-tagsview-tag-active-bg-color: #409eff;
+ --v3-tagsview-tag-border-radius: 2px;
--v3-tagsview-tag-border-color: #d8dce5;
--v3-tagsview-tag-active-border-color: #409eff;
--v3-tagsview-tag-active-before-color: #ffffff;