galaxy-uniapp-mcp-server
Version:
Galaxy组件库到UniApp组件转换MCP服务器 - 支持跨平台组件转换、兼容性分析和项目集成
113 lines • 4.75 kB
JSON
{
"id": "mobinkakei_light-pug-30",
"name": "light-pug-30",
"category": "buttons",
"author": "mobinkakei",
"description": "light-pug-30 组件 (button, animation, gradient, interactive)",
"tags": [
"button",
"animation",
"gradient",
"interactive"
],
"original": {
"html": "<button class=\"btn btn-1\">Hover Me!</button>",
"css": "/* From Uiverse.io by mobinkakei - Tags: button */\n.btn {\n text-decoration: none;\n padding: 20px 40px;\n font-size: 1em;\n position: relative;\n margin: 32px;\n border: none;\n background-color: #26caf8;\n font-weight: 600;\n}\n\n.btn-1 {\n overflow: hidden;\n color: #fff;\n border-radius: 30px;\n box-shadow: 0 0 0 0 rgba(143, 64, 248, 0.5), 0 0 0 0 rgba(39, 200, 255, 0.5);\n transition: transform 0.3s ease, box-shadow 0.3s ease;\n}\n\n.btn-1::after {\n content: \"\";\n width: 400px;\n height: 400px;\n position: absolute;\n top: -50px;\n left: -100px;\n background-color: #ff3cac;\n background-image: linear-gradient(225deg, #27d86c 0%, #26caf8 50%, #c625d0 100%);\n z-index: -1;\n transition: transform 0.5s ease;\n}\n\n.btn-1:hover {\n transform: translate(0, -6px);\n box-shadow: 10px -10px 25px 0 rgba(143, 64, 248, 0.5), -10px 10px 25px 0 rgba(39, 200, 255, 0.5);\n}\n\n.btn-1:hover::after {\n transform: rotate(150deg);\n}",
"file_path": "/mnt/persist/workspace/Buttons/mobinkakei_light-pug-30.html"
},
"uniapp": {
"template": "<button class=\"btn btn-1\"></button>Hover Me!</button>",
"script": "export default {\n name: 'GalaxyLightPug30',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}",
"style": "\n/* From Uiverse.io by mobinkakei - Tags: button */\n.btn {\n text-decoration: none;\n padding: 40rpx 80rpx;\n font-size: 1em;\n position: relative;\n margin: 64rpx;\n border: none;\n background-color: #26caf8;\n font-weight: 600;\n}\n\n.btn-1 {\n overflow: hidden;\n color: #fff;\n border-radius: 60rpx;\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 0 0 0 0 rgba(143, 64, 248, 0.5), 0 0 0 0 rgba(39, 200, 255, 0.5);\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n transition: transform 0.3s ease, box-shadow 0.3s ease;\n}\n\n.btn-1::after {\n content: \"\";\n width: 800rpx;\n height: 800rpx;\n position: absolute;\n top: -100rpx;\n left: -200rpx;\n background-color: #ff3cac;\n background-image: linear-gradient(225deg, #27d86c 0%, #26caf8 50%, #c625d0 100%);\n z-index: -1;\n transition: transform 0.5s ease;\n}\n\n.btn-1:hover {\n transform: translate(0, -12rpx);\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 20rpx -20rpx 50rpx 0 rgba(143, 64, 248, 0.5), -20rpx 20rpx 50rpx 0 rgba(39, 200, 255, 0.5);\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n}\n\n.btn-1:hover::after {\n transform: rotate(150deg);\n}\n",
"component_name": "GalaxyLightPug30"
},
"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 属性"
],
"alternatives": []
},
"mp-alipay": {
"supported": true,
"issues": [
"不支持 box-shadow 属性"
],
"alternatives": []
},
"app-plus": {
"supported": true,
"issues": [],
"alternatives": []
}
},
"performance": {
"complexity": "medium",
"bundle_size": 970,
"render_cost": "medium",
"memory_usage": "medium"
},
"dependencies": [],
"examples": [
{
"title": "",
"description": "",
"code": ""
}
],
"created_at": "2025-07-31T07:55:37.291Z",
"updated_at": "2025-07-31T07:55:37.291Z"
}