Skip to content

Commit 4528697

Browse files
committed
fix: 新增tag功能完成
1 parent 94d3a08 commit 4528697

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/views/personal/userCenter/index.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,9 @@
8585
this.tags.splice(i, 1);
8686
},
8787
onInputConfirm () {
88-
88+
this.tags.push(this.inputValue);
89+
this.inputValue = '';
90+
this.inputVisible = false;
8991
},
9092
showInput () {
9193
this.inputVisible = true;
@@ -124,7 +126,7 @@
124126
margin: 20px 0;
125127
}
126128
&-tag-content {margin-left: -6px; margin-top: -6px;}
127-
&-tag-item {margin-left: 6px;margin-top: 6px;}
129+
&-tag-item {margin-left: 10px;margin-top: 10px;}
128130
&-item:not(:first-child) {
129131
margin: 6px 0;
130132
}

0 commit comments

Comments
 (0)