UNPKG

galaxy-uniapp-mcp-server

Version:

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

117 lines 4.06 kB
{ "id": "Codecite_modern-pig-84", "name": "modern-pig-84", "category": "buttons", "author": "Codecite", "description": "modern-pig-84 组件 (simple, gradient, button, clean, animation, interactive)", "tags": [ "simple", "gradient", "button", "clean", "animation", "interactive" ], "original": { "html": "<button class=\"btn\">Hover</button>", "css": "/* From Uiverse.io by Codecite - Tags: simple, gradient, button, clean */\n.btn {\n transition: all 0.3s ease-in-out;\n font-family: \"Dosis\", sans-serif;\n}\n\n.btn {\n width: 150px;\n height: 60px;\n border-radius: 50px;\n background-image: linear-gradient(135deg, #feb692 0%, #ea5455 100%);\n box-shadow: 0 20px 30px -6px rgba(238, 103, 97, 0.5);\n outline: none;\n cursor: pointer;\n border: none;\n font-size: 24px;\n color: white;\n}\n\n.btn:hover {\n transform: translateY(3px);\n box-shadow: none;\n}\n\n.btn:active {\n opacity: 0.5;\n}", "file_path": "/mnt/persist/workspace/Buttons/Codecite_modern-pig-84.html" }, "uniapp": { "template": "<button class=\"btn\"></button>Hover</button>", "script": "export default {\n name: 'GalaxyModernPig84',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}", "style": "\n/* From Uiverse.io by Codecite - Tags: simple, gradient, button, clean */\n.btn {\n transition: all 0.3s ease-in-out;\n font-family: \"Dosis\", sans-serif;\n}\n\n.btn {\n width: 300rpx;\n height: 120rpx;\n border-radius: 100rpx;\n background-image: linear-gradient(135deg, #feb692 0%, #ea5455 100%);\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 0 40rpx 60rpx -12rpx rgba(238, 103, 97, 0.5);\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n outline: none;\n /* #ifdef H5 */\n cursor: pointer;\n /* #endif */\n border: none;\n font-size: 48rpx;\n color: white;\n}\n\n.btn:hover {\n transform: translateY(6rpx);\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: none;\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 opacity: 0.5;\n}\n", "component_name": "GalaxyModernPig84" }, "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": 570, "render_cost": "medium", "memory_usage": "medium" }, "dependencies": [], "examples": [ { "title": "", "description": "", "code": "" } ], "created_at": "2025-07-31T07:55:32.948Z", "updated_at": "2025-07-31T07:55:32.948Z" }