UNPKG

galaxy-uniapp-mcp-server

Version:

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

114 lines 7.34 kB
{ "id": "barisdogansutcu_little-penguin-13", "name": "little-penguin-13", "category": "buttons", "author": "barisdogansutcu", "description": "little-penguin-13 组件 (icon, button, download, animation, interactive)", "tags": [ "icon", "button", "download", "animation", "interactive" ], "original": { "html": "<button class=\"download-button\">\n <div class=\"docs\"><svg class=\"css-i6dzq1\" stroke-linejoin=\"round\" stroke-linecap=\"round\" fill=\"none\" stroke-width=\"2\" stroke=\"currentColor\" height=\"20\" width=\"20\" viewBox=\"0 0 24 24\"><path d=\"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z\"></path><polyline points=\"14 2 14 8 20 8\"></polyline><line y2=\"13\" x2=\"8\" y1=\"13\" x1=\"16\"></line><line y2=\"17\" x2=\"8\" y1=\"17\" x1=\"16\"></line><polyline points=\"10 9 9 9 8 9\"></polyline></svg> Docs</div>\n <div class=\"download\">\n <svg class=\"css-i6dzq1\" stroke-linejoin=\"round\" stroke-linecap=\"round\" fill=\"none\" stroke-width=\"2\" stroke=\"currentColor\" height=\"24\" width=\"24\" viewBox=\"0 0 24 24\"><path d=\"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4\"></path><polyline points=\"7 10 12 15 17 10\"></polyline><line y2=\"3\" x2=\"12\" y1=\"15\" x1=\"12\"></line></svg>\n </div>\n</button>", "css": "/* From Uiverse.io by barisdogansutcu - Tags: icon, button, download */\n.download-button {\n position: relative;\n border-width: 0;\n color: white;\n font-size: 15px;\n font-weight: 600;\n border-radius: 4px;\n z-index: 1;\n}\n\n.download-button .docs {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 10px;\n min-height: 40px;\n padding: 0 10px;\n border-radius: 4px;\n z-index: 1;\n background-color: #242a35;\n border: solid 1px #e8e8e82d;\n transition: all .5s cubic-bezier(0.77, 0, 0.175, 1);\n}\n\n.download-button:hover {\n box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;\n}\n\n.download {\n position: absolute;\n inset: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n max-width: 90%;\n margin: 0 auto;\n z-index: -1;\n border-radius: 4px;\n transform: translateY(0%);\n background-color: #01e056;\n border: solid 1px #01e0572d;\n transition: all .5s cubic-bezier(0.77, 0, 0.175, 1);\n}\n\n.download-button:hover .download {\n transform: translateY(100%)\n}\n\n.download svg polyline,.download svg line {\n animation: docs 1s infinite;\n}\n\n@keyframes docs {\n 0% {\n transform: translateY(0%);\n }\n\n 50% {\n transform: translateY(-15%);\n }\n\n 100% {\n transform: translateY(0%);\n }\n}", "file_path": "/mnt/persist/workspace/Buttons/barisdogansutcu_little-penguin-13.html" }, "uniapp": { "template": "<button class=\"download-button\"></button>\n <view class=\"docs\"><view class=\"css-i6dzq1\" stroke-linejoin=\"round\" stroke-linecap=\"round\" fill=\"none\" stroke-width=\"2\" stroke=\"currentColor\" height=\"20\" width=\"20\" viewBox=\"0 0 24 24\"><path d=\"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z\"></path><polyline points=\"14 2 14 8 20 8\"></polyline><line y2=\"13\" x2=\"8\" y1=\"13\" x1=\"16\"></line><line y2=\"17\" x2=\"8\" y1=\"17\" x1=\"16\"></line><polyline points=\"10 9 9 9 8 9\"></polyline></view> Docs</view>\n <view class=\"download\"></view>\n <view class=\"css-i6dzq1\" stroke-linejoin=\"round\" stroke-linecap=\"round\" fill=\"none\" stroke-width=\"2\" stroke=\"currentColor\" height=\"24\" width=\"24\" viewBox=\"0 0 24 24\"><path d=\"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4\"></path><polyline points=\"7 10 12 15 17 10\"></polyline><line y2=\"3\" x2=\"12\" y1=\"15\" x1=\"12\"></line></view>\n </div>\n</button>", "script": "export default {\n name: 'GalaxyLittlePenguin13',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}", "style": "\n/* From Uiverse.io by barisdogansutcu - Tags: icon, button, download */\n.download-button {\n position: relative;\n border-width: 0;\n color: white;\n font-size: 30rpx;\n font-weight: 600;\n border-radius: 8rpx;\n z-index: 1;\n}\n\n.download-button .docs {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 20rpx;\n min-height: 80rpx;\n padding: 0 20rpx;\n border-radius: 8rpx;\n z-index: 1;\n background-color: #242a35;\n border: solid 2rpx #e8e8e82d;\n transition: all .5s cubic-bezier(0.77, 0, 0.175, 1);\n}\n\n.download-button:hover {\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: rgba(0, 0, 0, 0.25) 0rpx 108rpx 110rpx, rgba(0, 0, 0, 0.12) 0rpx -24rpx 60rpx, rgba(0, 0, 0, 0.12) 0rpx 8rpx 12rpx, rgba(0, 0, 0, 0.17) 0rpx 24rpx 26rpx, rgba(0, 0, 0, 0.09) 0rpx -6rpx 10rpx;\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n}\n\n.download {\n position: absolute;\n inset: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n max-width: 90%;\n margin: 0 auto;\n z-index: -1;\n border-radius: 8rpx;\n transform: translateY(0%);\n background-color: #01e056;\n border: solid 2rpx #01e0572d;\n transition: all .5s cubic-bezier(0.77, 0, 0.175, 1);\n}\n\n.download-button:hover .download {\n transform: translateY(100%)\n}\n\n.download svg polyline,.download svg line {\n animation: docs 1s infinite;\n}\n\n@keyframes docs {\n 0% {\n transform: translateY(0%);\n }\n\n 50% {\n transform: translateY(-15%);\n }\n\n 100% {\n transform: translateY(0%);\n }\n}\n", "component_name": "GalaxyLittlePenguin13" }, "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 属性" ], "alternatives": [] }, "mp-alipay": { "supported": true, "issues": [ "不支持 box-shadow 属性" ], "alternatives": [] }, "app-plus": { "supported": true, "issues": [], "alternatives": [] } }, "performance": { "complexity": "medium", "bundle_size": 2192, "render_cost": "medium", "memory_usage": "medium" }, "dependencies": [], "examples": [ { "title": "", "description": "", "code": "" } ], "created_at": "2025-07-31T07:55:35.888Z", "updated_at": "2025-07-31T07:55:35.888Z" }