galaxy-uniapp-mcp-server
Version:
Galaxy组件库到UniApp组件转换MCP服务器 - 支持跨平台组件转换、兼容性分析和项目集成
116 lines • 6.4 kB
JSON
{
"id": "kamehame-ha_swift-penguin-73",
"name": "swift-penguin-73",
"category": "buttons",
"author": "kamehame-ha",
"description": "swift-penguin-73 组件 (success, error, share, light&dark, clean, badges, working)",
"tags": [
"success",
"error",
"share",
"light&dark",
"clean",
"badges",
"working"
],
"original": {
"html": "<div class=\"badges\">\n <button class=\"blue\">Share Online</button>\n <button class=\"yellow\">Working on it</button>\n <button class=\"green\">Success</button>\n <button class=\"red\">Error</button>\n</div>",
"css": "/* From Uiverse.io by kamehame-ha - Tags: success, error, share, light&dark, clean, badges, working */\n/*\n\nThis is actually the most neutral button desing of all time,\nfits everywhere no matter if it is dark or light mode,\njust change colors. \nI created original using tailwindCSS, here's classes:\n\ntext-blue-500 bg-blue-500/10 border border-blue-500 rounded-md px-2 py-[2px] text-sm cursor-pointer flex shrink-0\ntext-yellow-500 bg-yellow-500/10 border border-yellow-500 rounded-md px-2 py-[2px] text-sm cursor-pointer flex shrink-0\ntext-green-500 bg-green-500/10 border border-green-500 rounded-md px-2 py-[2px] text-sm cursor-pointer flex shrink-0\ntext-indigo-500 bg-indigo-500/10 border border-indigo-500 rounded-md px-2 py-[2px] text-sm cursor-pointer flex shrink-0\n\n*/\n\n.badges {\n display: flex;\n flex-direction: column;\n gap: 1rem; /* 16px */\n align-items: center;\n flex-wrap: wrap;\n justify-content: center;\n}\n\n.badges > button {\n font-size: 0.875rem; /* 14px */\n line-height: 1.25rem; /* 20px */\n padding: 2px .5rem; /* 8px*/\n cursor: pointer;\n border: none;\n border-radius: 0.375rem; /* 6px */\n outline: none;\n}\n\n.badges .blue {\n background-color: rgba(59, 130, 246, 0.10);\n color: rgb(59 130 246);\n border: 1px rgb(59 130 246) solid;\n}\n\n.badges .yellow {\n background-color: rgba(234, 179, 8, 0.10);\n color: rgb(234 179 8);\n border: 1px rgb(234 179 8) solid;\n}\n\n.badges .green {\n background-color: rgba(34, 197, 94, 0.10);\n color: rgb(34 197 94);\n border: 1px rgb(34 197 94) solid;\n}\n\n.badges .red {\n background-color: rgba(239, 68, 68, 0.10);\n color: rgb(239 68 68);\n border: 1px rgb(239 68 68) solid;\n}",
"file_path": "/mnt/persist/workspace/Buttons/kamehame-ha_swift-penguin-73.html"
},
"uniapp": {
"template": "<view class=\"badges\"></view>\n <button class=\"blue\"></button>Share Online</button>\n <button class=\"yellow\"></button>Working on it</button>\n <button class=\"green\"></button>Success</button>\n <button class=\"red\"></button>Error</button>\n</div>",
"script": "export default {\n name: 'GalaxySwiftPenguin73',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}",
"style": "\n/* From Uiverse.io by kamehame-ha - Tags: success, error, share, light&dark, clean, badges, working */\n/*\n\nThis is actually the most neutral button desing of all time,\nfits everywhere no matter if it is dark or light mode,\njust change colors. \nI created original using tailwindCSS, here's classes:\n\ntext-blue-500 bg-blue-500/10 border border-blue-500 rounded-md px-2 py-[4rpx] text-sm cursor-pointer flex shrink-0\ntext-yellow-500 bg-yellow-500/10 border border-yellow-500 rounded-md px-2 py-[4rpx] text-sm cursor-pointer flex shrink-0\ntext-green-500 bg-green-500/10 border border-green-500 rounded-md px-2 py-[4rpx] text-sm cursor-pointer flex shrink-0\ntext-indigo-500 bg-indigo-500/10 border border-indigo-500 rounded-md px-2 py-[4rpx] text-sm cursor-pointer flex shrink-0\n\n*/\n\n.badges {\n display: flex;\n flex-direction: column;\n gap: 1rem; /* 32rpx */\n align-items: center;\n flex-wrap: wrap;\n justify-content: center;\n}\n\n.badges > button {\n font-size: 0.875rem; /* 28rpx */\n line-height: 1.25rem; /* 40rpx */\n padding: 4rpx .5rem; /* 16rpx*/\n /* #ifdef H5 */\n cursor: pointer;\n /* #endif */\n border: none;\n border-radius: 0.375rem; /* 12rpx */\n outline: none;\n}\n\n.badges .blue {\n background-color: rgba(59, 130, 246, 0.10);\n color: rgb(59 130 246);\n border: 2rpx rgb(59 130 246) solid;\n}\n\n.badges .yellow {\n background-color: rgba(234, 179, 8, 0.10);\n color: rgb(234 179 8);\n border: 2rpx rgb(234 179 8) solid;\n}\n\n.badges .green {\n background-color: rgba(34, 197, 94, 0.10);\n color: rgb(34 197 94);\n border: 2rpx rgb(34 197 94) solid;\n}\n\n.badges .red {\n background-color: rgba(239, 68, 68, 0.10);\n color: rgb(239 68 68);\n border: 2rpx rgb(239 68 68) solid;\n}\n",
"component_name": "GalaxySwiftPenguin73"
},
"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": "low",
"bundle_size": 1848,
"render_cost": "low",
"memory_usage": "low"
},
"dependencies": [],
"examples": [
{
"title": "",
"description": "",
"code": ""
}
],
"created_at": "2025-07-31T07:55:37.051Z",
"updated_at": "2025-07-31T07:55:37.051Z"
}