nav-menu-item.js 1.2 KB

1234567891011121314151617181920212223242526272829
  1. Vue.component('nav-menu-item', {
  2. template: '<li>\
  3. <a href="#">\
  4. <img :src="data.icon">\
  5. <span class="nav-label c-f16 c-bold ml15">{{data.title}}</span>\
  6. <span class="fa arrow c-f20"></span>\
  7. </a>\
  8. <ul class="nav nav-second-level collapse">\
  9. <li v-for="item2 of data.items" >\
  10. <a v-if="!item2.items" class="J_menuItem" :href="item2.url" data-index="0">{{item2.title}}</a>\
  11. <a v-if="item2.items" href="javascript:void(0)">{{item2.title}} <span class="fa arrow"></span></a>\
  12. <ul v-if="item2.items" class="nav nav-third-level">\
  13. <li v-for="item3 of item2.items">\
  14. <a class="J_menuItem" :href="item3.url">{{item3.title}}</a>\
  15. </li>\
  16. </ul>\
  17. </li>\
  18. </ul>\
  19. </li>',
  20. props: ['data'],
  21. data: function() {
  22. return {
  23. }
  24. },
  25. methods: {
  26. }
  27. })