UNPKG

galaxy-uniapp-mcp-server

Version:

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

113 lines 6.59 kB
{ "id": "Yaya12085_strong-earwig-8", "name": "strong-earwig-8", "category": "buttons", "author": "Yaya12085", "description": "strong-earwig-8 组件 (button, interactive)", "tags": [ "button", "interactive" ], "original": { "html": "<button class=\"download\">\n Download\n <span class=\"tooltip\">10Mo</span>\n</button>", "css": "/* From Uiverse.io by Yaya12085 - Tags: button */\n.download {\n background: none;\n border: 0;\n box-sizing: border-box;\n margin: 1em;\n padding: 1em 2em;\n color: #039be5;\n background-color: #fff;\n font-size: inherit;\n font-weight: 700;\n position: relative;\n vertical-align: middle;\n border-radius: 4px;\n box-shadow: 0px 20px 30px -15px rgba(0, 0, 0, 0.226);\n cursor: pointer;\n}\n\n.download::before, .download::after {\n box-sizing: inherit;\n border-radius: inherit;\n content: \"\";\n position: absolute;\n width: 100%;\n height: 100%;\n}\n\n.download {\n transition: color 0.25s;\n}\n\n.download::before, .download::after {\n border: 2px solid transparent;\n width: 0;\n height: 0;\n}\n\n.download::before {\n top: 0;\n left: 0;\n}\n\n.download::after {\n bottom: 0;\n right: 0;\n}\n\n.download:focus {\n color: #039be5;\n}\n\n.download:focus::before, .download:focus::after {\n width: 100%;\n height: 100%;\n}\n\n.download:focus::before {\n border-top-color: #039be5;\n border-right-color: #039be5;\n transition: width 0.25s ease-out, height 0.25s ease-out 0.25s;\n}\n\n.download:focus::after {\n border-bottom-color: #039be5;\n border-left-color: #039be5;\n transition: border-color 0s ease-out 0.5s, width 0.25s ease-out 0.5s, height 0.25s ease-out 0.75s;\n}\n\n.download .tooltip {\n visibility: hidden;\n width: 120px;\n background-color: #039be5;\n color: #fff;\n text-align: center;\n border-radius: 6px;\n padding: 5px 0;\n position: absolute;\n z-index: 1;\n bottom: 120%;\n left: 50%;\n margin-left: -60px;\n}\n\n.download .tooltip::after {\n content: \"\";\n position: absolute;\n top: 100%;\n left: 50%;\n margin-left: -5px;\n border-width: 5px;\n border-style: solid;\n border-color: #039be5 transparent transparent transparent;\n}\n\n.download:hover:not(:focus) .tooltip {\n visibility: visible;\n}", "file_path": "/mnt/persist/workspace/Buttons/Yaya12085_strong-earwig-8.html" }, "uniapp": { "template": "<button class=\"download\"></button>\n Download\n <text class=\"tooltip\">10Mo</text>\n</button>", "script": "export default {\n name: 'GalaxyStrongEarwig8',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}", "style": "\n/* From Uiverse.io by Yaya12085 - Tags: button */\n.download {\n background: none;\n border: 0;\n box-sizing: border-box;\n margin: 1em;\n padding: 1em 2em;\n color: #039be5;\n background-color: #fff;\n font-size: inherit;\n font-weight: 700;\n position: relative;\n vertical-align: middle;\n border-radius: 8rpx;\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 0rpx 40rpx 60rpx -30rpx rgba(0, 0, 0, 0.226);\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n /* #ifdef H5 */\n cursor: pointer;\n /* #endif */\n}\n\n.download::before, .download::after {\n box-sizing: inherit;\n border-radius: inherit;\n content: \"\";\n position: absolute;\n width: 100%;\n height: 100%;\n}\n\n.download {\n transition: color 0.25s;\n}\n\n.download::before, .download::after {\n border: 4rpx solid transparent;\n width: 0;\n height: 0;\n}\n\n.download::before {\n top: 0;\n left: 0;\n}\n\n.download::after {\n bottom: 0;\n right: 0;\n}\n\n.download:focus {\n color: #039be5;\n}\n\n.download:focus::before, .download:focus::after {\n width: 100%;\n height: 100%;\n}\n\n.download:focus::before {\n border-top-color: #039be5;\n border-right-color: #039be5;\n transition: width 0.25s ease-out, height 0.25s ease-out 0.25s;\n}\n\n.download:focus::after {\n border-bottom-color: #039be5;\n border-left-color: #039be5;\n transition: border-color 0s ease-out 0.5s, width 0.25s ease-out 0.5s, height 0.25s ease-out 0.75s;\n}\n\n.download .tooltip {\n visibility: hidden;\n width: 240rpx;\n background-color: #039be5;\n color: #fff;\n text-align: center;\n border-radius: 12rpx;\n padding: 10rpx 0;\n position: absolute;\n z-index: 1;\n bottom: 120%;\n left: 50%;\n margin-left: -120rpx;\n}\n\n.download .tooltip::after {\n content: \"\";\n position: absolute;\n top: 100%;\n left: 50%;\n margin-left: -10rpx;\n border-width: 10rpx;\n border-style: solid;\n border-color: #039be5 transparent transparent transparent;\n}\n\n.download:hover:not(:focus) .tooltip {\n visibility: visible;\n}\n", "component_name": "GalaxyStrongEarwig8" }, "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": "low", "bundle_size": 1873, "render_cost": "low", "memory_usage": "low" }, "dependencies": [], "examples": [ { "title": "", "description": "", "code": "" } ], "created_at": "2025-07-31T07:55:35.256Z", "updated_at": "2025-07-31T07:55:35.256Z" }