UNPKG

galaxy-uniapp-mcp-server

Version:

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

116 lines 5.53 kB
{ "id": "shadowmurphy_fluffy-dragonfly-11", "name": "fluffy-dragonfly-11", "category": "buttons", "author": "shadowmurphy", "description": "fluffy-dragonfly-11 组件 (button, active, animated, animation, gradient)", "tags": [ "button", "active", "animated", "animation", "gradient" ], "original": { "html": "<button class=\"button\">\n <span class=\"inner-circle\"></span>\n <span class=\"text\">Button</span>\n</button>", "css": "/* From Uiverse.io by shadowmurphy - Tags: button, active, animated */\n.button * {\n cursor: pointer;\n}\n\n.button {\n position: relative;\n width: 160px;\n height: 50px;\n background: none;\n border-radius: 8px;\n outline: none;\n font-size: 19px;\n font-family: \"Montserrat\", sans-serif;\n overflow: hidden;\n box-shadow: rgba(151, 65, 252, 0.2) 0 15px 30px -5px;\n text-decoration: none;\n border: none;\n display: flex;\n justify-content: center;\n align-items: center;\n transition: all 0.4s;\n}\n\n.button::before {\n content: '';\n position: absolute;\n width: 200%;\n height: 100%;\n background-image: linear-gradient(to right, #AF40FF, #5B42F3, #006eeb, #42a0f3, #AF40FF);\n background-size: 200% 100%;\n background-position: 100% 0;\n animation: moveGradient 3s linear infinite;\n z-index: -1;\n}\n\n.inner-circle {\n position: absolute;\n width: 94%;\n height: 84%;\n background-color: rgb(2, 3, 20);\n border-radius: 6px;\n opacity: 1;\n transition: opacity 0.2s;\n}\n\n.text {\n z-index: 3;\n color: white;\n cursor: pointer;\n}\n\n@keyframes moveGradient {\n 0% {\n background-position: 100% 0;\n }\n\n 100% {\n background-position: -100% 0;\n }\n}\n\n.button:active {\n transform: scale(0.9);\n}", "file_path": "/mnt/persist/workspace/Buttons/shadowmurphy_fluffy-dragonfly-11.html" }, "uniapp": { "template": "<button class=\"button\"></button>\n <text class=\"inner-circle\"></text>\n <text class=\"text\">Button</text>\n</button>", "script": "export default {\n name: 'GalaxyFluffyDragonfly11',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}", "style": "\n/* From Uiverse.io by shadowmurphy - Tags: button, active, animated */\n.button * {\n /* #ifdef H5 */\n cursor: pointer;\n /* #endif */\n}\n\n.button {\n position: relative;\n width: 320rpx;\n height: 100rpx;\n background: none;\n border-radius: 16rpx;\n outline: none;\n font-size: 38rpx;\n font-family: \"Montserrat\", sans-serif;\n overflow: hidden;\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: rgba(151, 65, 252, 0.2) 0 30rpx 60rpx -10rpx;\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n text-decoration: none;\n border: none;\n display: flex;\n justify-content: center;\n align-items: center;\n transition: all 0.4s;\n}\n\n.button::before {\n content: '';\n position: absolute;\n width: 200%;\n height: 100%;\n background-image: linear-gradient(to right, #AF40FF, #5B42F3, #006eeb, #42a0f3, #AF40FF);\n background-size: 200% 100%;\n background-position: 100% 0;\n animation: moveGradient 3s linear infinite;\n z-index: -1;\n}\n\n.inner-circle {\n position: absolute;\n width: 94%;\n height: 84%;\n background-color: rgb(2, 3, 20);\n border-radius: 12rpx;\n opacity: 1;\n transition: opacity 0.2s;\n}\n\n.text {\n z-index: 3;\n color: white;\n /* #ifdef H5 */\n cursor: pointer;\n /* #endif */\n}\n\n@keyframes moveGradient {\n 0% {\n background-position: 100% 0;\n }\n\n 100% {\n background-position: -100% 0;\n }\n}\n\n.button:active {\n transform: scale(0.9);\n}\n", "component_name": "GalaxyFluffyDragonfly11" }, "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": 1304, "render_cost": "medium", "memory_usage": "medium" }, "dependencies": [], "examples": [ { "title": "", "description": "", "code": "" } ], "created_at": "2025-07-31T07:55:37.817Z", "updated_at": "2025-07-31T07:55:37.817Z" }