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.

43 lines
1.1 KiB

  1. <template lang="pug">
  2. div
  3. //- .blue.darken-3.pa-3.d-flex
  4. //- v-btn(depressed, color='blue darken-2', style='min-width:0;', href='/')
  5. //- v-icon(size='20') mdi-home
  6. //- v-btn.ml-3(depressed, color='blue darken-2', style='flex: 1 1 100%;')
  7. //- v-icon(left) mdi-file-tree
  8. //- .body-2.text-none Browse
  9. //- v-divider
  10. v-list.py-2(dense, :class='color', :dark='dark')
  11. template(v-for='item of items')
  12. v-list-item(
  13. v-if='item.kind === `link`'
  14. :href='item.target'
  15. )
  16. v-list-item-avatar(size='24', tile)
  17. v-icon {{ item.icon }}
  18. v-list-item-title {{ item.label }}
  19. v-divider.my-2(v-else-if='item.kind === `divider`')
  20. v-subheader.pl-4(v-else-if='item.kind === `header`') {{ item.label }}
  21. </template>
  22. <script>
  23. export default {
  24. props: {
  25. color: {
  26. type: String,
  27. default: 'primary'
  28. },
  29. dark: {
  30. type: Boolean,
  31. default: true
  32. },
  33. items: {
  34. type: Array,
  35. default: () => []
  36. }
  37. },
  38. data() {
  39. return {}
  40. }
  41. }
  42. </script>