galaxy-uniapp-mcp-server
Version:
Galaxy组件库到UniApp组件转换MCP服务器 - 支持跨平台组件转换、兼容性分析和项目集成
120 lines • 8.25 kB
JSON
{
"id": "anushkaps_nasty-mouse-56",
"name": "nasty-mouse-56",
"category": "buttons",
"author": "anushkaps",
"description": "nasty-mouse-56 组件 (animation, alert, gradient, button, code, svg, arrow, 2d button, interactive)",
"tags": [
"animation",
"alert",
"gradient",
"button",
"code",
"svg",
"arrow",
"2d button",
"interactive"
],
"original": {
"html": "<button class=\"button\">\n <div class=\"in\">\n <div class=\"image\">\n <svg fill=\"#000000\" width=\"25px\" height=\"25px\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" transform=\"rotate(-45)\">\n <g id=\"SVGRepo_bgCarrier\" stroke-width=\"0\"></g>\n <g id=\"SVGRepo_tracerCarrier\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></g>\n <g id=\"SVGRepo_iconCarrier\">\n <path d=\"M20.34,9.32l-14-7a3,3,0,0,0-4.08,3.9l2.4,5.37h0a1.06,1.06,0,0,1,0,.82l-2.4,5.37A3,3,0,0,0,5,22a3.14,3.14,0,0,0,1.35-.32l14-7a3,3,0,0,0,0-5.36Zm-.89,3.57-14,7a1,1,0,0,1-1.35-1.3l2.39-5.37A2,2,0,0,0,6.57,13h6.89a1,1,0,0,0,0-2H6.57a2,2,0,0,0-.08-.22L4.1,5.41a1,1,0,0,1,1.35-1.3l14,7a1,1,0,0,1,0,1.78Z\"></path>\n </g>\n </svg>\n </div>\n <div class=\"text\">Send Message</div>\n </div>\n</button>",
"css": "/* From Uiverse.io by anushkaps - Tags: animation, alert, gradient, button, code, svg, arrow, 2d button */\n.button {\n cursor: pointer;\n height: 6em;\n width: 18em;\n border-radius: 1em;\n border-top: 0.2em solid #b0b1b0;\n border-bottom: 0.2em solid #50504f;\n border-left: 0.2em solid #848584;\n border-right: 0.2em solid #848584;\n box-shadow: 0.3em 0.3em 0.5em #a9aaa9;\n background: linear-gradient(to bottom, #fbfcfb, #ecedec);\n display: flex;\n justify-content: center;\n align-items: center;\n position: relative;\n overflow: hidden;\n}\n\n.button::before {\n content: \"\";\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n border-radius: inherit;\n padding: 0.2em;\n background: linear-gradient(135deg, #b0b1b0, #848584, #50504f);\n z-index: -1;\n}\n\n.in {\n display: flex;\n justify-content: space-around;\n align-items: center;\n height: 4.8em;\n width: 16.9em;\n border-radius: 2em;\n background: linear-gradient(to bottom, #eceeec, #ffffff);\n transition: background 2s, transform 2s ease;\n}\n\n.text {\n font-size: 21px;\n font-weight: bold;\n width: 9em;\n color: #252625;\n transition: transform 0.6s ease-in-out;\n}\n\n.image {\n padding-left: 1.2em;\n transition: transform 0.3s ease-in-out;\n}\n\n.image svg {\n transition: transform 0.6s ease-in-out; /* Smooth rotation */\n}\n\n.button:hover .in {\n background: linear-gradient(to bottom, #ffffff, #eceeec);\n transform: scale(1.05);\n}\n\n.button:hover .image {\n animation: fly-1 0.6s ease-in-out infinite alternate;\n}\n\n.button:hover svg {\n transform: translateX(6.5em) rotate(2deg);\n}\n\n.button:hover .text {\n transform: translateX(9em);\n}\n\n.button:active {\n transform: scale(0.95);\n}\n\n@keyframes fly-1 {\n from {\n transform: translateY(0.1em);\n }\n to {\n transform: translateY(-0.1em);\n }\n}",
"file_path": "/mnt/persist/workspace/Buttons/anushkaps_nasty-mouse-56.html"
},
"uniapp": {
"template": "<button class=\"button\"></button>\n <view class=\"in\"></view>\n <view class=\"image\"></view>\n <view fill=\"#000000\" width=\"25px\" height=\"25px\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" transform=\"rotate(-45)\"></view>\n <g id=\"SVGRepo_bgCarrier\" stroke-width=\"0\"></g>\n <g id=\"SVGRepo_tracerCarrier\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></g>\n <g id=\"SVGRepo_iconCarrier\">\n <path d=\"M20.34,9.32l-14-7a3,3,0,0,0-4.08,3.9l2.4,5.37h0a1.06,1.06,0,0,1,0,.82l-2.4,5.37A3,3,0,0,0,5,22a3.14,3.14,0,0,0,1.35-.32l14-7a3,3,0,0,0,0-5.36Zm-.89,3.57-14,7a1,1,0,0,1-1.35-1.3l2.39-5.37A2,2,0,0,0,6.57,13h6.89a1,1,0,0,0,0-2H6.57a2,2,0,0,0-.08-.22L4.1,5.41a1,1,0,0,1,1.35-1.3l14,7a1,1,0,0,1,0,1.78Z\"></path>\n </g>\n </svg>\n </div>\n <view class=\"text\">Send Message</view>\n </div>\n</button>",
"script": "export default {\n name: 'GalaxyNastyMouse56',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}",
"style": "\n/* From Uiverse.io by anushkaps - Tags: animation, alert, gradient, button, code, svg, arrow, 2d button */\n.button {\n /* #ifdef H5 */\n cursor: pointer;\n /* #endif */\n height: 6em;\n width: 18em;\n border-radius: 1em;\n border-top: 0.2em solid #b0b1b0;\n border-bottom: 0.2em solid #50504f;\n border-left: 0.2em solid #848584;\n border-right: 0.2em solid #848584;\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 0.3em 0.3em 0.5em #a9aaa9;\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n background: linear-gradient(to bottom, #fbfcfb, #ecedec);\n display: flex;\n justify-content: center;\n align-items: center;\n position: relative;\n overflow: hidden;\n}\n\n.button::before {\n content: \"\";\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n border-radius: inherit;\n padding: 0.2em;\n background: linear-gradient(135deg, #b0b1b0, #848584, #50504f);\n z-index: -1;\n}\n\n.in {\n display: flex;\n justify-content: space-around;\n align-items: center;\n height: 4.8em;\n width: 16.9em;\n border-radius: 2em;\n background: linear-gradient(to bottom, #eceeec, #ffffff);\n transition: background 2s, transform 2s ease;\n}\n\n.text {\n font-size: 42rpx;\n font-weight: bold;\n width: 9em;\n color: #252625;\n transition: transform 0.6s ease-in-out;\n}\n\n.image {\n padding-left: 1.2em;\n transition: transform 0.3s ease-in-out;\n}\n\n.image svg {\n transition: transform 0.6s ease-in-out; /* Smooth rotation */\n}\n\n.button:hover .in {\n background: linear-gradient(to bottom, #ffffff, #eceeec);\n transform: scale(1.05);\n}\n\n.button:hover .image {\n animation: fly-1 0.6s ease-in-out infinite alternate;\n}\n\n.button:hover svg {\n transform: translateX(6.5em) rotate(2deg);\n}\n\n.button:hover .text {\n transform: translateX(9em);\n}\n\n.button:active {\n transform: scale(0.95);\n}\n\n@keyframes fly-1 {\n from {\n transform: translateY(0.1em);\n }\n to {\n transform: translateY(-0.1em);\n }\n}\n\n",
"component_name": "GalaxyNastyMouse56"
},
"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": 2593,
"render_cost": "medium",
"memory_usage": "medium"
},
"dependencies": [],
"examples": [
{
"title": "",
"description": "",
"code": ""
}
],
"created_at": "2025-07-31T07:55:35.766Z",
"updated_at": "2025-07-31T07:55:35.766Z"
}