UNPKG

galaxy-uniapp-mcp-server

Version:

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

114 lines 4.65 kB
{ "id": "reshades_purple-otter-7", "name": "purple-otter-7", "category": "buttons", "author": "reshades", "description": "purple-otter-7 组件 (button, animated, glass button, animation, interactive)", "tags": [ "button", "animated", "glass button", "animation", "interactive" ], "original": { "html": "<button class=\"button\">\n <p class=\"text\">Button</p>\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 200 200\" class=\"svg\">\n <path class=\"path\" transform=\"translate(100 100)\" d=\"M56.8,-23.9C61.7,-3.2,45.7,18.8,26.5,31.7C7.2,44.6,-15.2,48.2,-35.5,36.5C-55.8,24.7,-73.9,-2.6,-67.6,-25.2C-61.3,-47.7,-30.6,-65.6,-2.4,-64.8C25.9,-64.1,51.8,-44.7,56.8,-23.9Z\" fill=\"#4073ff\"></path>\n </svg>\n</button>", "css": "/* From Uiverse.io by reshades - Tags: button, animated, glass button */\n.button {\n width: 10em;\n height: 3em;\n background-color: #e8e8e810;\n color: #e8e8e8;\n border: 1.2px solid #e8e8e870;\n border-radius: 15px;\n transition: all 0.5s ease;\n}\n\n.button:hover {\n border: 1.2px solid #4073ff;\n background-color: #00000000;\n}\n\n.text {\n margin-top: 10px\n}\n\n.svg {\n filter: blur(20px);\n z-index: -1;\n opacity: 70%;\n width: 6em;\n animation: anim 3s infinite;\n}\n\n@keyframes anim {\n 0% {\n transform: translateY(-60px);\n }\n\n 50% {\n transform: translateY(-35px);\n }\n\n 100% {\n transform: translateY(-60px);\n }\n}", "file_path": "/mnt/persist/workspace/Buttons/reshades_purple-otter-7.html" }, "uniapp": { "template": "<button class=\"button\"></button>\n <text class=\"text\">Button</text>\n <view xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 200 200\" class=\"svg\"></view>\n <path class=\"path\" transform=\"translate(100 100)\" d=\"M56.8,-23.9C61.7,-3.2,45.7,18.8,26.5,31.7C7.2,44.6,-15.2,48.2,-35.5,36.5C-55.8,24.7,-73.9,-2.6,-67.6,-25.2C-61.3,-47.7,-30.6,-65.6,-2.4,-64.8C25.9,-64.1,51.8,-44.7,56.8,-23.9Z\" fill=\"#4073ff\"></path>\n </svg>\n</button>", "script": "export default {\n name: 'GalaxyPurpleOtter7',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}", "style": "\n/* From Uiverse.io by reshades - Tags: button, animated, glass button */\n.button {\n width: 10em;\n height: 3em;\n background-color: #e8e8e810;\n color: #e8e8e8;\n border: 2.4rpx solid #e8e8e870;\n border-radius: 30rpx;\n transition: all 0.5s ease;\n}\n\n.button:hover {\n border: 2.4rpx solid #4073ff;\n background-color: #00000000;\n}\n\n.text {\n margin-top: 20rpx\n}\n\n.svg {\n \n z-index: -1;\n opacity: 70%;\n width: 6em;\n animation: anim 3s infinite;\n}\n\n@keyframes anim {\n 0% {\n transform: translateY(-120rpx);\n }\n\n 50% {\n transform: translateY(-70rpx);\n }\n\n 100% {\n transform: translateY(-120rpx);\n }\n}\n", "component_name": "GalaxyPurpleOtter7" }, "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": [ "不支持 filter 属性" ], "alternatives": [] }, "mp-alipay": { "supported": true, "issues": [ "不支持 filter 属性" ], "alternatives": [] }, "app-plus": { "supported": true, "issues": [], "alternatives": [] } }, "performance": { "complexity": "medium", "bundle_size": 1037, "render_cost": "medium", "memory_usage": "medium" }, "dependencies": [], "examples": [ { "title": "", "description": "", "code": "" } ], "created_at": "2025-07-31T07:55:37.648Z", "updated_at": "2025-07-31T07:55:37.648Z" }