App.vue 608 B

123456789101112131415161718192021222324252627282930313233
  1. <template>
  2. <div id="app">
  3. <el-config-provider :locale="zhCn">
  4. <router-view />
  5. </el-config-provider>
  6. </div>
  7. </template>
  8. <script setup>
  9. import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
  10. // element 2.3.8之前使用下面的语句
  11. // import zhCn from 'element-plus/lib/locale/lang/zh-cn'
  12. defineOptions({
  13. name: 'App'
  14. })
  15. </script>
  16. <style lang="scss">
  17. @tailwind base;
  18. @tailwind components;
  19. @tailwind utilities;
  20. // 引入初始化样式
  21. #app {
  22. background: #eee;
  23. height: 100vh;
  24. overflow: hidden;
  25. font-weight: 400 !important;
  26. }
  27. .el-button{
  28. font-weight: 400 !important;
  29. }
  30. </style>