galaxy-uniapp-mcp-server
Version:
Galaxy组件库到UniApp组件转换MCP服务器 - 支持跨平台组件转换、兼容性分析和项目集成
114 lines • 5.59 kB
JSON
{
"id": "Cornerstone-04_bitter-impala-54",
"name": "bitter-impala-54",
"category": "buttons",
"author": "Cornerstone-04",
"description": "bitter-impala-54 组件 (button, animation, interactive)",
"tags": [
"button",
"animation",
"interactive"
],
"original": {
"html": "<button>\n <span class=\"box\">\n Hover!\n </span>\n</button>",
"css": "/* From Uiverse.io by Cornerstone-04 - Tags: button */\n.box {\n width: 140px;\n height: auto;\n float: left;\n transition: .5s linear;\n position: relative;\n display: block;\n overflow: hidden;\n padding: 15px;\n text-align: center;\n margin: 0 5px;\n background: transparent;\n text-transform: uppercase;\n font-weight: 900;\n}\n\n.box:before {\n position: absolute;\n content: '';\n left: 0;\n bottom: 0;\n height: 4px;\n width: 100%;\n border-bottom: 4px solid transparent;\n border-left: 4px solid transparent;\n box-sizing: border-box;\n transform: translateX(100%);\n}\n\n.box:after {\n position: absolute;\n content: '';\n top: 0;\n left: 0;\n width: 100%;\n height: 4px;\n border-top: 4px solid transparent;\n border-right: 4px solid transparent;\n box-sizing: border-box;\n transform: translateX(-100%);\n}\n\n.box:hover {\n box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);\n}\n\n.box:hover:before {\n border-color: #262626;\n height: 100%;\n transform: translateX(0);\n transition: .3s transform linear, .3s height linear .3s;\n}\n\n.box:hover:after {\n border-color: #262626;\n height: 100%;\n transform: translateX(0);\n transition: .3s transform linear, .3s height linear .5s;\n}\n\nbutton {\n color: black;\n text-decoration: none;\n cursor: pointer;\n outline: none;\n border: none;\n background: transparent;\n}",
"file_path": "/mnt/persist/workspace/Buttons/Cornerstone-04_bitter-impala-54.html"
},
"uniapp": {
"template": "<button></button>\n <text class=\"box\"></text>\n Hover!\n </span>\n</button>",
"script": "export default {\n name: 'GalaxyBitterImpala54',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}",
"style": "\n/* From Uiverse.io by Cornerstone-04 - Tags: button */\n.box {\n width: 280rpx;\n height: auto;\n float: left;\n transition: .5s linear;\n position: relative;\n display: block;\n overflow: hidden;\n padding: 30rpx;\n text-align: center;\n margin: 0 10rpx;\n background: transparent;\n text-transform: uppercase;\n font-weight: 900;\n}\n\n.box:before {\n position: absolute;\n content: '';\n left: 0;\n bottom: 0;\n height: 8rpx;\n width: 100%;\n border-bottom: 8rpx solid transparent;\n border-left: 8rpx solid transparent;\n box-sizing: border-box;\n transform: translateX(100%);\n}\n\n.box:after {\n position: absolute;\n content: '';\n top: 0;\n left: 0;\n width: 100%;\n height: 8rpx;\n border-top: 8rpx solid transparent;\n border-right: 8rpx solid transparent;\n box-sizing: border-box;\n transform: translateX(-100%);\n}\n\n.box:hover {\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 0 10rpx 30rpx 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}\n\n.box:hover:before {\n border-color: #262626;\n height: 100%;\n transform: translateX(0);\n transition: .3s transform linear, .3s height linear .3s;\n}\n\n.box:hover:after {\n border-color: #262626;\n height: 100%;\n transform: translateX(0);\n transition: .3s transform linear, .3s height linear .5s;\n}\n\nbutton {\n color: black;\n text-decoration: none;\n /* #ifdef H5 */\n cursor: pointer;\n /* #endif */\n outline: none;\n border: none;\n background: transparent;\n}\n",
"component_name": "GalaxyBitterImpala54"
},
"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": 1375,
"render_cost": "medium",
"memory_usage": "medium"
},
"dependencies": [],
"examples": [
{
"title": "",
"description": "",
"code": ""
}
],
"created_at": "2025-07-31T07:55:32.956Z",
"updated_at": "2025-07-31T07:55:32.956Z"
}