galaxy-uniapp-mcp-server
Version:
Galaxy组件库到UniApp组件转换MCP服务器 - 支持跨平台组件转换、兼容性分析和项目集成
117 lines • 5.41 kB
JSON
{
"id": "cssbuttons-io_stupid-impala-51",
"name": "stupid-impala-51",
"category": "buttons",
"author": "cssbuttons-io",
"description": "stupid-impala-51 组件 (icon, red, button, delete, animation, interactive)",
"tags": [
"icon",
"red",
"button",
"delete",
"animation",
"interactive"
],
"original": {
"html": "<button class=\"noselect\"><span class=\"text\">Delete</span><span class=\"icon\"><svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\"><path d=\"M24 20.188l-8.315-8.209 8.2-8.282-3.697-3.697-8.212 8.318-8.31-8.203-3.666 3.666 8.321 8.24-8.206 8.313 3.666 3.666 8.237-8.318 8.285 8.203z\"></path></svg></span></button>",
"css": "/* From Uiverse.io by cssbuttons-io - Tags: icon, red, button, delete */\nbutton {\n width: 150px;\n height: 50px;\n cursor: pointer;\n display: flex;\n align-items: center;\n background: red;\n border: none;\n border-radius: 5px;\n box-shadow: 1px 1px 3px rgba(0,0,0,0.15);\n background: #e62222;\n}\n\nbutton, button span {\n transition: 200ms;\n}\n\nbutton .text {\n transform: translateX(35px);\n color: white;\n font-weight: bold;\n}\n\nbutton .icon {\n position: absolute;\n border-left: 1px solid #c41b1b;\n transform: translateX(110px);\n height: 40px;\n width: 40px;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\nbutton svg {\n width: 15px;\n fill: #eee;\n}\n\nbutton:hover {\n background: #ff3636;\n}\n\nbutton:hover .text {\n color: transparent;\n}\n\nbutton:hover .icon {\n width: 150px;\n border-left: none;\n transform: translateX(0);\n}\n\nbutton:focus {\n outline: none;\n}\n\nbutton:active .icon svg {\n transform: scale(0.8);\n}",
"file_path": "/mnt/persist/workspace/Buttons/cssbuttons-io_stupid-impala-51.html"
},
"uniapp": {
"template": "<button class=\"noselect\"></button><text class=\"text\">Delete</text><text class=\"icon\"><view xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\"><path d=\"M24 20.188l-8.315-8.209 8.2-8.282-3.697-3.697-8.212 8.318-8.31-8.203-3.666 3.666 8.321 8.24-8.206 8.313 3.666 3.666 8.237-8.318 8.285 8.203z\"></path></view></text></button>",
"script": "export default {\n name: 'GalaxyStupidImpala51',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}",
"style": "\n/* From Uiverse.io by cssbuttons-io - Tags: icon, red, button, delete */\nbutton {\n width: 300rpx;\n height: 100rpx;\n /* #ifdef H5 */\n cursor: pointer;\n /* #endif */\n display: flex;\n align-items: center;\n background: red;\n border: none;\n border-radius: 10rpx;\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 2rpx 2rpx 6rpx rgba(0,0,0,0.15);\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n background: #e62222;\n}\n\nbutton, button span {\n transition: 200ms;\n}\n\nbutton .text {\n transform: translateX(70rpx);\n color: white;\n font-weight: bold;\n}\n\nbutton .icon {\n position: absolute;\n border-left: 2rpx solid #c41b1b;\n transform: translateX(220rpx);\n height: 80rpx;\n width: 80rpx;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\nbutton svg {\n width: 30rpx;\n fill: #eee;\n}\n\nbutton:hover {\n background: #ff3636;\n}\n\nbutton:hover .text {\n color: transparent;\n}\n\nbutton:hover .icon {\n width: 300rpx;\n border-left: none;\n transform: translateX(0);\n}\n\nbutton:focus {\n outline: none;\n}\n\nbutton:active .icon svg {\n transform: scale(0.8);\n}\n",
"component_name": "GalaxyStupidImpala51"
},
"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": 1256,
"render_cost": "medium",
"memory_usage": "medium"
},
"dependencies": [],
"examples": [
{
"title": "",
"description": "",
"code": ""
}
],
"created_at": "2025-07-31T07:55:36.227Z",
"updated_at": "2025-07-31T07:55:36.227Z"
}