UNPKG

galaxy-uniapp-mcp-server

Version:

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

119 lines 5.68 kB
{ "id": "vinodjangid07_neat-panther-45", "name": "neat-panther-45", "category": "buttons", "author": "vinodjangid07", "description": "neat-panther-45 组件 (simple, animation, button, hover, hover effect, open, file, interactive)", "tags": [ "simple", "animation", "button", "hover", "hover effect", "open", "file", "interactive" ], "original": { "html": "<button class=\"open-file\">\n <span class=\"file-wrapper\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 71 67\">\n <path stroke-width=\"5\" stroke=\"black\" d=\"M41.7322 11.7678L42.4645 12.5H43.5H68.5V64.5H2.5V2.5H32.4645L41.7322 11.7678Z\"></path>\n </svg>\n <span class=\"file-front\"></span>\n </span>\n Open file\n</button>", "css": "/* From Uiverse.io by vinodjangid07 - Tags: simple, animation, button, hover, hover effect, open, file */\n.open-file {\n background-color: rgb(255, 255, 255);\n width: 140px;\n height: 45px;\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 20px;\n border: 1px solid rgb(217, 217, 217);\n font-size: 15px;\n cursor: pointer;\n transition: all 0.3s;\n border-radius: 10px;\n}\n.file-wrapper {\n width: 15px;\n height: auto;\n display: flex;\n align-items: flex-end;\n justify-content: center;\n position: relative;\n}\n.file-wrapper svg {\n width: 100%;\n}\n.file-front {\n position: absolute;\n width: 100%;\n height: 70%;\n border: 2px solid rgb(0, 0, 0);\n border-bottom: 1px solid black;\n transform: skewX(-40deg);\n transform-origin: bottom right;\n background-color: white;\n transition: all 0.5s;\n bottom: 0;\n}\n.open-file:hover .file-front {\n height: 50%;\n transform-origin: bottom right;\n transform: skewX(-55deg);\n}\n.open-file:hover {\n box-shadow: 0px 10px 10px rgba(0, 0, 0, 0.048);\n}", "file_path": "/mnt/persist/workspace/Buttons/vinodjangid07_neat-panther-45.html" }, "uniapp": { "template": "<button class=\"open-file\"></button>\n <text class=\"file-wrapper\"></text>\n <view xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 71 67\"></view>\n <path stroke-width=\"5\" stroke=\"black\" d=\"M41.7322 11.7678L42.4645 12.5H43.5H68.5V64.5H2.5V2.5H32.4645L41.7322 11.7678Z\"></path>\n </svg>\n <text class=\"file-front\"></text>\n </span>\n Open file\n</button>", "script": "export default {\n name: 'GalaxyNeatPanther45',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}", "style": "\n/* From Uiverse.io by vinodjangid07 - Tags: simple, animation, button, hover, hover effect, open, file */\n.open-file {\n background-color: rgb(255, 255, 255);\n width: 280rpx;\n height: 90rpx;\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 40rpx;\n border: 2rpx solid rgb(217, 217, 217);\n font-size: 30rpx;\n /* #ifdef H5 */\n cursor: pointer;\n /* #endif */\n transition: all 0.3s;\n border-radius: 20rpx;\n}\n.file-wrapper {\n width: 30rpx;\n height: auto;\n display: flex;\n align-items: flex-end;\n justify-content: center;\n position: relative;\n}\n.file-wrapper svg {\n width: 100%;\n}\n.file-front {\n position: absolute;\n width: 100%;\n height: 70%;\n border: 4rpx solid rgb(0, 0, 0);\n border-bottom: 2rpx solid black;\n transform: skewX(-40deg);\n transform-origin: bottom right;\n background-color: white;\n transition: all 0.5s;\n bottom: 0;\n}\n.open-file:hover .file-front {\n height: 50%;\n transform-origin: bottom right;\n transform: skewX(-55deg);\n}\n.open-file:hover {\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 0rpx 20rpx 20rpx rgba(0, 0, 0, 0.048);\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n}\n\n", "component_name": "GalaxyNeatPanther45" }, "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": 1375, "render_cost": "medium", "memory_usage": "medium" }, "dependencies": [], "examples": [ { "title": "", "description": "", "code": "" } ], "created_at": "2025-07-31T07:55:38.177Z", "updated_at": "2025-07-31T07:55:38.177Z" }