App.vue 637 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <script>
  2. import zhCN from 'ant-design-vue/lib/locale-provider/zh_CN'
  3. export default {
  4. data() {
  5. return {
  6. locale: zhCN,
  7. }
  8. },
  9. }
  10. </script>
  11. <template>
  12. <div id="app">
  13. <a-config-provider :locale="locale">
  14. <router-view />
  15. </a-config-provider>
  16. </div>
  17. </template>
  18. <style lang="less">
  19. * {
  20. margin: 0;
  21. padding: 0;
  22. box-sizing: border-box;
  23. }
  24. #app {
  25. width: 100%;
  26. height: 100%;
  27. }
  28. html,body {
  29. width: 100%;
  30. height: 100%;
  31. overflow: hidden;
  32. }
  33. /* 去除谷歌浏览器input输入框选中情况下的背景色 */
  34. input:-webkit-autofill {
  35. transition: background-color 500000s ease-in-out 0s;
  36. }
  37. </style>