galaxy-uniapp-mcp-server
Version:
Galaxy组件库到UniApp组件转换MCP服务器 - 支持跨平台组件转换、兼容性分析和项目集成
117 lines • 5.03 kB
JSON
{
"id": "Tsiangana_rude-wolverine-12",
"name": "rude-wolverine-12",
"category": "buttons",
"author": "Tsiangana",
"description": "rude-wolverine-12 组件 (simple, gradient, button, download, hover effect, interactive)",
"tags": [
"simple",
"gradient",
"button",
"download",
"hover effect",
"interactive"
],
"original": {
"html": "<button class=\"button\">\n <span class=\"one\">Download 0%</span>\n <span class=\"two\">100%</span>\n</button>",
"css": "/* From Uiverse.io by Tsiangana - Tags: simple, gradient, button, download, hover effect */\n.button {\n width: 140px;\n height: 45px;\n border-radius: 30em;\n position: relative;\n overflow: hidden;\n color: #fff;\n font-family: Roboto, sans-serif;\n font-weight: 600;\n font-size: 15px;\n line-height: 1;\n cursor: pointer;\n z-index: 1;\n background: #ff135a;\n border: 3px solid #fff;\n box-shadow: 6px 6px 12px #c5c5c5, -6px -6px 12px #ffffff;\n transition: 0.6s ease-in;\n}\n\n.button:hover {\n background: #fff;\n}\n\n.button .two {\n display: none;\n}\n\n.button::before {\n content: \"\";\n width: 0;\n height: 50px;\n border-radius: 30em;\n position: absolute;\n top: 0;\n left: 0;\n background-image: linear-gradient(to right, #0fd850 0%, #f9f047 100%);\n transition: 0.5s ease;\n display: block;\n z-index: -1;\n}\n\n.button:hover::before {\n width: 140px;\n transition: 3s linear;\n}\n\n.button:hover .one {\n display: none;\n}\n\n.button:hover .two {\n display: inline;\n}",
"file_path": "/mnt/persist/workspace/Buttons/Tsiangana_rude-wolverine-12.html"
},
"uniapp": {
"template": "<button class=\"button\"></button>\n <text class=\"one\">Download 0%</text>\n <text class=\"two\">100%</text>\n</button>",
"script": "export default {\n name: 'GalaxyRudeWolverine12',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}",
"style": "\n/* From Uiverse.io by Tsiangana - Tags: simple, gradient, button, download, hover effect */\n.button {\n width: 280rpx;\n height: 90rpx;\n border-radius: 30em;\n position: relative;\n overflow: hidden;\n color: #fff;\n font-family: Roboto, sans-serif;\n font-weight: 600;\n font-size: 30rpx;\n line-height: 1;\n /* #ifdef H5 */\n cursor: pointer;\n /* #endif */\n z-index: 1;\n background: #ff135a;\n border: 6rpx solid #fff;\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 12rpx 12rpx 24rpx #c5c5c5, -12rpx -12rpx 24rpx #ffffff;\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n transition: 0.6s ease-in;\n}\n\n.button:hover {\n background: #fff;\n}\n\n.button .two {\n display: none;\n}\n\n.button::before {\n content: \"\";\n width: 0;\n height: 100rpx;\n border-radius: 30em;\n position: absolute;\n top: 0;\n left: 0;\n background-image: linear-gradient(to right, #0fd850 0%, #f9f047 100%);\n transition: 0.5s ease;\n display: block;\n z-index: -1;\n}\n\n.button:hover::before {\n width: 280rpx;\n transition: 3s linear;\n}\n\n.button:hover .one {\n display: none;\n}\n\n.button:hover .two {\n display: inline;\n}\n\n",
"component_name": "GalaxyRudeWolverine12"
},
"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": 1079,
"render_cost": "low",
"memory_usage": "low"
},
"dependencies": [],
"examples": [
{
"title": "",
"description": "",
"code": ""
}
],
"created_at": "2025-07-31T07:55:35.021Z",
"updated_at": "2025-07-31T07:55:35.021Z"
}