galaxy-uniapp-mcp-server
Version:
Galaxy组件库到UniApp组件转换MCP服务器 - 支持跨平台组件转换、兼容性分析和项目集成
114 lines • 5.68 kB
JSON
{
"id": "andrew-demchenk0_young-chipmunk-91",
"name": "young-chipmunk-91",
"category": "buttons",
"author": "andrew-demchenk0",
"description": "young-chipmunk-91 组件 (blue, button, refresh, animation, interactive)",
"tags": [
"blue",
"button",
"refresh",
"animation",
"interactive"
],
"original": {
"html": "<button class=\"button\" type=\"button\">\n <span class=\"button__text\">Refresh</span>\n <span class=\"button__icon\"><svg xmlns=\"http://www.w3.org/2000/svg\" width=\"48\" viewBox=\"0 0 48 48\" height=\"48\" class=\"svg\"><path d=\"M35.3 12.7c-2.89-2.9-6.88-4.7-11.3-4.7-8.84 0-15.98 7.16-15.98 16s7.14 16 15.98 16c7.45 0 13.69-5.1 15.46-12h-4.16c-1.65 4.66-6.07 8-11.3 8-6.63 0-12-5.37-12-12s5.37-12 12-12c3.31 0 6.28 1.38 8.45 3.55l-6.45 6.45h14v-14l-4.7 4.7z\"></path><path fill=\"none\" d=\"M0 0h48v48h-48z\"></path></svg></span>\n</button>",
"css": "/* From Uiverse.io by andrew-demchenk0 - Tags: blue, button, refresh */\n.button {\n position: relative;\n width: 150px;\n height: 40px;\n cursor: pointer;\n display: flex;\n align-items: center;\n border: 1px solid #0078E8;\n background-color: #0082FC;\n overflow: hidden;\n}\n\n.button, .button__icon, .button__text {\n transition: all 0.3s;\n}\n\n.button .button__text {\n transform: translateX(30px);\n color: #fff;\n font-weight: 600;\n}\n\n.button .button__icon {\n position: absolute;\n transform: translateX(109px);\n height: 100%;\n width: 39px;\n background-color: #0078E8;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.button .svg {\n width: 20px;\n fill: #fff;\n}\n\n.button:hover {\n background: #0078E8;\n}\n\n.button:hover .button__text {\n color: transparent;\n}\n\n.button:hover .button__icon {\n width: 148px;\n transform: translateX(0);\n}\n\n.button:active .button__icon {\n background-color: #006cd0;\n}\n\n.button:active {\n border: 1px solid #006cd0;\n}",
"file_path": "/mnt/persist/workspace/Buttons/andrew-demchenk0_young-chipmunk-91.html"
},
"uniapp": {
"template": "<button class=\"button\" type=\"button\"></button>\n <text class=\"button__text\">Refresh</text>\n <text class=\"button__icon\"><view xmlns=\"http://www.w3.org/2000/svg\" width=\"48\" viewBox=\"0 0 48 48\" height=\"48\" class=\"svg\"><path d=\"M35.3 12.7c-2.89-2.9-6.88-4.7-11.3-4.7-8.84 0-15.98 7.16-15.98 16s7.14 16 15.98 16c7.45 0 13.69-5.1 15.46-12h-4.16c-1.65 4.66-6.07 8-11.3 8-6.63 0-12-5.37-12-12s5.37-12 12-12c3.31 0 6.28 1.38 8.45 3.55l-6.45 6.45h14v-14l-4.7 4.7z\"></path><path fill=\"none\" d=\"M0 0h48v48h-48z\"></path></view></text>\n</button>",
"script": "export default {\n name: 'GalaxyYoungChipmunk91',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}",
"style": "\n/* From Uiverse.io by andrew-demchenk0 - Tags: blue, button, refresh */\n.button {\n position: relative;\n width: 300rpx;\n height: 80rpx;\n /* #ifdef H5 */\n cursor: pointer;\n /* #endif */\n display: flex;\n align-items: center;\n border: 2rpx solid #0078E8;\n background-color: #0082FC;\n overflow: hidden;\n}\n\n.button, .button__icon, .button__text {\n transition: all 0.3s;\n}\n\n.button .button__text {\n transform: translateX(60rpx);\n color: #fff;\n font-weight: 600;\n}\n\n.button .button__icon {\n position: absolute;\n transform: translateX(218rpx);\n height: 100%;\n width: 78rpx;\n background-color: #0078E8;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.button .svg {\n width: 40rpx;\n fill: #fff;\n}\n\n.button:hover {\n background: #0078E8;\n}\n\n.button:hover .button__text {\n color: transparent;\n}\n\n.button:hover .button__icon {\n width: 296rpx;\n transform: translateX(0);\n}\n\n.button:active .button__icon {\n background-color: #006cd0;\n}\n\n.button:active {\n border: 2rpx solid #006cd0;\n}\n",
"component_name": "GalaxyYoungChipmunk91"
},
"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": 1500,
"render_cost": "medium",
"memory_usage": "medium"
},
"dependencies": [],
"examples": [
{
"title": "",
"description": "",
"code": ""
}
],
"created_at": "2025-07-31T07:55:35.751Z",
"updated_at": "2025-07-31T07:55:35.751Z"
}