galaxy-uniapp-mcp-server
Version:
Galaxy组件库到UniApp组件转换MCP服务器 - 支持跨平台组件转换、兼容性分析和项目集成
114 lines • 5.2 kB
JSON
{
"id": "andrew-demchenk0_swift-octopus-68",
"name": "swift-octopus-68",
"category": "buttons",
"author": "andrew-demchenk0",
"description": "swift-octopus-68 组件 (icon, button, archive, animation, interactive)",
"tags": [
"icon",
"button",
"archive",
"animation",
"interactive"
],
"original": {
"html": "<button class=\"button\">\n <svg class=\"svg-icon\" width=\"24\" viewBox=\"0 0 24 24\" height=\"24\" fill=\"none\"><g stroke-width=\"2\" stroke-linecap=\"round\" stroke=\"#056dfa\" fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"m3 7h17c.5523 0 1 .44772 1 1v11c0 .5523-.4477 1-1 1h-16c-.55228 0-1-.4477-1-1z\"></path><path d=\"m3 4.5c0-.27614.22386-.5.5-.5h6.29289c.13261 0 .25981.05268.35351.14645l2.8536 2.85355h-10z\"></path></g></svg>\n <span class=\"lable\">Archive</span>\n</button>",
"css": "/* From Uiverse.io by andrew-demchenk0 - Tags: icon, button, archive */\n.button {\n display: flex;\n justify-content: center;\n align-items: center;\n padding: 8px 12px 8px 16px;\n gap: 8px;\n height: 40px;\n width: 128px;\n border: none;\n background: #056bfa27;\n border-radius: 20px;\n cursor: pointer;\n}\n\n.lable {\n margin-top: 1px;\n font-size: 19px;\n line-height: 22px;\n color: #056DFA;\n font-family: sans-serif;\n letter-spacing: 1px;\n}\n\n.button:hover {\n background: #056bfa49;\n}\n\n.button:hover .svg-icon {\n animation: spin 1s linear infinite;\n}\n\n@keyframes spin {\n 0% {\n transform: rotate(0deg);\n }\n\n 25% {\n transform: rotate(-8deg);\n }\n\n 50% {\n transform: rotate(0deg);\n }\n\n 75% {\n transform: rotate(8deg);\n }\n\n 100% {\n transform: rotate(0deg);\n }\n}",
"file_path": "/mnt/persist/workspace/Buttons/andrew-demchenk0_swift-octopus-68.html"
},
"uniapp": {
"template": "<button class=\"button\"></button>\n <view class=\"svg-icon\" width=\"24\" viewBox=\"0 0 24 24\" height=\"24\" fill=\"none\"><g stroke-width=\"2\" stroke-linecap=\"round\" stroke=\"#056dfa\" fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"m3 7h17c.5523 0 1 .44772 1 1v11c0 .5523-.4477 1-1 1h-16c-.55228 0-1-.4477-1-1z\"></path><path d=\"m3 4.5c0-.27614.22386-.5.5-.5h6.29289c.13261 0 .25981.05268.35351.14645l2.8536 2.85355h-10z\"></path></g></view>\n <text class=\"lable\">Archive</text>\n</button>",
"script": "export default {\n name: 'GalaxySwiftOctopus68',\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: icon, button, archive */\n.button {\n display: flex;\n justify-content: center;\n align-items: center;\n padding: 16rpx 24rpx 16rpx 32rpx;\n gap: 16rpx;\n height: 80rpx;\n width: 256rpx;\n border: none;\n background: #056bfa27;\n border-radius: 40rpx;\n /* #ifdef H5 */\n cursor: pointer;\n /* #endif */\n}\n\n.lable {\n margin-top: 2rpx;\n font-size: 38rpx;\n line-height: 44rpx;\n color: #056DFA;\n font-family: sans-serif;\n letter-spacing: 2rpx;\n}\n\n.button:hover {\n background: #056bfa49;\n}\n\n.button:hover .svg-icon {\n animation: spin 1s linear infinite;\n}\n\n@keyframes spin {\n 0% {\n transform: rotate(0deg);\n }\n\n 25% {\n transform: rotate(-8deg);\n }\n\n 50% {\n transform: rotate(0deg);\n }\n\n 75% {\n transform: rotate(8deg);\n }\n\n 100% {\n transform: rotate(0deg);\n }\n}\n",
"component_name": "GalaxySwiftOctopus68"
},
"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": 1257,
"render_cost": "medium",
"memory_usage": "medium"
},
"dependencies": [],
"examples": [
{
"title": "",
"description": "",
"code": ""
}
],
"created_at": "2025-07-31T07:55:35.717Z",
"updated_at": "2025-07-31T07:55:35.717Z"
}