galaxy-uniapp-mcp-server
Version:
Galaxy组件库到UniApp组件转换MCP服务器 - 支持跨平台组件转换、兼容性分析和项目集成
116 lines • 5.48 kB
JSON
{
"id": "ozgeozkaraa01_unlucky-snail-4",
"name": "unlucky-snail-4",
"category": "buttons",
"author": "ozgeozkaraa01",
"description": "unlucky-snail-4 组件 (button, hover button, 3d button, animation, interactive)",
"tags": [
"button",
"hover button",
"3d button",
"animation",
"interactive"
],
"original": {
"html": "<button class=\"btn\">\n <svg class=\"w-6 h-6\" stroke=\"currentColor\" stroke-width=\"1.5\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" height=\"40\" width=\"40\">\n <path d=\"M15.042 21.672L13.684 16.6m0 0l-2.51 2.225.569-9.47 5.227 7.917-3.286-.672zM12 2.25V4.5m5.834.166l-1.591 1.591M20.25 10.5H18M7.757 14.743l-1.59 1.59M6 10.5H3.75m4.007-4.243l-1.59-1.59\" stroke-linejoin=\"round\" stroke-linecap=\"round\"></path>\n</svg>\n</button>",
"css": "/* From Uiverse.io by ozgeozkaraa01 - Tags: button, hover button, 3d button */\n.btn {\n display: grid;\n place-items: center;\n background-color: #e2e8f0;\n padding: 1.5em;\n border-radius: 10px;\n box-shadow: 6px 6px 10px -1px rgba(0,0,0,0.15),\n\t -6px -6px 10px -1px rgba(255,255,255,0.7);\n border: none;\n cursor: pointer;\n transition: transform 0.5s;\n}\n\n.btn:hover {\n box-shadow: inset 4px 4px 6px -1px rgba(0,0,0,0.2),\n\t inset -4px -4px 6px -1px rgba(255,255,255,0.7),\n\t -0.5px -0.5px 0px rgba(255,255,255,1),\n\t 0.5px 0.5px 0px rgba(0,0,0,0.15),\n\t 0px 12px 10px -10px rgba(0,0,0,0.05);\n border: 1px solid rgba(0,0,0,0.1);\n transform: translateY(0.5em);\n}\n\n.btn svg {\n transition: transform 0.6s;\n}\n\n.btn:hover svg {\n transform: scale(0.9);\n}",
"file_path": "/mnt/persist/workspace/Buttons/ozgeozkaraa01_unlucky-snail-4.html"
},
"uniapp": {
"template": "<button class=\"btn\"></button>\n <view class=\"w-6 h-6\" stroke=\"currentColor\" stroke-width=\"1.5\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" height=\"40\" width=\"40\"></view>\n <path d=\"M15.042 21.672L13.684 16.6m0 0l-2.51 2.225.569-9.47 5.227 7.917-3.286-.672zM12 2.25V4.5m5.834.166l-1.591 1.591M20.25 10.5H18M7.757 14.743l-1.59 1.59M6 10.5H3.75m4.007-4.243l-1.59-1.59\" stroke-linejoin=\"round\" stroke-linecap=\"round\"></path>\n</svg>\n</button>",
"script": "export default {\n name: 'GalaxyUnluckySnail4',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}",
"style": "\n/* From Uiverse.io by ozgeozkaraa01 - Tags: button, hover button, 3d button */\n.btn {\n display: grid;\n place-items: center;\n background-color: #e2e8f0;\n padding: 1.5em;\n border-radius: 20rpx;\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 12rpx 12rpx 20rpx -2rpx rgba(0,0,0,0.15),\n\t -12rpx -12rpx 20rpx -2rpx rgba(255,255,255,0.7);\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n border: none;\n /* #ifdef H5 */\n cursor: pointer;\n /* #endif */\n transition: transform 0.5s;\n}\n\n.btn:hover {\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: inset 8rpx 8rpx 12rpx -2rpx rgba(0,0,0,0.2),\n\t inset -8rpx -8rpx 12rpx -2rpx rgba(255,255,255,0.7),\n\t -1rpx -1rpx 0rpx rgba(255,255,255,1),\n\t 1rpx 1rpx 0rpx rgba(0,0,0,0.15),\n\t 0rpx 24rpx 20rpx -20rpx rgba(0,0,0,0.05);\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n border: 2rpx solid rgba(0,0,0,0.1);\n transform: translateY(0.5em);\n}\n\n.btn svg {\n transition: transform 0.6s;\n}\n\n.btn:hover svg {\n transform: scale(0.9);\n}\n\n\n",
"component_name": "GalaxyUnluckySnail4"
},
"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": 1226,
"render_cost": "medium",
"memory_usage": "medium"
},
"dependencies": [],
"examples": [
{
"title": "",
"description": "",
"code": ""
}
],
"created_at": "2025-07-31T07:55:37.551Z",
"updated_at": "2025-07-31T07:55:37.551Z"
}