diff --git a/fastapp/.cursorrules b/fastapp/.cursorrules deleted file mode 100644 index 4f52b823..00000000 --- a/fastapp/.cursorrules +++ /dev/null @@ -1,99 +0,0 @@ -## 样式(CSS/SCSS)与 UnoCSS 使用规范(Cursor Rules) - -目标:在不牺牲可读性的前提下最大化复用,减少冗余,保证小程序/H5 多端一致、整洁大方。 - -### 1) 总原则 -- 优先使用 UnoCSS 工具类与已定义的 shortcuts,避免重复造轮子。 -- 同一工具类组合在同一页面或多个页面中出现 ≥ 2 次时,提取为“语义化类名”。 -- 禁止使用 `@apply`,禁止在 SCSS 中重复定义 UnoCSS 已提供的工具类或在 `unocss.config.ts` 中已存在的 shortcuts(如:`flex`、`flex-start`、`flex-between`、`flex-col-center` 等)。 -- 组件库样式覆盖和页面布局样式分离:页面/组件的布局与样式用普通类,覆盖 wot 组件样式用“外部样式类”。 - -### 2) 目录与作用域 -- 页面私有样式:写在当前 `.vue` 的 ` \ No newline at end of file + + \ No newline at end of file diff --git a/fastapp/src/pages/login/index.vue b/fastapp/src/pages/login/index.vue index 08247ff2..a9ecc8a6 100644 --- a/fastapp/src/pages/login/index.vue +++ b/fastapp/src/pages/login/index.vue @@ -1,5 +1,5 @@