@zat-design/sisyphus-react-mcp 1.0.2 → 4.5.7

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/README.md CHANGED
@@ -1,65 +1,48 @@
1
1
  # @zat-design/sisyphus-react-mcp
2
2
 
3
- `@zat-design/sisyphus-react` 组件库的 MCP(Model Context Protocol)server,向 Claude Code / Cursor 等 AI 编码助手实时暴露组件库的**组件清单、API、配置式约定、真实示例**查询能力。
3
+ ## 解决什么问题
4
4
 
5
- 元数据随组件库版本构建生成,**永不与版本漂移**,离线可用,无需自建服务。
5
+ 向 AI 暴露 Sisyphus 真实的组件清单、API、TypeScript 类型和 demo,避免凭记忆生成过时代码。元数据随 MCP 发布,业务组件包不再携带 AI 快照。
6
6
 
7
- ## 为什么需要它
7
+ ## 前置版本
8
8
 
9
- 大模型训练数据几乎没收录这个内网组件库,写代码时靠幻觉或过时记忆(如残留 v3 的 `ProColumnProps`)。本 MCP 让 AI 在生成代码前能查到当前版本**真实存在的** props、配置约定与可运行示例。
9
+ - Node.js 18+
10
+ - `@zat-design/sisyphus-react@4.5.7`
11
+ - `@zat-design/sisyphus-react-mcp@4.5.7`
10
12
 
11
- ## 提供的工具
13
+ 两包必须完全同版。启动时校验项目组件版本、MCP 内置元数据版本、schema v2 和 SHA-256。
12
14
 
13
- | 工具 | 作用 |
14
- |------|------|
15
- | `sisyphus-list-components` | 列出全部组件及业务域分类、一句话描述 |
16
- | `sisyphus-get-component-api` | 按组件名返回 props/fieldProps 与配置式约定枚举(`type`/`valueType`/`names`)。默认不内联示例 |
17
- | `sisyphus-get-examples` | 按组件名(可选场景关键词)返回真实可运行的 demo 源码 |
18
- | `sisyphus-search` | 按关键词跨组件清单/props 描述/示例标题检索 |
15
+ ## 三步安装
19
16
 
20
- ## 接入方式
21
-
22
- ### Claude Code(`.mcp.json`)
23
-
24
- 在项目根目录的 `.mcp.json` 中加入:
17
+ 1. 安装同版组件库。
18
+ 2. 在 `.mcp.json` 或 `.cursor/mcp.json` 配置:
25
19
 
26
20
  ```json
27
21
  {
28
22
  "mcpServers": {
29
23
  "sisyphus-react": {
30
24
  "command": "npx",
31
- "args": ["-y", "@zat-design/sisyphus-react-mcp"]
25
+ "args": ["-y", "@zat-design/sisyphus-react-mcp@4.5.7"]
32
26
  }
33
27
  }
34
28
  }
35
29
  ```
36
30
 
37
- 重启 Claude Code 后即可发现并调用上述工具。
38
-
39
- ### Cursor(`.cursor/mcp.json`)
40
-
41
- 在项目根目录的 `.cursor/mcp.json` 中加入相同配置:
42
-
43
- ```json
44
- {
45
- "mcpServers": {
46
- "sisyphus-react": {
47
- "command": "npx",
48
- "args": ["-y", "@zat-design/sisyphus-react-mcp"]
49
- }
50
- }
51
- }
52
- ```
31
+ 3. 重启 AI 工具并调用 `sisyphus-get-meta-status`。
53
32
 
54
- 重启 Cursor 后生效。
33
+ ## 推荐调用顺序
55
34
 
56
- ## 工作原理
35
+ 1. `sisyphus-get-meta-status`
36
+ 2. `sisyphus-list-components`
37
+ 3. `sisyphus-get-component-api`
38
+ 4. 按需 `sisyphus-get-type`
39
+ 5. `sisyphus-list-examples`
40
+ 6. `sisyphus-get-example`
57
41
 
58
- - stdio 传输,`npx -y` 免安装拉取启动,离线运行。
59
- - 启动时加载包内随附的元数据 JSON(`meta/`),元数据缺失或损坏时显式报错,不静默返回空。
60
- - 返回内容经脱水压缩(剔除呈现噪声、双语保留中文、去重)以降低 token 占用。
61
- - 元数据版本标记与对应组件库版本一致,可供消费方核对。
42
+ `sisyphus-search` 用于跨元数据检索;`sisyphus-get-examples` 仅作兼容。
62
43
 
63
- ## 与组件库的关系
44
+ ## 常见错误
64
45
 
65
- 本包与主包 `@zat-design/sisyphus-react` **解耦**:主包体积与版本不受影响,本包可独立迭代。集中更新通过发布新版本实现,用户下次 `npx` 自动获取最新版。
46
+ - 版本不同:将组件库、MCP Scene Agent 统一到完全相同的 SemVer。
47
+ - 找不到组件包:确认当前业务项目安装了同版 `@zat-design/sisyphus-react`。
48
+ - schema/哈希错误:重新安装同版 MCP,不继续使用损坏缓存。
@@ -1,187 +1,390 @@
1
1
  {
2
- "version": "4.5.6-beta.4",
2
+ "schemaVersion": 2,
3
+ "version": "4.5.7",
3
4
  "components": [
4
5
  {
5
- "name": "FormsProvider",
6
- "category": "",
7
- "description": "",
8
- "whenToUse": [],
9
- "importPath": "@zat-design/sisyphus-react"
6
+ "name": "ProCollapse",
7
+ "aliases": [],
8
+ "category": "布局",
9
+ "description": "ProCollapse 折叠标题",
10
+ "whenToUse": [
11
+ "页面内容需要按模块分组展示,并支持折叠/展开时",
12
+ "需要一级或二级标题区域折叠,节省长表单或详情页空间时"
13
+ ],
14
+ "importPath": "@zat-design/sisyphus-react",
15
+ "propsType": "ProCollapseType"
10
16
  },
11
17
  {
12
- "name": "ProAction",
13
- "category": "通用",
14
- "description": "ProAction 事件封装",
15
- "whenToUse": [],
16
- "importPath": "@zat-design/sisyphus-react"
18
+ "name": "ProFooter",
19
+ "aliases": [],
20
+ "category": "布局",
21
+ "description": "ProFooter 底部",
22
+ "whenToUse": [
23
+ "页面底部需要固定悬浮操作栏(提交、保存、取消等)时",
24
+ "当底部栏需自适应侧栏宽度,避免遮挡菜单或内容区域时"
25
+ ],
26
+ "importPath": "@zat-design/sisyphus-react",
27
+ "propsType": "ProFooterType"
17
28
  },
18
29
  {
19
- "name": "ProConfigProvider",
20
- "category": "通用",
21
- "description": "ProConfigProvider 全局化配置",
22
- "whenToUse": [],
23
- "importPath": "@zat-design/sisyphus-react"
30
+ "name": "ProHeader",
31
+ "aliases": [],
32
+ "category": "布局",
33
+ "description": "ProHeader 头部",
34
+ "whenToUse": [
35
+ "页面头部需要展示返回按钮、标题与面包屑导航时",
36
+ "头部需展示单号复制、功能按钮等页级操作时",
37
+ "头部有摘要信息需要通过 Popover 查看详情数据时"
38
+ ],
39
+ "importPath": "@zat-design/sisyphus-react",
40
+ "propsType": "ProHeaderType"
24
41
  },
25
42
  {
26
- "name": "ProDownload",
27
- "category": "通用",
28
- "description": "ProDownload 下载按钮",
29
- "whenToUse": [],
30
- "importPath": "@zat-design/sisyphus-react"
43
+ "name": "ProLayout",
44
+ "aliases": [],
45
+ "category": "布局",
46
+ "description": "ProLayout 菜单",
47
+ "whenToUse": [
48
+ "需要搭建带侧边栏菜单、顶部栏与内容区的后台管理系统页面框架时",
49
+ "当页面需要标签页导航、iframe 嵌入第三方系统或工作台模式时",
50
+ "需要统一管理全局水印、应用入口切换等页面级能力时"
51
+ ],
52
+ "importPath": "@zat-design/sisyphus-react",
53
+ "propsType": "ProLayoutType"
54
+ },
55
+ {
56
+ "name": "ProStep",
57
+ "aliases": [],
58
+ "category": "布局",
59
+ "description": "ProStep 步骤条",
60
+ "whenToUse": [
61
+ "当长页面需要锚点定位并分步骤展示内容区块时",
62
+ "当你需要在步骤间跳转并自动收集各模块的表单校验错误时",
63
+ "配合 ProCollapse 使用时,可实现分组折叠与步骤导航联动"
64
+ ],
65
+ "importPath": "@zat-design/sisyphus-react",
66
+ "propsType": "ProStepType"
67
+ },
68
+ {
69
+ "name": "ProTabs",
70
+ "aliases": [],
71
+ "category": "布局",
72
+ "description": "ProTabs 工作台 Tabs",
73
+ "whenToUse": [
74
+ "工作台页面需要以 Tab 切换展示不同业务分区,且每个 Tab 需显示数量徽标时",
75
+ "当 Tab 数据需通过接口异步刷新,或切换 Tab 时触发列表查询时"
76
+ ],
77
+ "importPath": "@zat-design/sisyphus-react",
78
+ "propsType": "ProTabsType"
79
+ },
80
+ {
81
+ "name": "ProTable",
82
+ "aliases": [],
83
+ "category": "数据展示",
84
+ "description": "ProTable 高扩展表格",
85
+ "whenToUse": [
86
+ "提供多达十种常用类型(`百分比、千分位、枚举、地址、日期时间等`)的快捷展示方式,当你需要快速转换时",
87
+ "当你的表格需要支持`自定义列、可伸缩列、拖拽排序、重置列宽、缓存列配置、合计`等功能时",
88
+ "配合框架提供的`useAntdTable`使用更佳"
89
+ ],
90
+ "importPath": "@zat-design/sisyphus-react",
91
+ "propsType": "ProTableType"
92
+ },
93
+ {
94
+ "name": "ProTooltip",
95
+ "aliases": [],
96
+ "category": "数据展示",
97
+ "description": "ProTooltip 文本提示",
98
+ "whenToUse": [
99
+ "文案超长需要设置制定行数省略,然后通过 Tooltip 提示",
100
+ "表格中文案需要折叠时"
101
+ ],
102
+ "importPath": "@zat-design/sisyphus-react",
103
+ "propsType": "ProTooltipType"
104
+ },
105
+ {
106
+ "name": "ProViewer",
107
+ "aliases": [],
108
+ "category": "数据展示",
109
+ "description": "ProViewer 文件预览",
110
+ "whenToUse": [
111
+ "需要在页面内预览 PDF、图片等常见附件,无需用户下载后打开时",
112
+ "支持弹窗或新开页面两种预览模式,并可接收接口地址或二进制流数据",
113
+ "预览 Word/Excel 时依赖外网微软服务,内网环境可能不可用"
114
+ ],
115
+ "importPath": "@zat-design/sisyphus-react",
116
+ "propsType": "ProViewerType"
117
+ },
118
+ {
119
+ "name": "ProEditTable",
120
+ "aliases": [],
121
+ "category": "数据录入",
122
+ "description": "ProEditTable 可编辑表格",
123
+ "whenToUse": [
124
+ "表格数据需行内直接编辑,无需弹窗或抽屉二次录入时",
125
+ "需要预设新增、删除、保存、取消、批量删除等行操作并同步 Form 值时",
126
+ "当表格需支持拖拽排序、虚拟列表、列联动等复杂可编辑场景时"
127
+ ],
128
+ "importPath": "@zat-design/sisyphus-react",
129
+ "propsType": "ProEditTableType"
31
130
  },
32
131
  {
33
132
  "name": "ProDrawerForm",
133
+ "aliases": [],
34
134
  "category": "数据录入",
35
135
  "description": "ProDrawerForm 抽屉或者弹窗表单组件",
36
- "whenToUse": [],
37
- "importPath": "@zat-design/sisyphus-react"
136
+ "whenToUse": [
137
+ "复杂表单需要在抽屉或弹窗中承载,避免跳转新页面时",
138
+ "需要查看模式、自定义头底部、或拖拽调整弹窗/抽屉尺寸时",
139
+ "嵌套 ProForm 时,可复用 columns 配置快速搭建弹窗表单"
140
+ ],
141
+ "importPath": "@zat-design/sisyphus-react",
142
+ "propsType": "ProDrawerFormType"
38
143
  },
39
144
  {
40
145
  "name": "ProEditLabel",
146
+ "aliases": [],
41
147
  "category": "数据录入",
42
148
  "description": "ProEditLabel 编辑的 label",
43
- "whenToUse": [],
44
- "importPath": "@zat-design/sisyphus-react"
149
+ "whenToUse": [
150
+ "表格里只想编辑其中的某一个部分,默认支持 ProForm 内置的所有表单与转换器",
151
+ "审核与删除或者其他场景通过按钮或文字触发弹窗再次填写信息时使用"
152
+ ],
153
+ "importPath": "@zat-design/sisyphus-react",
154
+ "propsType": "ProEditLabelType"
45
155
  },
46
156
  {
47
- "name": "ProEditTable",
157
+ "name": "ProStepTab",
158
+ "aliases": [],
48
159
  "category": "数据录入",
49
- "description": "ProEditTable 可编辑表格",
160
+ "description": "ProStepTab 分步表单 Tab",
161
+ "whenToUse": [
162
+ "需要将长表单拆分为多个步骤 Tab 分步填写时",
163
+ "当切换 Tab 或刷新页面后需保持当前激活步骤状态时",
164
+ "需要有序激活、自动跳转下一步或全局模式控制分步流程时"
165
+ ],
166
+ "importPath": "@zat-design/sisyphus-react",
167
+ "propsType": "ProStepTabType"
168
+ },
169
+ {
170
+ "name": "ProCascader",
171
+ "aliases": [],
172
+ "category": "表单",
173
+ "description": "ProCascader 级联组件",
50
174
  "whenToUse": [
51
- "当你的表格需要与服务端进行交互,或者列表字段不多的情况时,不需要弹框或者抽屉的形式去更新表格信息,此时 ProEditTable 是不二选择"
175
+ "需要级联选择地址,或通过 mode 为 address 录入省市区街道时",
176
+ "数据源可通过全局枚举 code 读取,也支持自定义接口请求与数据转换",
177
+ "结合 ProForm 使用时,可一键配置表单项级联与值转换逻辑"
52
178
  ],
53
- "importPath": "@zat-design/sisyphus-react"
179
+ "importPath": "@zat-design/sisyphus-react",
180
+ "propsType": "ProCascaderType"
54
181
  },
55
182
  {
56
183
  "name": "ProEnum",
184
+ "aliases": [],
57
185
  "category": "表单",
58
186
  "description": "ProEnum 枚举组件",
59
- "whenToUse": [],
60
- "importPath": "@zat-design/sisyphus-react"
187
+ "whenToUse": [
188
+ "需要根据全局枚举或自定义数据展示下拉框、单选/多选等表单控件时",
189
+ "同一枚举需在页面多处复用,且支持 tag、Segmented 等多种展示形式时"
190
+ ],
191
+ "importPath": "@zat-design/sisyphus-react",
192
+ "propsType": "ProEnumType"
61
193
  },
62
194
  {
63
195
  "name": "ProForm",
196
+ "aliases": [],
64
197
  "category": "表单",
65
198
  "description": "ProForm 表单引擎",
66
199
  "whenToUse": [
67
- "提供类似 ant table 的`columns`快速配置,一个输入组件最少只需要配置两个字段即可配置成功",
68
- "内置`枚举、日期增强(无需关注dayjs转换)、下拉框增强、地址、开关增强(支持设置自定义值)、证件号码、证件有效期、范围框、枚举选择弹框`等自定义输入组件类型",
69
- "提供查看模式,避免统一使用禁用模式"
200
+ "提供类似 ant table 的 `columns` 快速配置,一个输入组件最少只需两个字段即可",
201
+ "内置枚举、日期增强、地址、证件号码、范围框等多种自定义输入组件类型",
202
+ "提供查看模式,避免统一使用禁用模式展示只读数据"
70
203
  ],
71
- "importPath": "@zat-design/sisyphus-react"
72
- },
73
- {
74
- "name": "ProHeader",
75
- "category": "布局",
76
- "description": "ProHeader 头部",
77
- "whenToUse": [],
78
- "importPath": "@zat-design/sisyphus-react"
204
+ "importPath": "@zat-design/sisyphus-react",
205
+ "propsType": "ProFormType"
79
206
  },
80
207
  {
81
- "name": "ProIcon",
82
- "category": "通用",
83
- "description": "ProIcon 图标",
84
- "whenToUse": [],
85
- "importPath": "@zat-design/sisyphus-react"
208
+ "name": "ProModalSelect",
209
+ "aliases": [],
210
+ "category": "表单",
211
+ "description": "ProModalSelect 弹窗分页选择",
212
+ "whenToUse": [
213
+ "当下拉框无法展示足够信息,需要通过表格分页搜索选择数据时",
214
+ "需要多选、远程回显、labelInValue 提交对象或自定义确认选择流程时",
215
+ "结合 ProForm 使用时,可复用 columns 配置快速搭建弹窗选择表单"
216
+ ],
217
+ "importPath": "@zat-design/sisyphus-react",
218
+ "propsType": "ProModalSelectType"
86
219
  },
87
220
  {
88
- "name": "ProLayout",
89
- "category": "布局",
90
- "description": "ProLayout 菜单",
91
- "whenToUse": [],
92
- "importPath": "@zat-design/sisyphus-react"
221
+ "name": "ProNumberRange",
222
+ "aliases": [],
223
+ "category": "表单",
224
+ "description": "ProNumberRange 数字范围",
225
+ "whenToUse": [
226
+ "表单中需要录入金额、数量等数字的最小值和最大值范围时",
227
+ "结合 ProForm 使用时,支持范围值的自动拆分与合并转换"
228
+ ],
229
+ "importPath": "@zat-design/sisyphus-react",
230
+ "propsType": "ProNumberRangeType"
93
231
  },
94
232
  {
95
233
  "name": "ProSelect",
234
+ "aliases": [],
96
235
  "category": "表单",
97
236
  "description": "ProSelect 加强下拉框",
98
- "whenToUse": [],
99
- "importPath": "@zat-design/sisyphus-react"
237
+ "whenToUse": [
238
+ "当标准 Select 无法满足远程搜索、异步加载或 value-label 回显需求时",
239
+ "需要下拉选项超长展示 tooltip,或提交对象/多选字符串等多种值格式时",
240
+ "结合 ProForm 使用时,可统一配置 fieldNames 和接口数据转换",
241
+ "*dataSource** 默认数据数据格式为:",
242
+ "```js",
243
+ "const dataSource = [",
244
+ "{ label: '上海', value: 'sh' },",
245
+ "{ label: '北京', value: 'bj' },",
246
+ "{ label: '武汉', value: 'wh' },",
247
+ "];",
248
+ "```"
249
+ ],
250
+ "importPath": "@zat-design/sisyphus-react",
251
+ "propsType": "ProSelectType"
100
252
  },
101
253
  {
102
- "name": "ProStep",
103
- "category": "布局",
104
- "description": "ProStep 步骤条",
105
- "whenToUse": [],
106
- "importPath": "@zat-design/sisyphus-react"
254
+ "name": "ProTimeLimit",
255
+ "aliases": [],
256
+ "category": "表单",
257
+ "description": "ProTimeLimit 证件有效期",
258
+ "whenToUse": [
259
+ "录入身份证、护照等证件有效期,且需提供「长期有效」快捷选项时",
260
+ "结合 ProForm 使用时,支持切换日期格式和不同 valueType 回传"
261
+ ],
262
+ "importPath": "@zat-design/sisyphus-react",
263
+ "propsType": "ProTimeLimitType"
107
264
  },
108
265
  {
109
- "name": "ProStepTab",
110
- "category": "数据录入",
111
- "description": "ProStepTab 分步表单 Tab",
266
+ "name": "ProTree",
267
+ "aliases": [],
268
+ "category": "表单",
269
+ "description": "ProTree 树",
112
270
  "whenToUse": [
113
- "需要分步表单时",
114
- "需要表单刷新保持激活状态时",
115
- "需要表单分步激活时"
271
+ "需要树形或下拉树方式选择层级数据,支持搜索、全选、只选叶子节点时",
272
+ "数据源可通过接口、ProEnum 全局枚举获取,并支持查看模式与粘连选择时",
273
+ "在表单中需要展示 value-label 格式,或自定义渲染树节点时"
116
274
  ],
117
- "importPath": "@zat-design/sisyphus-react"
275
+ "importPath": "@zat-design/sisyphus-react",
276
+ "propsType": "ProTreeType"
118
277
  },
119
278
  {
120
- "name": "ProTable",
121
- "category": "数据展示",
122
- "description": "ProTable 高扩展表格",
123
- "whenToUse": [],
124
- "importPath": "@zat-design/sisyphus-react"
279
+ "name": "ProTreeModal",
280
+ "aliases": [],
281
+ "category": "表单",
282
+ "description": "ProTreeModal 树弹框选择",
283
+ "whenToUse": [
284
+ "当平铺列表或树形结构的选择项过多,需要弹窗分页/搜索选取时",
285
+ "需要限制选择数量、支持拖拽排序、级联展示或指定模式操作时",
286
+ "表单中需以 labelInValue 提交对象,或自定义 trigger 触发选择时"
287
+ ],
288
+ "importPath": "@zat-design/sisyphus-react",
289
+ "propsType": "ProTreeModalType"
125
290
  },
126
291
  {
127
- "name": "ProTabs",
128
- "category": "布局",
129
- "description": "ProTabs 工作台 Tabs",
130
- "whenToUse": [],
131
- "importPath": "@zat-design/sisyphus-react"
292
+ "name": "ProUpload",
293
+ "aliases": [],
294
+ "category": "表单",
295
+ "description": "ProUpload 上传控件",
296
+ "whenToUse": [
297
+ "需要拖拽上传、模板下载后上传,或多文件/图片证件上传场景时",
298
+ "当上传需结合 ProForm 表单,或需外部手动控制上传时机时"
299
+ ],
300
+ "importPath": "@zat-design/sisyphus-react",
301
+ "propsType": "ProUploadType"
132
302
  },
133
303
  {
134
304
  "name": "ProThemeTools",
305
+ "aliases": [],
135
306
  "category": "通用",
136
307
  "description": "ProThemeTools 主题配置",
137
308
  "whenToUse": [
138
- "应用层级需要改变全局主题,间隔,表单对齐方式时",
139
- "微前端场景需要改变整个系统的全局主题配置时",
309
+ "开发环境需要快速调试全局主题色、间距、表单对齐方式时",
310
+ "微前端场景需要调整整个系统的主题配置并持久化缓存时",
140
311
  "主题配置工具,用于开发环境"
141
312
  ],
142
- "importPath": "@zat-design/sisyphus-react"
143
- },
144
- {
145
- "name": "ProTooltip",
146
- "category": "数据展示",
147
- "description": "ProTooltip 文本提示",
148
- "whenToUse": [],
149
- "importPath": "@zat-design/sisyphus-react"
313
+ "importPath": "@zat-design/sisyphus-react",
314
+ "propsType": "ProThemeToolsType"
150
315
  },
151
316
  {
152
- "name": "ProTree",
153
- "category": "表单",
154
- "description": "基本使用",
155
- "whenToUse": [],
156
- "importPath": "@zat-design/sisyphus-react"
317
+ "name": "ProIcon",
318
+ "aliases": [],
319
+ "category": "通用",
320
+ "description": "ProIcon 图标",
321
+ "whenToUse": [
322
+ "需要展示 iconFont 图标库中的图标,或在菜单、表单前后缀位置使用图标时",
323
+ "当图标需要配合 tooltip、主题色、loading 等状态展示时"
324
+ ],
325
+ "importPath": "@zat-design/sisyphus-react",
326
+ "propsType": "ProIconType"
157
327
  },
158
328
  {
159
- "name": "ProTreeModal",
160
- "category": "表单",
161
- "description": "基本使用",
162
- "whenToUse": [],
163
- "importPath": "@zat-design/sisyphus-react"
329
+ "name": "ProDownload",
330
+ "aliases": [],
331
+ "category": "通用",
332
+ "description": "ProDownload 下载按钮",
333
+ "whenToUse": [
334
+ "需要在当前页面触发文件下载,避免打开新标签页时",
335
+ "当文件需通过 Post 接口返回文件流下载,或支持静态资源地址下载时",
336
+ "下载按钮需继承 antd Button 属性,并支持下载前/后自定义处理时"
337
+ ],
338
+ "importPath": "@zat-design/sisyphus-react",
339
+ "propsType": "ProDownloadType"
164
340
  },
165
341
  {
166
- "name": "ProUpload",
167
- "category": "表单",
168
- "description": "ProUpload 上传控件",
169
- "whenToUse": [],
170
- "importPath": "@zat-design/sisyphus-react"
342
+ "name": "ProWaterMark",
343
+ "aliases": [
344
+ "ProWatermark"
345
+ ],
346
+ "category": "通用",
347
+ "description": "ProWaterMark 水印组件",
348
+ "whenToUse": [
349
+ "页面或局部区域需要添加文字/图片水印,标识版权或敏感信息时",
350
+ "当需要对特定容器而非全屏添加水印保护时"
351
+ ],
352
+ "importPath": "@zat-design/sisyphus-react",
353
+ "propsType": "ProWaterMarkType"
171
354
  },
172
355
  {
173
- "name": "ProViewer",
174
- "category": "数据展示",
175
- "description": "ProViewer 文件预览",
176
- "whenToUse": [],
177
- "importPath": "@zat-design/sisyphus-react"
356
+ "name": "ProConfigProvider",
357
+ "aliases": [],
358
+ "category": "通用",
359
+ "description": "ProConfigProvider 全局化配置",
360
+ "whenToUse": [
361
+ "需要在应用入口统一配置 ProForm、ProEnum、ProTable 等组件的默认行为和全局数据源时",
362
+ "当需要切换中英文国际化,或统一设置 antd 主题与组件默认样式时",
363
+ "微前端或大型应用中,需在根布局一次性注入枚举接口、地址栏等公共配置时"
364
+ ],
365
+ "importPath": "@zat-design/sisyphus-react",
366
+ "propsType": "ProConfigProviderType"
178
367
  },
179
368
  {
180
- "name": "ProWaterMark",
181
- "category": "",
182
- "description": "",
183
- "whenToUse": [],
184
- "importPath": "@zat-design/sisyphus-react"
369
+ "name": "ProAction",
370
+ "aliases": [],
371
+ "category": "通用",
372
+ "description": "ProAction 事件封装",
373
+ "whenToUse": [
374
+ "表格删除、编辑等操作需要先调用接口校验并展示错误信息时",
375
+ "需要在操作前弹出确认框,并支持链式异步请求串联多个步骤时",
376
+ "当与 ProTable 等列表组件结合,统一处理鉴权、删除确认等重复交互时",
377
+ "对表格删除、鉴权等场景的函数封装、支持异步、事件流链式调用",
378
+ "*解析弹框数据格式如下**、可以通过 `useRequest` 中的 `transformResponse` 进行格式化",
379
+ "```ts",
380
+ "interface Datta {",
381
+ "errorTitle: string;",
382
+ "list: string[];",
383
+ "}",
384
+ "```"
385
+ ],
386
+ "importPath": "@zat-design/sisyphus-react",
387
+ "propsType": "ProActionType"
185
388
  }
186
389
  ]
187
- }
390
+ }