galaxy-uniapp-mcp-server
Version:
Galaxy组件库到UniApp组件转换MCP服务器 - 支持跨平台组件转换、兼容性分析和项目集成
113 lines • 5.03 kB
JSON
{
"id": "SharpTH_itchy-mole-30",
"name": "itchy-mole-30",
"category": "buttons",
"author": "SharpTH",
"description": "itchy-mole-30 组件 (button, interactive)",
"tags": [
"button",
"interactive"
],
"original": {
"html": "<button class=\"btn draw-border\">Button</button>",
"css": "/* From Uiverse.io by SharpTH - Tags: button */\n.draw-border {\n box-shadow: inset 0 0 0 4px #58afd1;\n color: #58afd1;\n transition: color 0.25s 0.0833333333s;\n position: relative;\n}\n\n.draw-border::before, .draw-border::after {\n border: 0 solid transparent;\n box-sizing: border-box;\n content: \"\";\n pointer-events: none;\n position: absolute;\n width: 0;\n height: 0;\n bottom: 0;\n right: 0;\n}\n\n.draw-border::before {\n border-bottom-width: 4px;\n border-left-width: 4px;\n}\n\n.draw-border::after {\n border-top-width: 4px;\n border-right-width: 4px;\n}\n\n.draw-border:hover {\n color: #ffe593;\n}\n\n.draw-border:hover::before, .draw-border:hover::after {\n border-color: #ffe593;\n transition: border-color 0s, width 0.25s, height 0.25s;\n width: 100%;\n height: 100%;\n}\n\n.draw-border:hover::before {\n transition-delay: 0s, 0s, 0.25s;\n}\n\n.draw-border:hover::after {\n transition-delay: 0s, 0.25s, 0s;\n}\n\n.btn {\n background: none;\n border: none;\n cursor: pointer;\n line-height: 1.5;\n font: 700 17px \"Roboto Slab\", sans-serif;\n padding: 1em 2em;\n letter-spacing: 0.05rem;\n}\n\n.btn:focus {\n outline: 2px dotted #55d7dc;\n}",
"file_path": "/mnt/persist/workspace/Buttons/SharpTH_itchy-mole-30.html"
},
"uniapp": {
"template": "<button class=\"btn draw-border\"></button>Button</button>",
"script": "export default {\n name: 'GalaxyItchyMole30',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}",
"style": "\n/* From Uiverse.io by SharpTH - Tags: button */\n.draw-border {\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: inset 0 0 0 8rpx #58afd1;\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n color: #58afd1;\n transition: color 0.25s 0.0833333333s;\n position: relative;\n}\n\n.draw-border::before, .draw-border::after {\n border: 0 solid transparent;\n box-sizing: border-box;\n content: \"\";\n pointer-events: none;\n position: absolute;\n width: 0;\n height: 0;\n bottom: 0;\n right: 0;\n}\n\n.draw-border::before {\n border-bottom-width: 8rpx;\n border-left-width: 8rpx;\n}\n\n.draw-border::after {\n border-top-width: 8rpx;\n border-right-width: 8rpx;\n}\n\n.draw-border:hover {\n color: #ffe593;\n}\n\n.draw-border:hover::before, .draw-border:hover::after {\n border-color: #ffe593;\n transition: border-color 0s, width 0.25s, height 0.25s;\n width: 100%;\n height: 100%;\n}\n\n.draw-border:hover::before {\n transition-delay: 0s, 0s, 0.25s;\n}\n\n.draw-border:hover::after {\n transition-delay: 0s, 0.25s, 0s;\n}\n\n.btn {\n background: none;\n border: none;\n /* #ifdef H5 */\n cursor: pointer;\n /* #endif */\n line-height: 1.5;\n font: 700 34rpx \"Roboto Slab\", sans-serif;\n padding: 1em 2em;\n letter-spacing: 0.05rem;\n}\n\n.btn:focus {\n outline: 4rpx dotted #55d7dc;\n}\n\n\n",
"component_name": "GalaxyItchyMole30"
},
"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": 1148,
"render_cost": "low",
"memory_usage": "low"
},
"dependencies": [],
"examples": [
{
"title": "",
"description": "",
"code": ""
}
],
"created_at": "2025-07-31T07:55:34.629Z",
"updated_at": "2025-07-31T07:55:34.629Z"
}