galaxy-uniapp-mcp-server
Version:
Galaxy组件库到UniApp组件转换MCP服务器 - 支持跨平台组件转换、兼容性分析和项目集成
111 lines • 3.98 kB
JSON
{
"id": "wang3616359git_hard-pig-94",
"name": "hard-pig-94",
"category": "buttons",
"author": "wang3616359git",
"description": "hard-pig-94 组件 (button, animation)",
"tags": [
"button",
"animation"
],
"original": {
"html": "<button class=\"bt\">\n Button\n\n</button>",
"css": "/* From Uiverse.io by wang3616359git - Tags: button */\n.bt {\n border: none;\n color: white;\n font-weight: 600;\n font-size: 18px;\n line-height: 40px;\n text-align: center;\n /*background-color: #0985e8;*/\n background-color: rgba(92, 215, 152,0.8);\n height: 40px;\n width: 100px;\n clip-path: polygon(\n 0 0,5% 0,5% 15%,10% 15%,10% 0,100% 0,\n 100% 75%,95% 75%,95% 85%,100% 85%,100% 100%,\n 50% 100%,50% 85%,45% 85%,45% 100%,0 100%,\n 0 65%,5% 65%,5% 50%,0 50%,0 0\n );\n border-top-right-radius: 5px;\n border-right: #aebdb7 2px solid;\n border-bottom: #b0bab1 2px solid;\n transition: all 0.6s ease;\n}\n\n.bt:active {\n transition: all 0.01s ease;\n border-right: #aebdb7 0 solid;\n border-bottom: #b0bab1 0 solid;\n user-select: none;\n transform: translateX(1px) translateY(1px);\n}",
"file_path": "/mnt/persist/workspace/Buttons/wang3616359git_hard-pig-94.html"
},
"uniapp": {
"template": "<button class=\"bt\"></button>\n Button\n\n</button>",
"script": "export default {\n name: 'GalaxyHardPig94',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}",
"style": "\n/* From Uiverse.io by wang3616359git - Tags: button */\n.bt {\n border: none;\n color: white;\n font-weight: 600;\n font-size: 36rpx;\n line-height: 80rpx;\n text-align: center;\n /*background-color: #0985e8;*/\n background-color: rgba(92, 215, 152,0.8);\n height: 80rpx;\n width: 200rpx;\n \n border-top-right-radius: 10rpx;\n border-right: #aebdb7 4rpx solid;\n border-bottom: #b0bab1 4rpx solid;\n transition: all 0.6s ease;\n}\n\n.bt:active {\n transition: all 0.01s ease;\n border-right: #aebdb7 0 solid;\n border-bottom: #b0bab1 0 solid;\n user-select: none;\n transform: translateX(2rpx) translateY(2rpx);\n}\n",
"component_name": "GalaxyHardPig94"
},
"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": [
"不支持 clip-path 属性"
],
"alternatives": []
},
"mp-alipay": {
"supported": true,
"issues": [
"不支持 clip-path 属性"
],
"alternatives": []
},
"app-plus": {
"supported": true,
"issues": [],
"alternatives": []
}
},
"performance": {
"complexity": "medium",
"bundle_size": 898,
"render_cost": "medium",
"memory_usage": "medium"
},
"dependencies": [],
"examples": [
{
"title": "",
"description": "",
"code": ""
}
],
"created_at": "2025-07-31T07:55:38.350Z",
"updated_at": "2025-07-31T07:55:38.350Z"
}