UNPKG

galaxy-uniapp-mcp-server

Version:

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

117 lines 5.33 kB
{ "id": "vinodjangid07_brown-turtle-51", "name": "brown-turtle-51", "category": "buttons", "author": "vinodjangid07", "description": "brown-turtle-51 组件 (purple, button, click effect, shop now, animation, gradient)", "tags": [ "purple", "button", "click effect", "shop now", "animation", "gradient" ], "original": { "html": "<button class=\"button\">\n Shop now\n <svg class=\"cartIcon\" viewBox=\"0 0 576 512\"><path d=\"M0 24C0 10.7 10.7 0 24 0H69.5c22 0 41.5 12.8 50.6 32h411c26.3 0 45.5 25 38.6 50.4l-41 152.3c-8.5 31.4-37 53.3-69.5 53.3H170.7l5.4 28.5c2.2 11.3 12.1 19.5 23.6 19.5H488c13.3 0 24 10.7 24 24s-10.7 24-24 24H199.7c-34.6 0-64.3-24.6-70.7-58.5L77.4 54.5c-.7-3.8-4-6.5-7.9-6.5H24C10.7 48 0 37.3 0 24zM128 464a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zm336-48a48 48 0 1 1 0 96 48 48 0 1 1 0-96z\"></path></svg>\n</button>", "css": "/* From Uiverse.io by vinodjangid07 - Tags: purple, button, click effect, shop now */\n.button {\n width: 180px;\n height: 40px;\n background-image: linear-gradient(rgb(214, 202, 254), rgb(158, 129, 254));\n border: none;\n border-radius: 50px;\n color: rgb(255, 255, 255);\n font-weight: 600;\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 5px;\n cursor: pointer;\n box-shadow: 1px 3px 0px rgb(139, 113, 255);\n transition-duration: .3s;\n}\n\n.cartIcon {\n width: 14px;\n height: fit-content;\n}\n\n.cartIcon path {\n fill: white;\n}\n\n.button:active {\n transform: translate(2px ,0px);\n box-shadow: 0px 1px 0px rgb(139, 113, 255);\n padding-bottom: 1px;\n}", "file_path": "/mnt/persist/workspace/Buttons/vinodjangid07_brown-turtle-51.html" }, "uniapp": { "template": "<button class=\"button\"></button>\n Shop now\n <view class=\"cartIcon\" viewBox=\"0 0 576 512\"><path d=\"M0 24C0 10.7 10.7 0 24 0H69.5c22 0 41.5 12.8 50.6 32h411c26.3 0 45.5 25 38.6 50.4l-41 152.3c-8.5 31.4-37 53.3-69.5 53.3H170.7l5.4 28.5c2.2 11.3 12.1 19.5 23.6 19.5H488c13.3 0 24 10.7 24 24s-10.7 24-24 24H199.7c-34.6 0-64.3-24.6-70.7-58.5L77.4 54.5c-.7-3.8-4-6.5-7.9-6.5H24C10.7 48 0 37.3 0 24zM128 464a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zm336-48a48 48 0 1 1 0 96 48 48 0 1 1 0-96z\"></path></view>\n</button>", "script": "export default {\n name: 'GalaxyBrownTurtle51',\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: purple, button, click effect, shop now */\n.button {\n width: 360rpx;\n height: 80rpx;\n background-image: linear-gradient(rgb(214, 202, 254), rgb(158, 129, 254));\n border: none;\n border-radius: 100rpx;\n color: rgb(255, 255, 255);\n font-weight: 600;\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 10rpx;\n /* #ifdef H5 */\n cursor: pointer;\n /* #endif */\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 2rpx 6rpx 0rpx rgb(139, 113, 255);\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n transition-duration: .3s;\n}\n\n.cartIcon {\n width: 28rpx;\n height: fit-content;\n}\n\n.cartIcon path {\n fill: white;\n}\n\n.button:active {\n transform: translate(4rpx ,0rpx);\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 0rpx 2rpx 0rpx rgb(139, 113, 255);\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n padding-bottom: 2rpx;\n}\n\n", "component_name": "GalaxyBrownTurtle51" }, "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": 1174, "render_cost": "medium", "memory_usage": "medium" }, "dependencies": [], "examples": [ { "title": "", "description": "", "code": "" } ], "created_at": "2025-07-31T07:55:38.057Z", "updated_at": "2025-07-31T07:55:38.057Z" }