galaxy-uniapp-mcp-server
Version:
Galaxy组件库到UniApp组件转换MCP服务器 - 支持跨平台组件转换、兼容性分析和项目集成
116 lines • 5.92 kB
JSON
{
"id": "vinodjangid07_tiny-walrus-86",
"name": "tiny-walrus-86",
"category": "buttons",
"author": "vinodjangid07",
"description": "tiny-walrus-86 组件 (button, hover effect, shine, gradient, interactive)",
"tags": [
"button",
"hover effect",
"shine",
"gradient",
"interactive"
],
"original": {
"html": "<button class=\"button\">\n <svg fill=\"white\" height=\"1.5em\" class=\"svgIcon\" viewBox=\"0 0 512 512\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336h24V272H216c-13.3 0-24-10.7-24-24s10.7-24 24-24h48c13.3 0 24 10.7 24 24v88h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z\"></path></svg>\n <span class=\"tooltip\">Info</span>\n</button>",
"css": "/* From Uiverse.io by vinodjangid07 - Tags: button, hover effect, shine */\n.button {\n width: 50px;\n height: 50px;\n border: none;\n border-radius: 50%;\n background-color: rgb(32, 32, 32);\n box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5) inset;\n display: flex;\n align-items: center;\n justify-content: center;\n position: relative;\n cursor: pointer;\n}\n\n.svgIcon {\n z-index: 2;\n}\n\n.button::before {\n width: 35px;\n height: 22px;\n background: linear-gradient(to bottom,rgba(255, 255, 255, 0.575), rgba(0, 0, 0, 0.103));\n position: absolute;\n content: \"\";\n top: 3.6px;\n border-radius: 50%;\n z-index: 1;\n}\n\n.tooltip {\n position: absolute;\n top: -40px;\n opacity: 0;\n background-color: rgb(134, 134, 134);\n color: white;\n padding: 5px 10px;\n border-radius: 5px;\n display: flex;\n align-items: center;\n justify-content: center;\n transition-duration: .5s;\n pointer-events: none;\n letter-spacing: 0.5px;\n}\n\n.button:hover .tooltip {\n opacity: 1;\n transition-duration: .5s;\n}\n\n.button:hover {\n background-position: right;\n transition-duration: 1s;\n}",
"file_path": "/mnt/persist/workspace/Buttons/vinodjangid07_tiny-walrus-86.html"
},
"uniapp": {
"template": "<button class=\"button\"></button>\n <view fill=\"white\" height=\"1.5em\" class=\"svgIcon\" viewBox=\"0 0 512 512\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336h24V272H216c-13.3 0-24-10.7-24-24s10.7-24 24-24h48c13.3 0 24 10.7 24 24v88h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z\"></path></view>\n <text class=\"tooltip\">Info</text>\n</button>",
"script": "export default {\n name: 'GalaxyTinyWalrus86',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}",
"style": "\n/* From Uiverse.io by vinodjangid07 - Tags: button, hover effect, shine */\n.button {\n width: 100rpx;\n height: 100rpx;\n border: none;\n border-radius: 50%;\n background-color: rgb(32, 32, 32);\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 0rpx 0rpx 20rpx rgba(0, 0, 0, 0.5) inset;\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n display: flex;\n align-items: center;\n justify-content: center;\n position: relative;\n /* #ifdef H5 */\n cursor: pointer;\n /* #endif */\n}\n\n.svgIcon {\n z-index: 2;\n}\n\n.button::before {\n width: 70rpx;\n height: 44rpx;\n background: linear-gradient(to bottom,rgba(255, 255, 255, 0.575), rgba(0, 0, 0, 0.103));\n position: absolute;\n content: \"\";\n top: 7.2rpx;\n border-radius: 50%;\n z-index: 1;\n}\n\n.tooltip {\n position: absolute;\n top: -80rpx;\n opacity: 0;\n background-color: rgb(134, 134, 134);\n color: white;\n padding: 10rpx 20rpx;\n border-radius: 10rpx;\n display: flex;\n align-items: center;\n justify-content: center;\n transition-duration: .5s;\n pointer-events: none;\n letter-spacing: 1rpx;\n}\n\n.button:hover .tooltip {\n opacity: 1;\n transition-duration: .5s;\n}\n\n.button:hover {\n background-position: right;\n transition-duration: 1s;\n}\n",
"component_name": "GalaxyTinyWalrus86"
},
"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": 1526,
"render_cost": "low",
"memory_usage": "low"
},
"dependencies": [],
"examples": [
{
"title": "",
"description": "",
"code": ""
}
],
"created_at": "2025-07-31T07:55:38.293Z",
"updated_at": "2025-07-31T07:55:38.293Z"
}