UNPKG

galaxy-uniapp-mcp-server

Version:

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

119 lines 5.26 kB
{ "id": "dvirpro_stupid-impala-26", "name": "stupid-impala-26", "category": "buttons", "author": "dvirpro", "description": "stupid-impala-26 组件 (simple, icon, red, button, like, animation, gradient, interactive)", "tags": [ "simple", "icon", "red", "button", "like", "animation", "gradient", "interactive" ], "original": { "html": "<button class=\"like-button\"></button>", "css": "/* From Uiverse.io by dvirpro - Tags: simple, icon, red, button, like */\n.like-button {\n display: flex;\n justify-content: center;\n align-items: center;\n padding: 20px;\n border: none;\n border-radius: 50%;\n background: linear-gradient(145deg, #ff5252, #d50000);\n box-shadow: 0 8px 15px rgba(0, 0, 0, 0.25);\n color: #fff;\n font-family: \"Arial\", sans-serif;\n text-transform: uppercase;\n cursor: pointer;\n transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);\n width: 90px;\n height: 90px;\n position: relative;\n overflow: hidden;\n}\n\n.like-button:before {\n content: \"\\2764\"; /* Heart Icon */\n font-size: 50px;\n color: #fff;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%) scale(0);\n transition: transform 0.3s ease-in-out;\n}\n\n.like-button:hover {\n animation: heartBeat 0.6s infinite;\n}\n\n.like-button:hover:before {\n transform: translate(-50%, -50%) scale(1);\n}\n\n.like-button:active:after {\n transform: translate(-50%, -50%) scale(1);\n opacity: 1;\n}\n\n@keyframes heartBeat {\n from {\n transform: scale(1);\n }\n 50% {\n transform: scale(1.1);\n }\n to {\n transform: scale(1);\n }\n}", "file_path": "/mnt/persist/workspace/Buttons/dvirpro_stupid-impala-26.html" }, "uniapp": { "template": "<button class=\"like-button\"></button></button>", "script": "export default {\n name: 'GalaxyStupidImpala26',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}", "style": "\n/* From Uiverse.io by dvirpro - Tags: simple, icon, red, button, like */\n.like-button {\n display: flex;\n justify-content: center;\n align-items: center;\n padding: 40rpx;\n border: none;\n border-radius: 50%;\n background: linear-gradient(145deg, #ff5252, #d50000);\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 0 16rpx 30rpx rgba(0, 0, 0, 0.25);\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n color: #fff;\n font-family: \"Arial\", sans-serif;\n text-transform: uppercase;\n /* #ifdef H5 */\n cursor: pointer;\n /* #endif */\n transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);\n width: 180rpx;\n height: 180rpx;\n position: relative;\n overflow: hidden;\n}\n\n.like-button:before {\n content: \"\\2764\"; /* Heart Icon */\n font-size: 100rpx;\n color: #fff;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%) scale(0);\n transition: transform 0.3s ease-in-out;\n}\n\n.like-button:hover {\n animation: heartBeat 0.6s infinite;\n}\n\n.like-button:hover:before {\n transform: translate(-50%, -50%) scale(1);\n}\n\n.like-button:active:after {\n transform: translate(-50%, -50%) scale(1);\n opacity: 1;\n}\n\n@keyframes heartBeat {\n from {\n transform: scale(1);\n }\n 50% {\n transform: scale(1.1);\n }\n to {\n transform: scale(1);\n }\n}\n\n", "component_name": "GalaxyStupidImpala26" }, "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": 1194, "render_cost": "medium", "memory_usage": "medium" }, "dependencies": [], "examples": [ { "title": "", "description": "", "code": "" } ], "created_at": "2025-07-31T07:55:36.416Z", "updated_at": "2025-07-31T07:55:36.416Z" }