UNPKG

galaxy-uniapp-mcp-server

Version:

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

118 lines 7.86 kB
{ "id": "vinodjangid07_orange-donkey-9", "name": "orange-donkey-9", "category": "buttons", "author": "vinodjangid07", "description": "orange-donkey-9 组件 (simple, animation, button, hover, hover effect, print, interactive)", "tags": [ "simple", "animation", "button", "hover", "hover effect", "print", "interactive" ], "original": { "html": "<button class=\"print-btn\">\n <span class=\"printer-wrapper\">\n <span class=\"printer-container\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 92 75\">\n <path stroke-width=\"5\" stroke=\"black\" d=\"M12 37.5H80C85.2467 37.5 89.5 41.7533 89.5 47V69C89.5 70.933 87.933 72.5 86 72.5H6C4.067 72.5 2.5 70.933 2.5 69V47C2.5 41.7533 6.75329 37.5 12 37.5Z\"></path>\n <mask fill=\"white\" id=\"path-2-inside-1_30_7\">\n <path d=\"M12 12C12 5.37258 17.3726 0 24 0H57C70.2548 0 81 10.7452 81 24V29H12V12Z\"></path>\n </mask>\n <path mask=\"url(#path-2-inside-1_30_7)\" fill=\"black\" d=\"M7 12C7 2.61116 14.6112 -5 24 -5H57C73.0163 -5 86 7.98374 86 24H76C76 13.5066 67.4934 5 57 5H24C20.134 5 17 8.13401 17 12H7ZM81 29H12H81ZM7 29V12C7 2.61116 14.6112 -5 24 -5V5C20.134 5 17 8.13401 17 12V29H7ZM57 -5C73.0163 -5 86 7.98374 86 24V29H76V24C76 13.5066 67.4934 5 57 5V-5Z\"></path>\n <circle fill=\"black\" r=\"3\" cy=\"49\" cx=\"78\"></circle>\n </svg>\n </span>\n\n <span class=\"printer-page-wrapper\">\n <span class=\"printer-page\"></span>\n </span>\n </span>\n Print\n</button>", "css": "/* From Uiverse.io by vinodjangid07 - Tags: simple, animation, button, hover, hover effect, print */\n.print-btn {\n width: 100px;\n height: 45px;\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: white;\n border: 1px solid rgb(213, 213, 213);\n border-radius: 10px;\n gap: 10px;\n font-size: 16px;\n cursor: pointer;\n overflow: hidden;\n font-weight: 500;\n box-shadow: 0px 10px 10px rgba(0, 0, 0, 0.065);\n transition: all 0.3s;\n}\n.printer-wrapper {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n width: 20px;\n height: 100%;\n}\n.printer-container {\n height: 50%;\n width: 100%;\n display: flex;\n align-items: flex-end;\n justify-content: center;\n}\n\n.printer-container svg {\n width: 100%;\n height: auto;\n transform: translateY(4px);\n}\n.printer-page-wrapper {\n width: 100%;\n height: 50%;\n display: flex;\n align-items: flex-start;\n justify-content: center;\n}\n.printer-page {\n width: 70%;\n height: 10px;\n border: 1px solid black;\n background-color: white;\n transform: translateY(0px);\n transition: all 0.3s;\n transform-origin: top;\n}\n.print-btn:hover .printer-page {\n height: 16px;\n background-color: rgb(239, 239, 239);\n}\n.print-btn:hover {\n background-color: rgb(239, 239, 239);\n}", "file_path": "/mnt/persist/workspace/Buttons/vinodjangid07_orange-donkey-9.html" }, "uniapp": { "template": "<button class=\"print-btn\"></button>\n <text class=\"printer-wrapper\"></text>\n <text class=\"printer-container\"></text>\n <view xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 92 75\"></view>\n <path stroke-width=\"5\" stroke=\"black\" d=\"M12 37.5H80C85.2467 37.5 89.5 41.7533 89.5 47V69C89.5 70.933 87.933 72.5 86 72.5H6C4.067 72.5 2.5 70.933 2.5 69V47C2.5 41.7533 6.75329 37.5 12 37.5Z\"></path>\n <mask fill=\"white\" id=\"path-2-inside-1_30_7\">\n <path d=\"M12 12C12 5.37258 17.3726 0 24 0H57C70.2548 0 81 10.7452 81 24V29H12V12Z\"></path>\n </mask>\n <path mask=\"url(#path-2-inside-1_30_7)\" fill=\"black\" d=\"M7 12C7 2.61116 14.6112 -5 24 -5H57C73.0163 -5 86 7.98374 86 24H76C76 13.5066 67.4934 5 57 5H24C20.134 5 17 8.13401 17 12H7ZM81 29H12H81ZM7 29V12C7 2.61116 14.6112 -5 24 -5V5C20.134 5 17 8.13401 17 12V29H7ZM57 -5C73.0163 -5 86 7.98374 86 24V29H76V24C76 13.5066 67.4934 5 57 5V-5Z\"></path>\n <circle fill=\"black\" r=\"3\" cy=\"49\" cx=\"78\"></circle>\n </svg>\n </span>\n\n <text class=\"printer-page-wrapper\"></text>\n <text class=\"printer-page\"></text>\n </span>\n </span>\n Print\n</button>", "script": "export default {\n name: 'GalaxyOrangeDonkey9',\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: simple, animation, button, hover, hover effect, print */\n.print-btn {\n width: 200rpx;\n height: 90rpx;\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: white;\n border: 2rpx solid rgb(213, 213, 213);\n border-radius: 20rpx;\n gap: 20rpx;\n font-size: 32rpx;\n /* #ifdef H5 */\n cursor: pointer;\n /* #endif */\n overflow: hidden;\n font-weight: 500;\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 0rpx 20rpx 20rpx rgba(0, 0, 0, 0.065);\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n transition: all 0.3s;\n}\n.printer-wrapper {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n width: 40rpx;\n height: 100%;\n}\n.printer-container {\n height: 50%;\n width: 100%;\n display: flex;\n align-items: flex-end;\n justify-content: center;\n}\n\n.printer-container svg {\n width: 100%;\n height: auto;\n transform: translateY(8rpx);\n}\n.printer-page-wrapper {\n width: 100%;\n height: 50%;\n display: flex;\n align-items: flex-start;\n justify-content: center;\n}\n.printer-page {\n width: 70%;\n height: 20rpx;\n border: 2rpx solid black;\n background-color: white;\n transform: translateY(0rpx);\n transition: all 0.3s;\n transform-origin: top;\n}\n.print-btn:hover .printer-page {\n height: 32rpx;\n background-color: rgb(239, 239, 239);\n}\n.print-btn:hover {\n background-color: rgb(239, 239, 239);\n}\n\n", "component_name": "GalaxyOrangeDonkey9" }, "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": 2410, "render_cost": "medium", "memory_usage": "medium" }, "dependencies": [], "examples": [ { "title": "", "description": "", "code": "" } ], "created_at": "2025-07-31T07:55:38.210Z", "updated_at": "2025-07-31T07:55:38.210Z" }