galaxy-uniapp-mcp-server
Version:
Galaxy组件库到UniApp组件转换MCP服务器 - 支持跨平台组件转换、兼容性分析和项目集成
116 lines • 5.14 kB
JSON
{
"id": "andrew-demchenk0_pretty-squid-78",
"name": "pretty-squid-78",
"category": "buttons",
"author": "andrew-demchenk0",
"description": "pretty-squid-78 组件 (animation, purple, button, opacity, small, edit, interactive)",
"tags": [
"animation",
"purple",
"button",
"opacity",
"small",
"edit",
"interactive"
],
"original": {
"html": "<button class=\"button\">\n <svg class=\"svg-icon\" fill=\"none\" height=\"24\" viewBox=\"0 0 24 24\" width=\"24\" xmlns=\"http://www.w3.org/2000/svg\"><g stroke=\"#a649da\" stroke-linecap=\"round\" stroke-width=\"2\"><path d=\"m20 20h-16\"></path><path clip-rule=\"evenodd\" d=\"m14.5858 4.41422c.781-.78105 2.0474-.78105 2.8284 0 .7811.78105.7811 2.04738 0 2.82843l-8.28322 8.28325-3.03046.202.20203-3.0304z\" fill-rule=\"evenodd\"></path></g></svg>\n <span class=\"lable\">Edit</span>\n</button>",
"css": "/* From Uiverse.io by andrew-demchenk0 - Tags: animation, purple, button, opacity, small, edit */\n.button {\n display: flex;\n justify-content: center;\n align-items: center;\n padding: 8px 12px;\n gap: 2px;\n height: 40px;\n width: 85px;\n border: none;\n background: #a549da3d;\n border-radius: 20px;\n cursor: pointer;\n}\n\n.lable {\n line-height: 22px;\n font-size: 19px;\n color: #A649DA;\n font-family: sans-serif;\n letter-spacing: 1px;\n}\n\n.button:hover {\n background: #a549da62;\n}\n\n.button:hover .svg-icon {\n animation: lr 1s linear infinite;\n}\n\n@keyframes lr {\n 0% {\n transform: translateX(0);\n }\n\n 25% {\n transform: translateX(-1px);\n }\n\n 75% {\n transform: translateX(1px);\n }\n\n 100% {\n transform: translateX(0);\n }\n}",
"file_path": "/mnt/persist/workspace/Buttons/andrew-demchenk0_pretty-squid-78.html"
},
"uniapp": {
"template": "<button class=\"button\"></button>\n <view class=\"svg-icon\" fill=\"none\" height=\"24\" viewBox=\"0 0 24 24\" width=\"24\" xmlns=\"http://www.w3.org/2000/svg\"><g stroke=\"#a649da\" stroke-linecap=\"round\" stroke-width=\"2\"><path d=\"m20 20h-16\"></path><path clip-rule=\"evenodd\" d=\"m14.5858 4.41422c.781-.78105 2.0474-.78105 2.8284 0 .7811.78105.7811 2.04738 0 2.82843l-8.28322 8.28325-3.03046.202.20203-3.0304z\" fill-rule=\"evenodd\"></path></g></view>\n <text class=\"lable\">Edit</text>\n</button>",
"script": "export default {\n name: 'GalaxyPrettySquid78',\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: animation, purple, button, opacity, small, edit */\n.button {\n display: flex;\n justify-content: center;\n align-items: center;\n padding: 16rpx 24rpx;\n gap: 4rpx;\n height: 80rpx;\n width: 170rpx;\n border: none;\n background: #a549da3d;\n border-radius: 40rpx;\n /* #ifdef H5 */\n cursor: pointer;\n /* #endif */\n}\n\n.lable {\n line-height: 44rpx;\n font-size: 38rpx;\n color: #A649DA;\n font-family: sans-serif;\n letter-spacing: 2rpx;\n}\n\n.button:hover {\n background: #a549da62;\n}\n\n.button:hover .svg-icon {\n animation: lr 1s linear infinite;\n}\n\n@keyframes lr {\n 0% {\n transform: translateX(0);\n }\n\n 25% {\n transform: translateX(-2rpx);\n }\n\n 75% {\n transform: translateX(2rpx);\n }\n\n 100% {\n transform: translateX(0);\n }\n}\n",
"component_name": "GalaxyPrettySquid78"
},
"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": 1218,
"render_cost": "medium",
"memory_usage": "medium"
},
"dependencies": [],
"examples": [
{
"title": "",
"description": "",
"code": ""
}
],
"created_at": "2025-07-31T07:55:35.693Z",
"updated_at": "2025-07-31T07:55:35.693Z"
}