UNPKG

galaxy-uniapp-mcp-server

Version:

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

117 lines 5.61 kB
{ "id": "vinodjangid07_smart-emu-83", "name": "smart-emu-83", "category": "buttons", "author": "vinodjangid07", "description": "smart-emu-83 组件 (button, hover, trash, delete, animation, interactive)", "tags": [ "button", "hover", "trash", "delete", "animation", "interactive" ], "original": { "html": "<button class=\"button\">\n <svg viewBox=\"0 0 448 512\" class=\"svgIcon\"><path d=\"M135.2 17.7L128 32H32C14.3 32 0 46.3 0 64S14.3 96 32 96H416c17.7 0 32-14.3 32-32s-14.3-32-32-32H320l-7.2-14.3C307.4 6.8 296.3 0 284.2 0H163.8c-12.1 0-23.2 6.8-28.6 17.7zM416 128H32L53.2 467c1.6 25.3 22.6 45 47.9 45H346.9c25.3 0 46.3-19.7 47.9-45L416 128z\"></path></svg>\n</button>", "css": "/* From Uiverse.io by vinodjangid07 - Tags: button, hover, trash, delete */\n.button {\n width: 50px;\n height: 50px;\n border-radius: 50%;\n background-color: rgb(20, 20, 20);\n border: none;\n font-weight: 600;\n display: flex;\n align-items: center;\n justify-content: center;\n box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.164);\n cursor: pointer;\n transition-duration: .3s;\n overflow: hidden;\n position: relative;\n}\n\n.svgIcon {\n width: 12px;\n transition-duration: .3s;\n}\n\n.svgIcon path {\n fill: white;\n}\n\n.button:hover {\n width: 140px;\n border-radius: 50px;\n transition-duration: .3s;\n background-color: rgb(255, 69, 69);\n align-items: center;\n}\n\n.button:hover .svgIcon {\n width: 50px;\n transition-duration: .3s;\n transform: translateY(60%);\n}\n\n.button::before {\n position: absolute;\n top: -20px;\n content: \"Delete\";\n color: white;\n transition-duration: .3s;\n font-size: 2px;\n}\n\n.button:hover::before {\n font-size: 13px;\n opacity: 1;\n transform: translateY(30px);\n transition-duration: .3s;\n}", "file_path": "/mnt/persist/workspace/Buttons/vinodjangid07_smart-emu-83.html" }, "uniapp": { "template": "<button class=\"button\"></button>\n <view viewBox=\"0 0 448 512\" class=\"svgIcon\"><path d=\"M135.2 17.7L128 32H32C14.3 32 0 46.3 0 64S14.3 96 32 96H416c17.7 0 32-14.3 32-32s-14.3-32-32-32H320l-7.2-14.3C307.4 6.8 296.3 0 284.2 0H163.8c-12.1 0-23.2 6.8-28.6 17.7zM416 128H32L53.2 467c1.6 25.3 22.6 45 47.9 45H346.9c25.3 0 46.3-19.7 47.9-45L416 128z\"></path></view>\n</button>", "script": "export default {\n name: 'GalaxySmartEmu83',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}", "style": "\n/* From Uiverse.io by vinodjangid07 - Tags: button, hover, trash, delete */\n.button {\n width: 100rpx;\n height: 100rpx;\n border-radius: 50%;\n background-color: rgb(20, 20, 20);\n border: none;\n font-weight: 600;\n display: flex;\n align-items: center;\n justify-content: center;\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 0rpx 0rpx 40rpx rgba(0, 0, 0, 0.164);\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n /* #ifdef H5 */\n cursor: pointer;\n /* #endif */\n transition-duration: .3s;\n overflow: hidden;\n position: relative;\n}\n\n.svgIcon {\n width: 24rpx;\n transition-duration: .3s;\n}\n\n.svgIcon path {\n fill: white;\n}\n\n.button:hover {\n width: 280rpx;\n border-radius: 100rpx;\n transition-duration: .3s;\n background-color: rgb(255, 69, 69);\n align-items: center;\n}\n\n.button:hover .svgIcon {\n width: 100rpx;\n transition-duration: .3s;\n transform: translateY(60%);\n}\n\n.button::before {\n position: absolute;\n top: -40rpx;\n content: \"Delete\";\n color: white;\n transition-duration: .3s;\n font-size: 4rpx;\n}\n\n.button:hover::before {\n font-size: 26rpx;\n opacity: 1;\n transform: translateY(60rpx);\n transition-duration: .3s;\n}\n", "component_name": "GalaxySmartEmu83" }, "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 属性", "不支持 cursor 属性" ], "alternatives": [] }, "mp-alipay": { "supported": true, "issues": [ "不支持 box-shadow 属性", "不支持 cursor 属性" ], "alternatives": [] }, "app-plus": { "supported": true, "issues": [], "alternatives": [] } }, "performance": { "complexity": "medium", "bundle_size": 1377, "render_cost": "medium", "memory_usage": "medium" }, "dependencies": [], "examples": [ { "title": "", "description": "", "code": "" } ], "created_at": "2025-07-31T07:55:38.250Z", "updated_at": "2025-07-31T07:55:38.250Z" }