docs: 同步缩放与横屏提示的组件化文档

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
zhongyidianandClaude Opus 4.8 committed 2026-08-18 17:33:42 +08:00
1 parent dc4197b207
commit cba0d42474
2 files changed
+8 -12

No files matched your search

+2 -2
View File
@@ -129,8 +129,8 @@ bun run lint:fix # 自动修复代码问题
开发时要尊重模板已有能力:
- 页面按 `1920 x 1080` 设计稿开发,整体缩放逻辑在 `src/utils/useScale.ts`。
- 横屏访问提示逻辑在 `src/utils/useOrientation.ts` 与通用组件中。
- 页面按 `1920 x 1080` 设计稿开发,整体缩放由 `src/course-runtime/canvas` 的 `CourseCanvas` 组件承担。
- 横屏访问提示由 `src/course-runtime/orientation` 的 `OrientationGuard` 组件承担。
- 易班能力通过 `src/utils/yiban.ts` 和 `public/videoajax/` 相关脚本封装。
- 移动端调试使用 `src/utils/vconsole.ts`。
- 新增通用组件时,同步考虑是否需要在 [src/pages/Components/index.tsx](src/pages/Components/index.tsx) 增加示例。