update tag
This commit is contained in:
parent
f575eca7e2
commit
9f97a0d11e
1 changed files with 1 additions and 8 deletions
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<transition name="fade">
|
<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>
|
<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>
|
</div>
|
||||||
</transition>
|
</transition>
|
||||||
|
@ -61,13 +61,6 @@
|
||||||
} else {
|
} else {
|
||||||
this.$emit('on-close', event, this.name);
|
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);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue