UNPKG

galaxy-uniapp-mcp-server

Version:

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

116 lines 5.65 kB
{ "id": "snguem_good-jellyfish-18", "name": "good-jellyfish-18", "category": "buttons", "author": "snguem", "description": "good-jellyfish-18 组件 (icon, animation, button, hover, interactive)", "tags": [ "icon", "animation", "button", "hover", "interactive" ], "original": { "html": "<button class=\"button\">\n <svg class=\"size-6\" stroke=\"currentColor\" stroke-width=\"2.5\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M6 12 3.269 3.125A59.769 59.769 0 0 1 21.485 12 59.768 59.768 0 0 1 3.27 20.875L5.999 12Zm0 0h7.5\" stroke-linejoin=\"round\" stroke-linecap=\"round\"></path>\n </svg>\n <span>Send Message</span>\n</button>", "css": "/* From Uiverse.io by snguem - Tags: icon, animation, button, hover */\n.button {\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 230px;\n height: 80px;\n gap: 10px;\n font-size: 20px;\n font-weight: 700;\n position: relative;\n border-radius: 20px;\n border: none;\n box-shadow: 0px 0px 5px;\n transition: width 0.5s 0.2s ease;\n}\n.button::after {\n position: absolute;\n content: \"\";\n width: 95%;\n height: 87%;\n border-radius: 40px;\n box-shadow: inset 5px 5px 25px #00000018, 1px 1px 10px #00000013;\n transition: all 0.5s ease;\n}\n.button:hover:after {\n width: 100%;\n height: 100%;\n border-radius: 20px;\n}\n.button svg {\n width: 20px;\n rotate: -45deg;\n transform-origin: top;\n transition: all 0.3s 0.2s ease-out;\n}\n.button:hover svg {\n transform-origin: center;\n width: 40px;\n}\n.button:hover span {\n display: none;\n margin: 0 auto;\n}\n\n.button:hover {\n width: 100px;\n gap: 0px;\n}", "file_path": "/mnt/persist/workspace/Buttons/snguem_good-jellyfish-18.html" }, "uniapp": { "template": "<button class=\"button\"></button>\n <view class=\"size-6\" stroke=\"currentColor\" stroke-width=\"2.5\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"></view>\n <path d=\"M6 12 3.269 3.125A59.769 59.769 0 0 1 21.485 12 59.768 59.768 0 0 1 3.27 20.875L5.999 12Zm0 0h7.5\" stroke-linejoin=\"round\" stroke-linecap=\"round\"></path>\n </svg>\n <text>Send Message</text>\n</button>", "script": "export default {\n name: 'GalaxyGoodJellyfish18',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}", "style": "\n/* From Uiverse.io by snguem - Tags: icon, animation, button, hover */\n.button {\n /* #ifdef H5 */\n cursor: pointer;\n /* #endif */\n display: flex;\n align-items: center;\n justify-content: center;\n width: 460rpx;\n height: 160rpx;\n gap: 20rpx;\n font-size: 40rpx;\n font-weight: 700;\n position: relative;\n border-radius: 40rpx;\n border: none;\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 0rpx 0rpx 10rpx;\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n transition: width 0.5s 0.2s ease;\n}\n.button::after {\n position: absolute;\n content: \"\";\n width: 95%;\n height: 87%;\n border-radius: 80rpx;\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: inset 10rpx 10rpx 50rpx #00000018, 2rpx 2rpx 20rpx #00000013;\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n transition: all 0.5s ease;\n}\n.button:hover:after {\n width: 100%;\n height: 100%;\n border-radius: 40rpx;\n}\n.button svg {\n width: 40rpx;\n rotate: -45deg;\n transform-origin: top;\n transition: all 0.3s 0.2s ease-out;\n}\n.button:hover svg {\n transform-origin: center;\n width: 80rpx;\n}\n.button:hover span {\n display: none;\n margin: 0 auto;\n}\n\n.button:hover {\n width: 200rpx;\n gap: 0rpx;\n}\n\n", "component_name": "GalaxyGoodJellyfish18" }, "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": 1320, "render_cost": "medium", "memory_usage": "medium" }, "dependencies": [], "examples": [ { "title": "", "description": "", "code": "" } ], "created_at": "2025-07-31T07:55:37.885Z", "updated_at": "2025-07-31T07:55:37.885Z" }