UNPKG

galaxy-uniapp-mcp-server

Version:

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

108 lines 5.37 kB
{ "id": "boryanakrasteva_splendid-goose-38", "name": "splendid-goose-38", "category": "buttons", "author": "boryanakrasteva", "description": "splendid-goose-38 组件 (button, animation, interactive)", "tags": [ "button", "animation", "interactive" ], "original": { "html": "<button class=\"btn\">\n See more \n <svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 24 24\" height=\"15px\" width=\"15px\" class=\"icon\">\n<path stroke-linejoin=\"round\" stroke-linecap=\"round\" stroke-miterlimit=\"10\" stroke-width=\"1.5\" stroke=\"#292D32\" d=\"M8.91016 19.9201L15.4302 13.4001C16.2002 12.6301 16.2002 11.3701 15.4302 10.6001L8.91016 4.08008\"></path>\n</svg>\n</button>", "css": "/* From Uiverse.io by boryanakrasteva - Tags: button */\n.btn {\n width: 140px;\n height: 40px;\n display: flex;\n align-items: center;\n justify-content: space-evenly;\n text-transform: uppercase;\n letter-spacing: 1px;\n border: none;\n position: relative;\n background-color: transparent;\n transition: .2s cubic-bezier(0.19, 1, 0.22, 1);\n opacity: 0.6;\n}\n\n.btn::after {\n content: '';\n border-bottom: 3px double rgb(214, 207, 113);\n width: 0;\n height: 100%;\n position: absolute;\n margin-top: -5px;\n top: 0;\n left: 5px;\n visibility: hidden;\n opacity: 1;\n transition: .2s linear;\n}\n\n.btn .icon {\n transform: translateX(0%);\n transition: .2s linear;\n animation: attention 1.2s linear infinite;\n}\n\n.btn:hover::after {\n visibility: visible;\n opacity: 0.7;\n width: 90%;\n}\n\n.btn:hover {\n letter-spacing: 2px;\n opacity: 1;\n}\n\n.btn:hover > .icon {\n transform: translateX(30%);\n animation: none;\n}\n\n@keyframes attention {\n 0% {\n transform: translateX(0%);\n }\n\n 50% {\n transform: translateX(30%);\n }\n}", "file_path": "/mnt/persist/workspace/Buttons/boryanakrasteva_splendid-goose-38.html" }, "uniapp": { "template": "<button class=\"btn\"></button>\n See more \n <view xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 24 24\" height=\"15px\" width=\"15px\" class=\"icon\"></view>\n<path stroke-linejoin=\"round\" stroke-linecap=\"round\" stroke-miterlimit=\"10\" stroke-width=\"1.5\" stroke=\"#292D32\" d=\"M8.91016 19.9201L15.4302 13.4001C16.2002 12.6301 16.2002 11.3701 15.4302 10.6001L8.91016 4.08008\"></path>\n</svg>\n</button>", "script": "export default {\n name: 'GalaxySplendidGoose38',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}", "style": "\n/* From Uiverse.io by boryanakrasteva - Tags: button */\n.btn {\n width: 280rpx;\n height: 80rpx;\n display: flex;\n align-items: center;\n justify-content: space-evenly;\n text-transform: uppercase;\n letter-spacing: 2rpx;\n border: none;\n position: relative;\n background-color: transparent;\n transition: .2s cubic-bezier(0.19, 1, 0.22, 1);\n opacity: 0.6;\n}\n\n.btn::after {\n content: '';\n border-bottom: 6rpx double rgb(214, 207, 113);\n width: 0;\n height: 100%;\n position: absolute;\n margin-top: -10rpx;\n top: 0;\n left: 10rpx;\n visibility: hidden;\n opacity: 1;\n transition: .2s linear;\n}\n\n.btn .icon {\n transform: translateX(0%);\n transition: .2s linear;\n animation: attention 1.2s linear infinite;\n}\n\n.btn:hover::after {\n visibility: visible;\n opacity: 0.7;\n width: 90%;\n}\n\n.btn:hover {\n letter-spacing: 4rpx;\n opacity: 1;\n}\n\n.btn:hover > .icon {\n transform: translateX(30%);\n animation: none;\n}\n\n@keyframes attention {\n 0% {\n transform: translateX(0%);\n }\n\n 50% {\n transform: translateX(30%);\n }\n}\n\n", "component_name": "GalaxySplendidGoose38" }, "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": [], "alternatives": [] }, "mp-alipay": { "supported": true, "issues": [], "alternatives": [] }, "app-plus": { "supported": true, "issues": [], "alternatives": [] } }, "performance": { "complexity": "medium", "bundle_size": 1414, "render_cost": "medium", "memory_usage": "medium" }, "dependencies": [], "examples": [ { "title": "", "description": "", "code": "" } ], "created_at": "2025-07-31T07:55:36.020Z", "updated_at": "2025-07-31T07:55:36.020Z" }