galaxy-uniapp-mcp-server
Version:
Galaxy组件库到UniApp组件转换MCP服务器 - 支持跨平台组件转换、兼容性分析和项目集成
115 lines • 5.19 kB
JSON
{
"id": "ShadowShahriar_nervous-goat-3",
"name": "nervous-goat-3",
"category": "buttons",
"author": "ShadowShahriar",
"description": "nervous-goat-3 组件 (gradient, button, animation, interactive)",
"tags": [
"gradient",
"button",
"animation",
"interactive"
],
"original": {
"html": "<button>Hover me!</button>",
"css": "/* From Uiverse.io by ShadowShahriar - Tags: gradient, button */\nbutton {\n --border-radius: 15px;\n --border-width: 4px;\n appearance: none;\n position: relative;\n padding: 1em 2em;\n border: 0;\n background-color: #212121;\n font-family: \"Roboto\", Arial, \"Segoe UI\", sans-serif;\n font-size: 18px;\n font-weight: 500;\n color: #fff;\n z-index: 2;\n}\n\nbutton::after {\n --m-i: linear-gradient(#000, #000);\n --m-o: content-box, padding-box;\n content: \"\";\n position: absolute;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n padding: var(--border-width);\n border-radius: var(--border-radius);\n background-image: conic-gradient(\n\t\t#488cfb,\n\t\t#29dbbc,\n\t\t#ddf505,\n\t\t#ff9f0e,\n\t\t#e440bb,\n\t\t#655adc,\n\t\t#488cfb\n\t);\n -webkit-mask-image: var(--m-i), var(--m-i);\n mask-image: var(--m-i), var(--m-i);\n -webkit-mask-origin: var(--m-o);\n mask-origin: var(--m-o);\n -webkit-mask-clip: var(--m-o);\n mask-composite: exclude;\n -webkit-mask-composite: destination-out;\n filter: hue-rotate(0);\n animation: rotate-hue linear 500ms infinite;\n animation-play-state: paused;\n}\n\nbutton:hover::after {\n animation-play-state: running;\n}\n\n@keyframes rotate-hue {\n to {\n filter: hue-rotate(1turn);\n }\n}\n\nbutton,\nbutton::after {\n box-sizing: border-box;\n}\n\nbutton:active {\n --border-width: 5px;\n}",
"file_path": "/mnt/persist/workspace/Buttons/ShadowShahriar_nervous-goat-3.html"
},
"uniapp": {
"template": "<button></button>Hover me!</button>",
"script": "export default {\n name: 'GalaxyNervousGoat3',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}",
"style": "\n/* From Uiverse.io by ShadowShahriar - Tags: gradient, button */\nbutton {\n --border-radius: 30rpx;\n --border-width: 8rpx;\n appearance: none;\n position: relative;\n padding: 1em 2em;\n border: 0;\n background-color: #212121;\n font-family: \"Roboto\", Arial, \"Segoe UI\", sans-serif;\n font-size: 36rpx;\n font-weight: 500;\n color: #fff;\n z-index: 2;\n}\n\nbutton::after {\n --m-i: linear-gradient(#000, #000);\n --m-o: content-box, padding-box;\n content: \"\";\n position: absolute;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n padding: var(--border-width);\n border-radius: var(--border-radius);\n background-image: conic-gradient(\n\t\t#488cfb,\n\t\t#29dbbc,\n\t\t#ddf505,\n\t\t#ff9f0e,\n\t\t#e440bb,\n\t\t#655adc,\n\t\t#488cfb\n\t);\n -webkit-mask-image: var(--m-i), var(--m-i);\n mask-image: var(--m-i), var(--m-i);\n -webkit-mask-origin: var(--m-o);\n mask-origin: var(--m-o);\n -webkit-mask-clip: var(--m-o);\n mask-composite: exclude;\n -webkit-mask-composite: destination-out;\n \n animation: rotate-hue linear 500ms infinite;\n animation-play-state: paused;\n}\n\nbutton:hover::after {\n animation-play-state: running;\n}\n\n@keyframes rotate-hue {\n to {\n \n }\n}\n\nbutton,\nbutton::after {\n box-sizing: border-box;\n}\n\nbutton:active {\n --border-width: 10rpx;\n}\n",
"component_name": "GalaxyNervousGoat3"
},
"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": [
"不支持 filter 属性",
"不支持 mask 属性"
],
"alternatives": []
},
"mp-alipay": {
"supported": true,
"issues": [
"不支持 filter 属性",
"不支持 mask 属性"
],
"alternatives": []
},
"app-plus": {
"supported": true,
"issues": [],
"alternatives": []
}
},
"performance": {
"complexity": "medium",
"bundle_size": 1284,
"render_cost": "medium",
"memory_usage": "medium"
},
"dependencies": [],
"examples": [
{
"title": "",
"description": "",
"code": ""
}
],
"created_at": "2025-07-31T07:55:34.619Z",
"updated_at": "2025-07-31T07:55:34.619Z"
}