UNPKG

galaxy-uniapp-mcp-server

Version:

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

111 lines 4.46 kB
{ "id": "SanketSuryawanshi_smooth-mouse-22", "name": "smooth-mouse-22", "category": "buttons", "author": "SanketSuryawanshi", "description": "smooth-mouse-22 组件 (button, interactive)", "tags": [ "button", "interactive" ], "original": { "html": "<div class=\"main_div\">\n <button>Sign up</button>\n</div>", "css": "/* From Uiverse.io by SanketSuryawanshi - Tags: button */\n.main_div {\n --color: #3992e6;\n position: relative;\n z-index: 1;\n}\n\n.main_div::before {\n content: '';\n position: absolute;\n width: 30px;\n height: 30px;\n background: transparent;\n top: -7px;\n left: -7px;\n z-index: -5;\n border-top: 3px solid var(--color);\n border-left: 3px solid var(--color);\n transition: 0.5s;\n}\n\n.main_div::after {\n content: '';\n position: absolute;\n width: 30px;\n height: 30px;\n background: transparent;\n bottom: -7px;\n right: -7px;\n z-index: -5;\n border-right: 3px solid var(--color);\n border-bottom: 3px solid var(--color);\n transition: 0.5s;\n}\n\n.main_div:hover::before {\n width: 100%;\n height: 100%;\n}\n\n.main_div:hover::after {\n width: 100%;\n height: 100%;\n}\n\n.main_div button {\n padding: 0.7em 2em;\n font-size: 16px;\n background: #222222;\n color: #fff;\n border: none;\n cursor: pointer;\n font-family: inherit;\n}", "file_path": "/mnt/persist/workspace/Buttons/SanketSuryawanshi_smooth-mouse-22.html" }, "uniapp": { "template": "<view class=\"main_div\"></view>\n <button></button>Sign up</button>\n</div>", "script": "export default {\n name: 'GalaxySmoothMouse22',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}", "style": "\n/* From Uiverse.io by SanketSuryawanshi - Tags: button */\n.main_div {\n --color: #3992e6;\n position: relative;\n z-index: 1;\n}\n\n.main_div::before {\n content: '';\n position: absolute;\n width: 60rpx;\n height: 60rpx;\n background: transparent;\n top: -14rpx;\n left: -14rpx;\n z-index: -5;\n border-top: 6rpx solid var(--color);\n border-left: 6rpx solid var(--color);\n transition: 0.5s;\n}\n\n.main_div::after {\n content: '';\n position: absolute;\n width: 60rpx;\n height: 60rpx;\n background: transparent;\n bottom: -14rpx;\n right: -14rpx;\n z-index: -5;\n border-right: 6rpx solid var(--color);\n border-bottom: 6rpx solid var(--color);\n transition: 0.5s;\n}\n\n.main_div:hover::before {\n width: 100%;\n height: 100%;\n}\n\n.main_div:hover::after {\n width: 100%;\n height: 100%;\n}\n\n.main_div button {\n padding: 0.7em 2em;\n font-size: 32rpx;\n background: #222222;\n color: #fff;\n border: none;\n /* #ifdef H5 */\n cursor: pointer;\n /* #endif */\n font-family: inherit;\n}\n", "component_name": "GalaxySmoothMouse22" }, "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": [ "不支持 cursor 属性" ], "alternatives": [] }, "mp-alipay": { "supported": true, "issues": [ "不支持 cursor 属性" ], "alternatives": [] }, "app-plus": { "supported": true, "issues": [], "alternatives": [] } }, "performance": { "complexity": "low", "bundle_size": 951, "render_cost": "low", "memory_usage": "low" }, "dependencies": [], "examples": [ { "title": "", "description": "", "code": "" } ], "created_at": "2025-07-31T07:55:34.520Z", "updated_at": "2025-07-31T07:55:34.520Z" }