galaxy-uniapp-mcp-server
Version:
Galaxy组件库到UniApp组件转换MCP服务器 - 支持跨平台组件转换、兼容性分析和项目集成
114 lines • 4.69 kB
JSON
{
"id": "sammykINC_average-bat-26",
"name": "average-bat-26",
"category": "buttons",
"author": "sammykINC",
"description": "average-bat-26 组件 (button, menu, animated, settings, animation)",
"tags": [
"button",
"menu",
"animated",
"settings",
"animation"
],
"original": {
"html": "<button class=\"button\">\n <svg viewBox=\"0 0 256 256\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M140,128a12,12,0,1,1-12-12A12,12,0,0,1,140,128ZM128,72a12,12,0,1,0-12-12A12,12,0,0,0,128,72Zm0,112a12,12,0,1,0,12,12A12,12,0,0,0,128,184Z\"></path></svg>\n</button>",
"css": "/* From Uiverse.io by sammykINC - Tags: button, menu, animated, settings */\n/* works only on a dark background with these paremeters*/\n\n.button {\n border-radius: 50%;\n border: none;\n display: flex;\n place-items: center;\n background-color: transparent;\n cursor: pointer;\n}\n\n.button > svg {\n border-radius: inherit;\n padding: 0.5rem;\n fill: #fff;\n /* SVG color */\n width: 38px;\n /* default width 32px */\n height: 38px;\n /* default height 32px */\n}\n\n.button > svg:active {\n background-color: rgba(65, 65, 65, 0.5);\n}\n\n.button > svg:not(:active) {\n animation: fadeOut 0.9s;\n}\n\n@keyframes fadeOut {\n 0% {\n outline: 1px solid rgba(90, 90, 90, 0.5);\n /* If you use border it will take space inside and slightly move the SVG */\n }\n\n 100% {\n background-color: transparent;\n }\n}",
"file_path": "/mnt/persist/workspace/Buttons/sammykINC_average-bat-26.html"
},
"uniapp": {
"template": "<button class=\"button\"></button>\n <view viewBox=\"0 0 256 256\" xmlns=\"http://www.w3.org/2000/svg\"></view>\n <path d=\"M140,128a12,12,0,1,1-12-12A12,12,0,0,1,140,128ZM128,72a12,12,0,1,0-12-12A12,12,0,0,0,128,72Zm0,112a12,12,0,1,0,12,12A12,12,0,0,0,128,184Z\"></path></svg>\n</button>",
"script": "export default {\n name: 'GalaxyAverageBat26',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}",
"style": "\n/* From Uiverse.io by sammykINC - Tags: button, menu, animated, settings */\n/* works only on a dark background with these paremeters*/\n\n.button {\n border-radius: 50%;\n border: none;\n display: flex;\n place-items: center;\n background-color: transparent;\n /* #ifdef H5 */\n cursor: pointer;\n /* #endif */\n}\n\n.button > svg {\n border-radius: inherit;\n padding: 0.5rem;\n fill: #fff;\n /* SVG color */\n width: 76rpx;\n /* default width 64rpx */\n height: 76rpx;\n /* default height 64rpx */\n}\n\n.button > svg:active {\n background-color: rgba(65, 65, 65, 0.5);\n}\n\n.button > svg:not(:active) {\n animation: fadeOut 0.9s;\n}\n\n@keyframes fadeOut {\n 0% {\n outline: 2rpx solid rgba(90, 90, 90, 0.5);\n /* If you use border it will take space inside and slightly move the SVG */\n }\n\n 100% {\n background-color: transparent;\n }\n}\n\n",
"component_name": "GalaxyAverageBat26"
},
"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": 1058,
"render_cost": "medium",
"memory_usage": "medium"
},
"dependencies": [],
"examples": [
{
"title": "",
"description": "",
"code": ""
}
],
"created_at": "2025-07-31T07:55:37.726Z",
"updated_at": "2025-07-31T07:55:37.726Z"
}