Skip to content

Commit

Permalink
Update tag.vue
Browse files Browse the repository at this point in the history
  • Loading branch information
YikaJ authored Feb 14, 2017
1 parent 9a039b1 commit 5f75101
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/routers/tag.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@
<i-button @click="loading = true">true</i-button>
<i-button @click="loading = false">false</i-button>
</Modal>
<br><br>
<Tag type="border" color="yellow" closable @click="clickTag" @on-close="clickTagClose">标签一</Tag>
</template>
<script>
import { Tag, Modal, iButton } from 'iview';
Expand All @@ -56,6 +58,12 @@
setTimeout(() => {
this.modal1 = false;
}, 2000);
},
clickTag() {
console.log('click tag');
},
clickTagClose() {
console.log('click tag close-icon');
}
}
}
Expand Down

0 comments on commit 5f75101

Please sign in to comment.