| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- <template>
- <a-config-provider
- :locale="zhCN"
- :theme="{
- algorithm: designStore.theme,
- }"
- >
- <router-view/>
- </a-config-provider>
- <div id="teleport-full-container" >
- </div>
- </template>
- <script setup lang="ts" >
- import zhCN from 'ant-design-vue/es/locale/zh_CN'
- import dayjs from 'dayjs'
- import 'dayjs/locale/zh-cn'
- import { useDesignStore } from '@/store'
- import { useRouter } from 'vue-router'
- dayjs.locale('zh-cn')
- const designStore = useDesignStore()
- function closeTeleport () {
- // console.log(this)
- }
- // theme.defaultAlgorithm
- </script>
- <style lang="less">
- @import '~@/styles/theme.less';
- #teleport-full-container {
- position: fixed;
- top: 0;
- right: 0;
- left: 0;
- bottom: 0;
- background-color: #fff;
- display: flex;
- justify-content: center;
- align-items: center;
- z-index: -1;
- pointer-events: 'none'
- }
- </style>
|