feat: add scroll top mask, unify page top spacing and docs
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
# 我的 页面设计规范
|
||||
|
||||
## 基本信息
|
||||
|
||||
- 路由:`pages/profile/index`
|
||||
- 分类:`A类`
|
||||
- 标题文本:我的
|
||||
- TabBar:是
|
||||
|
||||
## 组件调用
|
||||
|
||||
- **ScrollTopMask**
|
||||
- `title="我的"`
|
||||
- `targetSelector=".profile-header"`
|
||||
- `showBack`:`否`
|
||||
- **CustomTabBar**:自动显示,页面无需手动调用。
|
||||
|
||||
## 设计要点
|
||||
|
||||
- 顶部字距:statusBarHeight + 12px(已统一)。
|
||||
- 底部安全区:避让 TabBar + env(safe-area-inset-bottom)。
|
||||
- TopMask 出现阈值由 `.profile-header` 测量决定;滚动后标题淡入,位置遵循所在分类通用规范。
|
||||
|
||||
## 页面特有说明
|
||||
|
||||
登录卡片/用户区;无大标题,TopMask 标题用“我的”。
|
||||
|
||||
## 验收要点
|
||||
|
||||
- [ ] 顶部字距符合 class 通用规范
|
||||
- [ ] TopMask 标题/返回按钮符合预期
|
||||
- [ ] 浅色/深色主题正常
|
||||
- [ ] iOS / Android 真机表现一致
|
||||
Reference in New Issue
Block a user