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 | <template> | 1 | <template> |
| 2 | <div> | 2 | <div> |
| 3 | - <Button to="/menu">Open Menu</Button> | 3 | + <Button to="/menu" @click="hc">Open Menu</Button> |
| 4 | <Button to="/menu" replace>Open Menu Replace</Button> | 4 | <Button to="/menu" replace>Open Menu Replace</Button> |
| 5 | <Button to="//iviewui.com" target="_blank">Open iView</Button> | 5 | <Button to="//iviewui.com" target="_blank">Open iView</Button> |
| 6 | <hr> | 6 | <hr> |
| @@ -146,7 +146,11 @@ | @@ -146,7 +146,11 @@ | ||
| 146 | </template> | 146 | </template> |
| 147 | <script> | 147 | <script> |
| 148 | export default { | 148 | export default { |
| 149 | - | 149 | + methods: { |
| 150 | + hc (data) { | ||
| 151 | + console.log(data); | ||
| 152 | + } | ||
| 153 | + } | ||
| 150 | } | 154 | } |
| 151 | </script> | 155 | </script> |
| 152 | <style> | 156 | <style> |