galaxy-uniapp-mcp-server
Version:
Galaxy组件库到UniApp组件转换MCP服务器 - 支持跨平台组件转换、兼容性分析和项目集成
113 lines • 5.05 kB
JSON
{
"id": "KINGFRESS_nice-deer-12",
"name": "nice-deer-12",
"category": "buttons",
"author": "KINGFRESS",
"description": "nice-deer-12 组件 (gradient, button, animation, interactive)",
"tags": [
"gradient",
"button",
"animation",
"interactive"
],
"original": {
"html": "<button>\n <span class=\"txt\">click me</span>\n <span class=\"txt2\">You did it</span>\n <span class=\"gradient\"></span>\n</button>",
"css": "/* From Uiverse.io by KINGFRESS - Tags: gradient, button */\nbutton {\n background-color: transparent;\n color: white;\n font-weight: bold;\n height: 3.3em;\n width: 12em;\n border: none;\n border-radius: 25px;\n cursor: pointer;\n transition: .4s ease;\n position: relative;\n overflow: hidden;\n text-transform: uppercase;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\nbutton .gradient {\n height: 100%;\n width: 350%;\n background: linear-gradient(to right, #156aa3 25%, #64EAE7 65%, #16a085 90%);\n position: absolute;\n top: 0;\n left: 60%;\n transform: translateX(-50%);\n z-index: -1;\n transition: .4s ease;\n}\n\nbutton .txt {\n transition: .4s ease .5s;\n}\n\nbutton .txt2 {\n position: absolute;\n opacity: 0;\n transition: .4s;\n}\n\nbutton:hover .gradient {\n transition: .4s ease;\n transform: translateX(-40%);\n}\n\nbutton:focus .gradient {\n background-size: 200%;\n background-position: right;\n transform: translateX(-88%);\n transition: 1s ease;\n}\n\nbutton:focus .txt {\n opacity: 0;\n transition: .4s ease;\n}\n\nbutton:focus .txt2 {\n opacity: 1;\n transition: 1s ease .5s;\n}",
"file_path": "/mnt/persist/workspace/Buttons/KINGFRESS_nice-deer-12.html"
},
"uniapp": {
"template": "<button></button>\n <text class=\"txt\">click me</text>\n <text class=\"txt2\">You did it</text>\n <text class=\"gradient\"></text>\n</button>",
"script": "export default {\n name: 'GalaxyNiceDeer12',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}",
"style": "\n/* From Uiverse.io by KINGFRESS - Tags: gradient, button */\nbutton {\n background-color: transparent;\n color: white;\n font-weight: bold;\n height: 3.3em;\n width: 12em;\n border: none;\n border-radius: 50rpx;\n /* #ifdef H5 */\n cursor: pointer;\n /* #endif */\n transition: .4s ease;\n position: relative;\n overflow: hidden;\n text-transform: uppercase;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\nbutton .gradient {\n height: 100%;\n width: 350%;\n background: linear-gradient(to right, #156aa3 25%, #64EAE7 65%, #16a085 90%);\n position: absolute;\n top: 0;\n left: 60%;\n transform: translateX(-50%);\n z-index: -1;\n transition: .4s ease;\n}\n\nbutton .txt {\n transition: .4s ease .5s;\n}\n\nbutton .txt2 {\n position: absolute;\n opacity: 0;\n transition: .4s;\n}\n\nbutton:hover .gradient {\n transition: .4s ease;\n transform: translateX(-40%);\n}\n\nbutton:focus .gradient {\n background-size: 200%;\n background-position: right;\n transform: translateX(-88%);\n transition: 1s ease;\n}\n\nbutton:focus .txt {\n opacity: 0;\n transition: .4s ease;\n}\n\nbutton:focus .txt2 {\n opacity: 1;\n transition: 1s ease .5s;\n}\n",
"component_name": "GalaxyNiceDeer12"
},
"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": [
"不支持 cursor 属性"
],
"alternatives": []
},
"mp-alipay": {
"supported": true,
"issues": [
"不支持 cursor 属性"
],
"alternatives": []
},
"app-plus": {
"supported": true,
"issues": [],
"alternatives": []
}
},
"performance": {
"complexity": "medium",
"bundle_size": 1234,
"render_cost": "medium",
"memory_usage": "medium"
},
"dependencies": [],
"examples": [
{
"title": "",
"description": "",
"code": ""
}
],
"created_at": "2025-07-31T07:55:33.632Z",
"updated_at": "2025-07-31T07:55:33.632Z"
}