galaxy-uniapp-mcp-server
Version:
Galaxy组件库到UniApp组件转换MCP服务器 - 支持跨平台组件转换、兼容性分析和项目集成
115 lines • 5.11 kB
JSON
{
"id": "gharsh11032000_neat-bullfrog-61",
"name": "neat-bullfrog-61",
"category": "buttons",
"author": "gharsh11032000",
"description": "neat-bullfrog-61 组件 (button, hover effect, animation, interactive)",
"tags": [
"button",
"hover effect",
"animation",
"interactive"
],
"original": {
"html": "<button class=\"animated-button\">\n <span>Hover me</span>\n <span></span>\n</button>",
"css": "/* From Uiverse.io by gharsh11032000 - Tags: button, hover effect */\n.animated-button {\n position: relative;\n display: inline-block;\n padding: 12px 24px;\n border: none;\n font-size: 16px;\n background-color: inherit;\n border-radius: 100px;\n font-weight: 600;\n color: #ffffff40;\n box-shadow: 0 0 0 2px #ffffff20;\n cursor: pointer;\n overflow: hidden;\n transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);\n}\n\n.animated-button span:last-child {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n width: 20px;\n height: 20px;\n background-color: #2196F3;\n border-radius: 50%;\n opacity: 0;\n transition: all 0.8s cubic-bezier(0.23, 1, 0.320, 1);\n}\n\n.animated-button span:first-child {\n position: relative;\n z-index: 1;\n}\n\n.animated-button:hover {\n box-shadow: 0 0 0 5px #2195f360;\n color: #ffffff;\n}\n\n.animated-button:active {\n scale: 0.95;\n}\n\n.animated-button:hover span:last-child {\n width: 150px;\n height: 150px;\n opacity: 1;\n}",
"file_path": "/mnt/persist/workspace/Buttons/gharsh11032000_neat-bullfrog-61.html"
},
"uniapp": {
"template": "<button class=\"animated-button\"></button>\n <text>Hover me</text>\n <text></text>\n</button>",
"script": "export default {\n name: 'GalaxyNeatBullfrog61',\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.animated-button {\n position: relative;\n display: inline-block;\n padding: 24rpx 48rpx;\n border: none;\n font-size: 32rpx;\n background-color: inherit;\n border-radius: 200rpx;\n font-weight: 600;\n color: #ffffff40;\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 0 0 0 4rpx #ffffff20;\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n /* #ifdef H5 */\n cursor: pointer;\n /* #endif */\n overflow: hidden;\n transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);\n}\n\n.animated-button span:last-child {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n width: 40rpx;\n height: 40rpx;\n background-color: #2196F3;\n border-radius: 50%;\n opacity: 0;\n transition: all 0.8s cubic-bezier(0.23, 1, 0.320, 1);\n}\n\n.animated-button span:first-child {\n position: relative;\n z-index: 1;\n}\n\n.animated-button:hover {\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 0 0 0 10rpx #2195f360;\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n color: #ffffff;\n}\n\n.animated-button:active {\n scale: 0.95;\n}\n\n.animated-button:hover span:last-child {\n width: 300rpx;\n height: 300rpx;\n opacity: 1;\n}\n\n\n\n",
"component_name": "GalaxyNeatBullfrog61"
},
"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": 1070,
"render_cost": "medium",
"memory_usage": "medium"
},
"dependencies": [],
"examples": [
{
"title": "",
"description": "",
"code": ""
}
],
"created_at": "2025-07-31T07:55:36.854Z",
"updated_at": "2025-07-31T07:55:36.854Z"
}