galaxy-uniapp-mcp-server
Version:
Galaxy组件库到UniApp组件转换MCP服务器 - 支持跨平台组件转换、兼容性分析和项目集成
114 lines • 5.55 kB
JSON
{
"id": "Subu19_plastic-skunk-56",
"name": "plastic-skunk-56",
"category": "buttons",
"author": "Subu19",
"description": "plastic-skunk-56 组件 (animation, button, hamburger, click, menu)",
"tags": [
"animation",
"button",
"hamburger",
"click",
"menu"
],
"original": {
"html": "<div class=\"hamburger\">\n <input class=\"checkbox\" type=\"checkbox\">\n <svg fill=\"none\" viewBox=\"0 0 50 50\" height=\"50\" width=\"50\">\n <path class=\"lineTop line\" stroke-linecap=\"round\" stroke-width=\"4\" stroke=\"black\" d=\"M6 11L44 11\"></path>\n <path stroke-linecap=\"round\" stroke-width=\"4\" stroke=\"black\" d=\"M6 24H43\" class=\"lineMid line\"></path>\n <path stroke-linecap=\"round\" stroke-width=\"4\" stroke=\"black\" d=\"M6 37H43\" class=\"lineBottom line\"></path>\n </svg>\n</div>",
"css": "/* From Uiverse.io by Subu19 - Tags: animation, button, hamburger, click, menu */\n.hamburger {\n height: 50px;\n width: 50px;\n transform: 0.2s;\n position: relative;\n}\n.hamburger .checkbox {\n position: absolute;\n opacity: 0;\n height: 100%;\n width: 100%;\n cursor: pointer;\n}\n.line {\n transition: 0.5s;\n stroke-width: 6px;\n stroke: black;\n}\n.lineTop {\n stroke-dasharray: 40 40;\n stroke-dashoffset: 25;\n}\n.lineBottom {\n stroke-dasharray: 40 40;\n stroke-dashoffset: 60;\n}\n.lineMid {\n stroke-dasharray: 40 40;\n}\n.hamburger .checkbox:checked + svg .line {\n stroke: crimson;\n}\n.hamburger .checkbox:checked + svg .lineTop {\n stroke-dashoffset: 0;\n transform-origin: left;\n transform: rotateZ(45deg) translate(-7px, -5px);\n}\n.hamburger .checkbox:checked + svg .lineMid {\n stroke-dashoffset: 40;\n}\n.hamburger .checkbox:checked + svg .lineBottom {\n stroke-dashoffset: 0;\n transform-origin: left;\n transform: rotateZ(-45deg) translate(-5px, 5px);\n}",
"file_path": "/mnt/persist/workspace/Buttons/Subu19_plastic-skunk-56.html"
},
"uniapp": {
"template": "<view class=\"hamburger\"></view>\n <input class=\"checkbox\" type=\"checkbox\"></input>\n <view fill=\"none\" viewBox=\"0 0 50 50\" height=\"50\" width=\"50\"></view>\n <path class=\"lineTop line\" stroke-linecap=\"round\" stroke-width=\"4\" stroke=\"black\" d=\"M6 11L44 11\"></path>\n <path stroke-linecap=\"round\" stroke-width=\"4\" stroke=\"black\" d=\"M6 24H43\" class=\"lineMid line\"></path>\n <path stroke-linecap=\"round\" stroke-width=\"4\" stroke=\"black\" d=\"M6 37H43\" class=\"lineBottom line\"></path>\n </svg>\n</div>",
"script": "export default {\n name: 'GalaxyPlasticSkunk56',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}",
"style": "\n/* From Uiverse.io by Subu19 - Tags: animation, button, hamburger, click, menu */\n.hamburger {\n height: 100rpx;\n width: 100rpx;\n transform: 0.2s;\n position: relative;\n}\n.hamburger .checkbox {\n position: absolute;\n opacity: 0;\n height: 100%;\n width: 100%;\n /* #ifdef H5 */\n cursor: pointer;\n /* #endif */\n}\n.line {\n transition: 0.5s;\n stroke-width: 12rpx;\n stroke: black;\n}\n.lineTop {\n stroke-dasharray: 40 40;\n stroke-dashoffset: 25;\n}\n.lineBottom {\n stroke-dasharray: 40 40;\n stroke-dashoffset: 60;\n}\n.lineMid {\n stroke-dasharray: 40 40;\n}\n.hamburger .checkbox:checked + svg .line {\n stroke: crimson;\n}\n.hamburger .checkbox:checked + svg .lineTop {\n stroke-dashoffset: 0;\n transform-origin: left;\n transform: rotateZ(45deg) translate(-14rpx, -10rpx);\n}\n.hamburger .checkbox:checked + svg .lineMid {\n stroke-dashoffset: 40;\n}\n.hamburger .checkbox:checked + svg .lineBottom {\n stroke-dashoffset: 0;\n transform-origin: left;\n transform: rotateZ(-45deg) translate(-10rpx, 10rpx);\n}\n\n",
"component_name": "GalaxyPlasticSkunk56"
},
"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": 1441,
"render_cost": "medium",
"memory_usage": "medium"
},
"dependencies": [],
"examples": [
{
"title": "",
"description": "",
"code": ""
}
],
"created_at": "2025-07-31T07:55:34.931Z",
"updated_at": "2025-07-31T07:55:34.931Z"
}