galaxy-uniapp-mcp-server
Version:
Galaxy组件库到UniApp组件转换MCP服务器 - 支持跨平台组件转换、兼容性分析和项目集成
113 lines • 8.62 kB
JSON
{
"id": "SelfMadeSystem_brown-kangaroo-43",
"name": "brown-kangaroo-43",
"category": "buttons",
"author": "SelfMadeSystem",
"description": "brown-kangaroo-43 组件 (material design, button, ripple, interactive)",
"tags": [
"material design",
"button",
"ripple",
"interactive"
],
"original": {
"html": "<button class=\"btn\">\n <span>Ripple</span>\n <div class=\"ripple-container\">\n <span></span>\n <span></span>\n <span></span>\n <span></span>\n <span></span>\n <span></span>\n <span></span>\n <span></span>\n <span></span>\n <span></span>\n \n <span></span>\n <span></span>\n <span></span>\n <span></span>\n <span></span>\n <span></span>\n <span></span>\n <span></span>\n <span></span>\n <span></span>\n \n <span></span>\n <span></span>\n <span></span>\n <span></span>\n <span></span>\n <span></span>\n <span></span>\n <span></span>\n <span></span>\n <span></span>\n \n <span></span>\n <span></span>\n <span></span>\n <span></span>\n <span></span>\n <span></span>\n <span></span>\n <span></span>\n <span></span>\n <span></span>\n \n <span></span>\n <span></span>\n <span></span>\n <span></span>\n <span></span>\n <span></span>\n <span></span>\n <span></span>\n <span></span>\n <span></span>\n \n <span></span>\n <span></span>\n <span></span>\n <span></span>\n <span></span>\n <span></span>\n <span></span>\n <span></span>\n <span></span>\n <span></span>\n </div>\n</button>",
"css": "/* From Uiverse.io by SelfMadeSystem - Tags: material design, button, ripple */\n.btn {\n border-radius: 0.5em;\n font-size: larger;\n height: 3em;\n width: 6em;\n position: relative;\n border: none;\n background-color: hsl(218, 68%, 52%);\n overflow: hidden;\n isolation: isolate;\n color: white;\n box-shadow: 1px 2px 4px #0007;\n transition: background-color 0.2s;\n}\n\n.btn:hover {\n background-color: hsl(218, 68%, 47%);\n}\n\n.btn > span {\n position: relative;\n pointer-events: none;\n z-index: 10;\n}\n\n.ripple-container {\n position: absolute;\n inset: 0;\n display: grid;\n grid-template-columns: repeat(12, 0.5em);\n}\n\n.ripple-container > span {\n position: relative;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.ripple-container > span::after {\n content: \"\";\n pointer-events: none;\n position: absolute;\n background-color: hsl(218, 68%, 65%);\n transition: width 0.5s ease-out, height 0.5s ease-out, opacity 1s;\n width: 13em;\n height: 13em;\n opacity: 0;\n border-radius: 999em;\n}\n\n.ripple-container > span:active::after {\n transition: 0s;\n width: 0em;\n height: 0em;\n opacity: 1;\n}\n\n/*\nUse this instead if you want the ripple to start\nimmediately on click but end abruptly on unclick:\n\n.ripple-container > span::after {\n content: \"\";\n pointer-events: none;\n position: absolute;\n background-color: hsl(218, 68%, 65%);\n width: 0em;\n height: 0em;\n border-radius: 999em;\n opacity: 1;\n}\n\n.ripple-container > span:active::after {\n transition: width 0.25s ease-out, height 0.25s ease-out, opacity 0.75s;\n width: 13em;\n height: 13em;\n opacity: 0;\n}\n\nYour Global selectors gets triggered by this:\n*/",
"file_path": "/mnt/persist/workspace/Buttons/SelfMadeSystem_brown-kangaroo-43.html"
},
"uniapp": {
"template": "<button class=\"btn\"></button>\n <text>Ripple</text>\n <view class=\"ripple-container\"></view>\n <text></text>\n <text></text>\n <text></text>\n <text></text>\n <text></text>\n <text></text>\n <text></text>\n <text></text>\n <text></text>\n <text></text>\n \n <text></text>\n <text></text>\n <text></text>\n <text></text>\n <text></text>\n <text></text>\n <text></text>\n <text></text>\n <text></text>\n <text></text>\n \n <text></text>\n <text></text>\n <text></text>\n <text></text>\n <text></text>\n <text></text>\n <text></text>\n <text></text>\n <text></text>\n <text></text>\n \n <text></text>\n <text></text>\n <text></text>\n <text></text>\n <text></text>\n <text></text>\n <text></text>\n <text></text>\n <text></text>\n <text></text>\n \n <text></text>\n <text></text>\n <text></text>\n <text></text>\n <text></text>\n <text></text>\n <text></text>\n <text></text>\n <text></text>\n <text></text>\n \n <text></text>\n <text></text>\n <text></text>\n <text></text>\n <text></text>\n <text></text>\n <text></text>\n <text></text>\n <text></text>\n <text></text>\n </div>\n</button>",
"script": "export default {\n name: 'GalaxyBrownKangaroo43',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}",
"style": "\n/* From Uiverse.io by SelfMadeSystem - Tags: material design, button, ripple */\n.btn {\n border-radius: 0.5em;\n font-size: larger;\n height: 3em;\n width: 6em;\n position: relative;\n border: none;\n background-color: hsl(218, 68%, 52%);\n overflow: hidden;\n isolation: isolate;\n color: white;\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 2rpx 4rpx 8rpx #0007;\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n transition: background-color 0.2s;\n}\n\n.btn:hover {\n background-color: hsl(218, 68%, 47%);\n}\n\n.btn > span {\n position: relative;\n pointer-events: none;\n z-index: 10;\n}\n\n.ripple-container {\n position: absolute;\n inset: 0;\n display: grid;\n grid-template-columns: repeat(12, 0.5em);\n}\n\n.ripple-container > span {\n position: relative;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.ripple-container > span::after {\n content: \"\";\n pointer-events: none;\n position: absolute;\n background-color: hsl(218, 68%, 65%);\n transition: width 0.5s ease-out, height 0.5s ease-out, opacity 1s;\n width: 13em;\n height: 13em;\n opacity: 0;\n border-radius: 999em;\n}\n\n.ripple-container > span:active::after {\n transition: 0s;\n width: 0em;\n height: 0em;\n opacity: 1;\n}\n\n/*\nUse this instead if you want the ripple to start\nimmediately on click but end abruptly on unclick:\n\n.ripple-container > span::after {\n content: \"\";\n pointer-events: none;\n position: absolute;\n background-color: hsl(218, 68%, 65%);\n width: 0em;\n height: 0em;\n border-radius: 999em;\n opacity: 1;\n}\n\n.ripple-container > span:active::after {\n transition: width 0.25s ease-out, height 0.25s ease-out, opacity 0.75s;\n width: 13em;\n height: 13em;\n opacity: 0;\n}\n\nYour Global selectors gets triggered by this:\n*/\n",
"component_name": "GalaxyBrownKangaroo43"
},
"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": "low",
"bundle_size": 2844,
"render_cost": "low",
"memory_usage": "low"
},
"dependencies": [],
"examples": [
{
"title": "",
"description": "",
"code": ""
}
],
"created_at": "2025-07-31T07:55:34.564Z",
"updated_at": "2025-07-31T07:55:34.564Z"
}