UNPKG

galaxy-uniapp-mcp-server

Version:

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

125 lines 6.25 kB
{ "id": "ArturCodeCraft_bad-mayfly-19", "name": "bad-mayfly-19", "category": "buttons", "author": "ArturCodeCraft", "description": "bad-mayfly-19 组件 (icon, button, menu, menuicon, menu button, hamburger menu, animation, interactive)", "tags": [ "icon", "button", "menu", "menuicon", "menu button", "hamburger menu", "animation", "interactive" ], "original": { "html": "<div class=\"background\">\n <button class=\"menu__icon\">\n <span></span>\n <span></span>\n <span></span>\n </button>\n</div>", "css": "/* From Uiverse.io by ArturCodeCraft - Tags: icon, button, menu, menuicon, menu button , hamburger menu */\n/* <reset-style> ============================ */\nbutton {\n border: none;\n background: none;\n padding: 0;\n margin: 0;\n cursor: pointer;\n font-family: inherit;\n}\n/* ============================ */\n/* <style for bg> ======== */\n.background {\n border-radius: 16px;\n border: 1px solid #1a1a1a;\n background: rgba(74, 74, 74, 0.39);\n mix-blend-mode: luminosity;\n box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.20);\n backdrop-filter: blur(15px);\n width: 65px;\n height: 65px;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n/* <style for menu__icon> ======== */\n.menu__icon {\n width: 32px;\n height: 32px;\n padding: 4px;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n transition: transform .4s;\n}\n\n.menu__icon span {\n width: 100%;\n height: 0.25rem;\n border-radius: 0.125rem;\n background-color: rgb(0, 122, 255);\n box-shadow: 0 .5px 2px 0 hsla(0, 0%, 0%, .2);\n transition: width .4s, transform .4s, background-color .4s;\n}\n\n.menu__icon :nth-child(1) {\n width: 75%;\n}\n\n.menu__icon :nth-child(2) {\n width: 50%;\n}\n\n.menu__icon:hover {\n transform: rotate(-90deg);\n}\n\n.menu__icon:hover span {\n width: .25rem;\n transform: translateX(10px);\n background-color: rgb(255, 59, 48);\n}", "file_path": "/mnt/persist/workspace/Buttons/ArturCodeCraft_bad-mayfly-19.html" }, "uniapp": { "template": "<view class=\"background\"></view>\n <button class=\"menu__icon\"></button>\n <text></text>\n <text></text>\n <text></text>\n </button>\n</div>", "script": "export default {\n name: 'GalaxyBadMayfly19',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}", "style": "\n/* From Uiverse.io by ArturCodeCraft - Tags: icon, button, menu, menuicon, menu button , hamburger menu */\n/* <reset-style> ============================ */\nbutton {\n border: none;\n background: none;\n padding: 0;\n margin: 0;\n /* #ifdef H5 */\n cursor: pointer;\n /* #endif */\n font-family: inherit;\n}\n/* ============================ */\n/* <style for bg> ======== */\n.background {\n border-radius: 32rpx;\n border: 2rpx solid #1a1a1a;\n background: rgba(74, 74, 74, 0.39);\n \n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 0rpx 0rpx 0rpx 2rpx rgba(0, 0, 0, 0.20);\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n backdrop-\n width: 130rpx;\n height: 130rpx;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n/* <style for menu__icon> ======== */\n.menu__icon {\n width: 64rpx;\n height: 64rpx;\n padding: 8rpx;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n transition: transform .4s;\n}\n\n.menu__icon span {\n width: 100%;\n height: 0.25rem;\n border-radius: 0.125rem;\n background-color: rgb(0, 122, 255);\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 0 .10rpx 4rpx 0 hsla(0, 0%, 0%, .2);\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n transition: width .4s, transform .4s, background-color .4s;\n}\n\n.menu__icon :nth-child(1) {\n width: 75%;\n}\n\n.menu__icon :nth-child(2) {\n width: 50%;\n}\n\n.menu__icon:hover {\n transform: rotate(-90deg);\n}\n\n.menu__icon:hover span {\n width: .25rem;\n transform: translateX(20rpx);\n background-color: rgb(255, 59, 48);\n}\n", "component_name": "GalaxyBadMayfly19" }, "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 属性", "不支持 filter 属性", "不支持 backdrop-filter 属性", "不支持 mix-blend-mode 属性", "不支持 cursor 属性" ], "alternatives": [] }, "mp-alipay": { "supported": true, "issues": [ "不支持 box-shadow 属性", "不支持 filter 属性", "不支持 backdrop-filter 属性", "不支持 mix-blend-mode 属性", "不支持 cursor 属性" ], "alternatives": [] }, "app-plus": { "supported": true, "issues": [], "alternatives": [] } }, "performance": { "complexity": "medium", "bundle_size": 1479, "render_cost": "medium", "memory_usage": "medium" }, "dependencies": [], "examples": [ { "title": "", "description": "", "code": "" } ], "created_at": "2025-07-31T07:55:32.668Z", "updated_at": "2025-07-31T07:55:32.668Z" }