galaxy-uniapp-mcp-server
Version:
Galaxy组件库到UniApp组件转换MCP服务器 - 支持跨平台组件转换、兼容性分析和项目集成
120 lines • 8.16 kB
JSON
{
"id": "KingHendrie_heavy-wombat-40",
"name": "heavy-wombat-40",
"category": "buttons",
"author": "KingHendrie",
"description": "heavy-wombat-40 组件 (simple, icon, animation, action, button, rounded, social media, button hover effect, interactive)",
"tags": [
"simple",
"icon",
"animation",
"action",
"button",
"rounded",
"social media",
"button hover effect",
"interactive"
],
"original": {
"html": "<input type=\"checkbox\" id=\"send-checkbox\" class=\"send-checkbox\">\n<label for=\"send-checkbox\" class=\"send-button\">\n <svg class=\"svg-style\" xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 24 24\" height=\"20px\" width=\"20px\">\n <path stroke-linejoin=\"round\" stroke-linecap=\"round\" stroke-width=\"1.5\" stroke=\"#292D32\" d=\"M7.39999 6.32003L15.89 3.49003C19.7 2.22003 21.77 4.30003 20.51 8.11003L17.68 16.6C15.78 22.31 12.66 22.31 10.76 16.6L9.91999 14.08L7.39999 13.24C1.68999 11.34 1.68999 8.23003 7.39999 6.32003Z\"></path>\n <path stroke-linejoin=\"round\" stroke-linecap=\"round\" stroke-width=\"1.5\" stroke=\"#292D32\" d=\"M10.11 13.6501L13.69 10.0601\"></path>\n </svg>\n <span class=\"message\">Send Message</span>\n <span class=\"message-sent\">Message Sent</span>\n</label>",
"css": "/* From Uiverse.io by KingHendrie - Tags: simple, icon, animation, action, button, rounded, social media, button hover effect */\n.send-checkbox {\n display: none;\n}\n\n.send-button {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n padding: 10px 20px;\n border: 2px solid #ddd;\n border-radius: 15px;\n background-color: #f9f9f9;\n color: #2c2c2c;\n font-family: Arial, sans-serif;\n font-size: 16px;\n font-weight: 500;\n cursor: pointer;\n box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.1),\n 2px 2px 5px rgba(0, 0, 0, 0.1);\n transition: background-color 0.3s, box-shadow 0.3s, transform 0.3s;\n position: relative;\n overflow: hidden;\n white-space: nowrap;\n}\n\n.send-checkbox:checked + .send-button .message {\n opacity: 0;\n}\n\n.send-checkbox:checked + .send-button .message-sent {\n animation: fadeIn 3s forwards;\n}\n\n.send-checkbox:checked + .send-button svg {\n animation: send 1s forwards;\n}\n\n@keyframes rotate-hover {\n 0% {\n transform: rotate(0);\n }\n 100% {\n transform: rotate(40deg);\n }\n}\n\n@keyframes send {\n 0% {\n transform: translateX(0) rotate(40deg);\n }\n 100% {\n transform: translateX(150px) rotate(40deg);\n }\n}\n\n@keyframes fadeIn {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n\n.send-button .message-sent {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n opacity: 0;\n color: #125b96;\n}\n\n.send-button:hover {\n background-color: #e0e0e0;\n box-shadow: inset -2px -2px 5px rgba(0, 0, 0, 0.1),\n 3px 3px 7px rgba(0, 0, 0, 0.15);\n transform: translateY(-2px);\n}\n\n.send-button:hover svg {\n animation: rotate-hover 0.2s;\n transform: rotate(40deg);\n}",
"file_path": "/mnt/persist/workspace/Buttons/KingHendrie_heavy-wombat-40.html"
},
"uniapp": {
"template": "<input type=\"checkbox\" id=\"send-checkbox\" class=\"send-checkbox\"></input>\n<label for=\"send-checkbox\" class=\"send-button\"></label>\n <view class=\"svg-style\" xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 24 24\" height=\"20px\" width=\"20px\"></view>\n <path stroke-linejoin=\"round\" stroke-linecap=\"round\" stroke-width=\"1.5\" stroke=\"#292D32\" d=\"M7.39999 6.32003L15.89 3.49003C19.7 2.22003 21.77 4.30003 20.51 8.11003L17.68 16.6C15.78 22.31 12.66 22.31 10.76 16.6L9.91999 14.08L7.39999 13.24C1.68999 11.34 1.68999 8.23003 7.39999 6.32003Z\"></path>\n <path stroke-linejoin=\"round\" stroke-linecap=\"round\" stroke-width=\"1.5\" stroke=\"#292D32\" d=\"M10.11 13.6501L13.69 10.0601\"></path>\n </svg>\n <text class=\"message\">Send Message</text>\n <text class=\"message-sent\">Message Sent</text>\n</label>",
"script": "export default {\n name: 'GalaxyHeavyWombat40',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}",
"style": "\n/* From Uiverse.io by KingHendrie - Tags: simple, icon, animation, action, button, rounded, social media, button hover effect */\n.send-checkbox {\n display: none;\n}\n\n.send-button {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n padding: 20rpx 40rpx;\n border: 4rpx solid #ddd;\n border-radius: 30rpx;\n background-color: #f9f9f9;\n color: #2c2c2c;\n font-family: Arial, sans-serif;\n font-size: 32rpx;\n font-weight: 500;\n /* #ifdef H5 */\n cursor: pointer;\n /* #endif */\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: inset 4rpx 4rpx 10rpx rgba(0, 0, 0, 0.1),\n 4rpx 4rpx 10rpx rgba(0, 0, 0, 0.1);\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n transition: background-color 0.3s, box-shadow 0.3s, transform 0.3s;\n position: relative;\n overflow: hidden;\n white-space: nowrap;\n}\n\n.send-checkbox:checked + .send-button .message {\n opacity: 0;\n}\n\n.send-checkbox:checked + .send-button .message-sent {\n animation: fadeIn 3s forwards;\n}\n\n.send-checkbox:checked + .send-button svg {\n animation: send 1s forwards;\n}\n\n@keyframes rotate-hover {\n 0% {\n transform: rotate(0);\n }\n 100% {\n transform: rotate(40deg);\n }\n}\n\n@keyframes send {\n 0% {\n transform: translateX(0) rotate(40deg);\n }\n 100% {\n transform: translateX(300rpx) rotate(40deg);\n }\n}\n\n@keyframes fadeIn {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n\n.send-button .message-sent {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n opacity: 0;\n color: #125b96;\n}\n\n.send-button:hover {\n background-color: #e0e0e0;\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: inset -4rpx -4rpx 10rpx rgba(0, 0, 0, 0.1),\n 6rpx 6rpx 14rpx 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 transform: translateY(-4rpx);\n}\n\n.send-button:hover svg {\n animation: rotate-hover 0.2s;\n transform: rotate(40deg);\n}\n\n",
"component_name": "GalaxyHeavyWombat40"
},
"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": 2445,
"render_cost": "medium",
"memory_usage": "medium"
},
"dependencies": [],
"examples": [
{
"title": "",
"description": "",
"code": ""
}
],
"created_at": "2025-07-31T07:55:33.753Z",
"updated_at": "2025-07-31T07:55:33.753Z"
}