galaxy-uniapp-mcp-server
Version:
Galaxy组件库到UniApp组件转换MCP服务器 - 支持跨平台组件转换、兼容性分析和项目集成
115 lines • 4.55 kB
JSON
{
"id": "gharsh11032000_foolish-sloth-90",
"name": "foolish-sloth-90",
"category": "buttons",
"author": "gharsh11032000",
"description": "foolish-sloth-90 组件 (button, hover effect, cool btn, interactive)",
"tags": [
"button",
"hover effect",
"cool btn",
"interactive"
],
"original": {
"html": "<button class=\"button\">\n Subscribe\n</button>",
"css": "/* From Uiverse.io by gharsh11032000 - Tags: button, hover effect, cool btn */\n.button {\n cursor: pointer;\n position: relative;\n padding: 10px 24px;\n font-size: 18px;\n color: rgb(193, 163, 98);\n border: 2px solid rgb(193, 163, 98);\n border-radius: 34px;\n background-color: transparent;\n font-weight: 600;\n transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);\n overflow: hidden;\n}\n\n.button::before {\n content: '';\n position: absolute;\n inset: 0;\n margin: auto;\n width: 50px;\n height: 50px;\n border-radius: inherit;\n scale: 0;\n z-index: -1;\n background-color: rgb(193, 163, 98);\n transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);\n}\n\n.button:hover::before {\n scale: 3;\n}\n\n.button:hover {\n color: #212121;\n scale: 1.1;\n box-shadow: 0 0px 20px rgba(193, 163, 98,0.4);\n}\n\n.button:active {\n scale: 1;\n}",
"file_path": "/mnt/persist/workspace/Buttons/gharsh11032000_foolish-sloth-90.html"
},
"uniapp": {
"template": "<button class=\"button\"></button>\n Subscribe\n</button>",
"script": "export default {\n name: 'GalaxyFoolishSloth90',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}",
"style": "\n/* From Uiverse.io by gharsh11032000 - Tags: button, hover effect, cool btn */\n.button {\n /* #ifdef H5 */\n cursor: pointer;\n /* #endif */\n position: relative;\n padding: 20rpx 48rpx;\n font-size: 36rpx;\n color: rgb(193, 163, 98);\n border: 4rpx solid rgb(193, 163, 98);\n border-radius: 68rpx;\n background-color: transparent;\n font-weight: 600;\n transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);\n overflow: hidden;\n}\n\n.button::before {\n content: '';\n position: absolute;\n inset: 0;\n margin: auto;\n width: 100rpx;\n height: 100rpx;\n border-radius: inherit;\n scale: 0;\n z-index: -1;\n background-color: rgb(193, 163, 98);\n transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);\n}\n\n.button:hover::before {\n scale: 3;\n}\n\n.button:hover {\n color: #212121;\n scale: 1.1;\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 0 0rpx 40rpx rgba(193, 163, 98,0.4);\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n}\n\n.button:active {\n scale: 1;\n}\n\n\n\n",
"component_name": "GalaxyFoolishSloth90"
},
"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": 879,
"render_cost": "low",
"memory_usage": "low"
},
"dependencies": [],
"examples": [
{
"title": "",
"description": "",
"code": ""
}
],
"created_at": "2025-07-31T07:55:36.820Z",
"updated_at": "2025-07-31T07:55:36.820Z"
}