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,6 +40,8 @@ | ||
40 | <i-button @click="loading = true">true</i-button> | 40 | <i-button @click="loading = true">true</i-button> |
41 | <i-button @click="loading = false">false</i-button> | 41 | <i-button @click="loading = false">false</i-button> |
42 | </Modal> | 42 | </Modal> |
43 | + <br><br> | ||
44 | + <Tag type="border" color="yellow" closable @click="clickTag" @on-close="clickTagClose">标签一</Tag> | ||
43 | </template> | 45 | </template> |
44 | <script> | 46 | <script> |
45 | import { Tag, Modal, iButton } from 'iview'; | 47 | import { Tag, Modal, iButton } from 'iview'; |
@@ -56,6 +58,12 @@ | @@ -56,6 +58,12 @@ | ||
56 | setTimeout(() => { | 58 | setTimeout(() => { |
57 | this.modal1 = false; | 59 | this.modal1 = false; |
58 | }, 2000); | 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 | } |