galaxy-uniapp-mcp-server
Version:
Galaxy组件库到UniApp组件转换MCP服务器 - 支持跨平台组件转换、兼容性分析和项目集成
115 lines • 9.91 kB
JSON
{
"id": "SelfMadeSystem_afraid-rabbit-12",
"name": "afraid-rabbit-12",
"category": "buttons",
"author": "SelfMadeSystem",
"description": "afraid-rabbit-12 组件 (button, ripple, animated, animation, gradient, interactive)",
"tags": [
"button",
"ripple",
"animated",
"animation",
"gradient",
"interactive"
],
"original": {
"html": "<button class=\"btn\">\n <span>Border 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 <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 <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 <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 <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 <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 <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: button, ripple, animated */\n/* Note the transparent background :) */\n.btn {\n border-radius: 0.5em;\n font-size: larger;\n height: 3em;\n width: 8em;\n position: relative;\n border: none;\n background-color: transparent;\n isolation: isolate;\n}\n\n.btn > span {\n position: relative;\n pointer-events: none;\n}\n\n.ripple-container {\n position: absolute;\n inset: -0.3em;\n display: grid;\n grid-template-columns: repeat(16, 0.5em);\n border-radius: 0.8em;\n padding: 0.3em;\n mask: linear-gradient(#fff 0 0) content-box,\n linear-gradient(#fff 0 0);\n /* I forgor that I need the two mask composites because of firefoxxxxxx */\n mask-composite: exclude;\n mask-composite: xor;\n -webkit-mask: linear-gradient(#fff 0 0) content-box,\n linear-gradient(#fff 0 0);\n -webkit-mask-composite: exclude;\n -webkit-mask-composite: xor;\n overflow: hidden;\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: 18em;\n height: 18em;\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.ripple-container::before {\n content: \"\";\n pointer-events: none;\n position: absolute;\n background-color: hsla(218, 68%, 65%, 0.5);\n width: 13em;\n height: 13em;\n border-radius: 999em;\n transition: transform 0.25s ease-out;\n transform: translate(-25%, -25%) scale(0);\n}\n\n.ripple-container:hover::before {\n transform: translate(-25%, -25%) scale(1);\n}",
"file_path": "/mnt/persist/workspace/Buttons/SelfMadeSystem_afraid-rabbit-12.html"
},
"uniapp": {
"template": "<button class=\"btn\"></button>\n <text>Border 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 <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 <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 <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 <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 <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 <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: 'GalaxyAfraidRabbit12',\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: button, ripple, animated */\n/* Note the transparent background :) */\n.btn {\n border-radius: 0.5em;\n font-size: larger;\n height: 3em;\n width: 8em;\n position: relative;\n border: none;\n background-color: transparent;\n isolation: isolate;\n}\n\n.btn > span {\n position: relative;\n pointer-events: none;\n}\n\n.ripple-container {\n position: absolute;\n inset: -0.3em;\n display: grid;\n grid-template-columns: repeat(16, 0.5em);\n border-radius: 0.8em;\n padding: 0.3em;\n \n /* I forgor that I need the two mask composites because of firefoxxxxxx */\n mask-composite: exclude;\n mask-composite: xor;\n -webkit-\n -webkit-mask-composite: exclude;\n -webkit-mask-composite: xor;\n overflow: hidden;\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: 18em;\n height: 18em;\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.ripple-container::before {\n content: \"\";\n pointer-events: none;\n position: absolute;\n background-color: hsla(218, 68%, 65%, 0.5);\n width: 13em;\n height: 13em;\n border-radius: 999em;\n transition: transform 0.25s ease-out;\n transform: translate(-25%, -25%) scale(0);\n}\n\n.ripple-container:hover::before {\n transform: translate(-25%, -25%) scale(1);\n}\n\n",
"component_name": "GalaxyAfraidRabbit12"
},
"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": [
"不支持 mask 属性"
],
"alternatives": []
},
"mp-alipay": {
"supported": true,
"issues": [
"不支持 mask 属性"
],
"alternatives": []
},
"app-plus": {
"supported": true,
"issues": [],
"alternatives": []
}
},
"performance": {
"complexity": "medium",
"bundle_size": 3597,
"render_cost": "medium",
"memory_usage": "medium"
},
"dependencies": [],
"examples": [
{
"title": "",
"description": "",
"code": ""
}
],
"created_at": "2025-07-31T07:55:34.560Z",
"updated_at": "2025-07-31T07:55:34.560Z"
}