UNPKG

galaxy-uniapp-mcp-server

Version:

Galaxy组件库到UniApp组件转换MCP服务器 - 支持跨平台组件转换、兼容性分析和项目集成

114 lines 4.27 kB
{ "id": "Dear31_good-yak-38", "name": "good-yak-38", "category": "buttons", "author": "Dear31", "description": "good-yak-38 组件 (simple, button, hover, animation, interactive)", "tags": [ "simple", "button", "hover", "animation", "interactive" ], "original": { "html": "<button>\n Hover Me\n</button>", "css": "/* From Uiverse.io by Dear31 - Tags: simple, button, hover */\nbutton {\n padding: 12px 32px;\n border-radius: 10px;\n border: 3px black solid;\n box-shadow: 2px 2px 1px;\n font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;\n font-weight: 700;\n font-size: 17px;\n background-color: #01aaba68;\n overflow: hidden;\n position: relative;\n z-index: 10;\n}\n\nbutton::after {\n content: \"\";\n position: absolute;\n background-color: #199fab;\n width: 0px;\n height: 0px;\n border-radius: 50%;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n transition: all .3s ease-in;\n z-index: -1;\n}\n\nbutton:hover::after {\n transform-origin: center;\n transition: all .3s ease-in;\n width: 200px;\n height: 200px;\n}", "file_path": "/mnt/persist/workspace/Buttons/Dear31_good-yak-38.html" }, "uniapp": { "template": "<button></button>\n Hover Me\n</button>", "script": "export default {\n name: 'GalaxyGoodYak38',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}", "style": "\n/* From Uiverse.io by Dear31 - Tags: simple, button, hover */\nbutton {\n padding: 24rpx 64rpx;\n border-radius: 20rpx;\n border: 6rpx black solid;\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 4rpx 4rpx 2rpx;\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;\n font-weight: 700;\n font-size: 34rpx;\n background-color: #01aaba68;\n overflow: hidden;\n position: relative;\n z-index: 10;\n}\n\nbutton::after {\n content: \"\";\n position: absolute;\n background-color: #199fab;\n width: 0rpx;\n height: 0rpx;\n border-radius: 50%;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n transition: all .3s ease-in;\n z-index: -1;\n}\n\nbutton:hover::after {\n transform-origin: center;\n transition: all .3s ease-in;\n width: 400rpx;\n height: 400rpx;\n}\n\n", "component_name": "GalaxyGoodYak38" }, "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": "medium", "bundle_size": 814, "render_cost": "medium", "memory_usage": "medium" }, "dependencies": [], "examples": [ { "title": "", "description": "", "code": "" } ], "created_at": "2025-07-31T07:55:33.092Z", "updated_at": "2025-07-31T07:55:33.092Z" }