galaxy-uniapp-mcp-server
Version:
Galaxy组件库到UniApp组件转换MCP服务器 - 支持跨平台组件转换、兼容性分析和项目集成
118 lines • 5.01 kB
JSON
{
"id": "Na3ar-17_sweet-horse-64",
"name": "sweet-horse-64",
"category": "buttons",
"author": "Na3ar-17",
"description": "sweet-horse-64 组件 (simple, action, button, hover button, animation, gradient, interactive)",
"tags": [
"simple",
"action",
"button",
"hover button",
"animation",
"gradient",
"interactive"
],
"original": {
"html": "<div class=\"container\"><button class=\"button\">Hover me</button></div>",
"css": "/* From Uiverse.io by Na3ar-17 - Tags: simple, action, button, hover button */\n.container {\n * {\n outline: none;\n border: none;\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n font-family: Arial, Helvetica, sans-serif;\n }\n}\n\n.button {\n width: 140px;\n height: 32px;\n border-radius: 0.375rem;\n cursor: pointer;\n margin-top: 1rem;\n background-image: linear-gradient(#268bff, hsl(252, 82%, 57%));\n transition: all 0.3s ease;\n color: #fff;\n font-weight: 600;\n}\n\n.button:hover {\n -webkit-animation: pulse 2s infinite;\n animation: pulse512 1.5s infinite;\n letter-spacing: 2px;\n}\n\n.button:active {\n transform: translateY(4px);\n}\n\n@keyframes pulse512 {\n 0% {\n box-shadow: 0 0 0 0 rgba(5, 186, 218, 0.4);\n }\n 70% {\n box-shadow: 0 0 0 10px rgba(218, 103, 68, 0%);\n }\n 100% {\n box-shadow: 0 0 0 0 rgba(218, 103, 68, 0%);\n }\n}",
"file_path": "/mnt/persist/workspace/Buttons/Na3ar-17_sweet-horse-64.html"
},
"uniapp": {
"template": "<view class=\"container\"><button class=\"button\"></button>Hover me</button></view>",
"script": "export default {\n name: 'GalaxySweetHorse64',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}",
"style": "\n/* From Uiverse.io by Na3ar-17 - Tags: simple, action, button, hover button */\n.container {\n * {\n outline: none;\n border: none;\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n font-family: Arial, Helvetica, sans-serif;\n }\n}\n\n.button {\n width: 280rpx;\n height: 64rpx;\n border-radius: 0.375rem;\n /* #ifdef H5 */\n cursor: pointer;\n /* #endif */\n margin-top: 1rem;\n background-image: linear-gradient(#268bff, hsl(252, 82%, 57%));\n transition: all 0.3s ease;\n color: #fff;\n font-weight: 600;\n}\n\n.button:hover {\n -webkit-animation: pulse 2s infinite;\n animation: pulse512 1.5s infinite;\n letter-spacing: 4rpx;\n}\n\n.button:active {\n transform: translateY(8rpx);\n}\n\n@keyframes pulse512 {\n 0% {\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 0 0 0 0 rgba(5, 186, 218, 0.4);\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n }\n 70% {\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 0 0 0 20rpx rgba(218, 103, 68, 0%);\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n }\n 100% {\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 0 0 0 0 rgba(218, 103, 68, 0%);\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n }\n}\n\n",
"component_name": "GalaxySweetHorse64"
},
"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": 944,
"render_cost": "medium",
"memory_usage": "medium"
},
"dependencies": [],
"examples": [
{
"title": "",
"description": "",
"code": ""
}
],
"created_at": "2025-07-31T07:55:34.112Z",
"updated_at": "2025-07-31T07:55:34.112Z"
}