Commit e0f238f957f2d734f8619a14a1f223dcd252421d

Authored by 梁灏
1 parent 5139233b

Tag close not automatic

Tag close not automatic
Showing 1 changed file with 1 additions and 7 deletions   Show diff stats
src/components/tag/tag.vue
1 1 <template>
2   - <div v-if="!closed" :class="classes" transition="fade">
  2 + <div :class="classes" transition="fade">
3 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>
4 4 </div>
5 5 </template>
... ... @@ -27,11 +27,6 @@
27 27 }
28 28 }
29 29 },
30   - data () {
31   - return {
32   - closed: false
33   - };
34   - },
35 30 computed: {
36 31 classes () {
37 32 return [
... ... @@ -55,7 +50,6 @@
55 50 },
56 51 methods: {
57 52 close (e) {
58   - this.closed = true;
59 53 this.$emit('on-close', e);
60 54 }
61 55 }
... ...