galaxy-uniapp-mcp-server
Version:
Galaxy组件库到UniApp组件转换MCP服务器 - 支持跨平台组件转换、兼容性分析和项目集成
115 lines • 5.74 kB
JSON
{
"id": "MuhammadHasann_happy-cobra-7",
"name": "happy-cobra-7",
"category": "buttons",
"author": "MuhammadHasann",
"description": "happy-cobra-7 组件 (simple, icon, minimalist, button, animation, interactive)",
"tags": [
"simple",
"icon",
"minimalist",
"button",
"animation",
"interactive"
],
"original": {
"html": "<button class=\"button\">\n <div class=\"icon_cont\">\n <span class=\"icon\">🡪</span>\n </div>\n <span class=\"text_button\">Hover this button</span>\n</button>",
"css": "/* From Uiverse.io by MuhammadHasann - Tags: simple, icon, minimalist, button */\n.button {\n --dark: #181818;\n --light: #d9d9d9;\n --active: 0;\n\n cursor: pointer;\n position: relative;\n\n display: flex;\n align-items: center;\n gap: 0.5rem;\n\n transform-origin: center;\n\n background-color: transparent;\n\n border: none;\n}\n\n.button:hover {\n --active: 1;\n}\n\n.icon_cont {\n overflow: clip;\n\n display: flex;\n justify-content: center;\n align-items: center;\n\n width: calc(var(--active) * 1.5rem + (1 - var(--active)) * 0.5rem);\n height: calc(var(--active) * 1.5rem + (1 - var(--active)) * 0.5rem);\n background-color: hsla(0, 0%, 85%, var(--active));\n\n border: 1px solid var(--light);\n border-radius: 9999px;\n transition: all 0.5s ease-in-out;\n}\n\n.icon {\n font-size: 0.75rem;\n color: var(--dark);\n line-height: 1rem;\n\n transform: translateX(calc(-1rem * (1 - var(--active))));\n transition: transform 0.5s ease-in-out;\n}\n\n.text_button {\n position: relative;\n\n display: inline-block;\n\n padding-block: 0.5rem;\n\n font-size: 1rem;\n font-weight: 600;\n color: var(--light);\n\n text-transform: capitalize;\n}\n.text_button::before {\n content: \"\";\n\n position: absolute;\n bottom: 0;\n right: 0;\n\n width: calc((1 - var(--active)) * 100%);\n height: 1px;\n background-color: var(--light);\n\n border-radius: 9999px;\n transition: width 0.5s ease-in-out;\n}",
"file_path": "/mnt/persist/workspace/Buttons/MuhammadHasann_happy-cobra-7.html"
},
"uniapp": {
"template": "<button class=\"button\"></button>\n <view class=\"icon_cont\"></view>\n <text class=\"icon\">🡪</text>\n </div>\n <text class=\"text_button\">Hover this button</text>\n</button>",
"script": "export default {\n name: 'GalaxyHappyCobra7',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}",
"style": "\n/* From Uiverse.io by MuhammadHasann - Tags: simple, icon, minimalist, button */\n.button {\n --dark: #181818;\n --light: #d9d9d9;\n --active: 0;\n\n /* #ifdef H5 */\n cursor: pointer;\n /* #endif */\n position: relative;\n\n display: flex;\n align-items: center;\n gap: 0.5rem;\n\n transform-origin: center;\n\n background-color: transparent;\n\n border: none;\n}\n\n.button:hover {\n --active: 1;\n}\n\n.icon_cont {\n overflow: clip;\n\n display: flex;\n justify-content: center;\n align-items: center;\n\n width: calc(var(--active) * 1.5rem + (1 - var(--active)) * 0.5rem);\n height: calc(var(--active) * 1.5rem + (1 - var(--active)) * 0.5rem);\n background-color: hsla(0, 0%, 85%, var(--active));\n\n border: 2rpx solid var(--light);\n border-radius: 19998rpx;\n transition: all 0.5s ease-in-out;\n}\n\n.icon {\n font-size: 0.75rem;\n color: var(--dark);\n line-height: 1rem;\n\n transform: translateX(calc(-1rem * (1 - var(--active))));\n transition: transform 0.5s ease-in-out;\n}\n\n.text_button {\n position: relative;\n\n display: inline-block;\n\n padding-block: 0.5rem;\n\n font-size: 1rem;\n font-weight: 600;\n color: var(--light);\n\n text-transform: capitalize;\n}\n.text_button::before {\n content: \"\";\n\n position: absolute;\n bottom: 0;\n right: 0;\n\n width: calc((1 - var(--active)) * 100%);\n height: 2rpx;\n background-color: var(--light);\n\n border-radius: 19998rpx;\n transition: width 0.5s ease-in-out;\n}\n\n",
"component_name": "GalaxyHappyCobra7"
},
"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": "medium",
"bundle_size": 1526,
"render_cost": "medium",
"memory_usage": "medium"
},
"dependencies": [],
"examples": [
{
"title": "",
"description": "",
"code": ""
}
],
"created_at": "2025-07-31T07:55:34.034Z",
"updated_at": "2025-07-31T07:55:34.034Z"
}