App.vue 610 B

1234567891011121314151617181920212223242526272829303132333435
  1. <template>
  2. <div id="app">
  3. <router-view/>
  4. </div>
  5. </template>
  6. <style>
  7. /* 基础样式已移至全局样式文件 */
  8. #app {
  9. width: 100%;
  10. height: 100%;
  11. background-color: var(--background-color);
  12. }
  13. /* 页面容器通用样式 */
  14. .page-container {
  15. padding: 16px;
  16. height: 100%;
  17. display: flex;
  18. flex-direction: column;
  19. }
  20. /* 安全区域适配 */
  21. .safe-area-inset-bottom {
  22. padding-bottom: constant(safe-area-inset-bottom);
  23. padding-bottom: env(safe-area-inset-bottom);
  24. }
  25. /* 页面内容区域 */
  26. .page-content {
  27. flex: 1;
  28. overflow-y: auto;
  29. -webkit-overflow-scrolling: touch;
  30. }
  31. </style>