UNPKG

galaxy-uniapp-mcp-server

Version:

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

117 lines 4.61 kB
{ "id": "Niranjan360_cowardly-robin-27", "name": "cowardly-robin-27", "category": "buttons", "author": "Niranjan360", "description": "cowardly-robin-27 组件 (simple, button, dark, hover effect, animation, interactive)", "tags": [ "simple", "button", "dark", "hover effect", "animation", "interactive" ], "original": { "html": "<button class=\"button\">\n <span>Button</span>\n</button>", "css": "/* From Uiverse.io by Niranjan360 - Tags: simple, button, dark, hover effect */\n.button {\n cursor: pointer;\n background-color: black;\n padding: 8px 25px;\n border: solid 2px gold;\n border-radius: 20px;\n position: relative;\n overflow: hidden;\n transition: 0.1s linear 0.1s;\n}\n.button span {\n color: gold;\n font-weight: 500;\n letter-spacing: 2px;\n position: relative;\n z-index: 2;\n transition: 0.2s linear 0.1s;\n}\n.button::after {\n display: block;\n content: \"\";\n background-color: gold;\n width: 300px;\n height: 300px;\n border-radius: 50%;\n position: absolute;\n top: 100%;\n transform: translateX(-40%);\n transition: 0.2s linear 0.1s;\n z-index: 1;\n}\n.button:hover {\n box-shadow: 0px 0px 20px gold;\n}\n.button:hover::after {\n top: -50%;\n}\n.button:hover span {\n color: black;\n letter-spacing: 4px;\n}", "file_path": "/mnt/persist/workspace/Buttons/Niranjan360_cowardly-robin-27.html" }, "uniapp": { "template": "<button class=\"button\"></button>\n <text>Button</text>\n</button>", "script": "export default {\n name: 'GalaxyCowardlyRobin27',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}", "style": "\n/* From Uiverse.io by Niranjan360 - Tags: simple, button, dark, hover effect */\n.button {\n /* #ifdef H5 */\n cursor: pointer;\n /* #endif */\n background-color: black;\n padding: 16rpx 50rpx;\n border: solid 4rpx gold;\n border-radius: 40rpx;\n position: relative;\n overflow: hidden;\n transition: 0.1s linear 0.1s;\n}\n.button span {\n color: gold;\n font-weight: 500;\n letter-spacing: 4rpx;\n position: relative;\n z-index: 2;\n transition: 0.2s linear 0.1s;\n}\n.button::after {\n display: block;\n content: \"\";\n background-color: gold;\n width: 600rpx;\n height: 600rpx;\n border-radius: 50%;\n position: absolute;\n top: 100%;\n transform: translateX(-40%);\n transition: 0.2s linear 0.1s;\n z-index: 1;\n}\n.button:hover {\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 0rpx 0rpx 40rpx gold;\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n}\n.button:hover::after {\n top: -50%;\n}\n.button:hover span {\n color: black;\n letter-spacing: 8rpx;\n}\n\n", "component_name": "GalaxyCowardlyRobin27" }, "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": 886, "render_cost": "medium", "memory_usage": "medium" }, "dependencies": [], "examples": [ { "title": "", "description": "", "code": "" } ], "created_at": "2025-07-31T07:55:34.161Z", "updated_at": "2025-07-31T07:55:34.161Z" }