iter(g34): ua info 支持组件 id 查询并输出可读 props 表

This commit is contained in:
HIsheR
2026-10-26 11:45:46 +08:00
parent fe165a3cba
commit d461a3ed33
9 changed files with 71 additions and 29 deletions
+8
View File
@@ -628,6 +628,14 @@
"acceptance": "upload({ accept, multiple, hint, disabled, onChange }) 支持点击/拖拽/键盘选择、清单逐个移除、同名同大小去重、disabled 全禁;组件数 41→42 三处计数同步;npm run check 全绿",
"status": "done",
"notes": "自补:组件补充;不内置上传请求,onChange 回传副本"
},
{
"id": "g34",
"title": "ua info 支持组件 id 查询",
"motivation": "ua info 只认包名,Agent 按组件名查(如 ua info list / MCP get_component(list))直接 not found,只能翻整包清单;输出还是原始 JSON,抄参数得自己解析",
"acceptance": "ua info <组件id> 输出 props 表 + 步骤 + 示例,ua info <包名> 出摘要且 --json 保留原始清单;MCP get_component 支持组件 id(返回 package + component);npm run check 全绿",
"status": "open",
"notes": "自补:文档与 Agent 查询体验"
}
]
}