Commit 5d10cf7224c1dc5d30890a50e09d3f644ff1f4a2
1 parent
bc6eb6f3
update demo
Showing
1 changed file
with
6 additions
and
2 deletions
Show diff stats
examples/routers/button.vue
| 1 | 1 | <template> |
| 2 | 2 | <div> |
| 3 | - <Button to="/menu">Open Menu</Button> | |
| 3 | + <Button to="/menu" @click="hc">Open Menu</Button> | |
| 4 | 4 | <Button to="/menu" replace>Open Menu Replace</Button> |
| 5 | 5 | <Button to="//iviewui.com" target="_blank">Open iView</Button> |
| 6 | 6 | <hr> |
| ... | ... | @@ -146,7 +146,11 @@ |
| 146 | 146 | </template> |
| 147 | 147 | <script> |
| 148 | 148 | export default { |
| 149 | - | |
| 149 | + methods: { | |
| 150 | + hc (data) { | |
| 151 | + console.log(data); | |
| 152 | + } | |
| 153 | + } | |
| 150 | 154 | } |
| 151 | 155 | </script> |
| 152 | 156 | <style> | ... | ... |