galaxy-uniapp-mcp-server
Version:
Galaxy组件库到UniApp组件转换MCP服务器 - 支持跨平台组件转换、兼容性分析和项目集成
114 lines • 4.39 kB
JSON
{
"id": "omar-alghaish_spicy-mule-84",
"name": "spicy-mule-84",
"category": "buttons",
"author": "omar-alghaish",
"description": "spicy-mule-84 组件 (button, animation, interactive)",
"tags": [
"button",
"animation",
"interactive"
],
"original": {
"html": "<button>\n <span>HoverMe</span>\n <span>HoverMe</span>\n </button>",
"css": "/* From Uiverse.io by omar-alghaish - Tags: button */\nbutton {\n position: relative;\n width: 150px;\n height: 50px;\n box-shadow: 0 5px 25px rgba(0, 0,0, .25);\n border: none;\n}\n\nbutton span {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n color: #fff;\n background: #002faf;\n display: flex;\n justify-content: center;\n align-items: center;\n text-transform: uppercase;\n letter-spacing: 2px;\n font-size: 17px;\n}\n\nbutton span:nth-child(2) {\n background: #fff;\n color: #002ba0;\n overflow: hidden;\n z-index: 2;\n transition: .5s;\n clip-path: polygon(50% 0%, 100% 0%,100% 100%,50% 100%,50% 53%);\n}\n\nbutton span:nth-child(2):hover {\n clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0 100%, 0 50%);\n}\n\nbutton span:nth-child(1):hover ~ span:nth-child(2) {\n clip-path: polygon(100% 0%, 100% 0%, 100% 100%, 100% 100%, 100%50%);\n}",
"file_path": "/mnt/persist/workspace/Buttons/omar-alghaish_spicy-mule-84.html"
},
"uniapp": {
"template": "<button></button>\n <text>HoverMe</text>\n <text>HoverMe</text>\n </button>",
"script": "export default {\n name: 'GalaxySpicyMule84',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}",
"style": "\n/* From Uiverse.io by omar-alghaish - Tags: button */\nbutton {\n position: relative;\n width: 300rpx;\n height: 100rpx;\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 0 10rpx 50rpx rgba(0, 0,0, .25);\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n border: none;\n}\n\nbutton span {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n color: #fff;\n background: #002faf;\n display: flex;\n justify-content: center;\n align-items: center;\n text-transform: uppercase;\n letter-spacing: 4rpx;\n font-size: 34rpx;\n}\n\nbutton span:nth-child(2) {\n background: #fff;\n color: #002ba0;\n overflow: hidden;\n z-index: 2;\n transition: .5s;\n \n}\n\nbutton span:nth-child(2):hover {\n \n}\n\nbutton span:nth-child(1):hover ~ span:nth-child(2) {\n \n}\n",
"component_name": "GalaxySpicyMule84"
},
"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 属性",
"不支持 clip-path 属性"
],
"alternatives": []
},
"mp-alipay": {
"supported": true,
"issues": [
"不支持 box-shadow 属性",
"不支持 clip-path 属性"
],
"alternatives": []
},
"app-plus": {
"supported": true,
"issues": [],
"alternatives": []
}
},
"performance": {
"complexity": "medium",
"bundle_size": 934,
"render_cost": "medium",
"memory_usage": "medium"
},
"dependencies": [],
"examples": [
{
"title": "",
"description": "",
"code": ""
}
],
"created_at": "2025-07-31T07:55:37.519Z",
"updated_at": "2025-07-31T07:55:37.519Z"
}