sass警告

This commit is contained in:
xuxin
2026-06-02 14:21:13 +08:00
parent dde72be9de
commit 557a6f30f2
19 changed files with 354 additions and 49 deletions
+2
View File
@@ -23,3 +23,5 @@ inclusion: always
## 注意事项
- 页面结构和ts的常量变量和方法都要加中文注释
- 新建 SCSS 文件如果使用了 variables.scss 中的变量(如 `$bg-white``$accent` 等),必须在文件顶部加 `@use '../variables' as *;`,否则通过 `@use` 方式引入 index.scss 时变量作用域不会穿透,会报 `Undefined variable` 错误
- 因为项目用了 rem(1rem=100px)适配方案,所有 Vue 页面和组件文件的最外层盒子都要加 `font-size: 0.14rem`,避免页面样式中受浏览器默认 rem 行高影响导致文字和布局异常