Commit 5f75101e6f21f4ee12705dbfef1ba98cafb5effb
Committed by
GitHub
1 parent
9a039b16
Update tag.vue
Showing
1 changed file
with
8 additions
and
0 deletions
Show diff stats
test/routers/tag.vue
... | ... | @@ -40,6 +40,8 @@ |
40 | 40 | <i-button @click="loading = true">true</i-button> |
41 | 41 | <i-button @click="loading = false">false</i-button> |
42 | 42 | </Modal> |
43 | + <br><br> | |
44 | + <Tag type="border" color="yellow" closable @click="clickTag" @on-close="clickTagClose">标签一</Tag> | |
43 | 45 | </template> |
44 | 46 | <script> |
45 | 47 | import { Tag, Modal, iButton } from 'iview'; |
... | ... | @@ -56,6 +58,12 @@ |
56 | 58 | setTimeout(() => { |
57 | 59 | this.modal1 = false; |
58 | 60 | }, 2000); |
61 | + }, | |
62 | + clickTag() { | |
63 | + console.log('click tag'); | |
64 | + }, | |
65 | + clickTagClose() { | |
66 | + console.log('click tag close-icon'); | |
59 | 67 | } |
60 | 68 | } |
61 | 69 | } | ... | ... |