feat: add scroll top mask, unify page top spacing and docs

This commit is contained in:
2026-08-08 03:57:47 +08:00
parent 38045073b0
commit a3c3005c04
73 changed files with 1350 additions and 169 deletions
+33
View File
@@ -0,0 +1,33 @@
# 设置 页面设计规范
## 基本信息
- 路由:`pages/settings/index`
- 分类:`B类`
- 标题文本:设置
- TabBar:否
## 组件调用
- **ScrollTopMask**
- `title="设置"`
- `targetSelector=".page-header.settings-header"`
- `showBack``是`
- **CustomTabBar**:不显示。
## 设计要点
- 顶部字距:statusBarHeight + 12px(已统一)。
- 底部安全区:避让 env(safe-area-inset-bottom)。
- TopMask 出现阈值由 `.page-header.settings-header` 测量决定;滚动后标题淡入,位置遵循所在分类通用规范。
## 页面特有说明
短内容页;TopMask 触发点由 .page-header 决定。
## 验收要点
- [ ] 顶部字距符合 class 通用规范
- [ ] TopMask 标题/返回按钮符合预期
- [ ] 浅色/深色主题正常
- [ ] iOS / Android 真机表现一致