App.vue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  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. .el-main{
  31. --el-main-padding: 0 20px !important;
  32. }
  33. .el-sub-menu,.gva-menu-item{
  34. .el-icon{
  35. font-size: 11px!important;
  36. margin-right: 0!important;
  37. }
  38. }
  39. .gva-menu-item {
  40. .gva-menu-item-title{
  41. }
  42. }
  43. .el-sub-menu__title{
  44. .gva-subMenu{
  45. font-size: 12px!important;
  46. }
  47. }
  48. .el-menu-item.is-active ,.el-menu-item {
  49. .gva-menu-item{
  50. font-size: 11px!important;
  51. }
  52. }
  53. /* 保证滚动条一直显示 */
  54. // .el-scrollbar__wrap {
  55. // // overflow-x: scroll !important;
  56. // // overflow-y: scroll !important;
  57. // scrollbar-color: #c1c1c1 #f1f1f1 !important; /* 滑块和轨道颜色 */
  58. // scrollbar-width: thin !important; /* 标准属性,Firefox支持 */
  59. // }
  60. /* 水平滚动条轨道 */
  61. .el-scrollbar__bar.is-horizontal {
  62. height: 10px !important;
  63. bottom: 2px !important;
  64. background-color: #f1f1f1 !important;
  65. border-radius: 4px !important;
  66. }
  67. /* 水平滚动条滑块 */
  68. .el-scrollbar__bar.is-horizontal > div {
  69. height: 10px !important;
  70. background-color: #c1c1c1 !important;
  71. border-radius: 4px !important;
  72. transition: background-color 0.2s !important;
  73. }
  74. /* 水平滚动条悬停效果 */
  75. .el-scrollbar__bar.is-horizontal > div:hover {
  76. background-color: #110000 !important;
  77. }
  78. /* 垂直滚动条轨道 */
  79. .el-scrollbar__bar.is-vertical {
  80. width: 10px !important;
  81. right: 2px !important;
  82. background-color: #f1f1f1 !important;
  83. border-radius: 4px !important;
  84. }
  85. /* 垂直滚动条滑块 */
  86. .el-scrollbar__bar.is-vertical > div {
  87. width: 10px !important;
  88. background-color: #c1c1c1 !important;
  89. border-radius: 4px !important;
  90. transition: background-color 0.2s !important;
  91. }
  92. /* 垂直滚动条悬停效果 */
  93. .el-scrollbar__bar.is-vertical > div:hover {
  94. background-color: #110000 !important;
  95. }
  96. // /* 保证水平滚动条一直显示 */
  97. // .el-scrollbar__wrap {
  98. // overflow-x: scroll !important; /* 确保水平滚动条始终显示 */
  99. // }
  100. // /* 水平滚动条的样式 */
  101. // .el-scrollbar__bar.is-horizontal {
  102. // height: 15px; /* 设置滚动条的高度 */
  103. // background-color: #d3d3d3; /* 默认灰色背景 */
  104. // }
  105. // /* 保证垂直滚动条也始终显示 */
  106. // .el-scrollbar__wrap {
  107. // overflow-y: scroll; /* 确保垂直滚动条始终显示 */
  108. // }
  109. // /* 垂直滚动条的样式 */
  110. // .el-scrollbar__bar.is-vertical {
  111. // width: 20px; /* 设置滚动条的宽度 */
  112. // background-color: #d3d3d3; /* 默认灰色背景 */
  113. // }
  114. </style>