UNPKG

galaxy-uniapp-mcp-server

Version:

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

119 lines 7.22 kB
{ "id": "aguerquin_pretty-bat-39", "name": "pretty-bat-39", "category": "buttons", "author": "aguerquin", "description": "pretty-bat-39 组件 (button, hover, cube, github, btn, hover button, 3d button, button hover effect, animation, interactive)", "tags": [ "button", "hover", "cube", "github", "btn", "hover button", "3d button", "button hover effect", "animation", "interactive" ], "original": { "html": "<div class=\"button-icon\">\n <div class=\"icon\">\n <svg viewBox=\"0 0 24 24\">\n <path d=\"M12 0.296997C5.37 0.296997 0 5.67 0 12.297C0 17.6 3.438 22.097 8.205 23.682C8.805 23.795 9.025 23.424 9.025 23.105C9.025 22.82 9.015 22.065 9.01 21.065C5.672 21.789 4.968 19.455 4.968 19.455C4.422 18.07 3.633 17.7 3.633 17.7C2.546 16.956 3.717 16.971 3.717 16.971C4.922 17.055 5.555 18.207 5.555 18.207C6.625 20.042 8.364 19.512 9.05 19.205C9.158 18.429 9.467 17.9 9.81 17.6C7.145 17.3 4.344 16.268 4.344 11.67C4.344 10.36 4.809 9.29 5.579 8.45C5.444 8.147 5.039 6.927 5.684 5.274C5.684 5.274 6.689 4.952 8.984 6.504C9.944 6.237 10.964 6.105 11.984 6.099C13.004 6.105 14.024 6.237 14.984 6.504C17.264 4.952 18.269 5.274 18.269 5.274C18.914 6.927 18.509 8.147 18.389 8.45C19.154 9.29 19.619 10.36 19.619 11.67C19.619 16.28 16.814 17.295 14.144 17.59C14.564 17.95 14.954 18.686 14.954 19.81C14.954 21.416 14.939 22.706 14.939 23.096C14.939 23.411 15.149 23.786 15.764 23.666C20.565 22.092 24 17.592 24 12.297C24 5.67 18.627 0.296997 12 0.296997Z\" fill=\"#222229\"></path>\n </svg>\n </div>\n <div class=\"cube\">\n <span class=\"side front\">hover me</span>\n <span class=\"side top\">check it on github</span>\n </div>\n</div>", "css": "/* From Uiverse.io by aguerquin - Tags: button, hover, cube, github, btn, hover button, 3d button, button hover effect */\n.button-icon {\n display: flex;\n border: 3px #fff solid;\n width: fit-content;\n height: fit-content;\n cursor: pointer;\n}\n\n.icon {\n background-color: #fff;\n padding: 10px 10px 5px 10px;\n}\n\n.icon svg {\n width: 25px;\n height: 25px;\n}\n\n.cube {\n transition: all 0.4s;\n transform-style: preserve-3d;\n width: 200px;\n height: 20px;\n}\n\n.button-icon:hover {\n border-color: #ff98a2;\n}\n\n.button-icon:hover .cube {\n transform: rotateX(90deg);\n}\n\n.side {\n position: absolute;\n height: 47px;\n width: 200px;\n display: flex;\n font-size: 0.8em;\n justify-content: center;\n align-items: center;\n text-transform: uppercase;\n letter-spacing: 0.5px;\n font-weight: bold;\n}\n\n.top {\n background: #ff98a2;\n color: #fff;\n transform: rotateX(-90deg) translate3d(0, 13.5px, 2em);\n}\n\n.front {\n background: #222229;\n color: #fff;\n transform: translate3d(0, 0, 1em);\n}", "file_path": "/mnt/persist/workspace/Buttons/aguerquin_pretty-bat-39.html" }, "uniapp": { "template": "<view class=\"button-icon\"></view>\n <view class=\"icon\"></view>\n <view viewBox=\"0 0 24 24\"></view>\n <path d=\"M12 0.296997C5.37 0.296997 0 5.67 0 12.297C0 17.6 3.438 22.097 8.205 23.682C8.805 23.795 9.025 23.424 9.025 23.105C9.025 22.82 9.015 22.065 9.01 21.065C5.672 21.789 4.968 19.455 4.968 19.455C4.422 18.07 3.633 17.7 3.633 17.7C2.546 16.956 3.717 16.971 3.717 16.971C4.922 17.055 5.555 18.207 5.555 18.207C6.625 20.042 8.364 19.512 9.05 19.205C9.158 18.429 9.467 17.9 9.81 17.6C7.145 17.3 4.344 16.268 4.344 11.67C4.344 10.36 4.809 9.29 5.579 8.45C5.444 8.147 5.039 6.927 5.684 5.274C5.684 5.274 6.689 4.952 8.984 6.504C9.944 6.237 10.964 6.105 11.984 6.099C13.004 6.105 14.024 6.237 14.984 6.504C17.264 4.952 18.269 5.274 18.269 5.274C18.914 6.927 18.509 8.147 18.389 8.45C19.154 9.29 19.619 10.36 19.619 11.67C19.619 16.28 16.814 17.295 14.144 17.59C14.564 17.95 14.954 18.686 14.954 19.81C14.954 21.416 14.939 22.706 14.939 23.096C14.939 23.411 15.149 23.786 15.764 23.666C20.565 22.092 24 17.592 24 12.297C24 5.67 18.627 0.296997 12 0.296997Z\" fill=\"#222229\"></path>\n </svg>\n </div>\n <view class=\"cube\"></view>\n <text class=\"side front\">hover me</text>\n <text class=\"side top\">check it on github</text>\n </div>\n</div>", "script": "export default {\n name: 'GalaxyPrettyBat39',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}", "style": "\n/* From Uiverse.io by aguerquin - Tags: button, hover, cube, github, btn, hover button, 3d button, button hover effect */\n.button-icon {\n display: flex;\n border: 6rpx #fff solid;\n width: fit-content;\n height: fit-content;\n /* #ifdef H5 */\n cursor: pointer;\n /* #endif */\n}\n\n.icon {\n background-color: #fff;\n padding: 20rpx 20rpx 10rpx 20rpx;\n}\n\n.icon svg {\n width: 50rpx;\n height: 50rpx;\n}\n\n.cube {\n transition: all 0.4s;\n transform-style: preserve-3d;\n width: 400rpx;\n height: 40rpx;\n}\n\n.button-icon:hover {\n border-color: #ff98a2;\n}\n\n.button-icon:hover .cube {\n transform: rotateX(90deg);\n}\n\n.side {\n position: absolute;\n height: 94rpx;\n width: 400rpx;\n display: flex;\n font-size: 0.8em;\n justify-content: center;\n align-items: center;\n text-transform: uppercase;\n letter-spacing: 1rpx;\n font-weight: bold;\n}\n\n.top {\n background: #ff98a2;\n color: #fff;\n transform: rotateX(-90deg) translate3d(0, 27rpx, 2em);\n}\n\n.front {\n background: #222229;\n color: #fff;\n transform: translate3d(0, 0, 1em);\n}\n\n", "component_name": "GalaxyPrettyBat39" }, "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": [ "不支持 cursor 属性" ], "alternatives": [] }, "mp-alipay": { "supported": true, "issues": [ "不支持 cursor 属性" ], "alternatives": [] }, "app-plus": { "supported": true, "issues": [], "alternatives": [] } }, "performance": { "complexity": "medium", "bundle_size": 2212, "render_cost": "medium", "memory_usage": "medium" }, "dependencies": [], "examples": [ { "title": "", "description": "", "code": "" } ], "created_at": "2025-07-31T07:55:35.520Z", "updated_at": "2025-07-31T07:55:35.520Z" }