Folder.vue 866 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <template>
  2. <div class="folder">
  3. <h3 class="heading">
  4. <SmartIcon name="folder-minus" class="svg-icons" />
  5. {{ folder.name || $t("state.none") }}
  6. </h3>
  7. <div
  8. v-for="(subFolder, index) in folder.folders"
  9. :key="`subFolder-${index}`"
  10. >
  11. <DocsFolder :folder="subFolder" />
  12. </div>
  13. <div v-for="(request, index) in folder.requests" :key="`request-${index}`">
  14. <DocsRequest :request="request" />
  15. </div>
  16. </div>
  17. </template>
  18. <script>
  19. import { defineComponent } from "@nuxtjs/composition-api"
  20. export default defineComponent({
  21. props: {
  22. folder: { type: Object, default: () => {} },
  23. },
  24. })
  25. </script>
  26. <style scoped lang="scss">
  27. .folder {
  28. @apply flex flex-col flex-1;
  29. @apply justify-center;
  30. @apply p-4;
  31. @apply mt-4;
  32. @apply border-l border-divider;
  33. .material-icons {
  34. @apply mr-4;
  35. }
  36. }
  37. </style>