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 <template> 1 <template>
2 - <div v-if="!closed" :class="classes" transition="fade"> 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><span :class="textClasses"><slot></slot></span><Icon v-if="closable" type="ios-close-empty" @click="close"></Icon>
4 </div> 4 </div>
5 </template> 5 </template>
@@ -27,11 +27,6 @@ @@ -27,11 +27,6 @@
27 } 27 }
28 } 28 }
29 }, 29 },
30 - data () {  
31 - return {  
32 - closed: false  
33 - };  
34 - },  
35 computed: { 30 computed: {
36 classes () { 31 classes () {
37 return [ 32 return [
@@ -55,7 +50,6 @@ @@ -55,7 +50,6 @@
55 }, 50 },
56 methods: { 51 methods: {
57 close (e) { 52 close (e) {
58 - this.closed = true;  
59 this.$emit('on-close', e); 53 this.$emit('on-close', e);
60 } 54 }
61 } 55 }