@reglow/reui-mcp 0.3.3 → 0.3.5
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.5(`reui/package.json`)。
|
|
6
6
|
|
|
7
7
|
## 使用方式
|
|
8
8
|
|
|
@@ -12,17 +12,18 @@ import { Splitter, PageTable, ConfigProvider } from "@reglow/reui";
|
|
|
12
12
|
|
|
13
13
|
// 按需子路径(等价,粒度更细)
|
|
14
14
|
import { Splitter, SplitterPanel } from "@reglow/reui/reui/splitter";
|
|
15
|
-
import { Button } from "@reglow/reui/
|
|
15
|
+
import { Button } from "@reglow/reui/reui/button";
|
|
16
16
|
```
|
|
17
17
|
|
|
18
18
|
- 文档链接形如 `https://reglow.huoli.tech/components-library/reui/components/<category>/<name>`。
|
|
19
19
|
- `子路径` 列中的 `ui/*` 表示基础组件层,`reui/*` 表示高级组件层;主入口同名组件以 `reui` 为准(`guide.md` §3)。
|
|
20
|
+
- 已迁移到 `reui/*` 的组件(`button` / `combobox` / `native-select` / `tags-input`)在 `ui/*` 下保留映射,旧引入路径仍可用。
|
|
20
21
|
|
|
21
22
|
## 通用 general
|
|
22
23
|
|
|
23
24
|
| 组件 | 中文名 | 说明 | 导入符号 | 子路径 |
|
|
24
25
|
| --------------------------------------------------------------------------------------- | ------ | ----------------------------------------- | ----------------------------------------------------------------------- | -------------- |
|
|
25
|
-
| [button](https://reglow.huoli.tech/components-library/reui/components/general/button) | 按钮 | 触发操作的基础按钮 | `Button` | `
|
|
26
|
+
| [button](https://reglow.huoli.tech/components-library/reui/components/general/button) | 按钮 | 触发操作的基础按钮 | `Button` | `reui/button` |
|
|
26
27
|
| [divider](https://reglow.huoli.tech/components-library/reui/components/general/divider) | 分割线 | 分隔内容区域 | `Divider` | `reui/divider` |
|
|
27
28
|
| [icon](https://reglow.huoli.tech/components-library/reui/components/general/icon) | 图标 | 统一图标组件(lucide / radix / 本地 SVG) | `Icon`(`adminIcons` / `radixIcons` / `registerIcons` / `resolveIcon`) | `reui/icon` |
|
|
28
29
|
| [label](https://reglow.huoli.tech/components-library/reui/components/general/label) | 标签 | 表单字段文本标签 | `Label` | `ui/label` |
|
|
@@ -55,21 +56,21 @@ import { Button } from "@reglow/reui/ui/button";
|
|
|
55
56
|
| [cascader](https://reglow.huoli.tech/components-library/reui/components/data-entry/cascader) | 级联选择 | 多级联动选择 | `Cascader` | `reui/cascader` |
|
|
56
57
|
| [checkbox](https://reglow.huoli.tech/components-library/reui/components/data-entry/checkbox) | 多选框 | 多项选择(含不确定态) | `Checkbox` / `CheckboxGroup` | `reui/checkbox` |
|
|
57
58
|
| [code-editor](https://reglow.huoli.tech/components-library/reui/components/data-entry/code-editor) | 代码编辑器 | 零依赖语法高亮 + 可编辑(Python/TS/Java/Rust) | `CodeEditor`(`highlightCode` / `tokenizeLines`) | `reui/code-editor` |
|
|
58
|
-
| [combobox](https://reglow.huoli.tech/components-library/reui/components/data-entry/combobox) | 组合框 | 可搜索选择框 | `Combobox` / `EditableCombobox` | `
|
|
59
|
+
| [combobox](https://reglow.huoli.tech/components-library/reui/components/data-entry/combobox) | 组合框 | 可搜索选择框 | `Combobox` / `EditableCombobox` | `reui/combobox` |
|
|
59
60
|
| [command](https://reglow.huoli.tech/components-library/reui/components/data-entry/command) | 命令面板 | 命令式菜单 | `Command` / `CommandDialog` / `CommandInput` / `CommandList` / `CommandItem` / `CommandEmpty` / `CommandGroup` / `CommandSeparator` / `CommandShortcut` | `ui/command` |
|
|
60
61
|
| [date-picker](https://reglow.huoli.tech/components-library/reui/components/data-entry/date-picker) | 日期选择 | 选择日期 / 日期范围 / 日期时间 | `DatePicker` / `DateRangePicker` / `CalendarPanel` | `reui/date-picker` |
|
|
61
62
|
| [editor](https://reglow.huoli.tech/components-library/reui/components/data-entry/editor) | 富文本 | 富文本编辑器(Tiptap) | `Editor` / `EditorToolbar` / `EditorBubbleMenu` / `EditorDragHandle` / `EditorSuggestionMenu` / `EditorMentionMenu` / `EditorEmojiMenu` | `reui/editor` |
|
|
62
63
|
| [input](https://reglow.huoli.tech/components-library/reui/components/data-entry/input) | 输入框 | 基础文本输入(含 variant / status) | `Input` | `reui/input` |
|
|
63
64
|
| [input-password](https://reglow.huoli.tech/components-library/reui/components/data-entry/input-password) | 密码输入框 | 掩码显示与显隐切换 | `InputPassword` | `reui/input-password` |
|
|
64
65
|
| [input-select](https://reglow.huoli.tech/components-library/reui/components/data-entry/input-select) | 输入选择 | 输入与下拉结合 | `InputSelect` | `reui/input-select` |
|
|
65
|
-
| [native-select](https://reglow.huoli.tech/components-library/reui/components/data-entry/native-select) | 原生选择 | 原生下拉框 | `NativeSelect` / `NativeSelectOptGroup` / `NativeSelectOption` | `
|
|
66
|
+
| [native-select](https://reglow.huoli.tech/components-library/reui/components/data-entry/native-select) | 原生选择 | 原生下拉框 | `NativeSelect` / `NativeSelectOptGroup` / `NativeSelectOption` | `reui/native-select` |
|
|
66
67
|
| [radio](https://reglow.huoli.tech/components-library/reui/components/data-entry/radio) | 单选框 | 单项选择(含按钮组) | `RadioGroup` / `RadioGroupItem` / `RadioGroupSingle` / `RadioSingle` | `reui/radio` |
|
|
67
68
|
| [rate](https://reglow.huoli.tech/components-library/reui/components/data-entry/rate) | 评分 | 星级评分 | `Rate` | `reui/rate` |
|
|
68
69
|
| [segmented](https://reglow.huoli.tech/components-library/reui/components/data-entry/segmented) | 分段控制 | 分段选择 | `Segmented` | `reui/segmented` |
|
|
69
70
|
| [select](https://reglow.huoli.tech/components-library/reui/components/data-entry/select) | 选择器 | 下拉选择(reka-ui 透传) | `Select` / `SelectTrigger` / `SelectContent` / `SelectItem` / `SelectValue` / `SelectGroup` / `SelectLabel` … | `reui/select` |
|
|
70
71
|
| [slide-captcha](https://reglow.huoli.tech/components-library/reui/components/data-entry/slide-captcha) | 滑块验证 | 滑块验证码 | `SlideCaptcha` | `reui/slide-captcha` |
|
|
71
72
|
| [switch](https://reglow.huoli.tech/components-library/reui/components/data-entry/switch) | 开关 | 受控开关 | `Switch` | `ui/switch` |
|
|
72
|
-
| [tags-input](https://reglow.huoli.tech/components-library/reui/components/data-entry/tags-input) | 标签输入 | 标签式输入 | `TagsInput` / `TagsInputInput` / `TagsInputItem` / `TagsInputItemText` / `TagsInputItemDelete` | `
|
|
73
|
+
| [tags-input](https://reglow.huoli.tech/components-library/reui/components/data-entry/tags-input) | 标签输入 | 标签式输入 | `TagsInput` / `TagsInputInput` / `TagsInputItem` / `TagsInputItemText` / `TagsInputItemDelete` | `reui/tags-input` |
|
|
73
74
|
| [textarea](https://reglow.huoli.tech/components-library/reui/components/data-entry/textarea) | 多行文本 | 多行文本输入 | `Textarea` | `reui/textarea` |
|
|
74
75
|
| [time-picker](https://reglow.huoli.tech/components-library/reui/components/data-entry/time-picker) | 时间选择 | 选择时间 | `TimePicker` | `reui/time-picker` |
|
|
75
76
|
| [transfer](https://reglow.huoli.tech/components-library/reui/components/data-entry/transfer) | 穿梭框 | 双栏数据穿梭 | `Transfer` | `reui/transfer` |
|
|
@@ -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`。
|