将界面截图或设计稿批量转换为 Vue 3 组件代码,适配常见组件库。
复制安装指令,让 AI 自动完成配置 · 推荐新手
请帮我安装 askskill 上的 "ui-to-vue" 技能: 1. 下载 https://raw.githubusercontent.com/affaan-m/ECC/main/skills/ui-to-vue/SKILL.md 2. 保存为 ~/.claude/skills/ui-to-vue/SKILL.md 3. 装好后重载技能,告诉我可以用了
请根据我提供的页面截图,将界面拆分为 Vue 3 + Vant 组件。要求输出可运行的单文件组件,包含模板、脚本和样式,并尽量复用 Vant 的现成组件。
一组结构清晰的 Vue 3 单文件组件,使用 Vant 组件还原移动端页面。
把这份后台设计稿转换成 Vue 3 + Element Plus 页面代码。请按区域拆分为头部、侧边栏、表格和筛选表单组件,并补充合理的占位数据。
一个按模块拆分的后台页面代码方案,包含 Element Plus 组件与基础占位数据。
我有多张界面导出图,请批量转换为 Vue 3 + Ant Design Vue 组件。请为每张图分别生成组件文件名、代码和目录结构,并保持命名风格一致。
按多张界面图分别生成的组件代码、文件命名建议和统一目录结构。
Batch-convert UI design screenshots into Vue 3 Composition API component code.
Use an input directory that groups screenshots by module and page state:
screenshots/
|-- HomePage/
| |-- List/
| | |-- [email protected]
| | `-- cut-images/
| |-- cut-images/
| `-- [email protected]
`-- cut-images/
Supported cut-image directory names include assets, icons, sprites, cut, images, and .
cut-imagesRun the converter with npx so the documented command works without relying on a global binary:
export DASHSCOPE_API_KEY=your_key
npx [email protected] --input ./screenshots --ui vant --output ./src
For desktop UI libraries:
npx [email protected] --input ./designs --ui element-plus --output ./src
npx [email protected] --input ./designs --ui antd-vue --output ./src
If the package is installed globally, the ui-to-vue binary can be used directly:
npm install -g [email protected]
ui-to-vue --input ./screenshots --ui vant --output ./src
| Option | Description | Default |
|---|---|---|
--input | Design image directory | ./screenshots |
--ui | UI library: vant, element-plus, or antd-vue | vant |
--output | Output directory | ./src |
--config | Config file path | ./.ui-to-vue.config.json |
The converter can read DashScope credentials from a config file or from the environment. Prefer an environment variable in repositories:
export DASHSCOPE_API_KEY=your_key
If a local config file is required, keep it out of version control:
{
"apiKey": "your_dashscope_key",
"input": "./designs",
"ui": "vant",
"output": "./src"
}
.ui-to-vue.config.json
@latest..ui-to-vue.config.json, API keys, generated secrets, or customer screenshots.views/ or the chosen output directory.components/ only when reuse is clear.| Issue | Check |
|---|
…
为 Quarkus 项目执行发布前验证闭环,涵盖构建、测试、扫描与差异审查。
帮助开发者从 Uiverse.io 快速提取多框架 UI 组件代码并复用到项目中。