UNPKG

galaxy-uniapp-mcp-server

Version:

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

114 lines 5.84 kB
{ "id": "Mohsinech_tidy-yak-66", "name": "tidy-yak-66", "category": "buttons", "author": "Mohsinech", "description": "tidy-yak-66 组件 (black, button, click, animation, interactive)", "tags": [ "black", "button", "click", "animation", "interactive" ], "original": { "html": "<div class=\"btn\"><span data-text=\"Click me\">Click me</span></div>", "css": "/* From Uiverse.io by Mohsinech - Tags: black, button, click */\n.btn {\n background: transparent;\n border: 1px solid #141414;\n outline: none;\n padding: 12px 40px;\n height: 60px;\n border-radius: 100px;\n overflow: hidden;\n transform: scaleX(1);\n transition: transform 0.5s cubic-bezier(0.4, 0, 0, 1);\n display: flex;\n justify-content: center;\n align-items: center;\n cursor: pointer;\n}\n\n.btn:hover {\n animation: animate-scaleX 0.6s cubic-bezier(0.4, 0, 0, 1);\n background: transparent;\n}\n\n.btn::after {\n content: \"\";\n position: absolute;\n left: 0;\n bottom: 0;\n background: black;\n transition: transform 0.5s cubic-bezier(0.4, 0, 0, 1),\n border-radius 0.5s cubic-bezier(0.4, 0, 0, 1);\n width: 100%;\n height: 100%;\n border-radius: 50% 50% 0 0;\n transform: translateY(100%);\n}\n\n.btn:hover::after {\n transform: translateY(0%);\n border-radius: 0;\n}\n\n.btn span {\n font-size: 20px;\n font-weight: 500;\n overflow: hidden;\n position: relative;\n color: black;\n}\n\n.btn span:after {\n width: 100%;\n height: 100%;\n transition: transform 0.5s cubic-bezier(0.4, 0, 0, 1);\n content: attr(data-text);\n display: flex;\n justify-content: center;\n align-items: center;\n position: absolute;\n left: 50%;\n bottom: 0;\n z-index: 1;\n transform: translate(-50%, 100%);\n color: white;\n}\n.btn:hover span:after {\n transform: translate(-50%, 0);\n}\n\n.btn:focus {\n outline: none;\n}\n\n@keyframes animate-scaleX {\n 0% {\n transform: scaleX(1);\n }\n 50% {\n transform: scaleX(1.05);\n }\n 100% {\n transform: scaleX(1);\n }\n}", "file_path": "/mnt/persist/workspace/Buttons/Mohsinech_tidy-yak-66.html" }, "uniapp": { "template": "<view class=\"btn\"><text data-text=\"Click me\">Click me</text></view>", "script": "export default {\n name: 'GalaxyTidyYak66',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}", "style": "\n/* From Uiverse.io by Mohsinech - Tags: black, button, click */\n.btn {\n background: transparent;\n border: 2rpx solid #141414;\n outline: none;\n padding: 24rpx 80rpx;\n height: 120rpx;\n border-radius: 200rpx;\n overflow: hidden;\n transform: scaleX(1);\n transition: transform 0.5s cubic-bezier(0.4, 0, 0, 1);\n display: flex;\n justify-content: center;\n align-items: center;\n /* #ifdef H5 */\n cursor: pointer;\n /* #endif */\n}\n\n.btn:hover {\n animation: animate-scaleX 0.6s cubic-bezier(0.4, 0, 0, 1);\n background: transparent;\n}\n\n.btn::after {\n content: \"\";\n position: absolute;\n left: 0;\n bottom: 0;\n background: black;\n transition: transform 0.5s cubic-bezier(0.4, 0, 0, 1),\n border-radius 0.5s cubic-bezier(0.4, 0, 0, 1);\n width: 100%;\n height: 100%;\n border-radius: 50% 50% 0 0;\n transform: translateY(100%);\n}\n\n.btn:hover::after {\n transform: translateY(0%);\n border-radius: 0;\n}\n\n.btn span {\n font-size: 40rpx;\n font-weight: 500;\n overflow: hidden;\n position: relative;\n color: black;\n}\n\n.btn span:after {\n width: 100%;\n height: 100%;\n transition: transform 0.5s cubic-bezier(0.4, 0, 0, 1);\n content: attr(data-text);\n display: flex;\n justify-content: center;\n align-items: center;\n position: absolute;\n left: 50%;\n bottom: 0;\n z-index: 1;\n transform: translate(-50%, 100%);\n color: white;\n}\n.btn:hover span:after {\n transform: translate(-50%, 0);\n}\n\n.btn:focus {\n outline: none;\n}\n\n@keyframes animate-scaleX {\n 0% {\n transform: scaleX(1);\n }\n 50% {\n transform: scaleX(1.05);\n }\n 100% {\n transform: scaleX(1);\n }\n}\n\n", "component_name": "GalaxyTidyYak66" }, "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": [ "不支持 cursor 属性" ], "alternatives": [] }, "mp-alipay": { "supported": true, "issues": [ "不支持 cursor 属性" ], "alternatives": [] }, "app-plus": { "supported": true, "issues": [], "alternatives": [] } }, "performance": { "complexity": "medium", "bundle_size": 1615, "render_cost": "medium", "memory_usage": "medium" }, "dependencies": [], "examples": [ { "title": "", "description": "", "code": "" } ], "created_at": "2025-07-31T07:55:33.999Z", "updated_at": "2025-07-31T07:55:33.999Z" }