galaxy-uniapp-mcp-server
Version:
Galaxy组件库到UniApp组件转换MCP服务器 - 支持跨平台组件转换、兼容性分析和项目集成
116 lines • 7.44 kB
JSON
{
"id": "vinodjangid07_wonderful-squid-57",
"name": "wonderful-squid-57",
"category": "buttons",
"author": "vinodjangid07",
"description": "wonderful-squid-57 组件 (button, download, hover effect, animation, interactive)",
"tags": [
"button",
"download",
"hover effect",
"animation",
"interactive"
],
"original": {
"html": "<button class=\"Btn\">\n <svg class=\"svgIcon\" viewBox=\"0 0 384 512\" height=\"1em\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M169.4 470.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 370.8 224 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 306.7L54.6 265.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z\"></path></svg>\n <span class=\"icon2\"></span>\n <span class=\"tooltip\">Download</span>\n</button>",
"css": "/* From Uiverse.io by vinodjangid07 - Tags: button, download, hover effect */\n.Btn {\n width: 50px;\n height: 50px;\n border: none;\n border-radius: 50%;\n background-color: rgb(27, 27, 27);\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n position: relative;\n transition-duration: .3s;\n box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.11);\n}\n\n.svgIcon {\n fill: rgb(214, 178, 255);\n}\n\n.icon2 {\n width: 18px;\n height: 5px;\n border-bottom: 2px solid rgb(182, 143, 255);\n border-left: 2px solid rgb(182, 143, 255);\n border-right: 2px solid rgb(182, 143, 255);\n}\n\n.tooltip {\n position: absolute;\n right: -105px;\n opacity: 0;\n background-color: rgb(12, 12, 12);\n color: white;\n padding: 5px 10px;\n border-radius: 5px;\n display: flex;\n align-items: center;\n justify-content: center;\n transition-duration: .2s;\n pointer-events: none;\n letter-spacing: 0.5px;\n}\n\n.tooltip::before {\n position: absolute;\n content: \"\";\n width: 10px;\n height: 10px;\n background-color: rgb(12, 12, 12);\n background-size: 1000%;\n background-position: center;\n transform: rotate(45deg);\n left: -5%;\n transition-duration: .3s;\n}\n\n.Btn:hover .tooltip {\n opacity: 1;\n transition-duration: .3s;\n}\n\n.Btn:hover {\n background-color: rgb(150, 94, 255);\n transition-duration: .3s;\n}\n\n.Btn:hover .icon2 {\n border-bottom: 2px solid rgb(235, 235, 235);\n border-left: 2px solid rgb(235, 235, 235);\n border-right: 2px solid rgb(235, 235, 235);\n}\n\n.Btn:hover .svgIcon {\n fill: rgb(255, 255, 255);\n animation: slide-in-top 0.6s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;\n}\n\n@keyframes slide-in-top {\n 0% {\n transform: translateY(-10px);\n opacity: 0;\n }\n\n 100% {\n transform: translateY(0px);\n opacity: 1;\n }\n}",
"file_path": "/mnt/persist/workspace/Buttons/vinodjangid07_wonderful-squid-57.html"
},
"uniapp": {
"template": "<button class=\"Btn\"></button>\n <view class=\"svgIcon\" viewBox=\"0 0 384 512\" height=\"1em\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M169.4 470.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 370.8 224 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 306.7L54.6 265.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z\"></path></view>\n <text class=\"icon2\"></text>\n <text class=\"tooltip\">Download</text>\n</button>",
"script": "export default {\n name: 'GalaxyWonderfulSquid57',\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: button, download, hover effect */\n.Btn {\n width: 100rpx;\n height: 100rpx;\n border: none;\n border-radius: 50%;\n background-color: rgb(27, 27, 27);\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n /* #ifdef H5 */\n cursor: pointer;\n /* #endif */\n position: relative;\n transition-duration: .3s;\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 4rpx 4rpx 20rpx rgba(0, 0, 0, 0.11);\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n}\n\n.svgIcon {\n fill: rgb(214, 178, 255);\n}\n\n.icon2 {\n width: 36rpx;\n height: 10rpx;\n border-bottom: 4rpx solid rgb(182, 143, 255);\n border-left: 4rpx solid rgb(182, 143, 255);\n border-right: 4rpx solid rgb(182, 143, 255);\n}\n\n.tooltip {\n position: absolute;\n right: -210rpx;\n opacity: 0;\n background-color: rgb(12, 12, 12);\n color: white;\n padding: 10rpx 20rpx;\n border-radius: 10rpx;\n display: flex;\n align-items: center;\n justify-content: center;\n transition-duration: .2s;\n pointer-events: none;\n letter-spacing: 1rpx;\n}\n\n.tooltip::before {\n position: absolute;\n content: \"\";\n width: 20rpx;\n height: 20rpx;\n background-color: rgb(12, 12, 12);\n background-size: 1000%;\n background-position: center;\n transform: rotate(45deg);\n left: -5%;\n transition-duration: .3s;\n}\n\n.Btn:hover .tooltip {\n opacity: 1;\n transition-duration: .3s;\n}\n\n.Btn:hover {\n background-color: rgb(150, 94, 255);\n transition-duration: .3s;\n}\n\n.Btn:hover .icon2 {\n border-bottom: 4rpx solid rgb(235, 235, 235);\n border-left: 4rpx solid rgb(235, 235, 235);\n border-right: 4rpx solid rgb(235, 235, 235);\n}\n\n.Btn:hover .svgIcon {\n fill: rgb(255, 255, 255);\n animation: slide-in-top 0.6s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;\n}\n\n@keyframes slide-in-top {\n 0% {\n transform: translateY(-20rpx);\n opacity: 0;\n }\n\n 100% {\n transform: translateY(0rpx);\n opacity: 1;\n }\n}\n\n",
"component_name": "GalaxyWonderfulSquid57"
},
"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": 2223,
"render_cost": "medium",
"memory_usage": "medium"
},
"dependencies": [],
"examples": [
{
"title": "",
"description": "",
"code": ""
}
],
"created_at": "2025-07-31T07:55:38.308Z",
"updated_at": "2025-07-31T07:55:38.308Z"
}