UNPKG

galaxy-uniapp-mcp-server

Version:

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

118 lines 5.47 kB
{ "id": "vinodjangid07_angry-dragonfly-89", "name": "angry-dragonfly-89", "category": "buttons", "author": "vinodjangid07", "description": "angry-dragonfly-89 组件 (black, button, hover effect, click effect, create, animation, interactive)", "tags": [ "black", "button", "hover effect", "click effect", "create", "animation", "interactive" ], "original": { "html": "<button class=\"Btn\">\n \n <div class=\"sign\">+</div>\n \n <div class=\"text\">Create</div>\n</button>", "css": "/* From Uiverse.io by vinodjangid07 - Tags: black, button, hover effect, click effect, create */\n.Btn {\n display: flex;\n align-items: center;\n justify-content: flex-start;\n width: 45px;\n height: 45px;\n border: none;\n border-radius: 0px;\n cursor: pointer;\n position: relative;\n overflow: hidden;\n transition-duration: .3s;\n box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.199);\n background-color: black;\n}\n\n/* plus sign */\n.sign {\n width: 100%;\n font-size: 2em;\n color: white;\n transition-duration: .3s;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n/* text */\n.text {\n position: absolute;\n right: 0%;\n width: 0%;\n opacity: 0;\n color: white;\n font-size: 1.2em;\n font-weight: 500;\n transition-duration: .3s;\n}\n/* hover effect on button width */\n.Btn:hover {\n width: 125px;\n border-radius: 0px;\n transition-duration: .3s;\n}\n\n.Btn:hover .sign {\n width: 30%;\n transition-duration: .3s;\n padding-left: 20px;\n}\n/* hover effect button's text */\n.Btn:hover .text {\n opacity: 1;\n width: 70%;\n transition-duration: .3s;\n padding-right: 20px;\n}\n/* button click effect*/\n.Btn:active {\n transform: translate(2px ,2px);\n}", "file_path": "/mnt/persist/workspace/Buttons/vinodjangid07_angry-dragonfly-89.html" }, "uniapp": { "template": "<button class=\"Btn\"></button>\n \n <view class=\"sign\">+</view>\n \n <view class=\"text\">Create</view>\n</button>", "script": "export default {\n name: 'GalaxyAngryDragonfly89',\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: black, button, hover effect, click effect, create */\n.Btn {\n display: flex;\n align-items: center;\n justify-content: flex-start;\n width: 90rpx;\n height: 90rpx;\n border: none;\n border-radius: 0rpx;\n /* #ifdef H5 */\n cursor: pointer;\n /* #endif */\n position: relative;\n overflow: hidden;\n transition-duration: .3s;\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 4rpx 4rpx 20rpx rgba(0, 0, 0, 0.199);\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n background-color: black;\n}\n\n/* plus sign */\n.sign {\n width: 100%;\n font-size: 2em;\n color: white;\n transition-duration: .3s;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n/* text */\n.text {\n position: absolute;\n right: 0%;\n width: 0%;\n opacity: 0;\n color: white;\n font-size: 1.2em;\n font-weight: 500;\n transition-duration: .3s;\n}\n/* hover effect on button width */\n.Btn:hover {\n width: 250rpx;\n border-radius: 0rpx;\n transition-duration: .3s;\n}\n\n.Btn:hover .sign {\n width: 30%;\n transition-duration: .3s;\n padding-left: 40rpx;\n}\n/* hover effect button's text */\n.Btn:hover .text {\n opacity: 1;\n width: 70%;\n transition-duration: .3s;\n padding-right: 40rpx;\n}\n/* button click effect*/\n.Btn:active {\n transform: translate(4rpx ,4rpx);\n}\n", "component_name": "GalaxyAngryDragonfly89" }, "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": 1259, "render_cost": "medium", "memory_usage": "medium" }, "dependencies": [], "examples": [ { "title": "", "description": "", "code": "" } ], "created_at": "2025-07-31T07:55:38.023Z", "updated_at": "2025-07-31T07:55:38.023Z" }