galaxy-uniapp-mcp-server
Version:
Galaxy组件库到UniApp组件转换MCP服务器 - 支持跨平台组件转换、兼容性分析和项目集成
117 lines • 5.66 kB
JSON
{
"id": "shadowmurphy_little-hound-75",
"name": "little-hound-75",
"category": "buttons",
"author": "shadowmurphy",
"description": "little-hound-75 组件 (button, hover, active, animation, gradient, interactive)",
"tags": [
"button",
"hover",
"active",
"animation",
"gradient",
"interactive"
],
"original": {
"html": "<button class=\"button\">Button</button>",
"css": "/* From Uiverse.io by shadowmurphy - Tags: button, hover, active */\n.button {\n overflow: hidden;\n position: relative;\n border: 1px solid #D1D1D1;\n background-color: #F5F5F5;\n width: 100px;\n height: 30px;\n user-select: none;\n cursor: pointer;\n border-radius: 5px;\n transition: all 0.5s;\n box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);\n font-weight: bold;\n display: flex;\n justify-content: center;\n align-items: center;\n text-transform: uppercase;\n}\n\n.button:hover {\n transform: scale(1.1);\n background-color: #E8E8E8;\n border-color: #BDBDBD;\n box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);\n}\n\n.button:active {\n transform: scale(0.95);\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);\n}\n\n.button::before {\n content: \"\";\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%,\n transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%,\n transparent 75%, transparent);\n opacity: 0;\n animation: buttonGlow 2s linear infinite;\n z-index: -1;\n}\n\n@keyframes buttonGlow {\n 0% {\n background-position: 0 0;\n }\n\n 100% {\n background-position: 400% 0;\n }\n}",
"file_path": "/mnt/persist/workspace/Buttons/shadowmurphy_little-hound-75.html"
},
"uniapp": {
"template": "<button class=\"button\"></button>Button</button>",
"script": "export default {\n name: 'GalaxyLittleHound75',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}",
"style": "\n/* From Uiverse.io by shadowmurphy - Tags: button, hover, active */\n.button {\n overflow: hidden;\n position: relative;\n border: 2rpx solid #D1D1D1;\n background-color: #F5F5F5;\n width: 200rpx;\n height: 60rpx;\n user-select: none;\n /* #ifdef H5 */\n cursor: pointer;\n /* #endif */\n border-radius: 10rpx;\n transition: all 0.5s;\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 0 4rpx 10rpx rgba(0, 0, 0, 0.1);\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n font-weight: bold;\n display: flex;\n justify-content: center;\n align-items: center;\n text-transform: uppercase;\n}\n\n.button:hover {\n transform: scale(1.1);\n background-color: #E8E8E8;\n border-color: #BDBDBD;\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 0 8rpx 20rpx rgba(0, 0, 0, 0.2);\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 transform: scale(0.95);\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 0 2rpx 6rpx rgba(0, 0, 0, 0.1);\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n}\n\n.button::before {\n content: \"\";\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%,\n transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%,\n transparent 75%, transparent);\n opacity: 0;\n animation: buttonGlow 2s linear infinite;\n z-index: -1;\n}\n\n@keyframes buttonGlow {\n 0% {\n background-position: 0 0;\n }\n\n 100% {\n background-position: 400% 0;\n }\n}\n\n",
"component_name": "GalaxyLittleHound75"
},
"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": "medium",
"bundle_size": 1255,
"render_cost": "medium",
"memory_usage": "medium"
},
"dependencies": [],
"examples": [
{
"title": "",
"description": "",
"code": ""
}
],
"created_at": "2025-07-31T07:55:37.835Z",
"updated_at": "2025-07-31T07:55:37.835Z"
}