UNPKG

galaxy-uniapp-mcp-server

Version:

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

118 lines 7.16 kB
{ "id": "vinodjangid07_young-snake-87", "name": "young-snake-87", "category": "buttons", "author": "vinodjangid07", "description": "young-snake-87 组件 (animation, button, edit, hover effect, interactive)", "tags": [ "animation", "button", "edit", "hover effect", "interactive" ], "original": { "html": "<button class=\"editBtn\">\n <svg height=\"1em\" viewBox=\"0 0 512 512\">\n <path d=\"M410.3 231l11.3-11.3-33.9-33.9-62.1-62.1L291.7 89.8l-11.3 11.3-22.6 22.6L58.6 322.9c-10.4 10.4-18 23.3-22.2 37.4L1 480.7c-2.5 8.4-.2 17.5 6.1 23.7s15.3 8.5 23.7 6.1l120.3-35.4c14.1-4.2 27-11.8 37.4-22.2L387.7 253.7 410.3 231zM160 399.4l-9.1 22.7c-4 3.1-8.5 5.4-13.3 6.9L59.4 452l23-78.1c1.4-4.9 3.8-9.4 6.9-13.3l22.7-9.1v32c0 8.8 7.2 16 16 16h32zM362.7 18.7L348.3 33.2 325.7 55.8 314.3 67.1l33.9 33.9 62.1 62.1 33.9 33.9 11.3-11.3 22.6-22.6 14.5-14.5c25-25 25-65.5 0-90.5L453.3 18.7c-25-25-65.5-25-90.5 0zm-47.4 168l-144 144c-6.2 6.2-16.4 6.2-22.6 0s-6.2-16.4 0-22.6l144-144c6.2-6.2 16.4-6.2 22.6 0s6.2 16.4 0 22.6z\"></path>\n </svg>\n</button>", "css": "/* From Uiverse.io by vinodjangid07 - Tags: animation, button, edit, hover effect */\n.editBtn {\n width: 55px;\n height: 55px;\n border-radius: 20px;\n border: none;\n background-color: rgb(93, 93, 116);\n display: flex;\n align-items: center;\n justify-content: center;\n box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.123);\n cursor: pointer;\n position: relative;\n overflow: hidden;\n transition: all 0.3s;\n}\n.editBtn::before {\n content: \"\";\n width: 200%;\n height: 200%;\n background-color: rgb(102, 102, 141);\n position: absolute;\n z-index: 1;\n transform: scale(0);\n transition: all 0.3s;\n border-radius: 50%;\n filter: blur(10px);\n}\n.editBtn:hover::before {\n transform: scale(1);\n}\n.editBtn:hover {\n box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.336);\n}\n\n.editBtn svg {\n height: 17px;\n fill: white;\n z-index: 3;\n transition: all 0.2s;\n transform-origin: bottom;\n}\n.editBtn:hover svg {\n transform: rotate(-15deg) translateX(5px);\n}\n.editBtn::after {\n content: \"\";\n width: 25px;\n height: 1.5px;\n position: absolute;\n bottom: 19px;\n left: -5px;\n background-color: white;\n border-radius: 2px;\n z-index: 2;\n transform: scaleX(0);\n transform-origin: left;\n transition: transform 0.5s ease-out;\n}\n.editBtn:hover::after {\n transform: scaleX(1);\n left: 0px;\n transform-origin: right;\n}", "file_path": "/mnt/persist/workspace/Buttons/vinodjangid07_young-snake-87.html" }, "uniapp": { "template": "<button class=\"editBtn\"></button>\n <view height=\"1em\" viewBox=\"0 0 512 512\"></view>\n <path d=\"M410.3 231l11.3-11.3-33.9-33.9-62.1-62.1L291.7 89.8l-11.3 11.3-22.6 22.6L58.6 322.9c-10.4 10.4-18 23.3-22.2 37.4L1 480.7c-2.5 8.4-.2 17.5 6.1 23.7s15.3 8.5 23.7 6.1l120.3-35.4c14.1-4.2 27-11.8 37.4-22.2L387.7 253.7 410.3 231zM160 399.4l-9.1 22.7c-4 3.1-8.5 5.4-13.3 6.9L59.4 452l23-78.1c1.4-4.9 3.8-9.4 6.9-13.3l22.7-9.1v32c0 8.8 7.2 16 16 16h32zM362.7 18.7L348.3 33.2 325.7 55.8 314.3 67.1l33.9 33.9 62.1 62.1 33.9 33.9 11.3-11.3 22.6-22.6 14.5-14.5c25-25 25-65.5 0-90.5L453.3 18.7c-25-25-65.5-25-90.5 0zm-47.4 168l-144 144c-6.2 6.2-16.4 6.2-22.6 0s-6.2-16.4 0-22.6l144-144c6.2-6.2 16.4-6.2 22.6 0s6.2 16.4 0 22.6z\"></path>\n </svg>\n</button>", "script": "export default {\n name: 'GalaxyYoungSnake87',\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: animation, button, edit, hover effect */\n.editBtn {\n width: 110rpx;\n height: 110rpx;\n border-radius: 40rpx;\n border: none;\n background-color: rgb(93, 93, 116);\n display: flex;\n align-items: center;\n justify-content: center;\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 0rpx 10rpx 20rpx rgba(0, 0, 0, 0.123);\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 position: relative;\n overflow: hidden;\n transition: all 0.3s;\n}\n.editBtn::before {\n content: \"\";\n width: 200%;\n height: 200%;\n background-color: rgb(102, 102, 141);\n position: absolute;\n z-index: 1;\n transform: scale(0);\n transition: all 0.3s;\n border-radius: 50%;\n \n}\n.editBtn:hover::before {\n transform: scale(1);\n}\n.editBtn:hover {\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 0rpx 10rpx 20rpx rgba(0, 0, 0, 0.336);\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n}\n\n.editBtn svg {\n height: 34rpx;\n fill: white;\n z-index: 3;\n transition: all 0.2s;\n transform-origin: bottom;\n}\n.editBtn:hover svg {\n transform: rotate(-15deg) translateX(10rpx);\n}\n.editBtn::after {\n content: \"\";\n width: 50rpx;\n height: 3rpx;\n position: absolute;\n bottom: 38rpx;\n left: -10rpx;\n background-color: white;\n border-radius: 4rpx;\n z-index: 2;\n transform: scaleX(0);\n transform-origin: left;\n transition: transform 0.5s ease-out;\n}\n.editBtn:hover::after {\n transform: scaleX(1);\n left: 0rpx;\n transform-origin: right;\n}\n\n", "component_name": "GalaxyYoungSnake87" }, "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 属性", "不支持 cursor 属性" ], "alternatives": [] }, "mp-alipay": { "supported": true, "issues": [ "不支持 box-shadow 属性", "不支持 filter 属性", "不支持 cursor 属性" ], "alternatives": [] }, "app-plus": { "supported": true, "issues": [], "alternatives": [] } }, "performance": { "complexity": "medium", "bundle_size": 2037, "render_cost": "medium", "memory_usage": "medium" }, "dependencies": [], "examples": [ { "title": "", "description": "", "code": "" } ], "created_at": "2025-07-31T07:55:38.324Z", "updated_at": "2025-07-31T07:55:38.324Z" }