将page-container组件重命名为root-page-layout,并更新所有文档中的引用,以更好地反映其作为页面根布局的角色。已更新AGENTS.md、README.md中的引用,并相应重命名了组件使用指南。
27 lines
560 B
SCSS
27 lines
560 B
SCSS
/* components/root-page-layout/root-page-layout.wxss */
|
|
|
|
.root-page-layout {
|
|
width: 100%;
|
|
min-height: 100vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
position: relative;
|
|
box-sizing: border-box;
|
|
background-color: var(--pg-container-bg-color);
|
|
|
|
// 预留安全区
|
|
&--safe {
|
|
padding-bottom: constant(safe-area-inset-bottom);
|
|
padding-bottom: env(safe-area-inset-bottom);
|
|
}
|
|
}
|
|
|
|
.root-page-layout__content {
|
|
flex: 1;
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
-webkit-overflow-scrolling: touch;
|
|
}
|