galaxy-uniapp-mcp-server
Version:
Galaxy组件库到UniApp组件转换MCP服务器 - 支持跨平台组件转换、兼容性分析和项目集成
118 lines • 11.3 kB
JSON
{
"id": "JaydipPrajapati1910_foolish-robin-0",
"name": "foolish-robin-0",
"category": "buttons",
"author": "JaydipPrajapati1910",
"description": "foolish-robin-0 组件 (button, hover effect, buttons, animation, interactive)",
"tags": [
"button",
"hover effect",
"buttons",
"animation",
"interactive"
],
"original": {
"html": "<ul class=\"wrapper\">\n <li class=\"icon black\">\n <span class=\"tooltip\">UP</span>\n <span><svg viewBox=\"0 0 16 16\" class=\"bi bi-chevron-double-up\" fill=\"currentColor\" height=\"16\" width=\"16\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M7.646 2.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1-.708.708L8 3.707 2.354 9.354a.5.5 0 1 1-.708-.708l6-6z\" fill-rule=\"evenodd\"></path>\n <path d=\"M7.646 6.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1-.708.708L8 7.707l-5.646 5.647a.5.5 0 0 1-.708-.708l6-6z\" fill-rule=\"evenodd\"></path>\n</svg></span>\n </li>\n <li class=\"icon black\">\n <span class=\"tooltip\">Down</span>\n <span><svg viewBox=\"0 0 16 16\" class=\"bi bi-chevron-double-down\" fill=\"currentColor\" height=\"16\" width=\"16\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M1.646 6.646a.5.5 0 0 1 .708 0L8 12.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z\" fill-rule=\"evenodd\"></path>\n <path d=\"M1.646 2.646a.5.5 0 0 1 .708 0L8 8.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z\" fill-rule=\"evenodd\"></path>\n</svg></span>\n </li>\n <li class=\"icon black\">\n <span class=\"tooltip\">Left</span>\n <span><svg viewBox=\"0 0 16 16\" class=\"bi bi-chevron-double-left\" fill=\"currentColor\" height=\"16\" width=\"16\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M8.354 1.646a.5.5 0 0 1 0 .708L2.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z\" fill-rule=\"evenodd\"></path>\n <path d=\"M12.354 1.646a.5.5 0 0 1 0 .708L6.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z\" fill-rule=\"evenodd\"></path>\n</svg></span>\n </li>\n <li class=\"icon black\">\n <span class=\"tooltip\">Right</span>\n <span><svg viewBox=\"0 0 16 16\" class=\"bi bi-chevron-double-right\" fill=\"currentColor\" height=\"16\" width=\"16\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M3.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L9.293 8 3.646 2.354a.5.5 0 0 1 0-.708z\" fill-rule=\"evenodd\"></path>\n <path d=\"M7.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L13.293 8 7.646 2.354a.5.5 0 0 1 0-.708z\" fill-rule=\"evenodd\"></path>\n</svg></span>\n </li>\n</ul>",
"css": "/* From Uiverse.io by JaydipPrajapati1910 - Tags: button, hover effect, buttons */\n.wrapper {\n display: inline-flex;\n list-style: none;\n height: 120px;\n width: 100%;\n padding-top: 40px;\n font-family: \"Poppins\", sans-serif;\n justify-content: center;\n}\n\n.wrapper .icon {\n position: relative;\n background: #fff;\n border-radius: 50%;\n margin: 10px;\n width: 50px;\n height: 50px;\n font-size: 18px;\n display: flex;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);\n cursor: pointer;\n transition: all 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);\n}\n\n.wrapper .tooltip {\n position: absolute;\n top: 0;\n font-size: 14px;\n background: #fff;\n color: #fff;\n padding: 5px 8px;\n border-radius: 5px;\n box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);\n opacity: 0;\n pointer-events: none;\n transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);\n}\n\n.wrapper .tooltip::before {\n position: absolute;\n content: \"\";\n height: 8px;\n width: 8px;\n background: #fff;\n bottom: -3px;\n left: 50%;\n transform: translate(-50%) rotate(45deg);\n transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);\n}\n\n.wrapper .icon:hover .tooltip {\n top: -45px;\n opacity: 1;\n visibility: visible;\n pointer-events: auto;\n}\n\n.wrapper .icon:hover span,\n.wrapper .icon:hover .tooltip {\n text-shadow: 0px -1px 0px rgba(0, 0, 0, 0.1);\n}\n\n.wrapper svg {\n fill: green;\n}\n\n.wrapper span:hover,\n.wrapper svg:hover,\n.wrapper .black:hover,\n.wrapper .black:hover .tooltip,\n.wrapper .black:hover .tooltip::before {\n background: #222;\n color: white;\n fill: white;\n}",
"file_path": "/mnt/persist/workspace/Buttons/JaydipPrajapati1910_foolish-robin-0.html"
},
"uniapp": {
"template": "<view class=\"wrapper\"></view>\n <view class=\"icon black\"></view>\n <text class=\"tooltip\">UP</text>\n <text></text><view viewBox=\"0 0 16 16\" class=\"bi bi-chevron-double-up\" fill=\"currentColor\" height=\"16\" width=\"16\" xmlns=\"http://www.w3.org/2000/svg\"></view>\n <path d=\"M7.646 2.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1-.708.708L8 3.707 2.354 9.354a.5.5 0 1 1-.708-.708l6-6z\" fill-rule=\"evenodd\"></path>\n <path d=\"M7.646 6.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1-.708.708L8 7.707l-5.646 5.647a.5.5 0 0 1-.708-.708l6-6z\" fill-rule=\"evenodd\"></path>\n</svg></span>\n </li>\n <view class=\"icon black\"></view>\n <text class=\"tooltip\">Down</text>\n <text></text><view viewBox=\"0 0 16 16\" class=\"bi bi-chevron-double-down\" fill=\"currentColor\" height=\"16\" width=\"16\" xmlns=\"http://www.w3.org/2000/svg\"></view>\n <path d=\"M1.646 6.646a.5.5 0 0 1 .708 0L8 12.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z\" fill-rule=\"evenodd\"></path>\n <path d=\"M1.646 2.646a.5.5 0 0 1 .708 0L8 8.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z\" fill-rule=\"evenodd\"></path>\n</svg></span>\n </li>\n <view class=\"icon black\"></view>\n <text class=\"tooltip\">Left</text>\n <text></text><view viewBox=\"0 0 16 16\" class=\"bi bi-chevron-double-left\" fill=\"currentColor\" height=\"16\" width=\"16\" xmlns=\"http://www.w3.org/2000/svg\"></view>\n <path d=\"M8.354 1.646a.5.5 0 0 1 0 .708L2.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z\" fill-rule=\"evenodd\"></path>\n <path d=\"M12.354 1.646a.5.5 0 0 1 0 .708L6.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z\" fill-rule=\"evenodd\"></path>\n</svg></span>\n </li>\n <view class=\"icon black\"></view>\n <text class=\"tooltip\">Right</text>\n <text></text><view viewBox=\"0 0 16 16\" class=\"bi bi-chevron-double-right\" fill=\"currentColor\" height=\"16\" width=\"16\" xmlns=\"http://www.w3.org/2000/svg\"></view>\n <path d=\"M3.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L9.293 8 3.646 2.354a.5.5 0 0 1 0-.708z\" fill-rule=\"evenodd\"></path>\n <path d=\"M7.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L13.293 8 7.646 2.354a.5.5 0 0 1 0-.708z\" fill-rule=\"evenodd\"></path>\n</svg></span>\n </li>\n</ul>",
"script": "export default {\n name: 'GalaxyFoolishRobin0',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}",
"style": "\n/* From Uiverse.io by JaydipPrajapati1910 - Tags: button, hover effect, buttons */\n.wrapper {\n display: inline-flex;\n list-style: none;\n height: 240rpx;\n width: 100%;\n padding-top: 80rpx;\n font-family: \"Poppins\", sans-serif;\n justify-content: center;\n}\n\n.wrapper .icon {\n position: relative;\n background: #fff;\n border-radius: 50%;\n margin: 20rpx;\n width: 100rpx;\n height: 100rpx;\n font-size: 36rpx;\n display: flex;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 0 20rpx 20rpx rgba(0, 0, 0, 0.1);\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n /* #ifdef H5 */\n cursor: pointer;\n /* #endif */\n transition: all 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);\n}\n\n.wrapper .tooltip {\n position: absolute;\n top: 0;\n font-size: 28rpx;\n background: #fff;\n color: #fff;\n padding: 10rpx 16rpx;\n border-radius: 10rpx;\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 0 20rpx 20rpx rgba(0, 0, 0, 0.1);\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n opacity: 0;\n pointer-events: none;\n transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);\n}\n\n.wrapper .tooltip::before {\n position: absolute;\n content: \"\";\n height: 16rpx;\n width: 16rpx;\n background: #fff;\n bottom: -6rpx;\n left: 50%;\n transform: translate(-50%) rotate(45deg);\n transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);\n}\n\n.wrapper .icon:hover .tooltip {\n top: -90rpx;\n opacity: 1;\n visibility: visible;\n pointer-events: auto;\n}\n\n.wrapper .icon:hover span,\n.wrapper .icon:hover .tooltip {\n /* #ifdef H5 */\n text-shadow: 0rpx -2rpx 0rpx rgba(0, 0, 0, 0.1);\n /* #endif */\n}\n\n.wrapper svg {\n fill: green;\n}\n\n.wrapper span:hover,\n.wrapper svg:hover,\n.wrapper .black:hover,\n.wrapper .black:hover .tooltip,\n.wrapper .black:hover .tooltip::before {\n background: #222;\n color: white;\n fill: white;\n}\n\n\n",
"component_name": "GalaxyFoolishRobin0"
},
"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 属性",
"不支持 text-shadow 属性",
"不支持 cursor 属性"
],
"alternatives": []
},
"mp-alipay": {
"supported": true,
"issues": [
"不支持 box-shadow 属性",
"不支持 text-shadow 属性",
"不支持 cursor 属性"
],
"alternatives": []
},
"app-plus": {
"supported": true,
"issues": [],
"alternatives": []
}
},
"performance": {
"complexity": "medium",
"bundle_size": 3870,
"render_cost": "medium",
"memory_usage": "medium"
},
"dependencies": [],
"examples": [
{
"title": "",
"description": "",
"code": ""
}
],
"created_at": "2025-07-31T07:55:33.454Z",
"updated_at": "2025-07-31T07:55:33.454Z"
}