galaxy-uniapp-mcp-server
Version:
Galaxy组件库到UniApp组件转换MCP服务器 - 支持跨平台组件转换、兼容性分析和项目集成
122 lines • 8.02 kB
JSON
{
"id": "Z4drus_tough-sloth-76",
"name": "tough-sloth-76",
"category": "buttons",
"author": "Z4drus",
"description": "tough-sloth-76 组件 (material design, animation, 3d, blue, purple, minimalist, button, smooth, gradient)",
"tags": [
"material design",
"animation",
"3d",
"blue",
"purple",
"minimalist",
"button",
"smooth",
"gradient"
],
"original": {
"html": "<div class=\"button-container\">\n <button class=\"button-3d\">\n <div class=\"button-top\">\n <span class=\"material-icons\">❮</span>\n </div>\n <div class=\"button-bottom\"></div>\n <div class=\"button-base\"></div>\n </button>\n <button class=\"button-3d\">\n <div class=\"button-top\">\n <span class=\"material-icons\">❯</span>\n </div>\n <div class=\"button-bottom\"></div>\n <div class=\"button-base\"></div>\n </button>\n</div>",
"css": "/* From Uiverse.io by Z4drus - Tags: material design, animation, 3d, blue, purple, minimalist, button, smooth */\n.button-container {\n display: flex;\n justify-content: center;\n margin: 20px;\n}\n\n.button-3d {\n -webkit-appearance: none;\n appearance: none;\n position: relative;\n border-width: 0;\n padding: 0 8px;\n min-width: 4em;\n min-height: 4em;\n box-sizing: border-box;\n background: transparent;\n font: inherit;\n cursor: pointer;\n margin: 10px;\n border-radius: 20px;\n}\n\n.button-top {\n display: flex;\n align-items: center;\n justify-content: center;\n position: relative;\n z-index: 2;\n padding: 8px 16px;\n transform: translateY(0);\n color: #fff;\n background-image: linear-gradient(145deg, #6a11cb, #2575fc);\n text-shadow: 0 -1px rgba(0, 0, 0, 0.25);\n border-radius: 20px;\n transition: transform 0.3s, border-radius 0.3s, background 10s;\n}\n\n.button-3d:active .button-top {\n border-radius: 10px 10px 8px 8px / 8px;\n transform: translateY(2px);\n background-image: linear-gradient(145deg, #2575fc, #6a11cb);\n}\n\n.button-bottom {\n position: absolute;\n z-index: 1;\n bottom: 4px;\n left: 4px;\n border-radius: 20px;\n padding-top: 6px;\n width: calc(100% - 8px);\n height: calc(100% - 10px);\n background-image: linear-gradient(145deg, #2575fc, #6a11cb);\n box-shadow: 0px 2px 3px 0px rgba(0, 0, 0, 0.5);\n transition: border-radius 0.2s, padding-top 0.2s;\n}\n\n.button-base {\n position: absolute;\n z-index: 0;\n top: 4px;\n left: 0;\n border-radius: 20px;\n width: 100%;\n height: calc(100% - 4px);\n background-color: rgba(0, 0, 0, 0.15);\n box-shadow: 0 1px 1px 0 rgba(255, 255, 255, 0.75),\n inset 0 2px 2px rgba(0, 0, 0, 0.25);\n transition: border-radius 0.2s, padding-top 0.2s;\n}\n\n.button-3d:active .button-bottom {\n border-radius: 10px 10px 8px 8px / 8px;\n padding-top: 0;\n}\n\n.button-3d:active .button-base {\n border-radius: 10px 10px 8px 8px / 8px;\n}",
"file_path": "/mnt/persist/workspace/Buttons/Z4drus_tough-sloth-76.html"
},
"uniapp": {
"template": "<view class=\"button-container\"></view>\n <button class=\"button-3d\"></button>\n <view class=\"button-top\"></view>\n <text class=\"material-icons\">❮</text>\n </div>\n <view class=\"button-bottom\"></view>\n <view class=\"button-base\"></view>\n </button>\n <button class=\"button-3d\"></button>\n <view class=\"button-top\"></view>\n <text class=\"material-icons\">❯</text>\n </div>\n <view class=\"button-bottom\"></view>\n <view class=\"button-base\"></view>\n </button>\n</div>",
"script": "export default {\n name: 'GalaxyToughSloth76',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}",
"style": "\n/* From Uiverse.io by Z4drus - Tags: material design, animation, 3d, blue, purple, minimalist, button, smooth */\n.button-container {\n display: flex;\n justify-content: center;\n margin: 40rpx;\n}\n\n.button-3d {\n -webkit-appearance: none;\n appearance: none;\n position: relative;\n border-width: 0;\n padding: 0 16rpx;\n min-width: 4em;\n min-height: 4em;\n box-sizing: border-box;\n background: transparent;\n font: inherit;\n /* #ifdef H5 */\n cursor: pointer;\n /* #endif */\n margin: 20rpx;\n border-radius: 40rpx;\n}\n\n.button-top {\n display: flex;\n align-items: center;\n justify-content: center;\n position: relative;\n z-index: 2;\n padding: 16rpx 32rpx;\n transform: translateY(0);\n color: #fff;\n background-image: linear-gradient(145deg, #6a11cb, #2575fc);\n /* #ifdef H5 */\n text-shadow: 0 -2rpx rgba(0, 0, 0, 0.25);\n /* #endif */\n border-radius: 40rpx;\n transition: transform 0.3s, border-radius 0.3s, background 10s;\n}\n\n.button-3d:active .button-top {\n border-radius: 20rpx 20rpx 16rpx 16rpx / 16rpx;\n transform: translateY(4rpx);\n background-image: linear-gradient(145deg, #2575fc, #6a11cb);\n}\n\n.button-bottom {\n position: absolute;\n z-index: 1;\n bottom: 8rpx;\n left: 8rpx;\n border-radius: 40rpx;\n padding-top: 12rpx;\n width: calc(100% - 16rpx);\n height: calc(100% - 20rpx);\n background-image: linear-gradient(145deg, #2575fc, #6a11cb);\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 0rpx 4rpx 6rpx 0rpx rgba(0, 0, 0, 0.5);\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n transition: border-radius 0.2s, padding-top 0.2s;\n}\n\n.button-base {\n position: absolute;\n z-index: 0;\n top: 8rpx;\n left: 0;\n border-radius: 40rpx;\n width: 100%;\n height: calc(100% - 8rpx);\n background-color: rgba(0, 0, 0, 0.15);\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 0 2rpx 2rpx 0 rgba(255, 255, 255, 0.75),\n inset 0 4rpx 4rpx rgba(0, 0, 0, 0.25);\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n transition: border-radius 0.2s, padding-top 0.2s;\n}\n\n.button-3d:active .button-bottom {\n border-radius: 20rpx 20rpx 16rpx 16rpx / 16rpx;\n padding-top: 0;\n}\n\n.button-3d:active .button-base {\n border-radius: 20rpx 20rpx 16rpx 16rpx / 16rpx;\n}\n\n",
"component_name": "GalaxyToughSloth76"
},
"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 属性",
"不支持 text-shadow 属性",
"不支持 cursor 属性"
],
"alternatives": []
},
"mp-alipay": {
"supported": true,
"issues": [
"不支持 box-shadow 属性",
"不支持 text-shadow 属性",
"不支持 cursor 属性"
],
"alternatives": []
},
"app-plus": {
"supported": true,
"issues": [],
"alternatives": []
}
},
"performance": {
"complexity": "medium",
"bundle_size": 2331,
"render_cost": "medium",
"memory_usage": "medium"
},
"dependencies": [],
"examples": [
{
"title": "",
"description": "",
"code": ""
}
],
"created_at": "2025-07-31T07:55:35.295Z",
"updated_at": "2025-07-31T07:55:35.295Z"
}