Guest User

Untitled

a guest
Dec 12th, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. <template>
  2. <ul class="tab-head"">
  3. <li v-for="item in list" data-xxx="{{item.xxx}}">
  4. <a href="" v-on:click.prevent="changeTarget">
  5. <span>{{item.label}}</span>
  6. </a></li>
  7. </ul>
  8. </template>
  9.  
  10. <script>
  11. module.exports = {
  12. data: function(){
  13. return {
  14. list: this.patterns
  15. }
  16. },
  17. methods: {
  18. changeTarget: function(e){
  19. console.log(e.target);
  20. },
  21. },
  22. }
  23. </script>
Add Comment
Please, Sign In to add comment