Commit 9f97a0d11edd7d62b03cee7bf670e6ebb49d9478
1 parent
f575eca7
update tag
Showing
1 changed file
with
1 additions
and
8 deletions
Show diff stats
src/components/tag/tag.vue
| 1 | 1 | <template> |
| 2 | 2 | <transition name="fade"> |
| 3 | - <div :class="classes" @click.native.stop="clickTag"> | |
| 3 | + <div :class="classes"> | |
| 4 | 4 | <span :class="dotClasses" v-if="showDot"></span><span :class="textClasses"><slot></slot></span><Icon v-if="closable" type="ios-close-empty" @click.native.stop="close"></Icon> |
| 5 | 5 | </div> |
| 6 | 6 | </transition> |
| ... | ... | @@ -61,13 +61,6 @@ |
| 61 | 61 | } else { |
| 62 | 62 | this.$emit('on-close', event, this.name); |
| 63 | 63 | } |
| 64 | - }, | |
| 65 | - clickTag (event) { | |
| 66 | - if (this.name === undefined) { | |
| 67 | - this.$emit('on-click', event); | |
| 68 | - } else { | |
| 69 | - this.$emit('on-click', event, this.name); | |
| 70 | - } | |
| 71 | 64 | } |
| 72 | 65 | } |
| 73 | 66 | }; | ... | ... |