galaxy-uniapp-mcp-server
Version:
Galaxy组件库到UniApp组件转换MCP服务器 - 支持跨平台组件转换、兼容性分析和项目集成
113 lines • 4.75 kB
JSON
{
"id": "barisdogansutcu_lovely-walrus-42",
"name": "lovely-walrus-42",
"category": "buttons",
"author": "barisdogansutcu",
"description": "lovely-walrus-42 组件 (button, animation, gradient, interactive)",
"tags": [
"button",
"animation",
"gradient",
"interactive"
],
"original": {
"html": "<button>\n <svg class=\"css-i6dzq1\" stroke-linejoin=\"round\" stroke-linecap=\"round\" fill=\"none\" stroke-width=\"2\" stroke=\"#FFFFFF\" height=\"24\" width=\"24\" viewBox=\"0 0 24 24\">\n <path d=\"M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z\"></path>\n </svg>\n Edit\n</button>",
"css": "/* From Uiverse.io by barisdogansutcu - Tags: button */\nbutton {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 10px;\n background-image: linear-gradient(to top, #30cfd0 0%, #330867 100%);\n border: solid 3px transparent;\n background-clip: padding-box;\n box-shadow: 0px 0px 0px 3px #ffffff00;\n color: white;\n min-height: 43px;\n padding: 0 13px 0 13px;\n border-radius: 50px;\n text-transform: uppercase;\n letter-spacing: 2px;\n transition: all .5s ease;\n}\n\nbutton:active {\n transform: scale(.9);\n transition: all 100ms ease;\n}\n\nbutton:hover {\n box-shadow: 0px 0px 0px 3px #30a1b8;\n}\n\nbutton svg {\n width: 16px;\n}",
"file_path": "/mnt/persist/workspace/Buttons/barisdogansutcu_lovely-walrus-42.html"
},
"uniapp": {
"template": "<button></button>\n <view class=\"css-i6dzq1\" stroke-linejoin=\"round\" stroke-linecap=\"round\" fill=\"none\" stroke-width=\"2\" stroke=\"#FFFFFF\" height=\"24\" width=\"24\" viewBox=\"0 0 24 24\"></view>\n <path d=\"M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z\"></path>\n </svg>\n Edit\n</button>",
"script": "export default {\n name: 'GalaxyLovelyWalrus42',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}",
"style": "\n/* From Uiverse.io by barisdogansutcu - Tags: button */\nbutton {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 20rpx;\n background-image: linear-gradient(to top, #30cfd0 0%, #330867 100%);\n border: solid 6rpx transparent;\n background-clip: padding-box;\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 0rpx 0rpx 0rpx 6rpx #ffffff00;\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n color: white;\n min-height: 86rpx;\n padding: 0 26rpx 0 26rpx;\n border-radius: 100rpx;\n text-transform: uppercase;\n letter-spacing: 4rpx;\n transition: all .5s ease;\n}\n\nbutton:active {\n transform: scale(.9);\n transition: all 100ms ease;\n}\n\nbutton:hover {\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 0rpx 0rpx 0rpx 6rpx #30a1b8;\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n}\n\nbutton svg {\n width: 32rpx;\n}\n",
"component_name": "GalaxyLovelyWalrus42"
},
"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": "medium",
"bundle_size": 938,
"render_cost": "medium",
"memory_usage": "medium"
},
"dependencies": [],
"examples": [
{
"title": "",
"description": "",
"code": ""
}
],
"created_at": "2025-07-31T07:55:35.896Z",
"updated_at": "2025-07-31T07:55:35.896Z"
}