content.vue 864 B

123456789101112131415161718192021222324252627282930
  1. <template>
  2. <div :class="'w-full h-screen flex flex-col transition-spacing duration-300 ease-linear overflow-hidden ' + mlClass">
  3. <!-- Header -->
  4. <Header />
  5. <!-- Tag view -->
  6. <!--<div class=""></div>-->
  7. <!-- Container -->
  8. <div class="p-1 sm:p-2 max-w-full h-screen overflow-auto sm:overflow-x-hidden">
  9. <router-view />
  10. <!--<div class="w-full text-center text-gray-400 h-10 leading-10 mt-2">CatchAdmin 管理系统 @copyright 2018 ~ {{ year }}</div>-->
  11. </div>
  12. </div>
  13. </template>
  14. <script lang="ts" setup>
  15. import { computed } from 'vue'
  16. import { useAppStore } from '/admin/stores/modules/app'
  17. const appStore = useAppStore()
  18. const mlClass = computed(() => {
  19. return appStore.isExpand ? 'ml-0 sm:ml-56' : 'ml-0 sm:ml-16'
  20. })
  21. const year = computed(() => {
  22. const date = new Date()
  23. return date.getFullYear()
  24. })
  25. </script>