UNPKG

galaxy-uniapp-mcp-server

Version:

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

112 lines 5.58 kB
{ "id": "Dashrath-Sharma_cowardly-dingo-27", "name": "cowardly-dingo-27", "category": "buttons", "author": "Dashrath-Sharma", "description": "cowardly-dingo-27 组件 (button, animation, interactive)", "tags": [ "button", "animation", "interactive" ], "original": { "html": "<button class=\"btn\">\n Button\n</button>", "css": "/* From Uiverse.io by Dashrath-Sharma - Tags: button */\n.btn {\n border-right: 1px solid #ff758f;\n border-bottom: 1px solid #ff758f;\n border-top: 1px solid transparent;\n border-left: 1px solid transparent;\n outline: none;\n background: #f8f9fa;\n font-size: 17px;\n padding: 1em 2em;\n border-radius: .5em;\n position: relative;\n display: flex;\n justify-content: center;\n align-items: center;\n overflow: hidden;\n transition: all .5s;\n z-index: 1;\n}\n\n.btn:hover {\n color: #212529;\n border-right: 1px solid transparent;\n border-bottom: 1px solid transparent;\n border-top: 1px solid #ff758f;\n border-left: 1px solid #ff758f;\n box-shadow: 1px 1px 0 #f8f9fa,\n 2px 2px 0 #e9ecef,\n 3px 3px 0 #fff0f3,\n 4px 4px 0 #ffb3c1,\n 5px 5px 0 #ff4d6d,\n 6px 6px 0 #6c757d,\n 7px 7px 0 #a4133c,\n 8px 8px 0 #800f2f,\n 9px 9px 0 #212529;\n}\n\n.btn:active {\n transition: 0s;\n transform: scale(.93);\n}\n\n.btn::before,\n.btn::after {\n left: 0;\n content: '';\n position: absolute;\n background: #ffccd5;\n z-index: -1;\n}\n\n.btn::before {\n width: 0;\n height: 10%;\n transition: width .5s;\n}\n\n.btn:hover::before {\n width: 100%;\n}\n\n.btn::after {\n width: 100%;\n height: 0;\n border-radius: 100%;\n transition: all .5s .2s;\n}\n\n.btn:hover::after {\n height: 100%;\n border-radius: 0;\n}", "file_path": "/mnt/persist/workspace/Buttons/Dashrath-Sharma_cowardly-dingo-27.html" }, "uniapp": { "template": "<button class=\"btn\"></button>\n Button\n</button>", "script": "export default {\n name: 'GalaxyCowardlyDingo27',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}", "style": "\n/* From Uiverse.io by Dashrath-Sharma - Tags: button */\n.btn {\n border-right: 2rpx solid #ff758f;\n border-bottom: 2rpx solid #ff758f;\n border-top: 2rpx solid transparent;\n border-left: 2rpx solid transparent;\n outline: none;\n background: #f8f9fa;\n font-size: 34rpx;\n padding: 1em 2em;\n border-radius: .5em;\n position: relative;\n display: flex;\n justify-content: center;\n align-items: center;\n overflow: hidden;\n transition: all .5s;\n z-index: 1;\n}\n\n.btn:hover {\n color: #212529;\n border-right: 2rpx solid transparent;\n border-bottom: 2rpx solid transparent;\n border-top: 2rpx solid #ff758f;\n border-left: 2rpx solid #ff758f;\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 2rpx 2rpx 0 #f8f9fa,\n 4rpx 4rpx 0 #e9ecef,\n 6rpx 6rpx 0 #fff0f3,\n 8rpx 8rpx 0 #ffb3c1,\n 10rpx 10rpx 0 #ff4d6d,\n 12rpx 12rpx 0 #6c757d,\n 14rpx 14rpx 0 #a4133c,\n 16rpx 16rpx 0 #800f2f,\n 18rpx 18rpx 0 #212529;\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n}\n\n.btn:active {\n transition: 0s;\n transform: scale(.93);\n}\n\n.btn::before,\n.btn::after {\n left: 0;\n content: '';\n position: absolute;\n background: #ffccd5;\n z-index: -1;\n}\n\n.btn::before {\n width: 0;\n height: 10%;\n transition: width .5s;\n}\n\n.btn:hover::before {\n width: 100%;\n}\n\n.btn::after {\n width: 100%;\n height: 0;\n border-radius: 100%;\n transition: all .5s .2s;\n}\n\n.btn:hover::after {\n height: 100%;\n border-radius: 0;\n}\n\n", "component_name": "GalaxyCowardlyDingo27" }, "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": 1411, "render_cost": "medium", "memory_usage": "medium" }, "dependencies": [], "examples": [ { "title": "", "description": "", "code": "" } ], "created_at": "2025-07-31T07:55:33.061Z", "updated_at": "2025-07-31T07:55:33.061Z" }