You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
733 B

  1. <template lang="pug">
  2. v-list.py-2(dense, :class='color', :dark='dark')
  3. template(v-for='item of items')
  4. v-list-item(
  5. v-if='item.kind === `link`'
  6. :href='item.target'
  7. )
  8. v-list-item-avatar(size='24')
  9. v-icon {{ item.icon }}
  10. v-list-item-title {{ item.label }}
  11. v-divider.my-2(v-else-if='item.kind === `divider`')
  12. v-subheader.pl-4(v-else-if='item.kind === `header`') {{ item.label }}
  13. </template>
  14. <script>
  15. export default {
  16. props: {
  17. color: {
  18. type: String,
  19. default: 'primary'
  20. },
  21. dark: {
  22. type: Boolean,
  23. default: true
  24. },
  25. items: {
  26. type: Array,
  27. default: () => []
  28. }
  29. },
  30. data() {
  31. return {}
  32. }
  33. }
  34. </script>