UNPKG

galaxy-uniapp-mcp-server

Version:

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

112 lines 6.19 kB
{ "id": "wang3616359git_bright-turkey-74", "name": "bright-turkey-74", "category": "buttons", "author": "wang3616359git", "description": "bright-turkey-74 组件 (button, animation, interactive)", "tags": [ "button", "animation", "interactive" ], "original": { "html": "<button class=\"bt\" id=\"bt\">\n <span class=\"msg\" id=\"msg\"></span>\n SEND\n</button>", "css": "/* From Uiverse.io by wang3616359git - Tags: button */\n.bt {\n border: none;\n user-select: none;\n font-size: 18px;\n color: white;\n text-align: center;\n background-color: #0873bd;\n box-shadow: #cacaca 2px 2px 10px 1px;\n border-radius: 12px;\n height: 60px;\n line-height: 60px;\n width: 155px;\n transition: all 0.2s ease;\n position: relative;\n}\n\n.msg {\n height: 0;\n width: 0;\n border-radius: 2px;\n position: absolute;\n left: 15%;\n top: 25%;\n}\n\n.bt:active {\n transition: all 0.001s ease;\n background-color: #5d9fcd;\n box-shadow: #97989a 0 0 0 0;\n transform: translateX(1px) translateY(1px);\n}\n\n.bt:hover .msg {\n animation: msgRun 2s forwards;\n}\n\n@keyframes msgRun {\n 0% {\n border-top: #d6d6d9 0 solid;\n border-bottom: #f2f2f5 0 solid;\n border-left: #f2f2f5 0 solid;\n border-right: #f2f2f5 0 solid;\n }\n\n 20% {\n border-top: #d6d6d9 14px solid;\n border-bottom: #f2f2f5 14px solid;\n border-left: #f2f2f5 20px solid;\n border-right: #f2f2f5 20px solid;\n }\n\n 25% {\n border-top: #d6d6d9 12px solid;\n border-bottom: #f2f2f5 12px solid;\n border-left: #f2f2f5 18px solid;\n border-right: #f2f2f5 18px solid;\n }\n\n 80% {\n border-top: transparent 12px solid;\n border-bottom: transparent 12px solid;\n border-left: transparent 18px solid;\n border-right: transparent 18px solid;\n }\n\n 100% {\n transform: translateX(150px);\n border-top: transparent 12px solid;\n border-bottom: transparent 12px solid;\n border-left: transparent 18px solid;\n border-right: transparent 18px solid;\n }\n}", "file_path": "/mnt/persist/workspace/Buttons/wang3616359git_bright-turkey-74.html" }, "uniapp": { "template": "<button class=\"bt\" id=\"bt\"></button>\n <text class=\"msg\" id=\"msg\"></text>\n SEND\n</button>", "script": "export default {\n name: 'GalaxyBrightTurkey74',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}", "style": "\n/* From Uiverse.io by wang3616359git - Tags: button */\n.bt {\n border: none;\n user-select: none;\n font-size: 36rpx;\n color: white;\n text-align: center;\n background-color: #0873bd;\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: #cacaca 4rpx 4rpx 20rpx 2rpx;\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n border-radius: 24rpx;\n height: 120rpx;\n line-height: 120rpx;\n width: 310rpx;\n transition: all 0.2s ease;\n position: relative;\n}\n\n.msg {\n height: 0;\n width: 0;\n border-radius: 4rpx;\n position: absolute;\n left: 15%;\n top: 25%;\n}\n\n.bt:active {\n transition: all 0.001s ease;\n background-color: #5d9fcd;\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: #97989a 0 0 0 0;\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n transform: translateX(2rpx) translateY(2rpx);\n}\n\n.bt:hover .msg {\n animation: msgRun 2s forwards;\n}\n\n@keyframes msgRun {\n 0% {\n border-top: #d6d6d9 0 solid;\n border-bottom: #f2f2f5 0 solid;\n border-left: #f2f2f5 0 solid;\n border-right: #f2f2f5 0 solid;\n }\n\n 20% {\n border-top: #d6d6d9 28rpx solid;\n border-bottom: #f2f2f5 28rpx solid;\n border-left: #f2f2f5 40rpx solid;\n border-right: #f2f2f5 40rpx solid;\n }\n\n 25% {\n border-top: #d6d6d9 24rpx solid;\n border-bottom: #f2f2f5 24rpx solid;\n border-left: #f2f2f5 36rpx solid;\n border-right: #f2f2f5 36rpx solid;\n }\n\n 80% {\n border-top: transparent 24rpx solid;\n border-bottom: transparent 24rpx solid;\n border-left: transparent 36rpx solid;\n border-right: transparent 36rpx solid;\n }\n\n 100% {\n transform: translateX(300rpx);\n border-top: transparent 24rpx solid;\n border-bottom: transparent 24rpx solid;\n border-left: transparent 36rpx solid;\n border-right: transparent 36rpx solid;\n }\n}\n", "component_name": "GalaxyBrightTurkey74" }, "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": 1642, "render_cost": "medium", "memory_usage": "medium" }, "dependencies": [], "examples": [ { "title": "", "description": "", "code": "" } ], "created_at": "2025-07-31T07:55:38.347Z", "updated_at": "2025-07-31T07:55:38.347Z" }