UNPKG

galaxy-uniapp-mcp-server

Version:

Galaxy组件库到UniApp组件转换MCP服务器 - 支持跨平台组件转换、兼容性分析和项目集成

111 lines 4.72 kB
{ "id": "guilhermeyohan_wet-pug-5", "name": "wet-pug-5", "category": "buttons", "author": "guilhermeyohan", "description": "wet-pug-5 组件 (button, interactive)", "tags": [ "button", "interactive" ], "original": { "html": "<button class=\"beach-button\">\n <svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M12 1L2 21h20z\" fill=\"#fff\"></path>\n <path d=\"M12 16.6l-4-4.2 1.4-1.4L12 13l6.6-6.6L18 9z\" fill=\"#1565c0\"></path>\n <path d=\"M12 18h-.3c-3.8-.3-7-3.5-7.3-7.3H1.9c.4 4.5 4.2 8.2 8.8 8.7V22c1.6 0 3-1.3 3-3s-1.3-3-3-3z\" fill=\"#00838f\"></path>\n <path d=\"M12 18c-.6 0-1.1-.1-1.6-.2-1.2-.4-2.2-1.4-2.6-2.6-.1-.5-.2-1-.2-1.6 0-.9.2-1.8.7-2.5l4.4 4.4-1.4 1.4-3-3v-4.2c.7-.4 1.6-.7 2.5-.7.6 0 1.1.1 1.6.2 1.2.4 2.2 1.4 2.6 2.6.1.5.2 1 .2 1.6 0 .9-.2 1.8-.7 2.5l-4.4-4.4 1.4-1.4 3 3v4.2c-.7.4-1.6.7-2.5.7z\" fill=\"#00acc1\"></path>\n </svg>\n <span>Download</span>\n</button>", "css": "/* From Uiverse.io by guilhermeyohan - Tags: button */\n.beach-button {\n background-color: #fbc02d;\n border: none;\n border-radius: 5px;\n color: #333;\n cursor: pointer;\n display: flex;\n align-items: center;\n font-size: 18px;\n font-weight: bold;\n padding: 10px 20px;\n transition: all 0.3s ease;\n}\n\n.beach-button:hover {\n background-color: #ffe082;\n}\n\n.beach-button svg {\n height: 20px;\n margin-right: 10px;\n width: 20px;\n}", "file_path": "/mnt/persist/workspace/Buttons/guilhermeyohan_wet-pug-5.html" }, "uniapp": { "template": "<button class=\"beach-button\"></button>\n <view viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"></view>\n <path d=\"M12 1L2 21h20z\" fill=\"#fff\"></path>\n <path d=\"M12 16.6l-4-4.2 1.4-1.4L12 13l6.6-6.6L18 9z\" fill=\"#1565c0\"></path>\n <path d=\"M12 18h-.3c-3.8-.3-7-3.5-7.3-7.3H1.9c.4 4.5 4.2 8.2 8.8 8.7V22c1.6 0 3-1.3 3-3s-1.3-3-3-3z\" fill=\"#00838f\"></path>\n <path d=\"M12 18c-.6 0-1.1-.1-1.6-.2-1.2-.4-2.2-1.4-2.6-2.6-.1-.5-.2-1-.2-1.6 0-.9.2-1.8.7-2.5l4.4 4.4-1.4 1.4-3-3v-4.2c.7-.4 1.6-.7 2.5-.7.6 0 1.1.1 1.6.2 1.2.4 2.2 1.4 2.6 2.6.1.5.2 1 .2 1.6 0 .9-.2 1.8-.7 2.5l-4.4-4.4 1.4-1.4 3 3v4.2c-.7.4-1.6.7-2.5.7z\" fill=\"#00acc1\"></path>\n </svg>\n <text>Download</text>\n</button>", "script": "export default {\n name: 'GalaxyWetPug5',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}", "style": "\n/* From Uiverse.io by guilhermeyohan - Tags: button */\n.beach-button {\n background-color: #fbc02d;\n border: none;\n border-radius: 10rpx;\n color: #333;\n /* #ifdef H5 */\n cursor: pointer;\n /* #endif */\n display: flex;\n align-items: center;\n font-size: 36rpx;\n font-weight: bold;\n padding: 20rpx 40rpx;\n transition: all 0.3s ease;\n}\n\n.beach-button:hover {\n background-color: #ffe082;\n}\n\n.beach-button svg {\n height: 40rpx;\n margin-right: 20rpx;\n width: 40rpx;\n}\n", "component_name": "GalaxyWetPug5" }, "platforms": { "h5": true, "mp-weixin": true, "mp-alipay": true, "mp-baidu": true, "mp-toutiao": true, "app-plus": true }, "props": [ { "name": "disabled", "type": "Boolean", "default": false, "required": false, "description": "是否禁用" }, { "name": "text", "type": "String", "default": "按钮", "required": false, "description": "按钮文字" }, { "name": "type", "type": "String", "default": "primary", "required": false, "description": "按钮类型" } ], "events": [ { "name": "click", "description": "点击事件", "parameters": [ "event" ] } ], "slots": [ { "name": "", "description": "", "props": [] } ], "compatibility": { "h5": { "supported": true, "issues": [], "alternatives": [] }, "mp-weixin": { "supported": true, "issues": [ "不支持 cursor 属性" ], "alternatives": [] }, "mp-alipay": { "supported": true, "issues": [ "不支持 cursor 属性" ], "alternatives": [] }, "app-plus": { "supported": true, "issues": [], "alternatives": [] } }, "performance": { "complexity": "low", "bundle_size": 1114, "render_cost": "low", "memory_usage": "low" }, "dependencies": [], "examples": [ { "title": "", "description": "", "code": "" } ], "created_at": "2025-07-31T07:55:36.899Z", "updated_at": "2025-07-31T07:55:36.899Z" }