galaxy-uniapp-mcp-server
Version:
Galaxy组件库到UniApp组件转换MCP服务器 - 支持跨平台组件转换、兼容性分析和项目集成
112 lines • 5.03 kB
JSON
{
"id": "simontheonlyone_warm-duck-56",
"name": "warm-duck-56",
"category": "buttons",
"author": "simontheonlyone",
"description": "warm-duck-56 组件 (button, animated, click animation, close, minimal, animation, interactive)",
"tags": [
"button",
"animated",
"click animation",
"close",
"minimal",
"animation",
"interactive"
],
"original": {
"html": "<button class=\"button\">\n <span class=\"X\"></span>\n <span class=\"Y\"></span>\n <div class=\"close\">Close</div>\n</button>",
"css": "/* From Uiverse.io by simontheonlyone - Source: no source link just the close button of Microsoft Windows - Tags: button, animated, click animation, close, minimal */\n.button {\n position: relative;\n width: 6em;\n height: 4em;\n border: none;\n background: none;\n}\n\n.X {\n content: '';\n position: absolute;\n top: 50%;\n left: 33%;\n width: 2em;\n height: 1.5px;\n background-color: #fff;\n transform: rotate(45deg);\n}\n\n.Y {\n content: '';\n position: absolute;\n top: 50%;\n left: 33%;\n width: 2em;\n height: 1.5px;\n background-color: #fff;\n transform: rotate(-45deg);\n}\n\n.close {\n position: absolute;\n display: flex;\n align-items: center;\n justify-content: center;\n bottom: -40%;\n left: 70%;\n width: 3em;\n height: 1.7em;\n font-size: 16px;\n background-color: rgb(254, 255, 225);\n color: #000;\n border: 1px solid #000;\n pointer-events: none;\n opacity: 0;\n}\n\n.button:hover {\n background-color: rgb(210, 0, 0);\n}\n\n.button:active {\n background-color: rgb(130, 0, 0);\n}\n\n.button:hover > .close {\n animation: close 0.2s forwards 1.25s;\n}\n\n@keyframes close {\n 100% {\n opacity: 1;\n }\n}",
"file_path": "/mnt/persist/workspace/Buttons/simontheonlyone_warm-duck-56.html"
},
"uniapp": {
"template": "<button class=\"button\"></button>\n <text class=\"X\"></text>\n <text class=\"Y\"></text>\n <view class=\"close\">Close</view>\n</button>",
"script": "export default {\n name: 'GalaxyWarmDuck56',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}",
"style": "\n/* From Uiverse.io by simontheonlyone - Source: no source link just the close button of Microsoft Windows - Tags: button, animated, click animation, close, minimal */\n.button {\n position: relative;\n width: 6em;\n height: 4em;\n border: none;\n background: none;\n}\n\n.X {\n content: '';\n position: absolute;\n top: 50%;\n left: 33%;\n width: 2em;\n height: 3rpx;\n background-color: #fff;\n transform: rotate(45deg);\n}\n\n.Y {\n content: '';\n position: absolute;\n top: 50%;\n left: 33%;\n width: 2em;\n height: 3rpx;\n background-color: #fff;\n transform: rotate(-45deg);\n}\n\n.close {\n position: absolute;\n display: flex;\n align-items: center;\n justify-content: center;\n bottom: -40%;\n left: 70%;\n width: 3em;\n height: 1.7em;\n font-size: 32rpx;\n background-color: rgb(254, 255, 225);\n color: #000;\n border: 2rpx solid #000;\n pointer-events: none;\n opacity: 0;\n}\n\n.button:hover {\n background-color: rgb(210, 0, 0);\n}\n\n.button:active {\n background-color: rgb(130, 0, 0);\n}\n\n.button:hover > .close {\n animation: close 0.2s forwards 1.25s;\n}\n\n@keyframes close {\n 100% {\n opacity: 1;\n }\n}\n",
"component_name": "GalaxyWarmDuck56"
},
"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": [],
"alternatives": []
},
"mp-alipay": {
"supported": true,
"issues": [],
"alternatives": []
},
"app-plus": {
"supported": true,
"issues": [],
"alternatives": []
}
},
"performance": {
"complexity": "medium",
"bundle_size": 1227,
"render_cost": "medium",
"memory_usage": "medium"
},
"dependencies": [],
"examples": [
{
"title": "",
"description": "",
"code": ""
}
],
"created_at": "2025-07-31T07:55:37.881Z",
"updated_at": "2025-07-31T07:55:37.881Z"
}