Sidebar.vue 790 B

123456789101112131415161718192021222324252627282930
  1. <template>
  2. <SmartTabs
  3. v-model="selectedNavigationTab"
  4. styles="sticky bg-primary z-10 top-0"
  5. vertical
  6. render-inactive-tabs
  7. >
  8. <SmartTab :id="'history'" icon="clock" :label="`${$t('tab.history')}`">
  9. <History ref="historyComponent" :page="'rest'" />
  10. </SmartTab>
  11. <SmartTab
  12. :id="'collections'"
  13. icon="folder"
  14. :label="`${$t('tab.collections')}`"
  15. >
  16. <Collections />
  17. </SmartTab>
  18. <SmartTab :id="'env'" icon="layers" :label="`${$t('environment.title')}`">
  19. <Environments />
  20. </SmartTab>
  21. </SmartTabs>
  22. </template>
  23. <script setup lang="ts">
  24. import { ref } from "@nuxtjs/composition-api"
  25. type RequestOptionTabs = "history" | "collections" | "env"
  26. const selectedNavigationTab = ref<RequestOptionTabs>("history")
  27. </script>