galaxy-uniapp-mcp-server
Version:
Galaxy组件库到UniApp组件转换MCP服务器 - 支持跨平台组件转换、兼容性分析和项目集成
113 lines • 3.36 kB
JSON
{
"id": "sunnyshaikh_stale-bear-45",
"name": "stale-bear-45",
"category": "buttons",
"author": "sunnyshaikh",
"description": "stale-bear-45 组件 (button, gradient)",
"tags": [
"button",
"gradient"
],
"original": {
"html": "<button>\n Button\n</button>",
"css": "/* From Uiverse.io by sunnyshaikh - Tags: button */\nbutton {\n padding: 15px 40px;\n background: linear-gradient(145deg, lightblue, blue);\n font-size: 1rem;\n border: 0;\n border-radius: 30px;\n color: #fff;\n text-shadow: 0 1px 2px rgba(0,0,0,.5);\n box-shadow: inset 0 -2px 10px rgba(0,0,0,.3),\n 0 2px 5px rgba(0,0,0,.3);\n}",
"file_path": "/mnt/persist/workspace/Buttons/sunnyshaikh_stale-bear-45.html"
},
"uniapp": {
"template": "<button></button>\n Button\n</button>",
"script": "export default {\n name: 'GalaxyStaleBear45',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}",
"style": "\n/* From Uiverse.io by sunnyshaikh - Tags: button */\nbutton {\n padding: 30rpx 80rpx;\n background: linear-gradient(145deg, lightblue, blue);\n font-size: 1rem;\n border: 0;\n border-radius: 60rpx;\n color: #fff;\n /* #ifdef H5 */\n text-shadow: 0 2rpx 4rpx rgba(0,0,0,.5);\n /* #endif */\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: inset 0 -4rpx 20rpx rgba(0,0,0,.3),\n 0 4rpx 10rpx rgba(0,0,0,.3);\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n}\n",
"component_name": "GalaxyStaleBear45"
},
"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 属性",
"不支持 text-shadow 属性"
],
"alternatives": []
},
"mp-alipay": {
"supported": true,
"issues": [
"不支持 box-shadow 属性",
"不支持 text-shadow 属性"
],
"alternatives": []
},
"app-plus": {
"supported": true,
"issues": [],
"alternatives": []
}
},
"performance": {
"complexity": "low",
"bundle_size": 358,
"render_cost": "low",
"memory_usage": "low"
},
"dependencies": [],
"examples": [
{
"title": "",
"description": "",
"code": ""
}
],
"created_at": "2025-07-31T07:55:37.923Z",
"updated_at": "2025-07-31T07:55:37.923Z"
}