UNPKG

galaxy-uniapp-mcp-server

Version:

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

118 lines 6.42 kB
{ "id": "CaptainToy_witty-ladybug-99", "name": "witty-ladybug-99", "category": "buttons", "author": "CaptainToy", "description": "witty-ladybug-99 组件 (button, buttons, simple button, hover button, bounce animation, animation, interactive)", "tags": [ "button", "buttons", "simple button", "hover button", "bounce animation", "animation", "interactive" ], "original": { "html": "<button class=\"send-message-button\">\n <span class=\"icon\">✈️</span> <span class=\"text\">Send Message</span>\n</button>", "css": "/* From Uiverse.io by CaptainToy - Tags: button, buttons, simple button, hover button, bounce animation */\n.send-message-button {\n background: #fff;\n border: 1px solid black;\n border-radius: 10px;\n padding: 15px 30px;\n font-size: 18px;\n font-weight: bold;\n color: #333;\n display: flex;\n align-items: center;\n gap: 10px;\n box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);\n cursor: pointer;\n transition: transform 0.2s ease, box-shadow 0.2s ease;\n position: relative;\n overflow: hidden;\n}\n\n.send-message-button .icon {\n font-size: 20px;\n transition: transform 0.3s ease, opacity 0.3s ease;\n position: relative;\n left: 0;\n}\n\n.send-message-button .text {\n transition: opacity 0.3s ease;\n}\n\n.send-message-button:hover .icon {\n transform: translateX(200%);\n}\n\n.send-message-button:hover .text {\n opacity: 0;\n}\n\n.send-message-button:hover {\n transform: translateY(-2px);\n box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);\n}\n\n.send-message-button::after {\n position: absolute;\n opacity: 0;\n transition: opacity 0.3s ease;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n font-size: 18px;\n font-weight: bold;\n}\n\n.send-message-button:hover::after {\n opacity: 1;\n}\n\n.send-message-button::before {\n content: \"\";\n position: absolute;\n width: 300%;\n height: 300%;\n top: 50%;\n left: 50%;\n background: rgba(0, 0, 0, 0.05);\n transition: all 0.3s ease;\n border-radius: 50%;\n transform: translate(-50%, -50%) scale(0);\n}\n\n.send-message-button:hover::before {\n transform: translate(-50%, -50%) scale(1);\n}", "file_path": "/mnt/persist/workspace/Buttons/CaptainToy_witty-ladybug-99.html" }, "uniapp": { "template": "<button class=\"send-message-button\"></button>\n <text class=\"icon\">✈️</text> <text class=\"text\">Send Message</text>\n</button>", "script": "export default {\n name: 'GalaxyWittyLadybug99',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}", "style": "\n/* From Uiverse.io by CaptainToy - Tags: button, buttons, simple button, hover button, bounce animation */\n.send-message-button {\n background: #fff;\n border: 2rpx solid black;\n border-radius: 20rpx;\n padding: 30rpx 60rpx;\n font-size: 36rpx;\n font-weight: bold;\n color: #333;\n display: flex;\n align-items: center;\n gap: 20rpx;\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 0 8rpx 16rpx rgba(0, 0, 0, 0.1);\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 transition: transform 0.2s ease, box-shadow 0.2s ease;\n position: relative;\n overflow: hidden;\n}\n\n.send-message-button .icon {\n font-size: 40rpx;\n transition: transform 0.3s ease, opacity 0.3s ease;\n position: relative;\n left: 0;\n}\n\n.send-message-button .text {\n transition: opacity 0.3s ease;\n}\n\n.send-message-button:hover .icon {\n transform: translateX(200%);\n}\n\n.send-message-button:hover .text {\n opacity: 0;\n}\n\n.send-message-button:hover {\n transform: translateY(-4rpx);\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 0 12rpx 24rpx rgba(0, 0, 0, 0.2);\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n}\n\n.send-message-button::after {\n position: absolute;\n opacity: 0;\n transition: opacity 0.3s ease;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n font-size: 36rpx;\n font-weight: bold;\n}\n\n.send-message-button:hover::after {\n opacity: 1;\n}\n\n.send-message-button::before {\n content: \"\";\n position: absolute;\n width: 300%;\n height: 300%;\n top: 50%;\n left: 50%;\n background: rgba(0, 0, 0, 0.05);\n transition: all 0.3s ease;\n border-radius: 50%;\n transform: translate(-50%, -50%) scale(0);\n}\n\n.send-message-button:hover::before {\n transform: translate(-50%, -50%) scale(1);\n}\n\n", "component_name": "GalaxyWittyLadybug99" }, "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": 1651, "render_cost": "medium", "memory_usage": "medium" }, "dependencies": [], "examples": [ { "title": "", "description": "", "code": "" } ], "created_at": "2025-07-31T07:55:32.868Z", "updated_at": "2025-07-31T07:55:32.868Z" }