UNPKG

galaxy-uniapp-mcp-server

Version:

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

112 lines 3.91 kB
{ "id": "garerim_splendid-snail-23", "name": "splendid-snail-23", "category": "buttons", "author": "garerim", "description": "splendid-snail-23 组件 (button, animation, interactive)", "tags": [ "button", "animation", "interactive" ], "original": { "html": "<button class=\"btn\">Hover me !\n <div class=\"background\"></div>\n</button>", "css": "/* From Uiverse.io by garerim - Tags: button */\n.btn {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n font-size: 25px;\n font-weight: 600;\n height: 40px;\n line-height: 40px;\n cursor: pointer;\n background-color: inherit;\n border: none;\n outline: none;\n color: #f1f1f1;\n}\n\n.btn:hover .background {\n height: inherit;\n width: 120%;\n top: 50%;\n}\n\n.btn .background {\n position: absolute;\n top: 100%;\n left: 50%;\n transform: translate(-50%, -50%);\n height: 3px;\n width: 100%;\n background-color: #006b92;\n z-index: -1;\n border-radius: 5px;\n transition: all 0.3s;\n}", "file_path": "/mnt/persist/workspace/Buttons/garerim_splendid-snail-23.html" }, "uniapp": { "template": "<button class=\"btn\"></button>Hover me !\n <view class=\"background\"></view>\n</button>", "script": "export default {\n name: 'GalaxySplendidSnail23',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}", "style": "\n/* From Uiverse.io by garerim - Tags: button */\n.btn {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n font-size: 50rpx;\n font-weight: 600;\n height: 80rpx;\n line-height: 80rpx;\n /* #ifdef H5 */\n cursor: pointer;\n /* #endif */\n background-color: inherit;\n border: none;\n outline: none;\n color: #f1f1f1;\n}\n\n.btn:hover .background {\n height: inherit;\n width: 120%;\n top: 50%;\n}\n\n.btn .background {\n position: absolute;\n top: 100%;\n left: 50%;\n transform: translate(-50%, -50%);\n height: 6rpx;\n width: 100%;\n background-color: #006b92;\n z-index: -1;\n border-radius: 10rpx;\n transition: all 0.3s;\n}\n", "component_name": "GalaxySplendidSnail23" }, "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": 693, "render_cost": "medium", "memory_usage": "medium" }, "dependencies": [], "examples": [ { "title": "", "description": "", "code": "" } ], "created_at": "2025-07-31T07:55:36.786Z", "updated_at": "2025-07-31T07:55:36.786Z" }