UNPKG

galaxy-uniapp-mcp-server

Version:

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

117 lines 6.01 kB
{ "id": "Laurits123456_slippery-squid-55", "name": "slippery-squid-55", "category": "buttons", "author": "Laurits123456", "description": "slippery-squid-55 组件 (button, hamburger, menu, menuicon, 3d button, cool hamburger, animation, interactive)", "tags": [ "button", "hamburger", "menu", "menuicon", "3d button", "cool hamburger", "animation", "interactive" ], "original": { "html": "<label class=\"menuButton\" for=\"check\">\n <input type=\"checkbox\" id=\"check\">\n <span class=\"top\"></span>\n <span class=\"mid\"></span>\n <span class=\"bot\"></span>\n</label>", "css": "/* From Uiverse.io by Laurits123456 - Tags: button, hamburger, menu, menuicon, 3d button, cool hamburger */\n/*pushing a hamburger menu into a pillow texture like background*/\n\n.menuButton {\n display: flex;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n gap: 13%;\n color: #090909;\n width: 3.5em;\n height: 3.5em;\n border-radius: 0.5em;\n background: #171717;\n border: 1px solid #171717;\n transition: all .3s;\n box-shadow: inset 4px 4px 12px #3a3a3a,\n inset -4px -4px 12px #000000;\n}\n\n.menuButton:hover {\n border: 1px solid black;\n}\n\n.menuButton:active {\n color: #666;\n box-shadow: 6px 6px 12px #3a3a3a,\n -6px -6px 12px #000000;\n}\n\ninput[type = \"checkbox\"] {\n -webkit-appearance: none;\n display: none;\n visibility: hidden;\n}\n\n.menuButton span {\n width: 30px;\n height: 4px;\n background: rgb(200,200,200);\n border-radius: 100px;\n transition: 0.3s ease;\n}\n\ninput[type]:checked ~ span.top {\n transform: translateY(290%)rotate(45deg);\n width: 40px;\n}\n\ninput[type]:checked ~ span.bot {\n transform: translateY(-270%) rotate(-45deg);\n width: 40px;\n box-shadow: 0 0 10px #495057;\n}\n\ninput[type]:checked ~ span.mid {\n transform: translateX(-20px);\n opacity: 0;\n}", "file_path": "/mnt/persist/workspace/Buttons/Laurits123456_slippery-squid-55.html" }, "uniapp": { "template": "<label class=\"menuButton\" for=\"check\"></label>\n <input type=\"checkbox\" id=\"check\"></input>\n <text class=\"top\"></text>\n <text class=\"mid\"></text>\n <text class=\"bot\"></text>\n</label>", "script": "export default {\n name: 'GalaxySlipperySquid55',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}", "style": "\n/* From Uiverse.io by Laurits123456 - Tags: button, hamburger, menu, menuicon, 3d button, cool hamburger */\n/*pushing a hamburger menu into a pillow texture like background*/\n\n.menuButton {\n display: flex;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n gap: 13%;\n color: #090909;\n width: 3.5em;\n height: 3.5em;\n border-radius: 0.5em;\n background: #171717;\n border: 2rpx solid #171717;\n transition: all .3s;\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: inset 8rpx 8rpx 24rpx #3a3a3a,\n inset -8rpx -8rpx 24rpx #000000;\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n}\n\n.menuButton:hover {\n border: 2rpx solid black;\n}\n\n.menuButton:active {\n color: #666;\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 12rpx 12rpx 24rpx #3a3a3a,\n -12rpx -12rpx 24rpx #000000;\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n}\n\ninput[type = \"checkbox\"] {\n -webkit-appearance: none;\n display: none;\n visibility: hidden;\n}\n\n.menuButton span {\n width: 60rpx;\n height: 8rpx;\n background: rgb(200,200,200);\n border-radius: 200rpx;\n transition: 0.3s ease;\n}\n\ninput[type]:checked ~ span.top {\n transform: translateY(290%)rotate(45deg);\n width: 80rpx;\n}\n\ninput[type]:checked ~ span.bot {\n transform: translateY(-270%) rotate(-45deg);\n width: 80rpx;\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 0 0 20rpx #495057;\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n}\n\ninput[type]:checked ~ span.mid {\n transform: translateX(-40rpx);\n opacity: 0;\n}\n", "component_name": "GalaxySlipperySquid55" }, "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": 1410, "render_cost": "medium", "memory_usage": "medium" }, "dependencies": [], "examples": [ { "title": "", "description": "", "code": "" } ], "created_at": "2025-07-31T07:55:33.790Z", "updated_at": "2025-07-31T07:55:33.790Z" }