mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-25 04:29:20 +08:00
docs: 补充前端 Vben/Ant 组件选用规则供 Agent 参考
This commit is contained in:
@@ -32,8 +32,10 @@ deploy/ # 部署 TUI(原 ecom-deploy),流程见 deploy/MANU
|
||||
- 开发 `pnpm dev:antd`,构建 `pnpm build:antd`;类型检查 `pnpm -F @vben/web-antd typecheck`
|
||||
- lefthook 钩子会对暂存文件跑 `pnpm lint`(oxfmt/oxlint 等)与 `check:type`,commitlint 强制 conventional commit,不要绕过
|
||||
- 代码内 `#/` 别名 = `src/`
|
||||
- **UI 选型**:Vben 应用层 → Ant Design Vue → 可复用封装 → 自研;清单见 `apps/web/docs/agent-ui-components.md`(规则 `.cursor/rules/frontend-ui-priority.mdc`)
|
||||
- **web-antd 视图里不要用 `<Spin :spinning>` 整块包住可滚动列表**(ant-spin-container 破坏滚动链);滚动依赖 `flex-1 min-h-0 overflow-y-auto`,加载态拆细(详见 `.cursor/rules/antd-spin-scrollable-layout.mdc`)
|
||||
- 智能助手页:`views/agent/chat`;开发代理 `/api/agent` → `localhost:8200`(见 `vite.config.mts`)
|
||||
- 当前应用版本:`@vben/web-antd` **5.7.0**
|
||||
|
||||
## Agent(apps/agent)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user