UNPKG

galaxy-uniapp-mcp-server

Version:

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

115 lines 4.88 kB
{ "id": "Boosterrohit_smooth-swan-20", "name": "smooth-swan-20", "category": "buttons", "author": "Boosterrohit", "description": "smooth-swan-20 组件 (active, about me, animation, gradient)", "tags": [ "active", "about me", "animation", "gradient" ], "original": { "html": "<button class=\"box\">\n <p class=\"text-button\">Button</p>\n</button>", "css": "/* From Uiverse.io by Boosterrohit - Tags: active, about me */\n.box {\n position: relative;\n width: 120px;\n height: 45px;\n overflow: hidden;\n border: none;\n background-color: rgb(218, 203, 177);\n font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;\n border-top-left-radius: 20px;\n cursor: pointer;\n border-bottom-right-radius: 20px;\n box-shadow: 0 0 10px rgb(104, 134, 218);\n}\n\n.box::before {\n content: \"\";\n position: absolute;\n width: 15px;\n height: 200px;\n margin-top: -92px;\n background: linear-gradient(#00ccff,#d400d4);\n animation: amm 4s linear infinite;\n}\n\n@keyframes amm {\n 0% {\n transform: rotate(0deg);\n }\n\n 100% {\n transform: rotate(360deg);\n }\n}\n\n.text-button {\n position: relative;\n font-size: 1.2rem;\n font-weight: bold;\n z-index: 1;\n}\n\n.box::after {\n content: \"\";\n position: absolute;\n inset: 4px;\n background-color: rgb(218, 203, 177);\n border-top-left-radius: 20px;\n border-bottom-right-radius: 20px;\n}", "file_path": "/mnt/persist/workspace/Buttons/Boosterrohit_smooth-swan-20.html" }, "uniapp": { "template": "<button class=\"box\"></button>\n <text class=\"text-button\">Button</text>\n</button>", "script": "export default {\n name: 'GalaxySmoothSwan20',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}", "style": "\n/* From Uiverse.io by Boosterrohit - Tags: active, about me */\n.box {\n position: relative;\n width: 240rpx;\n height: 90rpx;\n overflow: hidden;\n border: none;\n background-color: rgb(218, 203, 177);\n font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;\n border-top-left-radius: 40rpx;\n /* #ifdef H5 */\n cursor: pointer;\n /* #endif */\n border-bottom-right-radius: 40rpx;\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 0 0 20rpx rgb(104, 134, 218);\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n}\n\n.box::before {\n content: \"\";\n position: absolute;\n width: 30rpx;\n height: 400rpx;\n margin-top: -184rpx;\n background: linear-gradient(#00ccff,#d400d4);\n animation: amm 4s linear infinite;\n}\n\n@keyframes amm {\n 0% {\n transform: rotate(0deg);\n }\n\n 100% {\n transform: rotate(360deg);\n }\n}\n\n.text-button {\n position: relative;\n font-size: 1.2rem;\n font-weight: bold;\n z-index: 1;\n}\n\n.box::after {\n content: \"\";\n position: absolute;\n inset: 8rpx;\n background-color: rgb(218, 203, 177);\n border-top-left-radius: 40rpx;\n border-bottom-right-radius: 40rpx;\n}\n", "component_name": "GalaxySmoothSwan20" }, "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": 1036, "render_cost": "medium", "memory_usage": "medium" }, "dependencies": [], "examples": [ { "title": "", "description": "", "code": "" } ], "created_at": "2025-07-31T07:55:32.806Z", "updated_at": "2025-07-31T07:55:32.806Z" }