UNPKG

galaxy-uniapp-mcp-server

Version:

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

114 lines 4.9 kB
{ "id": "MuhammadHasann_hungry-cougar-64", "name": "hungry-cougar-64", "category": "buttons", "author": "MuhammadHasann", "description": "hungry-cougar-64 组件 (simple, minimalist, button, animation, interactive)", "tags": [ "simple", "minimalist", "button", "animation", "interactive" ], "original": { "html": "<button class=\"button\">\n hover me\n <span></span><span></span><span></span><span></span>\n</button>", "css": "/* From Uiverse.io by MuhammadHasann - Tags: simple, minimalist, button */\n.button {\n cursor: pointer;\n --c: #0ea5e9;\n padding: 12px 28px;\n margin: 1em;\n position: relative;\n min-width: 12em;\n background: transparent;\n font-size: 12px;\n font-weight: bold;\n color: var(--c);\n text-align: center;\n text-transform: uppercase;\n font-family: sans-serif;\n letter-spacing: 0.1em;\n border: 2px solid var(--c);\n border-radius: 8px;\n overflow: hidden;\n z-index: 1;\n transition: 0.5s;\n}\n\n.button span {\n position: absolute;\n width: 25%;\n height: 100%;\n background-color: var(--c);\n transform: translateY(150%);\n border-radius: 50%;\n left: calc((var(--n) - 1) * 25%);\n transition: 0.5s;\n transition-delay: calc((var(--n) - 1) * 0.1s);\n z-index: -1;\n}\n\n.button:hover {\n color: black;\n}\n\n.button:hover span {\n transform: translateY(0) scale(2);\n}\n\n.button span:nth-child(1) {\n --n: 1;\n}\n\n.button span:nth-child(2) {\n --n: 2;\n}\n\n.button span:nth-child(3) {\n --n: 3;\n}\n\n.button span:nth-child(4) {\n --n: 4;\n}", "file_path": "/mnt/persist/workspace/Buttons/MuhammadHasann_hungry-cougar-64.html" }, "uniapp": { "template": "<button class=\"button\"></button>\n hover me\n <text></text><text></text><text></text><text></text>\n</button>", "script": "export default {\n name: 'GalaxyHungryCougar64',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}", "style": "\n/* From Uiverse.io by MuhammadHasann - Tags: simple, minimalist, button */\n.button {\n /* #ifdef H5 */\n cursor: pointer;\n /* #endif */\n --c: #0ea5e9;\n padding: 24rpx 56rpx;\n margin: 1em;\n position: relative;\n min-width: 12em;\n background: transparent;\n font-size: 24rpx;\n font-weight: bold;\n color: var(--c);\n text-align: center;\n text-transform: uppercase;\n font-family: sans-serif;\n letter-spacing: 0.1em;\n border: 4rpx solid var(--c);\n border-radius: 16rpx;\n overflow: hidden;\n z-index: 1;\n transition: 0.5s;\n}\n\n.button span {\n position: absolute;\n width: 25%;\n height: 100%;\n background-color: var(--c);\n transform: translateY(150%);\n border-radius: 50%;\n left: calc((var(--n) - 1) * 25%);\n transition: 0.5s;\n transition-delay: calc((var(--n) - 1) * 0.1s);\n z-index: -1;\n}\n\n.button:hover {\n color: black;\n}\n\n.button:hover span {\n transform: translateY(0) scale(2);\n}\n\n.button span:nth-child(1) {\n --n: 1;\n}\n\n.button span:nth-child(2) {\n --n: 2;\n}\n\n.button span:nth-child(3) {\n --n: 3;\n}\n\n.button span:nth-child(4) {\n --n: 4;\n}\n\n", "component_name": "GalaxyHungryCougar64" }, "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": [ "不支持 cursor 属性" ], "alternatives": [] }, "mp-alipay": { "supported": true, "issues": [ "不支持 cursor 属性" ], "alternatives": [] }, "app-plus": { "supported": true, "issues": [], "alternatives": [] } }, "performance": { "complexity": "medium", "bundle_size": 1137, "render_cost": "medium", "memory_usage": "medium" }, "dependencies": [], "examples": [ { "title": "", "description": "", "code": "" } ], "created_at": "2025-07-31T07:55:34.038Z", "updated_at": "2025-07-31T07:55:34.038Z" }