Files
watchman/.cursor/rules/element-admin-ui.mdc
T

26 lines
1.5 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
description: 管理端 Element Plus + 和信企业共享风格(已启用)。改 console Vue 时自动约束。
globs: web/apps/console/src/**/*.vue
alwaysApply: false
---
# 管理端 Element Plus(Watchman)
改匹配文件时遵守本仓 `docs/ui/ELEMENT_MIGRATION.md`,并与共享视觉规范对齐:
- 共享风格(跨项目):`D:\FDE\SP\design-system\`(DESIGN / PAGE_PATTERNS / COMPONENTS)
- 本仓库执行细则:`docs/ui/ELEMENT_MIGRATION.md`
- 本仓库列表/页脚等业务约定:`docs/current/frontend-ui.md`
- 公司 EP 落地(按页导入、确认框等):`standards://frontend/element-plus`(最新版)
硬约束:
- 按钮、输入、下拉、表格、弹窗、分页用 Element Plus;不要新写 `<button>`、`<input>`、`<select>`、`<textarea>` 充当主 UI。
- 不要新写 `btn-primary`、`btn-secondary`、`btn-ghost`、`btn-danger`、`input-field`、`select-field`。
- 图标用 `@element-plus/icons-vue`,不要往 Element 按钮里塞其他图标库组件。
- 字号和颜色走 `web/design/tokens.css` → `shared/styles/element-theme.css` 的 `--el-*`;不要在单元格上用 `text-sm` / `text-muted` 改 EP 控件。
- 危险确认用 `ElMessageBox.confirm`。
- Primary 对齐和信共享色 `#0284c7`(本仓已确认覆盖公司 visual-ux 默认紫蓝,见 `docs/decisions.md` D41)。
- 列表结构:一层卡片、左右约 32px 对齐;Watchman 筛选/分页细则以 `docs/current/frontend-ui.md` 为准。
- 禁止为还原原型引入第二套 UI 库;OpenDesign HTML 须用 EP 重写。