UNPKG

galaxy-uniapp-mcp-server

Version:

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

114 lines 6.97 kB
{ "id": "DGtalsam_neat-kangaroo-25", "name": "neat-kangaroo-25", "category": "buttons", "author": "DGtalsam", "description": "neat-kangaroo-25 组件 (button, gradient, interactive)", "tags": [ "button", "gradient", "interactive" ], "original": { "html": "<button class=\"custom-btn btn\"><span>Button</span></button>", "css": "/* From Uiverse.io by DGtalsam - Tags: button */\n.custom-btn {\n width: 130px;\n height: 40px;\n color: #fff;\n border-radius: 5px;\n padding: 10px 25px;\n font-family: 'Lato', sans-serif;\n font-weight: 500;\n background: transparent;\n cursor: pointer;\n transition: all 0.3s ease;\n position: relative;\n display: inline-block;\n box-shadow: inset 2px 2px 2px 0px rgba(255, 255, 255, .5),\n 7px 7px 20px 0px rgba(0, 0, 0, .1),\n 4px 4px 5px 0px rgba(0, 0, 0, .1);\n outline: none;\n}\n\n.btn {\n background: linear-gradient(0deg, rgba(255, 151, 0, 1) 0%, rgba(251, 75, 2, 1) 100%);\n line-height: 42px;\n padding: 0;\n border: none;\n}\n\n.btn span {\n position: relative;\n display: block;\n width: 100%;\n height: 100%;\n}\n\n.btn:before,\n.btn:after {\n position: absolute;\n content: \"\";\n right: 0;\n bottom: 0;\n background: rgba(251, 75, 2, 1);\n box-shadow: -7px -7px 20px 0px rgba(255, 255, 255, .9),\n -4px -4px 5px 0px rgba(255, 255, 255, .9),\n 7px 7px 20px 0px rgba(0, 0, 0, .2),\n 4px 4px 5px 0px rgba(0, 0, 0, .3);\n transition: all 0.3s ease;\n}\n\n.btn:before {\n height: 0%;\n width: 2px;\n}\n\n.btn:after {\n width: 0%;\n height: 2px;\n}\n\n.btn:hover {\n color: rgba(251, 75, 2, 1);\n background: transparent;\n}\n\n.btn:hover:before {\n height: 100%;\n}\n\n.btn:hover:after {\n width: 100%;\n}\n\n.btn span:before,\n.btn span:after {\n position: absolute;\n content: \"\";\n left: 0;\n top: 0;\n background: rgba(251, 75, 2, 1);\n box-shadow: -7px -7px 20px 0px rgba(255, 255, 255, .9),\n -4px -4px 5px 0px rgba(255, 255, 255, .9),\n 7px 7px 20px 0px rgba(0, 0, 0, .2),\n 4px 4px 5px 0px rgba(0, 0, 0, .3);\n transition: all 0.3s ease;\n}\n\n.btn span:before {\n width: 2px;\n height: 0%;\n}\n\n.btn span:after {\n height: 2px;\n width: 0%;\n}\n\n.btn span:hover:before {\n height: 100%;\n}\n\n.btn span:hover:after {\n width: 100%;\n}", "file_path": "/mnt/persist/workspace/Buttons/DGtalsam_neat-kangaroo-25.html" }, "uniapp": { "template": "<button class=\"custom-btn btn\"></button><text>Button</text></button>", "script": "export default {\n name: 'GalaxyNeatKangaroo25',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}", "style": "\n/* From Uiverse.io by DGtalsam - Tags: button */\n.custom-btn {\n width: 260rpx;\n height: 80rpx;\n color: #fff;\n border-radius: 10rpx;\n padding: 20rpx 50rpx;\n font-family: 'Lato', sans-serif;\n font-weight: 500;\n background: transparent;\n /* #ifdef H5 */\n cursor: pointer;\n /* #endif */\n transition: all 0.3s ease;\n position: relative;\n display: inline-block;\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: inset 4rpx 4rpx 4rpx 0rpx rgba(255, 255, 255, .5),\n 14rpx 14rpx 40rpx 0rpx rgba(0, 0, 0, .1),\n 8rpx 8rpx 10rpx 0rpx rgba(0, 0, 0, .1);\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n outline: none;\n}\n\n.btn {\n background: linear-gradient(0deg, rgba(255, 151, 0, 1) 0%, rgba(251, 75, 2, 1) 100%);\n line-height: 84rpx;\n padding: 0;\n border: none;\n}\n\n.btn span {\n position: relative;\n display: block;\n width: 100%;\n height: 100%;\n}\n\n.btn:before,\n.btn:after {\n position: absolute;\n content: \"\";\n right: 0;\n bottom: 0;\n background: rgba(251, 75, 2, 1);\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: -14rpx -14rpx 40rpx 0rpx rgba(255, 255, 255, .9),\n -8rpx -8rpx 10rpx 0rpx rgba(255, 255, 255, .9),\n 14rpx 14rpx 40rpx 0rpx rgba(0, 0, 0, .2),\n 8rpx 8rpx 10rpx 0rpx rgba(0, 0, 0, .3);\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n transition: all 0.3s ease;\n}\n\n.btn:before {\n height: 0%;\n width: 4rpx;\n}\n\n.btn:after {\n width: 0%;\n height: 4rpx;\n}\n\n.btn:hover {\n color: rgba(251, 75, 2, 1);\n background: transparent;\n}\n\n.btn:hover:before {\n height: 100%;\n}\n\n.btn:hover:after {\n width: 100%;\n}\n\n.btn span:before,\n.btn span:after {\n position: absolute;\n content: \"\";\n left: 0;\n top: 0;\n background: rgba(251, 75, 2, 1);\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: -14rpx -14rpx 40rpx 0rpx rgba(255, 255, 255, .9),\n -8rpx -8rpx 10rpx 0rpx rgba(255, 255, 255, .9),\n 14rpx 14rpx 40rpx 0rpx rgba(0, 0, 0, .2),\n 8rpx 8rpx 10rpx 0rpx rgba(0, 0, 0, .3);\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n transition: all 0.3s ease;\n}\n\n.btn span:before {\n width: 4rpx;\n height: 0%;\n}\n\n.btn span:after {\n height: 4rpx;\n width: 0%;\n}\n\n.btn span:hover:before {\n height: 100%;\n}\n\n.btn span:hover:after {\n width: 100%;\n}\n", "component_name": "GalaxyNeatKangaroo25" }, "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": "high", "bundle_size": 1876, "render_cost": "high", "memory_usage": "high" }, "dependencies": [], "examples": [ { "title": "", "description": "", "code": "" } ], "created_at": "2025-07-31T07:55:33.049Z", "updated_at": "2025-07-31T07:55:33.049Z" }