galaxy-uniapp-mcp-server
Version:
Galaxy组件库到UniApp组件转换MCP服务器 - 支持跨平台组件转换、兼容性分析和项目集成
114 lines • 6.24 kB
JSON
{
"id": "kalp-lathia_cold-cougar-17",
"name": "cold-cougar-17",
"category": "buttons",
"author": "kalp-lathia",
"description": "cold-cougar-17 组件 (button, bounce, animated, animation, interactive)",
"tags": [
"button",
"bounce",
"animated",
"animation",
"interactive"
],
"original": {
"html": "<button class=\"button\">\n <span class=\"left\"></span>\n <span>Hover Me</span>\n <span class=\"right\"></span>\n</button>",
"css": "/* From Uiverse.io by kalp-lathia - Tags: button, bounce, animated */\n.button {\n --bg-color: rgb(0, 119, 255);\n --color: white;\n --border-radius: 1rem;\n --animation-duaration: 1s;\n --height: 4rem;\n --span-width: 1.5rem;\n --base-pos: 0rem;\n --final-pos: -2rem\n}\n\n.button, .left, .right {\n height: var(--height);\n background-color: var(--bg-color);\n transition: all var(--animation-duaration) ease-in-out;\n}\n\n.button {\n position: relative;\n font-size: 1rem;\n padding: 0rem 2.5rem;\n color: var(--color);\n border: none;\n border-radius: var(--border-radius);\n cursor: pointer;\n}\n\n.left, .right {\n width: var(--span-width);\n position: absolute;\n top: 0rem;\n}\n\n.left {\n left: var(--base-pos);\n border-radius: var(--border-radius) 0rem 0rem var(--border-radius);\n}\n\n.right {\n right: var(--base-pos);\n border-radius: 0rem var(--border-radius) var(--border-radius) 0rem;\n}\n\n.button:hover {\n animation: button-radius var(--animation-duaration) infinite ease-in-out;\n}\n\n.button:hover .left {\n animation: left-shake var(--animation-duaration) infinite ease-in-out;\n}\n\n.button:hover .right {\n animation: right-shake var(--animation-duaration) infinite ease-in-out;\n}\n\n@keyframes button-radius {\n 0% {\n border-radius: var(--border-radius);\n }\n\n 50% {\n border-radius: 0rem;\n }\n\n 100% {\n border-radius: var(--border-radius);\n }\n}\n\n@keyframes left-shake {\n 0% {\n left: var(--base-pos);\n }\n\n 50% {\n left: var(--final-pos);\n }\n\n 100% {\n left: var(--base-pos);\n }\n}\n\n@keyframes right-shake {\n 0% {\n right: var(--base-pos);\n }\n\n 50% {\n right: var(--final-pos);\n }\n\n 100% {\n right: var(--base-pos);\n }\n}",
"file_path": "/mnt/persist/workspace/Buttons/kalp-lathia_cold-cougar-17.html"
},
"uniapp": {
"template": "<button class=\"button\"></button>\n <text class=\"left\"></text>\n <text>Hover Me</text>\n <text class=\"right\"></text>\n</button>",
"script": "export default {\n name: 'GalaxyColdCougar17',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}",
"style": "\n/* From Uiverse.io by kalp-lathia - Tags: button, bounce, animated */\n.button {\n --bg-color: rgb(0, 119, 255);\n --color: white;\n --border-radius: 1rem;\n --animation-duaration: 1s;\n --height: 4rem;\n --span-width: 1.5rem;\n --base-pos: 0rem;\n --final-pos: -2rem\n}\n\n.button, .left, .right {\n height: var(--height);\n background-color: var(--bg-color);\n transition: all var(--animation-duaration) ease-in-out;\n}\n\n.button {\n position: relative;\n font-size: 1rem;\n padding: 0rem 2.5rem;\n color: var(--color);\n border: none;\n border-radius: var(--border-radius);\n /* #ifdef H5 */\n cursor: pointer;\n /* #endif */\n}\n\n.left, .right {\n width: var(--span-width);\n position: absolute;\n top: 0rem;\n}\n\n.left {\n left: var(--base-pos);\n border-radius: var(--border-radius) 0rem 0rem var(--border-radius);\n}\n\n.right {\n right: var(--base-pos);\n border-radius: 0rem var(--border-radius) var(--border-radius) 0rem;\n}\n\n.button:hover {\n animation: button-radius var(--animation-duaration) infinite ease-in-out;\n}\n\n.button:hover .left {\n animation: left-shake var(--animation-duaration) infinite ease-in-out;\n}\n\n.button:hover .right {\n animation: right-shake var(--animation-duaration) infinite ease-in-out;\n}\n\n@keyframes button-radius {\n 0% {\n border-radius: var(--border-radius);\n }\n\n 50% {\n border-radius: 0rem;\n }\n\n 100% {\n border-radius: var(--border-radius);\n }\n}\n\n@keyframes left-shake {\n 0% {\n left: var(--base-pos);\n }\n\n 50% {\n left: var(--final-pos);\n }\n\n 100% {\n left: var(--base-pos);\n }\n}\n\n@keyframes right-shake {\n 0% {\n right: var(--base-pos);\n }\n\n 50% {\n right: var(--final-pos);\n }\n\n 100% {\n right: var(--base-pos);\n }\n}\n",
"component_name": "GalaxyColdCougar17"
},
"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": 1773,
"render_cost": "medium",
"memory_usage": "medium"
},
"dependencies": [],
"examples": [
{
"title": "",
"description": "",
"code": ""
}
],
"created_at": "2025-07-31T07:55:37.036Z",
"updated_at": "2025-07-31T07:55:37.036Z"
}