galaxy-uniapp-mcp-server
Version:
Galaxy组件库到UniApp组件转换MCP服务器 - 支持跨平台组件转换、兼容性分析和项目集成
118 lines • 6.05 kB
JSON
{
"id": "vinodjangid07_tame-cobra-18",
"name": "tame-cobra-18",
"category": "buttons",
"author": "vinodjangid07",
"description": "tame-cobra-18 组件 (animation, button, hover, trash, delete, transition, hover effect, bin, interactive)",
"tags": [
"animation",
"button",
"hover",
"trash",
"delete",
"transition",
"hover effect",
"bin",
"interactive"
],
"original": {
"html": "<button class=\"bin-button\">\n <svg class=\"bin-top\" viewBox=\"0 0 39 7\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <line y1=\"5\" x2=\"39\" y2=\"5\" stroke=\"white\" stroke-width=\"4\"></line>\n <line x1=\"12\" y1=\"1.5\" x2=\"26.0357\" y2=\"1.5\" stroke=\"white\" stroke-width=\"3\"></line>\n </svg>\n <svg class=\"bin-bottom\" viewBox=\"0 0 33 39\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <mask id=\"path-1-inside-1_8_19\" fill=\"white\">\n <path d=\"M0 0H33V35C33 37.2091 31.2091 39 29 39H4C1.79086 39 0 37.2091 0 35V0Z\"></path>\n </mask>\n <path d=\"M0 0H33H0ZM37 35C37 39.4183 33.4183 43 29 43H4C-0.418278 43 -4 39.4183 -4 35H4H29H37ZM4 43C-0.418278 43 -4 39.4183 -4 35V0H4V35V43ZM37 0V35C37 39.4183 33.4183 43 29 43V35V0H37Z\" fill=\"white\" mask=\"url(#path-1-inside-1_8_19)\"></path>\n <path d=\"M12 6L12 29\" stroke=\"white\" stroke-width=\"4\"></path>\n <path d=\"M21 6V29\" stroke=\"white\" stroke-width=\"4\"></path>\n </svg>\n</button>",
"css": "/* From Uiverse.io by vinodjangid07 - Tags: animation, button, hover, trash, delete, transition, hover effect, bin */\n.bin-button {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n width: 55px;\n height: 55px;\n border-radius: 15px;\n background-color: rgb(255, 95, 95);\n cursor: pointer;\n border: 3px solid rgb(255, 201, 201);\n transition-duration: 0.3s;\n}\n.bin-bottom {\n width: 15px;\n}\n.bin-top {\n width: 17px;\n transform-origin: right;\n transition-duration: 0.3s;\n}\n.bin-button:hover .bin-top {\n transform: rotate(45deg);\n}\n.bin-button:hover {\n background-color: rgb(255, 0, 0);\n}\n.bin-button:active {\n transform: scale(0.9);\n}",
"file_path": "/mnt/persist/workspace/Buttons/vinodjangid07_tame-cobra-18.html"
},
"uniapp": {
"template": "<button class=\"bin-button\"></button>\n <view class=\"bin-top\" viewBox=\"0 0 39 7\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"></view>\n <line y1=\"5\" x2=\"39\" y2=\"5\" stroke=\"white\" stroke-width=\"4\"></line>\n <line x1=\"12\" y1=\"1.5\" x2=\"26.0357\" y2=\"1.5\" stroke=\"white\" stroke-width=\"3\"></line>\n </svg>\n <view class=\"bin-bottom\" viewBox=\"0 0 33 39\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"></view>\n <mask id=\"path-1-inside-1_8_19\" fill=\"white\">\n <path d=\"M0 0H33V35C33 37.2091 31.2091 39 29 39H4C1.79086 39 0 37.2091 0 35V0Z\"></path>\n </mask>\n <path d=\"M0 0H33H0ZM37 35C37 39.4183 33.4183 43 29 43H4C-0.418278 43 -4 39.4183 -4 35H4H29H37ZM4 43C-0.418278 43 -4 39.4183 -4 35V0H4V35V43ZM37 0V35C37 39.4183 33.4183 43 29 43V35V0H37Z\" fill=\"white\" mask=\"url(#path-1-inside-1_8_19)\"></path>\n <path d=\"M12 6L12 29\" stroke=\"white\" stroke-width=\"4\"></path>\n <path d=\"M21 6V29\" stroke=\"white\" stroke-width=\"4\"></path>\n </svg>\n</button>",
"script": "export default {\n name: 'GalaxyTameCobra18',\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: animation, button, hover, trash, delete, transition, hover effect, bin */\n.bin-button {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n width: 110rpx;\n height: 110rpx;\n border-radius: 30rpx;\n background-color: rgb(255, 95, 95);\n /* #ifdef H5 */\n cursor: pointer;\n /* #endif */\n border: 6rpx solid rgb(255, 201, 201);\n transition-duration: 0.3s;\n}\n.bin-bottom {\n width: 30rpx;\n}\n.bin-top {\n width: 34rpx;\n transform-origin: right;\n transition-duration: 0.3s;\n}\n.bin-button:hover .bin-top {\n transform: rotate(45deg);\n}\n.bin-button:hover {\n background-color: rgb(255, 0, 0);\n}\n.bin-button:active {\n transform: scale(0.9);\n}\n\n",
"component_name": "GalaxyTameCobra18"
},
"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": 1628,
"render_cost": "medium",
"memory_usage": "medium"
},
"dependencies": [],
"examples": [
{
"title": "",
"description": "",
"code": ""
}
],
"created_at": "2025-07-31T07:55:38.281Z",
"updated_at": "2025-07-31T07:55:38.281Z"
}