UNPKG

galaxy-uniapp-mcp-server

Version:

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

112 lines 4.85 kB
{ "id": "gharsh11032000_weak-fox-87", "name": "weak-fox-87", "category": "buttons", "author": "gharsh11032000", "description": "weak-fox-87 组件 (button, hover effect, interactive)", "tags": [ "button", "hover effect", "interactive" ], "original": { "html": "<button class=\"button\">\n <span>Hover!</span>\n</button>", "css": "/* From Uiverse.io by gharsh11032000 - Tags: button, hover effect */\n.button {\n position: relative;\n font-size: 24px;\n font-weight: 600;\n padding: 15px 30px;\n color: #cfef00;\n background-color: transparent;\n border: 2px solid #cfef00;\n border-radius: 10px;\n cursor: pointer;\n transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);\n overflow: hidden;\n}\n\n.button::before {\n content: '';\n position: absolute;\n width: 100%;\n height: 100%;\n background: #cfef00;\n top: 0%;\n left: -100%;\n scale: 1;\n border-radius: inherit;\n transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);\n}\n\n.button span {\n transition: all 0.7s;\n position: relative;\n overflow: hidden;\n}\n\n.button span::before {\n position: absolute;\n content: 'Hover!';\n top: 0;\n left: 0;\n color: #212121;\n width: 0;\n overflow: hidden;\n}\n\n.button:hover span::before {\n width: 100%;\n transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);\n transition-delay: 0.4s;\n}\n\n.button:hover::before {\n scale: 1;\n top: 0%;\n left: 0%;\n}\n\n.button:hover {\n border-color: transparent;\n}\n\n.button:active {\n scale: 0.9;\n}", "file_path": "/mnt/persist/workspace/Buttons/gharsh11032000_weak-fox-87.html" }, "uniapp": { "template": "<button class=\"button\"></button>\n <text>Hover!</text>\n</button>", "script": "export default {\n name: 'GalaxyWeakFox87',\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, hover effect */\n.button {\n position: relative;\n font-size: 48rpx;\n font-weight: 600;\n padding: 30rpx 60rpx;\n color: #cfef00;\n background-color: transparent;\n border: 4rpx solid #cfef00;\n border-radius: 20rpx;\n /* #ifdef H5 */\n cursor: pointer;\n /* #endif */\n transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);\n overflow: hidden;\n}\n\n.button::before {\n content: '';\n position: absolute;\n width: 100%;\n height: 100%;\n background: #cfef00;\n top: 0%;\n left: -100%;\n scale: 1;\n border-radius: inherit;\n transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);\n}\n\n.button span {\n transition: all 0.7s;\n position: relative;\n overflow: hidden;\n}\n\n.button span::before {\n position: absolute;\n content: 'Hover!';\n top: 0;\n left: 0;\n color: #212121;\n width: 0;\n overflow: hidden;\n}\n\n.button:hover span::before {\n width: 100%;\n transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);\n transition-delay: 0.4s;\n}\n\n.button:hover::before {\n scale: 1;\n top: 0%;\n left: 0%;\n}\n\n.button:hover {\n border-color: transparent;\n}\n\n.button:active {\n scale: 0.9;\n}\n\n", "component_name": "GalaxyWeakFox87" }, "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": "low", "bundle_size": 1150, "render_cost": "low", "memory_usage": "low" }, "dependencies": [], "examples": [ { "title": "", "description": "", "code": "" } ], "created_at": "2025-07-31T07:55:36.881Z", "updated_at": "2025-07-31T07:55:36.881Z" }