UNPKG

galaxy-uniapp-mcp-server

Version:

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

112 lines 5.14 kB
{ "id": "gagan-gv_massive-goat-19", "name": "massive-goat-19", "category": "buttons", "author": "gagan-gv", "description": "massive-goat-19 组件 (button, animation, interactive)", "tags": [ "button", "animation", "interactive" ], "original": { "html": "<button class=\"btn\">\n <span class=\"icon\">\n <svg viewBox=\"0 0 175 80\" width=\"40\" height=\"40\">\n <rect width=\"80\" height=\"15\" fill=\"#f0f0f0\" rx=\"10\"></rect>\n <rect y=\"30\" width=\"80\" height=\"15\" fill=\"#f0f0f0\" rx=\"10\"></rect>\n <rect y=\"60\" width=\"80\" height=\"15\" fill=\"#f0f0f0\" rx=\"10\"></rect>\n </svg>\n </span>\n <span class=\"text\">MENU</span>\n</button>", "css": "/* From Uiverse.io by gagan-gv - Tags: button */\n.btn {\n width: 150px;\n height: 50px;\n border-radius: 5px;\n border: none;\n transition: all 0.5s ease-in-out;\n font-size: 20px;\n font-family: Verdana, Geneva, Tahoma, sans-serif;\n font-weight: 600;\n display: flex;\n align-items: center;\n background: #040f16;\n color: #f5f5f5;\n}\n\n.btn:hover {\n box-shadow: 0 0 20px 0px #2e2e2e3a;\n}\n\n.btn .icon {\n position: absolute;\n height: 40px;\n width: 70px;\n display: flex;\n justify-content: center;\n align-items: center;\n transition: all 0.5s;\n}\n\n.btn .text {\n transform: translateX(55px);\n}\n\n.btn:hover .icon {\n width: 175px;\n}\n\n.btn:hover .text {\n transition: all 0.5s;\n opacity: 0;\n}\n\n.btn:focus {\n outline: none;\n}\n\n.btn:active .icon {\n transform: scale(0.85);\n}", "file_path": "/mnt/persist/workspace/Buttons/gagan-gv_massive-goat-19.html" }, "uniapp": { "template": "<button class=\"btn\"></button>\n <text class=\"icon\"></text>\n <view viewBox=\"0 0 175 80\" width=\"40\" height=\"40\"></view>\n <rect width=\"80\" height=\"15\" fill=\"#f0f0f0\" rx=\"10\"></rect>\n <rect y=\"30\" width=\"80\" height=\"15\" fill=\"#f0f0f0\" rx=\"10\"></rect>\n <rect y=\"60\" width=\"80\" height=\"15\" fill=\"#f0f0f0\" rx=\"10\"></rect>\n </svg>\n </span>\n <text class=\"text\">MENU</text>\n</button>", "script": "export default {\n name: 'GalaxyMassiveGoat19',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}", "style": "\n/* From Uiverse.io by gagan-gv - Tags: button */\n.btn {\n width: 300rpx;\n height: 100rpx;\n border-radius: 10rpx;\n border: none;\n transition: all 0.5s ease-in-out;\n font-size: 40rpx;\n font-family: Verdana, Geneva, Tahoma, sans-serif;\n font-weight: 600;\n display: flex;\n align-items: center;\n background: #040f16;\n color: #f5f5f5;\n}\n\n.btn:hover {\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 0 0 40rpx 0rpx #2e2e2e3a;\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n}\n\n.btn .icon {\n position: absolute;\n height: 80rpx;\n width: 140rpx;\n display: flex;\n justify-content: center;\n align-items: center;\n transition: all 0.5s;\n}\n\n.btn .text {\n transform: translateX(110rpx);\n}\n\n.btn:hover .icon {\n width: 350rpx;\n}\n\n.btn:hover .text {\n transition: all 0.5s;\n opacity: 0;\n}\n\n.btn:focus {\n outline: none;\n}\n\n.btn:active .icon {\n transform: scale(0.85);\n}\n", "component_name": "GalaxyMassiveGoat19" }, "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": [ "不支持 box-shadow 属性" ], "alternatives": [] }, "mp-alipay": { "supported": true, "issues": [ "不支持 box-shadow 属性" ], "alternatives": [] }, "app-plus": { "supported": true, "issues": [], "alternatives": [] } }, "performance": { "complexity": "medium", "bundle_size": 1184, "render_cost": "medium", "memory_usage": "medium" }, "dependencies": [], "examples": [ { "title": "", "description": "", "code": "" } ], "created_at": "2025-07-31T07:55:36.757Z", "updated_at": "2025-07-31T07:55:36.757Z" }