UNPKG

galaxy-uniapp-mcp-server

Version:

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

123 lines 7.85 kB
{ "id": "UmangLadha_neat-duck-51", "name": "neat-duck-51", "category": "buttons", "author": "UmangLadha", "description": "neat-duck-51 组件 (simple, button, html, css, buttons, hover button, #button, 3d button, animation, interactive)", "tags": [ "simple", "button", "html", "css", "buttons", "hover button", "#button", "3d button", "animation", "interactive" ], "original": { "html": "<button role=\"button\" class=\"button\">\n <span class=\"text\">Button</span>\n</button>", "css": "/* From Uiverse.io by UmangLadha - Tags: simple, button, html, css, buttons, hover button, #button, 3d button */\n.button {\n background: #38579b;\n border-top: 1px solid #38538c;\n border-right: 1px solid #1f2d4d;\n border-bottom: 1px solid #151e33;\n border-left: 1px solid #1f2d4d;\n -webkit-border-radius: 4px;\n -moz-border-radius: 4px;\n border-radius: 4px;\n -webkit-box-shadow: inset 0 1px 10px 1px #5c8bee, 0px 1px 0 #1d2c4d,\n 0 6px 0px #1f3053, 0 8px 4px 1px #111111;\n -moz-box-shadow: inset 0 1px 10px 1px #5c8bee, 0px 1px 0 #1d2c4d,\n 0 6px 0px #1f3053, 0 8px 4px 1px #111111;\n box-shadow: inset 0 1px 10px 1px #5c8bee, 0px 1px 0 #1d2c4d, 0 6px 0px #1f3053,\n 0 8px 4px 1px #111111;\n color: #fff;\n font: bold 20px \"helvetica neue\", helvetica, arial, sans-serif;\n line-height: 1;\n padding: 10px 0 12px 0;\n text-align: center;\n text-shadow: 0px -1px 1px #1e2d4d;\n width: 150px;\n -webkit-background-clip: padding-box;\n}\n\n.button:hover {\n -webkit-box-shadow: inset 0 0px 20px 1px #87adff, 0px 1px 0 #1d2c4d,\n 0 6px 0px #1f3053, 0 8px 4px 1px #111111;\n -moz-box-shadow: inset 0 0px 20px 1px #87adff, 0px 1px 0 #1d2c4d,\n 0 6px 0px #1f3053, 0 8px 4px 1px #111111;\n box-shadow: inset 0 0px 20px 1px #87adff, 0px 1px 0 #1d2c4d, 0 6px 0px #1f3053,\n 0 8px 4px 1px #111111;\n cursor: pointer;\n}\n\n.button:active {\n -webkit-box-shadow: inset 0 1px 10px 1px #5c8bee, 0 1px 0 #1d2c4d,\n 0 2px 0 #1f3053, 0 4px 3px 0 #111111;\n -moz-box-shadow: inset 0 1px 10px 1px #5c8bee, 0 1px 0 #1d2c4d,\n 0 2px 0 #1f3053, 0 4px 3px 0 #111111;\n box-shadow: inset 0 1px 10px 1px #5c8bee, 0 1px 0 #1d2c4d, 0 2px 0 #1f3053,\n 0 4px 3px 0 #111111;\n transform: translateY(4px);\n}", "file_path": "/mnt/persist/workspace/Buttons/UmangLadha_neat-duck-51.html" }, "uniapp": { "template": "<button role=\"button\" class=\"button\"></button>\n <text class=\"text\">Button</text>\n</button>", "script": "export default {\n name: 'GalaxyNeatDuck51',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}", "style": "\n/* From Uiverse.io by UmangLadha - Tags: simple, button, html, css, buttons, hover button, #button, 3d button */\n.button {\n background: #38579b;\n border-top: 2rpx solid #38538c;\n border-right: 2rpx solid #1f2d4d;\n border-bottom: 2rpx solid #151e33;\n border-left: 2rpx solid #1f2d4d;\n -webkit-border-radius: 8rpx;\n -moz-border-radius: 8rpx;\n border-radius: 8rpx;\n -webkit-/* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: inset 0 2rpx 20rpx 2rpx #5c8bee, 0rpx 2rpx 0 #1d2c4d,\n 0 12rpx 0rpx #1f3053, 0 16rpx 8rpx 2rpx #111111;\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n -moz-/* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: inset 0 2rpx 20rpx 2rpx #5c8bee, 0rpx 2rpx 0 #1d2c4d,\n 0 12rpx 0rpx #1f3053, 0 16rpx 8rpx 2rpx #111111;\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: inset 0 2rpx 20rpx 2rpx #5c8bee, 0rpx 2rpx 0 #1d2c4d, 0 12rpx 0rpx #1f3053,\n 0 16rpx 8rpx 2rpx #111111;\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n color: #fff;\n font: bold 40rpx \"helvetica neue\", helvetica, arial, sans-serif;\n line-height: 1;\n padding: 20rpx 0 24rpx 0;\n text-align: center;\n /* #ifdef H5 */\n text-shadow: 0rpx -2rpx 2rpx #1e2d4d;\n /* #endif */\n width: 300rpx;\n -webkit-background-clip: padding-box;\n}\n\n.button:hover {\n -webkit-/* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: inset 0 0rpx 40rpx 2rpx #87adff, 0rpx 2rpx 0 #1d2c4d,\n 0 12rpx 0rpx #1f3053, 0 16rpx 8rpx 2rpx #111111;\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n -moz-/* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: inset 0 0rpx 40rpx 2rpx #87adff, 0rpx 2rpx 0 #1d2c4d,\n 0 12rpx 0rpx #1f3053, 0 16rpx 8rpx 2rpx #111111;\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: inset 0 0rpx 40rpx 2rpx #87adff, 0rpx 2rpx 0 #1d2c4d, 0 12rpx 0rpx #1f3053,\n 0 16rpx 8rpx 2rpx #111111;\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n /* #ifdef H5 */\n cursor: pointer;\n /* #endif */\n}\n\n.button:active {\n -webkit-/* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: inset 0 2rpx 20rpx 2rpx #5c8bee, 0 2rpx 0 #1d2c4d,\n 0 4rpx 0 #1f3053, 0 8rpx 6rpx 0 #111111;\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n -moz-/* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: inset 0 2rpx 20rpx 2rpx #5c8bee, 0 2rpx 0 #1d2c4d,\n 0 4rpx 0 #1f3053, 0 8rpx 6rpx 0 #111111;\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: inset 0 2rpx 20rpx 2rpx #5c8bee, 0 2rpx 0 #1d2c4d, 0 4rpx 0 #1f3053,\n 0 8rpx 6rpx 0 #111111;\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n transform: translateY(8rpx);\n}\n\n", "component_name": "GalaxyNeatDuck51" }, "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 属性", "不支持 text-shadow 属性", "不支持 cursor 属性" ], "alternatives": [] }, "mp-alipay": { "supported": true, "issues": [ "不支持 box-shadow 属性", "不支持 text-shadow 属性", "不支持 cursor 属性" ], "alternatives": [] }, "app-plus": { "supported": true, "issues": [], "alternatives": [] } }, "performance": { "complexity": "medium", "bundle_size": 1787, "render_cost": "medium", "memory_usage": "medium" }, "dependencies": [], "examples": [ { "title": "", "description": "", "code": "" } ], "created_at": "2025-07-31T07:55:35.050Z", "updated_at": "2025-07-31T07:55:35.050Z" }