update tag

This commit is contained in:
Lison 2017-10-09 10:35:47 +08:00
parent f575eca7e2
commit 9f97a0d11e

View file

@ -1,6 +1,6 @@
<template>
<transition name="fade">
<div :class="classes" @click.native.stop="clickTag">
<div :class="classes">
<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>
</div>
</transition>
@ -61,13 +61,6 @@
} else {
this.$emit('on-close', event, this.name);
}
},
clickTag (event) {
if (this.name === undefined) {
this.$emit('on-click', event);
} else {
this.$emit('on-click', event, this.name);
}
}
}
};