galaxy-uniapp-mcp-server
Version:
Galaxy组件库到UniApp组件转换MCP服务器 - 支持跨平台组件转换、兼容性分析和项目集成
113 lines • 4.21 kB
JSON
{
"id": "eslam-hany_fresh-octopus-46",
"name": "fresh-octopus-46",
"category": "buttons",
"author": "eslam-hany",
"description": "fresh-octopus-46 组件 (button, hover, animation, interactive)",
"tags": [
"button",
"hover",
"animation",
"interactive"
],
"original": {
"html": "<button class=\"btn\" data-text=\"HELLO\">\n <span class=\"hover\">HOVER</span>\n</button>",
"css": "/* From Uiverse.io by eslam-hany - Tags: button, hover */\n.btn {\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 140px;\n height: 40px;\n border: 3px solid #0b2447;\n color: #fff;\n font-size: 20px;\n font-weight: bolder;\n background-color: #0d6efd;\n overflow: hidden;\n transition: all 0.5s;\n cursor: pointer;\n}\n\n.hover {\n transform: translateX(0%);\n transition: all 0.5s;\n}\n\n.btn::after {\n position: absolute;\n content: attr(data-text);\n left: 0;\n transform: translateX(-100%);\n transition: all 0.5s;\n}\n\n.btn:hover::after {\n transform: translateX(50%);\n transition: all 0.5s;\n}\n\n.btn:hover .hover {\n position: absolute;\n transform: translateX(150%);\n transition: all 0.5s;\n}",
"file_path": "/mnt/persist/workspace/Buttons/eslam-hany_fresh-octopus-46.html"
},
"uniapp": {
"template": "<button class=\"btn\" data-text=\"HELLO\"></button>\n <text class=\"hover\">HOVER</text>\n</button>",
"script": "export default {\n name: 'GalaxyFreshOctopus46',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}",
"style": "\n/* From Uiverse.io by eslam-hany - Tags: button, hover */\n.btn {\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 280rpx;\n height: 80rpx;\n border: 6rpx solid #0b2447;\n color: #fff;\n font-size: 40rpx;\n font-weight: bolder;\n background-color: #0d6efd;\n overflow: hidden;\n transition: all 0.5s;\n /* #ifdef H5 */\n cursor: pointer;\n /* #endif */\n}\n\n.hover {\n transform: translateX(0%);\n transition: all 0.5s;\n}\n\n.btn::after {\n position: absolute;\n content: attr(data-text);\n left: 0;\n transform: translateX(-100%);\n transition: all 0.5s;\n}\n\n.btn:hover::after {\n transform: translateX(50%);\n transition: all 0.5s;\n}\n\n.btn:hover .hover {\n position: absolute;\n transform: translateX(150%);\n transition: all 0.5s;\n}\n",
"component_name": "GalaxyFreshOctopus46"
},
"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": 828,
"render_cost": "medium",
"memory_usage": "medium"
},
"dependencies": [],
"examples": [
{
"title": "",
"description": "",
"code": ""
}
],
"created_at": "2025-07-31T07:55:36.649Z",
"updated_at": "2025-07-31T07:55:36.649Z"
}