UNPKG

galaxy-uniapp-mcp-server

Version:

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

113 lines 4.3 kB
{ "id": "mrhyddenn_cuddly-moth-41", "name": "cuddly-moth-41", "category": "buttons", "author": "mrhyddenn", "description": "cuddly-moth-41 组件 (button, animation, gradient, interactive)", "tags": [ "button", "animation", "gradient", "interactive" ], "original": { "html": "<button>\n <a>Hover me</a>\n</button>", "css": "/* From Uiverse.io by mrhyddenn - Tags: button */\nbutton {\n background: transparent;\n color: #fff;\n font-size: 17px;\n text-transform: uppercase;\n font-weight: 600;\n border: none;\n padding: 20px 30px;\n perspective: 30rem;\n border-radius: 10px;\n box-shadow: 0 5px 15px rgba(0, 0, 0, 0.308);\n}\n\nbutton::before {\n content: '';\n display: block;\n position: absolute;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n border-radius: 10px;\n background: linear-gradient(320deg, rgba(0, 140, 255, 0.678), rgba(128, 0, 128, 0.308));\n z-index: 1;\n transition: background 3s;\n}\n\nbutton:hover::before {\n animation: rotate 1s;\n transition: all .5s;\n}\n\n@keyframes rotate {\n 0% {\n transform: rotateY(180deg);\n }\n\n 100% {\n transform: rotateY(360deg);\n }\n}", "file_path": "/mnt/persist/workspace/Buttons/mrhyddenn_cuddly-moth-41.html" }, "uniapp": { "template": "<button></button>\n <navigator>Hover me</navigator>\n</button>", "script": "export default {\n name: 'GalaxyCuddlyMoth41',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}", "style": "\n/* From Uiverse.io by mrhyddenn - Tags: button */\nbutton {\n background: transparent;\n color: #fff;\n font-size: 34rpx;\n text-transform: uppercase;\n font-weight: 600;\n border: none;\n padding: 40rpx 60rpx;\n perspective: 30rem;\n border-radius: 20rpx;\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 0 10rpx 30rpx rgba(0, 0, 0, 0.308);\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n}\n\nbutton::before {\n content: '';\n display: block;\n position: absolute;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n border-radius: 20rpx;\n background: linear-gradient(320deg, rgba(0, 140, 255, 0.678), rgba(128, 0, 128, 0.308));\n z-index: 1;\n transition: background 3s;\n}\n\nbutton:hover::before {\n animation: rotate 1s;\n transition: all .5s;\n}\n\n@keyframes rotate {\n 0% {\n transform: rotateY(180deg);\n }\n\n 100% {\n transform: rotateY(360deg);\n }\n}\n", "component_name": "GalaxyCuddlyMoth41" }, "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": 811, "render_cost": "medium", "memory_usage": "medium" }, "dependencies": [], "examples": [ { "title": "", "description": "", "code": "" } ], "created_at": "2025-07-31T07:55:37.323Z", "updated_at": "2025-07-31T07:55:37.323Z" }