App.vue 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <!--
  2. * @Author: sjl
  3. * @Date: 2023-05-07 20:34:03
  4. * @Descripttion:
  5. -->
  6. <template>
  7. <ConfigProvider :locale="getAntdLocale" :autoInsertSpaceInButton="false">
  8. <!-- <v-scale-screen width="1920" height="911" :isFlat="true"> -->
  9. <ScaleBox :width="1920" :height="911" bgc="transparent" :delay="100" :isFlat="true">
  10. <AppProvider>
  11. <RouterView />
  12. </AppProvider>
  13. </ScaleBox>
  14. <!-- </v-scale-screen> -->
  15. </ConfigProvider>
  16. </template>
  17. <script lang="ts" setup>
  18. import { ConfigProvider } from 'ant-design-vue';
  19. import { AppProvider } from '/@/components/Application';
  20. import { useTitle } from '/@/hooks/web/useTitle';
  21. import { useLocale } from '/@/locales/useLocale';
  22. // import VScaleScreen from 'v-scale-screen'
  23. import ScaleBox from "vue3-scale-box";
  24. // support Multi-language
  25. const { getAntdLocale } = useLocale();
  26. useTitle();
  27. </script>
  28. <style>
  29. .ant-tabs-nav {
  30. width: 100% !important;
  31. }
  32. html body {
  33. aspect-ratio: 16/9;
  34. /* 设置宽高比例为16:9 */
  35. /* width: 100%;
  36. height: 100%; */
  37. /* margin: 0; */
  38. padding: 0;
  39. overflow: hidden !important;
  40. /* display: flex;
  41. justify-content: center;
  42. align-items: flex-start; */
  43. }
  44. html {
  45. background: #01131f;
  46. }
  47. body {
  48. /* width: 1920px !important;
  49. height: 1080px !important; */
  50. /* position: fixed !important;
  51. top: 0 !important;
  52. left: 0 !important;
  53. margin: 0 !important;
  54. padding: 0 !important; */
  55. }
  56. .map-tips {
  57. position: relative;
  58. height: 1080px;
  59. }
  60. </style>