galaxy-uniapp-mcp-server
Version:
Galaxy组件库到UniApp组件转换MCP服务器 - 支持跨平台组件转换、兼容性分析和项目集成
114 lines • 5.6 kB
JSON
{
"id": "barisdogansutcu_warm-skunk-76",
"name": "warm-skunk-76",
"category": "buttons",
"author": "barisdogansutcu",
"description": "warm-skunk-76 组件 (button, volume, voice, sound, animation)",
"tags": [
"button",
"volume",
"voice",
"sound",
"animation"
],
"original": {
"html": "<div class=\"volume\">\n <input type=\"checkbox\" class=\"volume-input\">\n <div class=\"volume-icon\">\n <svg viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" stroke=\"currentColor\" stroke-width=\"2\" fill=\"none\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"volume-svg\">\n <polygon points=\"11 5 6 9 2 9 2 15 6 15 11 19 11 5\"></polygon>\n <path d=\"M19.07 4.93a10 10 0 0 1 0 14.14M15.54 8.46a5 5 0 0 1 0 7.07\"></path>\n </svg>\n </div>\n</div>",
"css": "/* From Uiverse.io by barisdogansutcu - Tags: button, volume, voice, sound */\n.volume {\n width: 60px;\n height: 60px;\n border-radius: 100%;\n background-color: rgb(205, 191, 247);\n overflow: hidden;\n}\n.volume-icon {\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n transition: all 0.5s ease;\n overflow: hidden;\n position: relative;\n}\n.volume-input {\n position: absolute;\n inset: 0;\n opacity: 0;\n cursor: pointer;\n z-index: 999;\n}\n.volume-icon:before {\n content: \"\";\n display: flex;\n width: 0px;\n height: 0px;\n border-radius: 100%;\n transition: all 0.2s ease;\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n background-color: rgb(32, 33, 36);\n}\n.volume-input:checked + .volume-icon:before {\n width: calc(100% + 4px);\n height: calc(100% + 4px);\n}\n.volume-svg {\n z-index: 2;\n color: rgb(32, 33, 36);\n height: 30px;\n width: 30px;\n}\n.volume-input:checked + .volume-icon svg {\n color: rgb(255, 255, 255);\n}",
"file_path": "/mnt/persist/workspace/Buttons/barisdogansutcu_warm-skunk-76.html"
},
"uniapp": {
"template": "<view class=\"volume\"></view>\n <input type=\"checkbox\" class=\"volume-input\"></input>\n <view class=\"volume-icon\"></view>\n <view viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" stroke=\"currentColor\" stroke-width=\"2\" fill=\"none\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"volume-svg\"></view>\n <polygon points=\"11 5 6 9 2 9 2 15 6 15 11 19 11 5\"></polygon>\n <path d=\"M19.07 4.93a10 10 0 0 1 0 14.14M15.54 8.46a5 5 0 0 1 0 7.07\"></path>\n </svg>\n </div>\n</div>",
"script": "export default {\n name: 'GalaxyWarmSkunk76',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}",
"style": "\n/* From Uiverse.io by barisdogansutcu - Tags: button, volume, voice, sound */\n.volume {\n width: 120rpx;\n height: 120rpx;\n border-radius: 100%;\n background-color: rgb(205, 191, 247);\n overflow: hidden;\n}\n.volume-icon {\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n transition: all 0.5s ease;\n overflow: hidden;\n position: relative;\n}\n.volume-input {\n position: absolute;\n inset: 0;\n opacity: 0;\n /* #ifdef H5 */\n cursor: pointer;\n /* #endif */\n z-index: 999;\n}\n.volume-icon:before {\n content: \"\";\n display: flex;\n width: 0rpx;\n height: 0rpx;\n border-radius: 100%;\n transition: all 0.2s ease;\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n background-color: rgb(32, 33, 36);\n}\n.volume-input:checked + .volume-icon:before {\n width: calc(100% + 8rpx);\n height: calc(100% + 8rpx);\n}\n.volume-svg {\n z-index: 2;\n color: rgb(32, 33, 36);\n height: 60rpx;\n width: 60rpx;\n}\n.volume-input:checked + .volume-icon svg {\n color: rgb(255, 255, 255);\n}\n\n",
"component_name": "GalaxyWarmSkunk76"
},
"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": [
"不支持 cursor 属性"
],
"alternatives": []
},
"mp-alipay": {
"supported": true,
"issues": [
"不支持 cursor 属性"
],
"alternatives": []
},
"app-plus": {
"supported": true,
"issues": [],
"alternatives": []
}
},
"performance": {
"complexity": "medium",
"bundle_size": 1467,
"render_cost": "medium",
"memory_usage": "medium"
},
"dependencies": [],
"examples": [
{
"title": "",
"description": "",
"code": ""
}
],
"created_at": "2025-07-31T07:55:35.931Z",
"updated_at": "2025-07-31T07:55:35.931Z"
}