galaxy-uniapp-mcp-server
Version:
Galaxy组件库到UniApp组件转换MCP服务器 - 支持跨平台组件转换、兼容性分析和项目集成
115 lines • 5.54 kB
JSON
{
"id": "Jedi-hongbin_modern-sloth-8",
"name": "modern-sloth-8",
"category": "buttons",
"author": "Jedi-hongbin",
"description": "modern-sloth-8 组件 (icon, button, animation, interactive)",
"tags": [
"icon",
"button",
"animation",
"interactive"
],
"original": {
"html": "<button>\n <svg height=\"16\" width=\"16\" xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" viewBox=\"0 0 1024 1024\"><path d=\"M874.690416 495.52477c0 11.2973-9.168824 20.466124-20.466124 20.466124l-604.773963 0 188.083679 188.083679c7.992021 7.992021 7.992021 20.947078 0 28.939099-4.001127 3.990894-9.240455 5.996574-14.46955 5.996574-5.239328 0-10.478655-1.995447-14.479783-5.996574l-223.00912-223.00912c-3.837398-3.837398-5.996574-9.046027-5.996574-14.46955 0-5.433756 2.159176-10.632151 5.996574-14.46955l223.019353-223.029586c7.992021-7.992021 20.957311-7.992021 28.949332 0 7.992021 8.002254 7.992021 20.957311 0 28.949332l-188.073446 188.073446 604.753497 0C865.521592 475.058646 874.690416 484.217237 874.690416 495.52477z\"></path></svg>\n <span>Back</span>\n</button>",
"css": "/* From Uiverse.io by Jedi-hongbin - Tags: icon, button */\nbutton {\n display: flex;\n height: 3em;\n width: 100px;\n align-items: center;\n justify-content: center;\n background-color: #eeeeee4b;\n border-radius: 3px;\n letter-spacing: 1px;\n transition: all 0.2s linear;\n cursor: pointer;\n border: none;\n background: #fff;\n}\n\nbutton > svg {\n margin-right: 5px;\n margin-left: 5px;\n font-size: 20px;\n transition: all 0.4s ease-in;\n}\n\nbutton:hover > svg {\n font-size: 1.2em;\n transform: translateX(-5px);\n}\n\nbutton:hover {\n box-shadow: 9px 9px 33px #d1d1d1, -9px -9px 33px #ffffff;\n transform: translateY(-2px);\n}",
"file_path": "/mnt/persist/workspace/Buttons/Jedi-hongbin_modern-sloth-8.html"
},
"uniapp": {
"template": "<button></button>\n <view height=\"16\" width=\"16\" xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" viewBox=\"0 0 1024 1024\"><path d=\"M874.690416 495.52477c0 11.2973-9.168824 20.466124-20.466124 20.466124l-604.773963 0 188.083679 188.083679c7.992021 7.992021 7.992021 20.947078 0 28.939099-4.001127 3.990894-9.240455 5.996574-14.46955 5.996574-5.239328 0-10.478655-1.995447-14.479783-5.996574l-223.00912-223.00912c-3.837398-3.837398-5.996574-9.046027-5.996574-14.46955 0-5.433756 2.159176-10.632151 5.996574-14.46955l223.019353-223.029586c7.992021-7.992021 20.957311-7.992021 28.949332 0 7.992021 8.002254 7.992021 20.957311 0 28.949332l-188.073446 188.073446 604.753497 0C865.521592 475.058646 874.690416 484.217237 874.690416 495.52477z\"></path></view>\n <text>Back</text>\n</button>",
"script": "export default {\n name: 'GalaxyModernSloth8',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}",
"style": "\n/* From Uiverse.io by Jedi-hongbin - Tags: icon, button */\nbutton {\n display: flex;\n height: 3em;\n width: 200rpx;\n align-items: center;\n justify-content: center;\n background-color: #eeeeee4b;\n border-radius: 6rpx;\n letter-spacing: 2rpx;\n transition: all 0.2s linear;\n /* #ifdef H5 */\n cursor: pointer;\n /* #endif */\n border: none;\n background: #fff;\n}\n\nbutton > svg {\n margin-right: 10rpx;\n margin-left: 10rpx;\n font-size: 40rpx;\n transition: all 0.4s ease-in;\n}\n\nbutton:hover > svg {\n font-size: 1.2em;\n transform: translateX(-10rpx);\n}\n\nbutton:hover {\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 18rpx 18rpx 66rpx #d1d1d1, -18rpx -18rpx 66rpx #ffffff;\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n transform: translateY(-4rpx);\n}\n",
"component_name": "GalaxyModernSloth8"
},
"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": 1377,
"render_cost": "medium",
"memory_usage": "medium"
},
"dependencies": [],
"examples": [
{
"title": "",
"description": "",
"code": ""
}
],
"created_at": "2025-07-31T07:55:33.503Z",
"updated_at": "2025-07-31T07:55:33.503Z"
}