UNPKG

galaxy-uniapp-mcp-server

Version:

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

116 lines 5.9 kB
{ "id": "gharsh11032000_average-falcon-37", "name": "average-falcon-37", "category": "buttons", "author": "gharsh11032000", "description": "average-falcon-37 组件 (button, search, hover effect, animation, interactive)", "tags": [ "button", "search", "hover effect", "animation", "interactive" ], "original": { "html": "<button class=\"button\">\n <span class=\"span\">🔎</span>\n</button>", "css": "/* From Uiverse.io by gharsh11032000 - Tags: button, search, hover effect */\n.button {\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n color: #e8e8e8;\n background-color: #212121;\n width: 70px;\n height: 70px;\n font-size: 24px;\n text-transform: uppercase;\n border: 2px solid #212121;\n border-radius: 50%;\n transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);\n box-shadow: 5px 5px 2px rgba(0, 0, 0, 0.15),\n 2px 2px 2px rgba(0, 0, 0, 0.1),\n -3px -3px 2px rgba(255, 255, 255, 0.05),\n -2px -2px 1px rgba(255, 255, 255, 0.05);\n overflow: hidden;\n cursor: pointer;\n}\n\n.button .span {\n position: relative;\n z-index: 2;\n transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);\n}\n\n.button::before {\n content: \"\";\n position: absolute;\n background-color: #e8e8e8;\n width: 150%;\n height: 150%;\n left: 0%;\n bottom: 0%;\n transform: translate(-100%, 100%) rotate(45deg);\n border-radius: 15px;\n}\n\n.button:hover::before {\n animation: shakeBack 0.6s forwards 0.6s;\n}\n\n.button:hover .span {\n scale: 1.2;\n}\n\n.button:hover {\n box-shadow: none;\n}\n\n.button:active {\n scale: 0.95;\n}\n\n@keyframes shakeBack {\n 0% {\n transform: translate(-100%, 100%) rotate(45deg);\n }\n\n 50% {\n transform: translate(15%, -15%) rotate(45deg);\n }\n\n 100% {\n transform: translate(-10%, 10%) rotate(45deg);\n }\n}", "file_path": "/mnt/persist/workspace/Buttons/gharsh11032000_average-falcon-37.html" }, "uniapp": { "template": "<button class=\"button\"></button>\n <text class=\"span\">🔎</text>\n</button>", "script": "export default {\n name: 'GalaxyAverageFalcon37',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}", "style": "\n/* From Uiverse.io by gharsh11032000 - Tags: button, search, hover effect */\n.button {\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n color: #e8e8e8;\n background-color: #212121;\n width: 140rpx;\n height: 140rpx;\n font-size: 48rpx;\n text-transform: uppercase;\n border: 4rpx solid #212121;\n border-radius: 50%;\n transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 10rpx 10rpx 4rpx rgba(0, 0, 0, 0.15),\n 4rpx 4rpx 4rpx rgba(0, 0, 0, 0.1),\n -6rpx -6rpx 4rpx rgba(255, 255, 255, 0.05),\n -4rpx -4rpx 2rpx rgba(255, 255, 255, 0.05);\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n overflow: hidden;\n /* #ifdef H5 */\n cursor: pointer;\n /* #endif */\n}\n\n.button .span {\n position: relative;\n z-index: 2;\n transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);\n}\n\n.button::before {\n content: \"\";\n position: absolute;\n background-color: #e8e8e8;\n width: 150%;\n height: 150%;\n left: 0%;\n bottom: 0%;\n transform: translate(-100%, 100%) rotate(45deg);\n border-radius: 30rpx;\n}\n\n.button:hover::before {\n animation: shakeBack 0.6s forwards 0.6s;\n}\n\n.button:hover .span {\n scale: 1.2;\n}\n\n.button:hover {\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: none;\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n}\n\n.button:active {\n scale: 0.95;\n}\n\n@keyframes shakeBack {\n 0% {\n transform: translate(-100%, 100%) rotate(45deg);\n }\n\n 50% {\n transform: translate(15%, -15%) rotate(45deg);\n }\n\n 100% {\n transform: translate(-10%, 10%) rotate(45deg);\n }\n}\n\n", "component_name": "GalaxyAverageFalcon37" }, "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": 1422, "render_cost": "medium", "memory_usage": "medium" }, "dependencies": [], "examples": [ { "title": "", "description": "", "code": "" } ], "created_at": "2025-07-31T07:55:36.798Z", "updated_at": "2025-07-31T07:55:36.798Z" }