galaxy-uniapp-mcp-server
Version:
Galaxy组件库到UniApp组件转换MCP服务器 - 支持跨平台组件转换、兼容性分析和项目集成
113 lines • 8.05 kB
JSON
{
"id": "Navarog21_orange-vampirebat-22",
"name": "orange-vampirebat-22",
"category": "buttons",
"author": "Navarog21",
"description": "orange-vampirebat-22 组件 (button, animation, gradient, interactive)",
"tags": [
"button",
"animation",
"gradient",
"interactive"
],
"original": {
"html": "<button>\n\n<div class=\"state\" id=\"moon\">Send</div>\n<div class=\"state\" id=\"sun\">Send</div>\n<span class=\"lightRotation\"></span>\n<span class=\"lightRotation2\"></span>\n<span class=\"lightRotation3\"></span>\n<span class=\"lightRotation4\"></span>\n</button>",
"css": "/* From Uiverse.io by Navarog21 - Tags: button */\nbutton {\n --sunGradient: linear-gradient(60deg, #3d3393 0%, #2b76b9 37%, #2cacd1 65%, #35eb93 100%);\n --moonGradient: linear-gradient(to top, #cc208e 0%, #6713d2 100%);\n display: flex;\n justify-content: center;\n align-items: center;\n position: relative;\n width: 140px;\n height: 60px;\n color: white;\n font-size: 1em;\n font-weight: bold;\n text-transform: uppercase;\n border-radius: 15px;\n background-color: transparent;\n transition: 0.5s;\n overflow: hidden;\n border: 4px solid black;\n}\n\nbutton:hover {\n box-shadow: -15px -15px 500px white;\n transition: 0.2s;\n}\n\nbutton:hover span {\n background: var(--sunGradient);\n}\n\n.state {\n position: absolute;\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: inherit;\n transition: 0.4s;\n width: 85%;\n height: 82%;\n border: 4px solid black;\n}\n\n#sun {\n display: none;\n background-color: #212121;\n opacity: 0.85;\n}\n\n#moon {\n background-color: #212121;\n opacity: 0.85;\n}\n\nbutton:hover #sun {\n display: flex;\n}\n\nbutton:hover #moon {\n display: none;\n}\n\nbutton:hover .lightRotation {\n animation: 1s linear reverse infinite rotation413;\n}\n\nbutton:hover .lightRotation2 {\n animation: 2s linear infinite rotation_413;\n}\n\nbutton:hover .lightRotation3 {\n animation: 10s linear reverse infinite rotation_413;\n}\n\nbutton:hover .lightRotation4 {\n animation: 3s linear infinite rotation_413;\n}\n\n.lightRotation {\n position: absolute;\n transition: 0.4s;\n z-index: -1;\n width: 60px;\n height: 500px;\n transform: rotate(50deg);\n border-radius: inherit;\n background: var(--moonGradient);\n}\n\n.lightRotation2 {\n position: absolute;\n transition: 0.4s;\n z-index: -1;\n width: 75px;\n height: 500px;\n transform: rotate(110deg);\n border-radius: inherit;\n background: var(--moonGradient);\n}\n\n.lightRotation3 {\n position: absolute;\n transition: 0.4s;\n z-index: -1;\n width: 40px;\n height: 260px;\n border-radius: inherit;\n background: var(--moonGradient);\n}\n\n.lightRotation4 {\n position: absolute;\n transition: 0.4s;\n z-index: -1;\n width: 24px;\n height: 220px;\n transform: rotate(100deg);\n border-radius: inherit;\n background: var(--moonGradient);\n}\n\n@keyframes rotation_413 {\n from {\n transform: rotate(0deg)\n }\n\n to {\n transform: rotate(360deg)\n }\n}",
"file_path": "/mnt/persist/workspace/Buttons/Navarog21_orange-vampirebat-22.html"
},
"uniapp": {
"template": "<button></button>\n\n<view class=\"state\" id=\"moon\">Send</view>\n<view class=\"state\" id=\"sun\">Send</view>\n<text class=\"lightRotation\"></text>\n<text class=\"lightRotation2\"></text>\n<text class=\"lightRotation3\"></text>\n<text class=\"lightRotation4\"></text>\n</button>",
"script": "export default {\n name: 'GalaxyOrangeVampirebat22',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}",
"style": "\n/* From Uiverse.io by Navarog21 - Tags: button */\nbutton {\n --sunGradient: linear-gradient(60deg, #3d3393 0%, #2b76b9 37%, #2cacd1 65%, #35eb93 100%);\n --moonGradient: linear-gradient(to top, #cc208e 0%, #6713d2 100%);\n display: flex;\n justify-content: center;\n align-items: center;\n position: relative;\n width: 280rpx;\n height: 120rpx;\n color: white;\n font-size: 1em;\n font-weight: bold;\n text-transform: uppercase;\n border-radius: 30rpx;\n background-color: transparent;\n transition: 0.5s;\n overflow: hidden;\n border: 8rpx solid black;\n}\n\nbutton:hover {\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: -30rpx -30rpx 1000rpx white;\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n transition: 0.2s;\n}\n\nbutton:hover span {\n background: var(--sunGradient);\n}\n\n.state {\n position: absolute;\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: inherit;\n transition: 0.4s;\n width: 85%;\n height: 82%;\n border: 8rpx solid black;\n}\n\n#sun {\n display: none;\n background-color: #212121;\n opacity: 0.85;\n}\n\n#moon {\n background-color: #212121;\n opacity: 0.85;\n}\n\nbutton:hover #sun {\n display: flex;\n}\n\nbutton:hover #moon {\n display: none;\n}\n\nbutton:hover .lightRotation {\n animation: 1s linear reverse infinite rotation413;\n}\n\nbutton:hover .lightRotation2 {\n animation: 2s linear infinite rotation_413;\n}\n\nbutton:hover .lightRotation3 {\n animation: 10s linear reverse infinite rotation_413;\n}\n\nbutton:hover .lightRotation4 {\n animation: 3s linear infinite rotation_413;\n}\n\n.lightRotation {\n position: absolute;\n transition: 0.4s;\n z-index: -1;\n width: 120rpx;\n height: 1000rpx;\n transform: rotate(50deg);\n border-radius: inherit;\n background: var(--moonGradient);\n}\n\n.lightRotation2 {\n position: absolute;\n transition: 0.4s;\n z-index: -1;\n width: 150rpx;\n height: 1000rpx;\n transform: rotate(110deg);\n border-radius: inherit;\n background: var(--moonGradient);\n}\n\n.lightRotation3 {\n position: absolute;\n transition: 0.4s;\n z-index: -1;\n width: 80rpx;\n height: 520rpx;\n border-radius: inherit;\n background: var(--moonGradient);\n}\n\n.lightRotation4 {\n position: absolute;\n transition: 0.4s;\n z-index: -1;\n width: 48rpx;\n height: 440rpx;\n transform: rotate(100deg);\n border-radius: inherit;\n background: var(--moonGradient);\n}\n\n@keyframes rotation_413 {\n from {\n transform: rotate(0deg)\n }\n\n to {\n transform: rotate(360deg)\n }\n}\n\n",
"component_name": "GalaxyOrangeVampirebat22"
},
"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 属性"
],
"alternatives": []
},
"mp-alipay": {
"supported": true,
"issues": [
"不支持 box-shadow 属性"
],
"alternatives": []
},
"app-plus": {
"supported": true,
"issues": [],
"alternatives": []
}
},
"performance": {
"complexity": "high",
"bundle_size": 2564,
"render_cost": "high",
"memory_usage": "high"
},
"dependencies": [],
"examples": [
{
"title": "",
"description": "",
"code": ""
}
],
"created_at": "2025-07-31T07:55:34.123Z",
"updated_at": "2025-07-31T07:55:34.123Z"
}