galaxy-uniapp-mcp-server
Version:
Galaxy组件库到UniApp组件转换MCP服务器 - 支持跨平台组件转换、兼容性分析和项目集成
114 lines • 5.66 kB
JSON
{
"id": "sashadubovyi_fast-elephant-34",
"name": "fast-elephant-34",
"category": "buttons",
"author": "sashadubovyi",
"description": "fast-elephant-34 组件 (simple, animation, success, button, interactive)",
"tags": [
"simple",
"animation",
"success",
"button",
"interactive"
],
"original": {
"html": "<button class=\"btn\">\n <span class=\"left-span\"></span>\n <p class=\"text-btn\">Hover me</p>\n <p class=\"hidden-text-btn\">Thank you!</p>\n <span class=\"right-span\"></span>\n</button>",
"css": "/* From Uiverse.io by sashadubovyi - Tags: simple, animation, success, button */\n.btn {\n cursor: pointer;\n position: relative;\n padding-left: 30px;\n padding-right: 30px;\n padding-top: 10px;\n padding-bottom: 10px;\n font-size: 20px;\n font-weight: 400;\n border: none;\n display: flex;\n align-items: center;\n background: transparent;\n color: #f93d21;\n transition: all 100ms;\n overflow: hidden;\n height: 50px;\n width: 170px;\n}\n\n.left-span {\n position: absolute;\n left: 0;\n height: 50px;\n width: 15px;\n border-top: 1px solid #f93d21;\n border-bottom: 1px solid #f93d21;\n border-left: 1px solid #f93d21;\n transition: all 500ms;\n}\n\n.right-span {\n position: absolute;\n right: 0;\n height: 50px;\n width: 15px;\n border-top: 1px solid #f93d21;\n border-bottom: 1px solid #f93d21;\n border-right: 1px solid #f93d21;\n transition: all 500ms;\n}\n\n.text-btn {\n position: absolute;\n transform: translateX(0px);\n width: 110px;\n transition: all 200ms;\n}\n\n.hidden-text-btn {\n position: absolute;\n transform: translateX(150px);\n opacity: 0;\n transition: all 200ms;\n}\n\n.btn:hover .text-btn {\n transform: translateX(-150px);\n opacity: 0;\n}\n\n.btn:hover .hidden-text-btn {\n transform: translateX(0px);\n opacity: 1;\n}\n\n.btn:hover .right-span,\n.btn:hover .left-span {\n width: 100%;\n}",
"file_path": "/mnt/persist/workspace/Buttons/sashadubovyi_fast-elephant-34.html"
},
"uniapp": {
"template": "<button class=\"btn\"></button>\n <text class=\"left-span\"></text>\n <text class=\"text-btn\">Hover me</text>\n <text class=\"hidden-text-btn\">Thank you!</text>\n <text class=\"right-span\"></text>\n</button>",
"script": "export default {\n name: 'GalaxyFastElephant34',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}",
"style": "\n/* From Uiverse.io by sashadubovyi - Tags: simple, animation, success, button */\n.btn {\n /* #ifdef H5 */\n cursor: pointer;\n /* #endif */\n position: relative;\n padding-left: 60rpx;\n padding-right: 60rpx;\n padding-top: 20rpx;\n padding-bottom: 20rpx;\n font-size: 40rpx;\n font-weight: 400;\n border: none;\n display: flex;\n align-items: center;\n background: transparent;\n color: #f93d21;\n transition: all 100ms;\n overflow: hidden;\n height: 100rpx;\n width: 340rpx;\n}\n\n.left-span {\n position: absolute;\n left: 0;\n height: 100rpx;\n width: 30rpx;\n border-top: 2rpx solid #f93d21;\n border-bottom: 2rpx solid #f93d21;\n border-left: 2rpx solid #f93d21;\n transition: all 500ms;\n}\n\n.right-span {\n position: absolute;\n right: 0;\n height: 100rpx;\n width: 30rpx;\n border-top: 2rpx solid #f93d21;\n border-bottom: 2rpx solid #f93d21;\n border-right: 2rpx solid #f93d21;\n transition: all 500ms;\n}\n\n.text-btn {\n position: absolute;\n transform: translateX(0rpx);\n width: 220rpx;\n transition: all 200ms;\n}\n\n.hidden-text-btn {\n position: absolute;\n transform: translateX(300rpx);\n opacity: 0;\n transition: all 200ms;\n}\n\n.btn:hover .text-btn {\n transform: translateX(-300rpx);\n opacity: 0;\n}\n\n.btn:hover .hidden-text-btn {\n transform: translateX(0rpx);\n opacity: 1;\n}\n\n.btn:hover .right-span,\n.btn:hover .left-span {\n width: 100%;\n}\n\n",
"component_name": "GalaxyFastElephant34"
},
"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": 1484,
"render_cost": "medium",
"memory_usage": "medium"
},
"dependencies": [],
"examples": [
{
"title": "",
"description": "",
"code": ""
}
],
"created_at": "2025-07-31T07:55:37.730Z",
"updated_at": "2025-07-31T07:55:37.730Z"
}