Skip to content

Commit

Permalink
feat: add a plus to add tags
Browse files Browse the repository at this point in the history
  • Loading branch information
KUN1007 committed Oct 29, 2024
1 parent fd6ea1a commit b864ce1
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 5 deletions.
23 changes: 19 additions & 4 deletions components/edit/topic/Tags.vue
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,10 @@ watch(
@blur="isInputFocus = false"
/>

<span v-if="inputValue" class="add-tag" @click="handleAddTag">
<Icon name="lucide:plus" />
</span>

<div class="box1"></div>
<div class="box2" :class="isInputFocus ? 'box-active' : ''"></div>
</div>
Expand All @@ -135,11 +139,22 @@ watch(
align-items: center;
flex-wrap: wrap;
margin-bottom: 10px;
}
.tags-container {
display: flex;
flex-wrap: wrap;
.tags-container {
display: flex;
flex-wrap: wrap;
}
.add-tag {
height: 32px;
width: 32px;
@include kun-center;
cursor: pointer;
font-size: 24px;
border-radius: 10px;
background-color: var(--kungalgame-blue-5);
color: var(--kungalgame-white);
}
}
.selected-tag {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "kun-galgame-nuxt3",
"version": "2.19.20",
"version": "2.19.21",
"packageManager": "[email protected]",
"private": true,
"scripts": {
Expand Down

0 comments on commit b864ce1

Please sign in to comment.