galaxy-uniapp-mcp-server
Version:
Galaxy组件库到UniApp组件转换MCP服务器 - 支持跨平台组件转换、兼容性分析和项目集成
121 lines • 6.51 kB
JSON
{
"id": "estefaniarizzo_dull-donkey-18",
"name": "dull-donkey-18",
"category": "buttons",
"author": "estefaniarizzo",
"description": "dull-donkey-18 组件 (button, click, animated, css effect, multicolor, hover button, 3d button, animation, gradient, interactive)",
"tags": [
"button",
"click",
"animated",
"css effect",
"multicolor",
"hover button",
"3d button",
"animation",
"gradient",
"interactive"
],
"original": {
"html": "<button class=\"custom-button\"><span>Click Here </span></button>",
"css": "/* From Uiverse.io by estefaniarizzo - Tags: button, click, animated, css effect, multicolor, hover button, 3d button */\n.custom-button {\n padding: 10px 20px;\n font-size: 18px;\n font-weight: bold;\n border: none;\n border-radius: 10px;\n background: linear-gradient(45deg, #4caf50, #ffc107, #2196f3);\n color: #fff;\n cursor: pointer;\n transition: all 0.3s ease;\n box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 0 0 4px rgba(0, 0, 0, 0.1) inset;\n position: relative;\n overflow: hidden;\n perspective: 1000px;\n width: 200px;\n height: 40px;\n}\n\n.custom-button:hover {\n transform: translateY(-2px) rotateX(20deg) rotateY(10deg);\n box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2), 0 0 0 4px rgba(0, 0, 0, 0.2) inset;\n background: linear-gradient(45deg, #02ff0e, #fc0000, #ae00ff);\n}\n\n.custom-button:focus {\n outline: none;\n}\n\n.custom-button:active {\n transform: translateY(0) scale(1.1) rotate(45deg);\n box-shadow: none;\n animation: pulse 0.5s ease;\n}\n\n.custom-button::before {\n content: \"\";\n position: absolute;\n top: 4px;\n left: 4px;\n width: calc(100% - 8px);\n height: calc(100% - 8px);\n background: rgba(255, 255, 255, 0.2);\n border-radius: 6px;\n z-index: -1;\n}\n\n@keyframes pulse {\n 0% {\n transform: scale(1);\n }\n 50% {\n transform: scale(1.1) rotate(120deg);\n }\n 100% {\n transform: scale(1);\n }\n}\n\n.custom-button span {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n transition: opacity 0.3s ease;\n opacity: 1; /* El texto principal estará visible por defecto */\n}",
"file_path": "/mnt/persist/workspace/Buttons/estefaniarizzo_dull-donkey-18.html"
},
"uniapp": {
"template": "<button class=\"custom-button\"></button><text>Click Here </text></button>",
"script": "export default {\n name: 'GalaxyDullDonkey18',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}",
"style": "\n/* From Uiverse.io by estefaniarizzo - Tags: button, click, animated, css effect, multicolor, hover button, 3d button */\n.custom-button {\n padding: 20rpx 40rpx;\n font-size: 36rpx;\n font-weight: bold;\n border: none;\n border-radius: 20rpx;\n background: linear-gradient(45deg, #4caf50, #ffc107, #2196f3);\n color: #fff;\n /* #ifdef H5 */\n cursor: pointer;\n /* #endif */\n transition: all 0.3s ease;\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 0 8rpx 12rpx rgba(0, 0, 0, 0.1), 0 0 0 8rpx rgba(0, 0, 0, 0.1) inset;\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n position: relative;\n overflow: hidden;\n perspective: 2000rpx;\n width: 400rpx;\n height: 80rpx;\n}\n\n.custom-button:hover {\n transform: translateY(-4rpx) rotateX(20deg) rotateY(10deg);\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 0 16rpx 32rpx rgba(0, 0, 0, 0.2), 0 0 0 8rpx rgba(0, 0, 0, 0.2) inset;\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n background: linear-gradient(45deg, #02ff0e, #fc0000, #ae00ff);\n}\n\n.custom-button:focus {\n outline: none;\n}\n\n.custom-button:active {\n transform: translateY(0) scale(1.1) rotate(45deg);\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: none;\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n animation: pulse 0.5s ease;\n}\n\n.custom-button::before {\n content: \"\";\n position: absolute;\n top: 8rpx;\n left: 8rpx;\n width: calc(100% - 16rpx);\n height: calc(100% - 16rpx);\n background: rgba(255, 255, 255, 0.2);\n border-radius: 12rpx;\n z-index: -1;\n}\n\n@keyframes pulse {\n 0% {\n transform: scale(1);\n }\n 50% {\n transform: scale(1.1) rotate(120deg);\n }\n 100% {\n transform: scale(1);\n }\n}\n\n.custom-button span {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n transition: opacity 0.3s ease;\n opacity: 1; /* El texto principal estará visible por defecto */\n}\n\n",
"component_name": "GalaxyDullDonkey18"
},
"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 属性",
"不支持 cursor 属性"
],
"alternatives": []
},
"mp-alipay": {
"supported": true,
"issues": [
"不支持 box-shadow 属性",
"不支持 cursor 属性"
],
"alternatives": []
},
"app-plus": {
"supported": true,
"issues": [],
"alternatives": []
}
},
"performance": {
"complexity": "medium",
"bundle_size": 1604,
"render_cost": "medium",
"memory_usage": "medium"
},
"dependencies": [],
"examples": [
{
"title": "",
"description": "",
"code": ""
}
],
"created_at": "2025-07-31T07:55:36.662Z",
"updated_at": "2025-07-31T07:55:36.662Z"
}