galaxy-uniapp-mcp-server
Version:
Galaxy组件库到UniApp组件转换MCP服务器 - 支持跨平台组件转换、兼容性分析和项目集成
112 lines • 3.82 kB
JSON
{
"id": "xueyuantan_rotten-pig-19",
"name": "rotten-pig-19",
"category": "buttons",
"author": "xueyuantan",
"description": "rotten-pig-19 组件 (button, gradient, interactive)",
"tags": [
"button",
"gradient",
"interactive"
],
"original": {
"html": "<button> Pick up!\n</button>",
"css": "/* From Uiverse.io by xueyuantan - Tags: button */\nbutton {\n width: 9em;\n height: 3em;\n border-radius: 30em;\n font-size: 15px;\n font-family: inherit;\n border: none;\n position: relative;\n overflow: hidden;\n z-index: 1;\n box-shadow: 6px 6px 12px #c5c5c5,\n -6px -6px 12px #ffffff;\n}\n\nbutton::before {\n content: '';\n width: 0;\n height: 3em;\n border-radius: 30em;\n position: absolute;\n top: 0;\n left: 0;\n background-image: linear-gradient(to right, #0fd850 0%, #f9f047 100%);\n transition: .5s ease;\n display: block;\n z-index: -1;\n}\n\nbutton:hover::before {\n width: 9em;\n}",
"file_path": "/mnt/persist/workspace/Buttons/xueyuantan_rotten-pig-19.html"
},
"uniapp": {
"template": "<button></button> Pick up!\n</button>",
"script": "export default {\n name: 'GalaxyRottenPig19',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}",
"style": "\n/* From Uiverse.io by xueyuantan - Tags: button */\nbutton {\n width: 9em;\n height: 3em;\n border-radius: 30em;\n font-size: 30rpx;\n font-family: inherit;\n border: none;\n position: relative;\n overflow: hidden;\n z-index: 1;\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 12rpx 12rpx 24rpx #c5c5c5,\n -12rpx -12rpx 24rpx #ffffff;\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n}\n\nbutton::before {\n content: '';\n width: 0;\n height: 3em;\n border-radius: 30em;\n position: absolute;\n top: 0;\n left: 0;\n background-image: linear-gradient(to right, #0fd850 0%, #f9f047 100%);\n transition: .5s ease;\n display: block;\n z-index: -1;\n}\n\nbutton:hover::before {\n width: 9em;\n}\n",
"component_name": "GalaxyRottenPig19"
},
"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 属性"
],
"alternatives": []
},
"mp-alipay": {
"supported": true,
"issues": [
"不支持 box-shadow 属性"
],
"alternatives": []
},
"app-plus": {
"supported": true,
"issues": [],
"alternatives": []
}
},
"performance": {
"complexity": "low",
"bundle_size": 608,
"render_cost": "low",
"memory_usage": "low"
},
"dependencies": [],
"examples": [
{
"title": "",
"description": "",
"code": ""
}
],
"created_at": "2025-07-31T07:55:38.386Z",
"updated_at": "2025-07-31T07:55:38.386Z"
}