App.vue 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <template>
  2. <router-view />
  3. </template>
  4. <style>
  5. /* 全局样式重置 */
  6. * {
  7. box-sizing: border-box;
  8. margin: 0;
  9. padding: 0;
  10. }
  11. html, body, #app {
  12. width: 100%;
  13. height: 100%;
  14. font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue',
  15. 'PingFang SC', 'Microsoft YaHei', sans-serif;
  16. font-size: 14px;
  17. color: #262626;
  18. background-color: #f0f2f5;
  19. -webkit-font-smoothing: antialiased;
  20. }
  21. /* 滚动条美化 */
  22. ::-webkit-scrollbar {
  23. width: 6px;
  24. height: 6px;
  25. }
  26. ::-webkit-scrollbar-track {
  27. background: transparent;
  28. }
  29. ::-webkit-scrollbar-thumb {
  30. background: #d9d9d9;
  31. border-radius: 3px;
  32. }
  33. ::-webkit-scrollbar-thumb:hover {
  34. background: #bfbfbf;
  35. }
  36. /* Element Plus 全局微调 */
  37. .el-card {
  38. border-radius: 12px !important;
  39. border: none !important;
  40. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
  41. }
  42. .el-button {
  43. border-radius: 6px !important;
  44. }
  45. .el-input__wrapper,
  46. .el-select .el-input__wrapper {
  47. border-radius: 6px !important;
  48. }
  49. .el-table {
  50. border-radius: 8px;
  51. overflow: hidden;
  52. }
  53. /* 页面卡片通用样式 */
  54. .page-card {
  55. background: #fff;
  56. border-radius: 12px;
  57. padding: 24px;
  58. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  59. }
  60. /* 搜索栏通用样式 */
  61. .search-bar {
  62. background: #fff;
  63. border-radius: 12px;
  64. padding: 20px 24px;
  65. margin-bottom: 16px;
  66. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  67. }
  68. </style>