galaxy-uniapp-mcp-server
Version:
Galaxy组件库到UniApp组件转换MCP服务器 - 支持跨平台组件转换、兼容性分析和项目集成
117 lines • 8.18 kB
JSON
{
"id": "Subaashbala_slippery-goat-18",
"name": "slippery-goat-18",
"category": "buttons",
"author": "Subaashbala",
"description": "slippery-goat-18 组件 (login, button, transition, hover button, animation, interactive)",
"tags": [
"login",
"button",
"transition",
"hover button",
"animation",
"interactive"
],
"original": {
"html": "<button class=\"button\">\n <div class=\"bgContainer\">\n <span>Hover</span>\n <span>Hover</span>\n </div>\n <div class=\"arrowContainer\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 45 38\" height=\"25\" width=\"25\">\n <path fill=\"black\" d=\"M43.7678 20.7678C44.7441 19.7915 44.7441 18.2085 43.7678 17.2322L27.8579 1.32233C26.8816 0.34602 25.2986 0.34602 24.3223 1.32233C23.346 2.29864 23.346 3.88155 24.3223 4.85786L38.4645 19L24.3223 33.1421C23.346 34.1184 23.346 35.7014 24.3223 36.6777C25.2986 37.654 26.8816 37.654 27.8579 36.6777L43.7678 20.7678ZM0 21.5L42 21.5V16.5L0 16.5L0 21.5Z\"></path>\n </svg>\n </div>\n</button>",
"css": "/* From Uiverse.io by Subaashbala - Tags: login, button, transition, hover button */\nbutton {\n display: flex;\n justify-content: space-around;\n align-items: center;\n padding: 1em 0em 1em 1em;\n background-color: yellow;\n box-shadow: 4px 6px 0px black;\n border: 4px solid;\n border-radius: 15px;\n position: relative;\n overflow: hidden;\n z-index: 100;\n transition: box-shadow 250ms, transform 250ms, filter 50ms;\n}\nbutton:hover {\n transform: translate(2px, 2px);\n box-shadow: 2px 3px 0px black;\n}\nbutton:active {\n filter: saturate(0.75);\n}\nbutton::after {\n content: \"\";\n position: absolute;\n inset: 0;\n background-color: pink;\n z-index: -1;\n transform: translateX(-100%);\n transition: transform 250ms;\n}\nbutton:hover::after {\n transform: translateX(0);\n}\n.bgContainer {\n position: relative;\n display: flex;\n justify-content: start;\n align-items: center;\n overflow: hidden;\n max-width: 35%; /* adjust this if the button text is not proper */\n font-size: 2em;\n font-weight: 600;\n}\n.bgContainer span {\n position: relative;\n transform: translateX(-100%);\n transition: all 250ms;\n}\n.button:hover .bgContainer > span {\n transform: translateX(0);\n}\n.arrowContainer {\n padding: 1em;\n margin-inline-end: 1em;\n border: 4px solid;\n border-radius: 50%;\n background-color: pink;\n position: relative;\n overflow: hidden;\n transition: transform 250ms, background-color 250ms;\n z-index: 100;\n}\n.arrowContainer::after {\n content: \"\";\n position: absolute;\n inset: 0;\n border-radius: inherit;\n background-color: yellow;\n transform: translateX(-100%);\n z-index: -1;\n transition: transform 250ms ease-in-out;\n}\nbutton:hover .arrowContainer::after {\n transform: translateX(0);\n}\nbutton:hover .arrowContainer {\n transform: translateX(5px);\n}\nbutton:active .arrowContainer {\n transform: translateX(8px);\n}\n.arrowContainer svg {\n vertical-align: middle;\n}",
"file_path": "/mnt/persist/workspace/Buttons/Subaashbala_slippery-goat-18.html"
},
"uniapp": {
"template": "<button class=\"button\"></button>\n <view class=\"bgContainer\"></view>\n <text>Hover</text>\n <text>Hover</text>\n </div>\n <view class=\"arrowContainer\"></view>\n <view xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 45 38\" height=\"25\" width=\"25\"></view>\n <path fill=\"black\" d=\"M43.7678 20.7678C44.7441 19.7915 44.7441 18.2085 43.7678 17.2322L27.8579 1.32233C26.8816 0.34602 25.2986 0.34602 24.3223 1.32233C23.346 2.29864 23.346 3.88155 24.3223 4.85786L38.4645 19L24.3223 33.1421C23.346 34.1184 23.346 35.7014 24.3223 36.6777C25.2986 37.654 26.8816 37.654 27.8579 36.6777L43.7678 20.7678ZM0 21.5L42 21.5V16.5L0 16.5L0 21.5Z\"></path>\n </svg>\n </div>\n</button>",
"script": "export default {\n name: 'GalaxySlipperyGoat18',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}",
"style": "\n/* From Uiverse.io by Subaashbala - Tags: login, button, transition, hover button */\nbutton {\n display: flex;\n justify-content: space-around;\n align-items: center;\n padding: 1em 0em 1em 1em;\n background-color: yellow;\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 8rpx 12rpx 0rpx black;\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n border: 8rpx solid;\n border-radius: 30rpx;\n position: relative;\n overflow: hidden;\n z-index: 100;\n transition: box-shadow 250ms, transform 250ms, filter 50ms;\n}\nbutton:hover {\n transform: translate(4rpx, 4rpx);\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 4rpx 6rpx 0rpx black;\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n}\nbutton:active {\n \n}\nbutton::after {\n content: \"\";\n position: absolute;\n inset: 0;\n background-color: pink;\n z-index: -1;\n transform: translateX(-100%);\n transition: transform 250ms;\n}\nbutton:hover::after {\n transform: translateX(0);\n}\n.bgContainer {\n position: relative;\n display: flex;\n justify-content: start;\n align-items: center;\n overflow: hidden;\n max-width: 35%; /* adjust this if the button text is not proper */\n font-size: 2em;\n font-weight: 600;\n}\n.bgContainer span {\n position: relative;\n transform: translateX(-100%);\n transition: all 250ms;\n}\n.button:hover .bgContainer > span {\n transform: translateX(0);\n}\n.arrowContainer {\n padding: 1em;\n margin-inline-end: 1em;\n border: 8rpx solid;\n border-radius: 50%;\n background-color: pink;\n position: relative;\n overflow: hidden;\n transition: transform 250ms, background-color 250ms;\n z-index: 100;\n}\n.arrowContainer::after {\n content: \"\";\n position: absolute;\n inset: 0;\n border-radius: inherit;\n background-color: yellow;\n transform: translateX(-100%);\n z-index: -1;\n transition: transform 250ms ease-in-out;\n}\nbutton:hover .arrowContainer::after {\n transform: translateX(0);\n}\nbutton:hover .arrowContainer {\n transform: translateX(10rpx);\n}\nbutton:active .arrowContainer {\n transform: translateX(16rpx);\n}\n.arrowContainer svg {\n vertical-align: middle;\n}\n\n",
"component_name": "GalaxySlipperyGoat18"
},
"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 属性",
"不支持 filter 属性"
],
"alternatives": []
},
"mp-alipay": {
"supported": true,
"issues": [
"不支持 box-shadow 属性",
"不支持 filter 属性"
],
"alternatives": []
},
"app-plus": {
"supported": true,
"issues": [],
"alternatives": []
}
},
"performance": {
"complexity": "medium",
"bundle_size": 2541,
"render_cost": "medium",
"memory_usage": "medium"
},
"dependencies": [],
"examples": [
{
"title": "",
"description": "",
"code": ""
}
],
"created_at": "2025-07-31T07:55:34.927Z",
"updated_at": "2025-07-31T07:55:34.927Z"
}