galaxy-uniapp-mcp-server
Version:
Galaxy组件库到UniApp组件转换MCP服务器 - 支持跨平台组件转换、兼容性分析和项目集成
114 lines • 4.41 kB
JSON
{
"id": "PriyanshuGupta28_smooth-elephant-43",
"name": "smooth-elephant-43",
"category": "buttons",
"author": "PriyanshuGupta28",
"description": "smooth-elephant-43 组件 (gradient, button, interactive)",
"tags": [
"gradient",
"button",
"interactive"
],
"original": {
"html": "<button class=\"my-button\">Click Me</button>",
"css": "/* From Uiverse.io by PriyanshuGupta28 - Tags: gradient, button */\n.my-button {\n display: inline-block;\n padding: 10px 20px;\n font-size: 16px;\n font-weight: bold;\n text-align: center;\n text-decoration: none;\n color: white;\n background-color: #4158D0;\n background-image: linear-gradient(43deg, #4158D0 0%, #C850C0 46%, #FFCC70 100%);\n transition: 0.2s ease-in-out;\n border: none;\n border-radius: 4px;\n cursor: pointer;\n box-shadow: rgb(38, 57, 77) 0px 20px 30px -10px;\n}\n\n.my-button:hover {\n box-shadow: rgba(0, 0, 0, 0.3) 0px 19px 38px, rgba(0, 0, 0, 0.22) 0px 15px 12px;\n}\n\n.my-button:active {\n background-color: #00DBDE;\n background-image: linear-gradient(90deg, #00DBDE 0%, #FC00FF 100%);\n}",
"file_path": "/mnt/persist/workspace/Buttons/PriyanshuGupta28_smooth-elephant-43.html"
},
"uniapp": {
"template": "<button class=\"my-button\"></button>Click Me</button>",
"script": "export default {\n name: 'GalaxySmoothElephant43',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}",
"style": "\n/* From Uiverse.io by PriyanshuGupta28 - Tags: gradient, button */\n.my-button {\n display: inline-block;\n padding: 20rpx 40rpx;\n font-size: 32rpx;\n font-weight: bold;\n text-align: center;\n text-decoration: none;\n color: white;\n background-color: #4158D0;\n background-image: linear-gradient(43deg, #4158D0 0%, #C850C0 46%, #FFCC70 100%);\n transition: 0.2s ease-in-out;\n border: none;\n border-radius: 8rpx;\n /* #ifdef H5 */\n cursor: pointer;\n /* #endif */\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: rgb(38, 57, 77) 0rpx 40rpx 60rpx -20rpx;\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n}\n\n.my-button:hover {\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: rgba(0, 0, 0, 0.3) 0rpx 38rpx 76rpx, rgba(0, 0, 0, 0.22) 0rpx 30rpx 24rpx;\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n}\n\n.my-button:active {\n background-color: #00DBDE;\n background-image: linear-gradient(90deg, #00DBDE 0%, #FC00FF 100%);\n}\n\n",
"component_name": "GalaxySmoothElephant43"
},
"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": "low",
"bundle_size": 759,
"render_cost": "low",
"memory_usage": "low"
},
"dependencies": [],
"examples": [
{
"title": "",
"description": "",
"code": ""
}
],
"created_at": "2025-07-31T07:55:34.359Z",
"updated_at": "2025-07-31T07:55:34.359Z"
}