App.vue 909 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <template>
  2. <a-config-provider
  3. :locale="zhCN"
  4. :theme="{
  5. algorithm: designStore.theme,
  6. }"
  7. >
  8. <router-view/>
  9. </a-config-provider>
  10. <div id="teleport-full-container" >
  11. </div>
  12. </template>
  13. <script setup lang="ts" >
  14. import zhCN from 'ant-design-vue/es/locale/zh_CN'
  15. import dayjs from 'dayjs'
  16. import 'dayjs/locale/zh-cn'
  17. import { useDesignStore } from '@/store'
  18. import { useRouter } from 'vue-router'
  19. dayjs.locale('zh-cn')
  20. const designStore = useDesignStore()
  21. function closeTeleport () {
  22. // console.log(this)
  23. }
  24. // theme.defaultAlgorithm
  25. </script>
  26. <style lang="less">
  27. @import '~@/styles/theme.less';
  28. #teleport-full-container {
  29. position: fixed;
  30. top: 0;
  31. right: 0;
  32. left: 0;
  33. bottom: 0;
  34. background-color: #fff;
  35. display: flex;
  36. justify-content: center;
  37. align-items: center;
  38. z-index: -1;
  39. pointer-events: 'none'
  40. }
  41. </style>