galaxy-uniapp-mcp-server
Version:
Galaxy组件库到UniApp组件转换MCP服务器 - 支持跨平台组件转换、兼容性分析和项目集成
117 lines • 6.46 kB
JSON
{
"id": "vinodjangid07_ordinary-swan-71",
"name": "ordinary-swan-71",
"category": "buttons",
"author": "vinodjangid07",
"description": "ordinary-swan-71 组件 (gradient, notification, button, hover effect, animation, interactive)",
"tags": [
"gradient",
"notification",
"button",
"hover effect",
"animation",
"interactive"
],
"original": {
"html": "<button class=\"button\">\n <svg viewBox=\"0 0 448 512\" class=\"bell\"><path d=\"M224 0c-17.7 0-32 14.3-32 32V49.9C119.5 61.4 64 124.2 64 200v33.4c0 45.4-15.5 89.5-43.8 124.9L5.3 377c-5.8 7.2-6.9 17.1-2.9 25.4S14.8 416 24 416H424c9.2 0 17.6-5.3 21.6-13.6s2.9-18.2-2.9-25.4l-14.9-18.6C399.5 322.9 384 278.8 384 233.4V200c0-75.8-55.5-138.6-128-150.1V32c0-17.7-14.3-32-32-32zm0 96h8c57.4 0 104 46.6 104 104v33.4c0 47.9 13.9 94.6 39.7 134.6H72.3C98.1 328 112 281.3 112 233.4V200c0-57.4 46.6-104 104-104h8zm64 352H224 160c0 17 6.7 33.3 18.7 45.3s28.3 18.7 45.3 18.7s33.3-6.7 45.3-18.7s18.7-28.3 18.7-45.3z\"></path></svg>\n Notifications\n</button>",
"css": "/* From Uiverse.io by vinodjangid07 - Tags: gradient, notification, button, hover effect */\n.button {\n width: 140px;\n height: 40px;\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 10px;\n background: linear-gradient(to left,rgb(173, 154, 255),rgb(149, 110, 255));\n border-radius: 30px;\n color: rgb(255, 255, 255);\n font-weight: 600;\n border: none;\n position: relative;\n cursor: pointer;\n transition-duration: .2s;\n box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.116);\n}\n\n.bell {\n width: 13px;\n}\n\n.bell path {\n fill: rgb(255, 255, 255);\n}\n\n.button:hover {\n background: linear-gradient(to left,rgb(154, 131, 255),rgb(135, 91, 255));\n}\n\n.button:active {\n transform: scale(0.97);\n transition-duration: .2s;\n}\n\n.button:hover .bell {\n animation: bellRing 0.9s both;\n}\n\n/* bell ringing animation keyframes*/\n@keyframes bellRing {\n 0%,\n 100% {\n transform-origin: top;\n }\n\n 15% {\n transform: rotateZ(10deg);\n }\n\n 30% {\n transform: rotateZ(-10deg);\n }\n\n 45% {\n transform: rotateZ(5deg);\n }\n\n 60% {\n transform: rotateZ(-5deg);\n }\n\n 75% {\n transform: rotateZ(2deg);\n }\n}",
"file_path": "/mnt/persist/workspace/Buttons/vinodjangid07_ordinary-swan-71.html"
},
"uniapp": {
"template": "<button class=\"button\"></button>\n <view viewBox=\"0 0 448 512\" class=\"bell\"><path d=\"M224 0c-17.7 0-32 14.3-32 32V49.9C119.5 61.4 64 124.2 64 200v33.4c0 45.4-15.5 89.5-43.8 124.9L5.3 377c-5.8 7.2-6.9 17.1-2.9 25.4S14.8 416 24 416H424c9.2 0 17.6-5.3 21.6-13.6s2.9-18.2-2.9-25.4l-14.9-18.6C399.5 322.9 384 278.8 384 233.4V200c0-75.8-55.5-138.6-128-150.1V32c0-17.7-14.3-32-32-32zm0 96h8c57.4 0 104 46.6 104 104v33.4c0 47.9 13.9 94.6 39.7 134.6H72.3C98.1 328 112 281.3 112 233.4V200c0-57.4 46.6-104 104-104h8zm64 352H224 160c0 17 6.7 33.3 18.7 45.3s28.3 18.7 45.3 18.7s33.3-6.7 45.3-18.7s18.7-28.3 18.7-45.3z\"></path></view>\n Notifications\n</button>",
"script": "export default {\n name: 'GalaxyOrdinarySwan71',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}",
"style": "\n/* From Uiverse.io by vinodjangid07 - Tags: gradient, notification, button, hover effect */\n.button {\n width: 280rpx;\n height: 80rpx;\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 20rpx;\n background: linear-gradient(to left,rgb(173, 154, 255),rgb(149, 110, 255));\n border-radius: 60rpx;\n color: rgb(255, 255, 255);\n font-weight: 600;\n border: none;\n position: relative;\n /* #ifdef H5 */\n cursor: pointer;\n /* #endif */\n transition-duration: .2s;\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 10rpx 10rpx 20rpx rgba(0, 0, 0, 0.116);\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n}\n\n.bell {\n width: 26rpx;\n}\n\n.bell path {\n fill: rgb(255, 255, 255);\n}\n\n.button:hover {\n background: linear-gradient(to left,rgb(154, 131, 255),rgb(135, 91, 255));\n}\n\n.button:active {\n transform: scale(0.97);\n transition-duration: .2s;\n}\n\n.button:hover .bell {\n animation: bellRing 0.9s both;\n}\n\n/* bell ringing animation keyframes*/\n@keyframes bellRing {\n 0%,\n 100% {\n transform-origin: top;\n }\n\n 15% {\n transform: rotateZ(10deg);\n }\n\n 30% {\n transform: rotateZ(-10deg);\n }\n\n 45% {\n transform: rotateZ(5deg);\n }\n\n 60% {\n transform: rotateZ(-5deg);\n }\n\n 75% {\n transform: rotateZ(2deg);\n }\n}\n\n",
"component_name": "GalaxyOrdinarySwan71"
},
"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": [
"不支持 box-shadow 属性",
"不支持 cursor 属性"
],
"alternatives": []
},
"mp-alipay": {
"supported": true,
"issues": [
"不支持 box-shadow 属性",
"不支持 cursor 属性"
],
"alternatives": []
},
"app-plus": {
"supported": true,
"issues": [],
"alternatives": []
}
},
"performance": {
"complexity": "medium",
"bundle_size": 1767,
"render_cost": "medium",
"memory_usage": "medium"
},
"dependencies": [],
"examples": [
{
"title": "",
"description": "",
"code": ""
}
],
"created_at": "2025-07-31T07:55:38.214Z",
"updated_at": "2025-07-31T07:55:38.214Z"
}