Commit 9a039b16871678f4a5b669492715b2021cd0f61b
Committed by
GitHub
1 parent
7db4e70d
Update tag.vue
让 tag 的点击和取消区分开
Showing
1 changed file
with
5 additions
and
1 deletions
Show diff stats
src/components/tag/tag.vue
1 | 1 | <template> |
2 | 2 | <div :class="classes" transition="fade"> |
3 | - <span :class="dotClasses" v-if="showDot"></span><span :class="textClasses"><slot></slot></span><Icon v-if="closable" type="ios-close-empty" @click="close"></Icon> | |
3 | + <span :class="dotClasses" v-if="showDot"></span> | |
4 | + <span :class="textClasses"> | |
5 | + <slot></slot> | |
6 | + </span> | |
7 | + <Icon v-if="closable" type="ios-close-empty" @click.stop="close"></Icon> | |
4 | 8 | </div> |
5 | 9 | </template> |
6 | 10 | <script> | ... | ... |