UNPKG

galaxy-uniapp-mcp-server

Version:

Galaxy组件库到UniApp组件转换MCP服务器 - 支持跨平台组件转换、兼容性分析和项目集成

115 lines 9.52 kB
{ "id": "Codecite_evil-ape-86", "name": "evil-ape-86", "category": "buttons", "author": "Codecite", "description": "evil-ape-86 组件 (icon, button, copy, animation)", "tags": [ "icon", "button", "copy", "animation" ], "original": { "html": "<div class=\"icon-conatiner\">\n \n <svg xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" viewBox=\"0 0 19 21\" height=\"21px\" width=\"19px\">\n <title>Group</title>\n <g fill-rule=\"evenodd\" fill=\"none\" stroke-width=\"1\" stroke=\"none\" id=\"Page-1\">\n <g transform=\"translate(-142.000000, -122.000000)\" id=\"Artboard\">\n <g transform=\"translate(142.000000, 122.000000)\" id=\"Group\">\n <path fill=\"#C4FFE4\" id=\"Rectangle-Copy\" d=\"M3.4,4 L11.5,4 L11.5,4 L16,8.25 L16,17.6 C16,19.4777681 14.4777681,21 12.6,21 L3.4,21 C1.52223185,21 6.74049485e-16,19.4777681 0,17.6 L0,7.4 C2.14128934e-16,5.52223185 1.52223185,4 3.4,4 Z\"></path>\n <path fill=\"#85EBBC\" id=\"Rectangle\" d=\"M6.4,0 L12,0 L12,0 L19,6.5 L19,14.6 C19,16.4777681 17.4777681,18 15.6,18 L6.4,18 C4.52223185,18 3,16.4777681 3,14.6 L3,3.4 C3,1.52223185 4.52223185,7.89029623e-16 6.4,0 Z\"></path>\n <path fill=\"#64B18D\" id=\"Path-2\" d=\"M12,0 L12,5.5 C12,6.05228475 12.4477153,6.5 13,6.5 L19,6.5 L19,6.5 L12,0 Z\"></path>\n </g>\n </g>\n </g>\n </svg>\n <svg xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" viewBox=\"0 0 19 21\" height=\"21px\" width=\"19px\">\n <title>Group</title>\n <g fill-rule=\"evenodd\" fill=\"none\" stroke-width=\"1\" stroke=\"none\" id=\"Page-1\">\n <g transform=\"translate(-142.000000, -122.000000)\" id=\"Artboard\">\n <g transform=\"translate(142.000000, 122.000000)\" id=\"Group\">\n <path fill=\"#C4FFE4\" id=\"Rectangle-Copy\" d=\"M3.4,4 L11.5,4 L11.5,4 L16,8.25 L16,17.6 C16,19.4777681 14.4777681,21 12.6,21 L3.4,21 C1.52223185,21 6.74049485e-16,19.4777681 0,17.6 L0,7.4 C2.14128934e-16,5.52223185 1.52223185,4 3.4,4 Z\"></path>\n <path fill=\"#85EBBC\" id=\"Rectangle\" d=\"M6.4,0 L12,0 L12,0 L19,6.5 L19,14.6 C19,16.4777681 17.4777681,18 15.6,18 L6.4,18 C4.52223185,18 3,16.4777681 3,14.6 L3,3.4 C3,1.52223185 4.52223185,7.89029623e-16 6.4,0 Z\"></path>\n <path fill=\"#64B18D\" id=\"Path-2\" d=\"M12,0 L12,5.5 C12,6.05228475 12.4477153,6.5 13,6.5 L19,6.5 L19,6.5 L12,0 Z\"></path>\n </g>\n </g>\n </g>\n </svg>\n </div>\n<div class=\"text\">long press me</div>", "css": "/* From Uiverse.io by Codecite - Tags: icon, button, copy */\n.icon-conatiner {\n position: relative;\n width: 150px;\n height: 150px;\n display: flex;\n align-items: center;\n justify-content: center;\n background: #fff;\n border-radius: 15px;\n box-shadow: 20px 20px 15px 0 #ababab4d;\n cursor: pointer;\n}\n\n.icon-conatiner svg {\n width: 50px;\n height: auto;\n}\n\n.icon-conatiner svg:last-child {\n position: absolute;\n}\n\n.icon-conatiner:active {\n animation: press 0.2s 1 linear;\n}\n\n.icon-conatiner:active svg:last-child {\n animation: bounce 0.2s 1 linear;\n}\n\n.text {\n color: #666;\n font-family: sans-serif;\n font-size: 16px;\n font-weight: bold;\n margin-top: 20px;\n user-select: none;\n}\n\n@keyframes press {\n 0% {\n transform: scale(1);\n }\n\n 50% {\n transform: scale(0.92);\n }\n\n to {\n transform: scale(1);\n }\n}\n\n@keyframes bounce {\n 50% {\n transform: rotate(5deg) translate(20px, -50px);\n }\n\n to {\n transform: scale(0.9) rotate(10deg) translate(50px, -80px);\n opacity: 0;\n }\n}", "file_path": "/mnt/persist/workspace/Buttons/Codecite_evil-ape-86.html" }, "uniapp": { "template": "<view class=\"icon-conatiner\"></view>\n \n <view xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" viewBox=\"0 0 19 21\" height=\"21px\" width=\"19px\"></view>\n <title>Group</title>\n <g fill-rule=\"evenodd\" fill=\"none\" stroke-width=\"1\" stroke=\"none\" id=\"Page-1\">\n <g transform=\"translate(-142.000000, -122.000000)\" id=\"Artboard\">\n <g transform=\"translate(142.000000, 122.000000)\" id=\"Group\">\n <path fill=\"#C4FFE4\" id=\"Rectangle-Copy\" d=\"M3.4,4 L11.5,4 L11.5,4 L16,8.25 L16,17.6 C16,19.4777681 14.4777681,21 12.6,21 L3.4,21 C1.52223185,21 6.74049485e-16,19.4777681 0,17.6 L0,7.4 C2.14128934e-16,5.52223185 1.52223185,4 3.4,4 Z\"></path>\n <path fill=\"#85EBBC\" id=\"Rectangle\" d=\"M6.4,0 L12,0 L12,0 L19,6.5 L19,14.6 C19,16.4777681 17.4777681,18 15.6,18 L6.4,18 C4.52223185,18 3,16.4777681 3,14.6 L3,3.4 C3,1.52223185 4.52223185,7.89029623e-16 6.4,0 Z\"></path>\n <path fill=\"#64B18D\" id=\"Path-2\" d=\"M12,0 L12,5.5 C12,6.05228475 12.4477153,6.5 13,6.5 L19,6.5 L19,6.5 L12,0 Z\"></path>\n </g>\n </g>\n </g>\n </svg>\n <view xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" viewBox=\"0 0 19 21\" height=\"21px\" width=\"19px\"></view>\n <title>Group</title>\n <g fill-rule=\"evenodd\" fill=\"none\" stroke-width=\"1\" stroke=\"none\" id=\"Page-1\">\n <g transform=\"translate(-142.000000, -122.000000)\" id=\"Artboard\">\n <g transform=\"translate(142.000000, 122.000000)\" id=\"Group\">\n <path fill=\"#C4FFE4\" id=\"Rectangle-Copy\" d=\"M3.4,4 L11.5,4 L11.5,4 L16,8.25 L16,17.6 C16,19.4777681 14.4777681,21 12.6,21 L3.4,21 C1.52223185,21 6.74049485e-16,19.4777681 0,17.6 L0,7.4 C2.14128934e-16,5.52223185 1.52223185,4 3.4,4 Z\"></path>\n <path fill=\"#85EBBC\" id=\"Rectangle\" d=\"M6.4,0 L12,0 L12,0 L19,6.5 L19,14.6 C19,16.4777681 17.4777681,18 15.6,18 L6.4,18 C4.52223185,18 3,16.4777681 3,14.6 L3,3.4 C3,1.52223185 4.52223185,7.89029623e-16 6.4,0 Z\"></path>\n <path fill=\"#64B18D\" id=\"Path-2\" d=\"M12,0 L12,5.5 C12,6.05228475 12.4477153,6.5 13,6.5 L19,6.5 L19,6.5 L12,0 Z\"></path>\n </g>\n </g>\n </g>\n </svg>\n </div>\n<view class=\"text\">long press me</view>", "script": "export default {\n name: 'GalaxyEvilApe86',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}", "style": "\n/* From Uiverse.io by Codecite - Tags: icon, button, copy */\n.icon-conatiner {\n position: relative;\n width: 300rpx;\n height: 300rpx;\n display: flex;\n align-items: center;\n justify-content: center;\n background: #fff;\n border-radius: 30rpx;\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 40rpx 40rpx 30rpx 0 #ababab4d;\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}\n\n.icon-conatiner svg {\n width: 100rpx;\n height: auto;\n}\n\n.icon-conatiner svg:last-child {\n position: absolute;\n}\n\n.icon-conatiner:active {\n animation: press 0.2s 1 linear;\n}\n\n.icon-conatiner:active svg:last-child {\n animation: bounce 0.2s 1 linear;\n}\n\n.text {\n color: #666;\n font-family: sans-serif;\n font-size: 32rpx;\n font-weight: bold;\n margin-top: 40rpx;\n user-select: none;\n}\n\n@keyframes press {\n 0% {\n transform: scale(1);\n }\n\n 50% {\n transform: scale(0.92);\n }\n\n to {\n transform: scale(1);\n }\n}\n\n@keyframes bounce {\n 50% {\n transform: rotate(5deg) translate(40rpx, -100rpx);\n }\n\n to {\n transform: scale(0.9) rotate(10deg) translate(100rpx, -160rpx);\n opacity: 0;\n }\n}\n\n", "component_name": "GalaxyEvilApe86" }, "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": 3240, "render_cost": "medium", "memory_usage": "medium" }, "dependencies": [], "examples": [ { "title": "", "description": "", "code": "" } ], "created_at": "2025-07-31T07:55:32.940Z", "updated_at": "2025-07-31T07:55:32.940Z" }