App.vue 812 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <template>
  2. <a-config-provider :locale="locale">
  3. <div class="app">
  4. <router-view />
  5. <!-- <div class="map-wrapper">
  6. <GMap />
  7. </div> -->
  8. </div>
  9. </a-config-provider>
  10. </template>
  11. <script lang="ts">
  12. import { defineComponent } from 'vue'
  13. import { useMyStore } from './store'
  14. import GMap from '/@/components/GMap.vue'
  15. import zhCN from 'ant-design-vue/es/locale/zh_CN';
  16. import 'moment/dist/locale/zh-cn';
  17. export default defineComponent({
  18. name: 'App',
  19. components: { GMap },
  20. setup() {
  21. const store = useMyStore();
  22. return {
  23. locale: zhCN,
  24. }
  25. }
  26. })
  27. </script>
  28. <style lang="scss" scoped>
  29. .app {
  30. width: 100%;
  31. height: 100%;
  32. .map-wrapper {
  33. height: 100%;
  34. width: 100%;
  35. }
  36. }
  37. </style>
  38. <style lang="scss">
  39. #root {
  40. width: 100%;
  41. height: 100%
  42. }
  43. </style>