galaxy-uniapp-mcp-server
Version:
Galaxy组件库到UniApp组件转换MCP服务器 - 支持跨平台组件转换、兼容性分析和项目集成
116 lines • 5.37 kB
JSON
{
"id": "vinodjangid07_nasty-moose-44",
"name": "nasty-moose-44",
"category": "buttons",
"author": "vinodjangid07",
"description": "nasty-moose-44 组件 (animation, button, hover effect, setting, interactive)",
"tags": [
"animation",
"button",
"hover effect",
"setting",
"interactive"
],
"original": {
"html": "<button class=\"setting-btn\">\n <span class=\"bar bar1\"></span>\n <span class=\"bar bar2\"></span>\n <span class=\"bar bar1\"></span>\n</button>",
"css": "/* From Uiverse.io by vinodjangid07 - Tags: animation, button, hover effect, setting */\n.setting-btn {\n width: 45px;\n height: 45px;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: 6px;\n background-color: rgb(129, 110, 216);\n border-radius: 10px;\n cursor: pointer;\n border: none;\n box-shadow: 0px 0px 0px 2px rgb(212, 209, 255);\n}\n.bar {\n width: 50%;\n height: 2px;\n background-color: rgb(229, 229, 229);\n display: flex;\n align-items: center;\n justify-content: center;\n position: relative;\n border-radius: 2px;\n}\n.bar::before {\n content: \"\";\n width: 2px;\n height: 2px;\n background-color: rgb(126, 117, 255);\n position: absolute;\n border-radius: 50%;\n border: 2px solid white;\n transition: all 0.3s;\n box-shadow: 0px 0px 5px white;\n}\n.bar1::before {\n transform: translateX(-4px);\n}\n.bar2::before {\n transform: translateX(4px);\n}\n.setting-btn:hover .bar1::before {\n transform: translateX(4px);\n}\n.setting-btn:hover .bar2::before {\n transform: translateX(-4px);\n}",
"file_path": "/mnt/persist/workspace/Buttons/vinodjangid07_nasty-moose-44.html"
},
"uniapp": {
"template": "<button class=\"setting-btn\"></button>\n <text class=\"bar bar1\"></text>\n <text class=\"bar bar2\"></text>\n <text class=\"bar bar1\"></text>\n</button>",
"script": "export default {\n name: 'GalaxyNastyMoose44',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}",
"style": "\n/* From Uiverse.io by vinodjangid07 - Tags: animation, button, hover effect, setting */\n.setting-btn {\n width: 90rpx;\n height: 90rpx;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: 12rpx;\n background-color: rgb(129, 110, 216);\n border-radius: 20rpx;\n /* #ifdef H5 */\n cursor: pointer;\n /* #endif */\n border: none;\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 0rpx 0rpx 0rpx 4rpx rgb(212, 209, 255);\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n}\n.bar {\n width: 50%;\n height: 4rpx;\n background-color: rgb(229, 229, 229);\n display: flex;\n align-items: center;\n justify-content: center;\n position: relative;\n border-radius: 4rpx;\n}\n.bar::before {\n content: \"\";\n width: 4rpx;\n height: 4rpx;\n background-color: rgb(126, 117, 255);\n position: absolute;\n border-radius: 50%;\n border: 4rpx solid white;\n transition: all 0.3s;\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 0rpx 0rpx 10rpx white;\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n}\n.bar1::before {\n transform: translateX(-8rpx);\n}\n.bar2::before {\n transform: translateX(8rpx);\n}\n.setting-btn:hover .bar1::before {\n transform: translateX(8rpx);\n}\n.setting-btn:hover .bar2::before {\n transform: translateX(-8rpx);\n}\n\n",
"component_name": "GalaxyNastyMoose44"
},
"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": 1186,
"render_cost": "medium",
"memory_usage": "medium"
},
"dependencies": [],
"examples": [
{
"title": "",
"description": "",
"code": ""
}
],
"created_at": "2025-07-31T07:55:38.173Z",
"updated_at": "2025-07-31T07:55:38.173Z"
}