@reglow/reui-mcp 0.3.4 → 0.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -48,18 +48,19 @@ ReUI 组件内部存在**动态拼装的类名**,依赖消费方 Tailwind 静
|
|
|
48
48
|
|
|
49
49
|
## 4. 引入方式与 tree-shaking
|
|
50
50
|
|
|
51
|
-
| 方式 | 写法
|
|
52
|
-
| ---------- |
|
|
53
|
-
| 主入口按需 | `import { Button, PageTable } from "@reglow/reui"`
|
|
54
|
-
| 子路径 | `import { Splitter } from "@reglow/reui/reui/splitter"`、`@reglow/reui/
|
|
55
|
-
| 全局注册 | `app.use(Reui)` / `app.use(createReui({...}))`
|
|
56
|
-
| Nuxt | `modules: ["@reglow/reui/nuxt"]` 自动注册
|
|
51
|
+
| 方式 | 写法 | 适用 |
|
|
52
|
+
| ---------- | ----------------------------------------------------------------------------------- | ------------------------------- |
|
|
53
|
+
| 主入口按需 | `import { Button, PageTable } from "@reglow/reui"` | 通用推荐(构建器可 tree-shake) |
|
|
54
|
+
| 子路径 | `import { Splitter } from "@reglow/reui/reui/splitter"`、`@reglow/reui/reui/button` | 想显式控制粒度 |
|
|
55
|
+
| 全局注册 | `app.use(Reui)` / `app.use(createReui({...}))` | 页面里不想逐个 import |
|
|
56
|
+
| Nuxt | `modules: ["@reglow/reui/nuxt"]` 自动注册 | Nuxt 项目 |
|
|
57
57
|
|
|
58
58
|
**命名冲突要当心**:`ui` 与 `reui` 有同名组件(`Input`、`Textarea`、`Table`、`Tabs`、`Card`、`Alert`、`Calendar`、`Collapsible`)。
|
|
59
59
|
|
|
60
60
|
- 聚合规则:主入口 `export *` 两侧,**同名 reui 优先**,`ui` 只导出独有内容(`guide.md` §3)。
|
|
61
61
|
- `ui/input`、`ui/textarea`、`ui/avatar` 已标记 `@deprecated`,内部转发到 `reui` 版本——新代码统一从 `@reglow/reui` 或 `/reui/*` 取(头像组请用 `reui/avatar` 的 `AvatarGroup`)。
|
|
62
62
|
- 表格命名:`reui/table` 导出通用表格 **`Table`**、分页表格 **`PageTable`** 与基础原子组件 `TableRoot/TableHeader/TableBody/TableRow/TableHead/TableCell`;`ui/table` 已标记 `@deprecated`,仅转发到 `reui/table`(其 `Table` 即 `TableRoot`)。
|
|
63
|
+
- 已迁移组件(0.6.5):`button` / `combobox` / `native-select` / `tags-input` 已从 `components/ui` 迁到 `components/reui`,`ui/*` 仅保留映射(`export *`),新旧子路径都可用;新代码优先用 `reui/*`。
|
|
63
64
|
|
|
64
65
|
## 5. 主题
|
|
65
66
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
> 分类与文档链接取自官网组件总览 https://reglow.huoli.tech/components-library/reui (同源仓库文件:`reglow-docs/content/components-library/1.reui/1.index.md`)。
|
|
4
4
|
> 导入符号已逐一核对各组件目录的 `index.ts`(`reui/components/reui/*/index.ts`、`reui/components/ui/*/index.ts`)。
|
|
5
|
-
> 版本基线:`@reglow/reui` 0.6.
|
|
5
|
+
> 版本基线:`@reglow/reui` 0.6.6(`reui/package.json`)。
|
|
6
6
|
|
|
7
7
|
## 使用方式
|
|
8
8
|
|
|
@@ -51,7 +51,7 @@ description: ReUI(@reglow/reui)Vue 3 组件库的检索、选型、用法示
|
|
|
51
51
|
| -------------- | ------------------------------------------------------------------------------------- | ----------------------------------------------- |
|
|
52
52
|
| 安装 | `npm i @reglow/reui` | `reui/README.md` |
|
|
53
53
|
| 主入口 | `import { Button, Splitter } from "@reglow/reui"` | `reui/package.json` exports `.` |
|
|
54
|
-
| 子路径(按需) | `import { Splitter } from "@reglow/reui/reui/splitter"`、`@reglow/reui/
|
|
54
|
+
| 子路径(按需) | `import { Splitter } from "@reglow/reui/reui/splitter"`、`@reglow/reui/reui/button` | `reui/package.json` exports `./ui/*` `./reui/*` |
|
|
55
55
|
| 其他子路径 | `@reglow/reui/i18n`、`@reglow/reui/theme`、`@reglow/reui/nuxt` | 同上 |
|
|
56
56
|
| 样式(完整) | `import "@reglow/reui/style.css"` | `reui/package.json` exports `./style.css` |
|
|
57
57
|
| 样式(仅组件) | `import "@reglow/reui/components.css"`(宿主已有 Tailwind/主题变量,避免 reset 冲突) | `reui/README.md` |
|
|
@@ -152,10 +152,10 @@ npx -y -p @reglow/reui-mcp reui-setup --tools trae,codebuddy,qoder
|
|
|
152
152
|
# 可选:--scope user(用户级)|--dry-run(仅预览)|--force(覆盖已有 Skills)
|
|
153
153
|
```
|
|
154
154
|
|
|
155
|
-
| 工具 | Skills 目录(项目级) | MCP 配置(项目级)
|
|
156
|
-
| --------- | --------------------- |
|
|
157
|
-
| Trae | `.trae/skills/` | `.trae/mcp.json`
|
|
158
|
-
| CodeBuddy | `.codebuddy/skills/` | `.mcp.json`
|
|
155
|
+
| 工具 | Skills 目录(项目级) | MCP 配置(项目级) | 仍需手动完成 |
|
|
156
|
+
| --------- | --------------------- | ---------------------------------------- | ----------------------------------------------------------------------------------- |
|
|
157
|
+
| Trae | `.trae/skills/` | `.trae/mcp.json` | 设置 → MCP 打开「启用项目级 MCP」开关 |
|
|
158
|
+
| CodeBuddy | `.codebuddy/skills/` | `.mcp.json` | IDE 需在对话面板 CodeBuddy Settings → MCP → Add MCP 粘贴同一条目;CLI 直接生效 |
|
|
159
159
|
| Qoder | `.qoder/skills/` | `.mcp.json`(或 `.qoder/settings.json`) | 项目级 MCP 默认需批准(或设 `mcp.enableAllProjectMcpServers: true`);`/mcp reload` |
|
|
160
160
|
|
|
161
161
|
- MCP 条目:`{"command":"npx","args":["-y","@reglow/reui-mcp"]}`;CodeBuddy / Qoder 额外带 `type: "stdio"` 与 `description`。
|