UNPKG

galaxy-uniapp-mcp-server

Version:

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

120 lines 5.69 kB
{ "id": "PriyanshuGupta28_modern-snail-2", "name": "modern-snail-2", "category": "buttons", "author": "PriyanshuGupta28", "description": "modern-snail-2 组件 (button, 3d button, cool button, button hover effect, smooth effect, smooth button, animation, gradient, interactive)", "tags": [ "button", "3d button", "cool button", "button hover effect", "smooth effect", "smooth button", "animation", "gradient", "interactive" ], "original": { "html": "<button class=\"button\">\n Button\n</button>", "css": "/* From Uiverse.io by PriyanshuGupta28 - Tags: button, 3d button, cool button, button hover effect , smooth effect , smooth button */\n.button {\n display: inline-block;\n padding: 15px 30px;\n background: linear-gradient(45deg, #00b5ff, #005eff);\n color: #fff;\n font-size: 18px;\n font-weight: bold;\n text-transform: uppercase;\n border: none;\n border-radius: 10px;\n cursor: pointer;\n position: relative;\n overflow: hidden;\n transition: box-shadow 0.3s, transform 0.3s;\n}\n\n.button::before {\n content: \"\";\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: rgba(255, 255, 255, 0.1);\n transform: translateY(100%) rotateX(90deg);\n transition: transform 0.3s ease-in-out;\n}\n\n.button:hover::before {\n transform: translateY(0) rotateX(0);\n}\n\n.button::after {\n content: \"\";\n position: absolute;\n top: -5px;\n left: -5px;\n width: calc(100% + 10px);\n height: calc(100% + 10px);\n border-radius: 15px;\n border: 1px solid #00b5ff;\n z-index: -1;\n}\n\n /* Hover Effect */\n.button:hover {\n box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);\n transform: scale(1.05);\n}\n\n /* Active Effect */\n.button:active {\n box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);\n transform: scale(0.95);\n}", "file_path": "/mnt/persist/workspace/Buttons/PriyanshuGupta28_modern-snail-2.html" }, "uniapp": { "template": "<button class=\"button\"></button>\n Button\n</button>", "script": "export default {\n name: 'GalaxyModernSnail2',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}", "style": "\n/* From Uiverse.io by PriyanshuGupta28 - Tags: button, 3d button, cool button, button hover effect , smooth effect , smooth button */\n.button {\n display: inline-block;\n padding: 30rpx 60rpx;\n background: linear-gradient(45deg, #00b5ff, #005eff);\n color: #fff;\n font-size: 36rpx;\n font-weight: bold;\n text-transform: uppercase;\n border: none;\n border-radius: 20rpx;\n /* #ifdef H5 */\n cursor: pointer;\n /* #endif */\n position: relative;\n overflow: hidden;\n transition: box-shadow 0.3s, transform 0.3s;\n}\n\n.button::before {\n content: \"\";\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: rgba(255, 255, 255, 0.1);\n transform: translateY(100%) rotateX(90deg);\n transition: transform 0.3s ease-in-out;\n}\n\n.button:hover::before {\n transform: translateY(0) rotateX(0);\n}\n\n.button::after {\n content: \"\";\n position: absolute;\n top: -10rpx;\n left: -10rpx;\n width: calc(100% + 20rpx);\n height: calc(100% + 20rpx);\n border-radius: 30rpx;\n border: 2rpx solid #00b5ff;\n z-index: -1;\n}\n\n /* Hover Effect */\n.button:hover {\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 0 16rpx 32rpx rgba(0, 0, 0, 0.2);\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n transform: scale(1.05);\n}\n\n /* Active Effect */\n.button:active {\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 0 8rpx 16rpx rgba(0, 0, 0, 0.2);\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n transform: scale(0.95);\n}\n", "component_name": "GalaxyModernSnail2" }, "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": 1264, "render_cost": "medium", "memory_usage": "medium" }, "dependencies": [], "examples": [ { "title": "", "description": "", "code": "" } ], "created_at": "2025-07-31T07:55:34.345Z", "updated_at": "2025-07-31T07:55:34.345Z" }