UNPKG

galaxy-uniapp-mcp-server

Version:

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

116 lines 6.51 kB
{ "id": "gharsh11032000_hot-grasshopper-70", "name": "hot-grasshopper-70", "category": "buttons", "author": "gharsh11032000", "description": "hot-grasshopper-70 组件 (button, search, hover effect, animation, interactive)", "tags": [ "button", "search", "hover effect", "animation", "interactive" ], "original": { "html": "<button class=\"button\">\n <span>\n <svg viewBox=\"0 0 24 24\" height=\"24\" width=\"24\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M9.145 18.29c-5.042 0-9.145-4.102-9.145-9.145s4.103-9.145 9.145-9.145 9.145 4.103 9.145 9.145-4.102 9.145-9.145 9.145zm0-15.167c-3.321 0-6.022 2.702-6.022 6.022s2.702 6.022 6.022 6.022 6.023-2.702 6.023-6.022-2.702-6.022-6.023-6.022zm9.263 12.443c-.817 1.176-1.852 2.188-3.046 2.981l5.452 5.453 3.014-3.013-5.42-5.421z\"></path></svg>\n </span>\n</button>", "css": "/* From Uiverse.io by gharsh11032000 - Tags: button, search, hover effect */\n.button {\n position: relative;\n border: none;\n background-color: white;\n color: #212121;\n padding: 20px;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 20px;\n font-weight: 600;\n gap: 10px;\n border-radius: 10px;\n transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);\n box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);\n cursor: pointer;\n overflow: hidden;\n}\n\n.button span {\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 1;\n}\n\n.button::before {\n content: \"\";\n position: absolute;\n background-color: palevioletred;\n width: 100%;\n height: 100%;\n left: 0%;\n bottom: 0%;\n transform: translate(-100%, 100%);\n border-radius: inherit;\n}\n\n.button svg {\n fill: palevioletred;\n transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);\n}\n\n.button:hover::before {\n animation: shakeBack 0.6s forwards;\n}\n\n.button:hover svg {\n fill: white;\n scale: 1.3;\n}\n\n.button:active {\n box-shadow: none;\n}\n\n@keyframes shakeBack {\n 0% {\n transform: translate(-100%, 100%);\n }\n\n 50% {\n transform: translate(20%, -20%);\n }\n\n 100% {\n transform: translate(0%, 0%);\n }\n}", "file_path": "/mnt/persist/workspace/Buttons/gharsh11032000_hot-grasshopper-70.html" }, "uniapp": { "template": "<button class=\"button\"></button>\n <text></text>\n <view viewBox=\"0 0 24 24\" height=\"24\" width=\"24\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M9.145 18.29c-5.042 0-9.145-4.102-9.145-9.145s4.103-9.145 9.145-9.145 9.145 4.103 9.145 9.145-4.102 9.145-9.145 9.145zm0-15.167c-3.321 0-6.022 2.702-6.022 6.022s2.702 6.022 6.022 6.022 6.023-2.702 6.023-6.022-2.702-6.022-6.023-6.022zm9.263 12.443c-.817 1.176-1.852 2.188-3.046 2.981l5.452 5.453 3.014-3.013-5.42-5.421z\"></path></view>\n </span>\n</button>", "script": "export default {\n name: 'GalaxyHotGrasshopper70',\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 border: none;\n background-color: white;\n color: #212121;\n padding: 40rpx;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 40rpx;\n font-weight: 600;\n gap: 20rpx;\n border-radius: 20rpx;\n transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 0 20rpx 40rpx rgba(0, 0, 0, 0.2);\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 overflow: hidden;\n}\n\n.button span {\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 1;\n}\n\n.button::before {\n content: \"\";\n position: absolute;\n background-color: palevioletred;\n width: 100%;\n height: 100%;\n left: 0%;\n bottom: 0%;\n transform: translate(-100%, 100%);\n border-radius: inherit;\n}\n\n.button svg {\n fill: palevioletred;\n transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);\n}\n\n.button:hover::before {\n animation: shakeBack 0.6s forwards;\n}\n\n.button:hover svg {\n fill: white;\n scale: 1.3;\n}\n\n.button:active {\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@keyframes shakeBack {\n 0% {\n transform: translate(-100%, 100%);\n }\n\n 50% {\n transform: translate(20%, -20%);\n }\n\n 100% {\n transform: translate(0%, 0%);\n }\n}\n\n", "component_name": "GalaxyHotGrasshopper70" }, "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": 1719, "render_cost": "medium", "memory_usage": "medium" }, "dependencies": [], "examples": [ { "title": "", "description": "", "code": "" } ], "created_at": "2025-07-31T07:55:36.834Z", "updated_at": "2025-07-31T07:55:36.834Z" }