refactor: 将page-container重命名为root-page-layout
将page-container组件重命名为root-page-layout,并更新所有文档中的引用,以更好地反映其作为页面根布局的角色。已更新AGENTS.md、README.md中的引用,并相应重命名了组件使用指南。
This commit is contained in:
1 parent
3f75ab4ef6
commit
11c6fb21cd
11 files changed
+46
-46
No files matched your search
@@ -0,0 +1,34 @@
|
||||
<!--components/root-page-layout/root-page-layout.wxml-->
|
||||
<view
|
||||
class="root-page-layout {{containerSafeAreaInsetBottom ? 'root-page-layout--safe' : ''}}"
|
||||
style="--pg-container-bg-color: {{containerBackgroundColor}};"
|
||||
>
|
||||
<!-- 导航栏 -->
|
||||
<t-navbar
|
||||
title="{{navBarTitle}}"
|
||||
left-arrow="{{showLeftArrow}}"
|
||||
fixed="{{navBarFixed}}"
|
||||
placeholder="{{navBarPlaceholder}}"
|
||||
safe-area-inset-top="{{navBarSafeAreaInsetTop}}"
|
||||
z-index="{{navBarZIndex}}"
|
||||
animation="{{navBarAnimation}}"
|
||||
title-max-length="{{navBarTitleMaxLength}}"
|
||||
visible="{{navBarVisible}}"
|
||||
bind:go-back="goBack"
|
||||
style="--td-navbar-color: {{navBarTextColor}};--td-navbar-bg-color: {{navBarBackgroundColor}};"
|
||||
>
|
||||
<!-- 左侧自定义内容插槽 -->
|
||||
<slot name="left" slot="left"></slot>
|
||||
<!-- 胶囊区域自定义内容插槽 -->
|
||||
<slot name="capsule" slot="capsule"></slot>
|
||||
<!-- 标题自定义内容插槽 -->
|
||||
<slot name="title" slot="title"></slot>
|
||||
</t-navbar>
|
||||
|
||||
<!-- 内容区域 -->
|
||||
<view
|
||||
class="root-page-layout__content"
|
||||
>
|
||||
<slot></slot>
|
||||
</view>
|
||||
</view>
|
||||
Reference in new issue
Block a user