UNPKG

galaxy-uniapp-mcp-server

Version:

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

119 lines 7.14 kB
{ "id": "Spacious74_tidy-moose-60", "name": "tidy-moose-60", "category": "buttons", "author": "Spacious74", "description": "tidy-moose-60 组件 (button, animation, gradient, interactive)", "tags": [ "button", "animation", "gradient", "interactive" ], "original": { "html": "<div class=\"btn-container\">\n <button class=\"button\">\n <span>Join Today </span>\n <svg viewBox=\"0 0 48 48\" height=\"1.2em\" width=\"1.2em\" class=\"svg\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M42 24H6m24-12l12 12l-12 12\" stroke-width=\"4\" stroke-linejoin=\"round\" stroke-linecap=\"round\" stroke=\"currentColor\" fill=\"none\"></path>\n </svg>\n </button>\n</div>", "css": "/* From Uiverse.io by Spacious74 - Tags: button */\n.btn-container {\n padding: 3px;\n background: linear-gradient(180deg, #f3aefe, #8d35d3);\n border-radius: 19px;\n transform: perspective(850px) rotateX(14deg) rotateY(8deg) rotateZ(-11deg);\n color: white;\n box-shadow:\n -4px 4px 0px #5d2b82,\n -5px 7px 8px #4d1e7491,\n -10px 13px 18px #4d1e7450,\n -20px 20px 40px #4d1e74a8;\n position: relative;\n transition: all 0.4s ease;\n}\n\n.btn-container:hover {\n transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);\n box-shadow:\n 0px 4px 5px #5d2b82,\n 0px 7px 8px #4d1e7491,\n 0px 13px 18px #4d1e7450,\n 0px 20px 40px #4d1e74a8;\n}\n.btn-container:active {\n box-shadow:\n 0px 4px 5px #5c2b82c7,\n 0px 7px 8px #4d1e745b,\n 0px 5px 18px #4d1e7434,\n 0px 10px 40px #4d1e746e;\n}\n.btn-container:active > .button {\n box-shadow: inset 0px 6px 10px #3114494b;\n}\n\n.button {\n color: white;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 5px;\n padding: 22px 24px;\n font-size: 1.6rem;\n font-weight: 600;\n border-radius: 16px;\n border: none;\n background: linear-gradient(180deg, #d28dff, #8533c6);\n box-shadow: inset 0px -6px 10px #3114494b;\n text-shadow: -1px 1px 3px #2a0f3fbb;\n transition: all 0.3s ease;\n}\n.svg {\n margin-top: 2px;\n font-weight: bold;\n filter: drop-shadow(-2px 2px 1px #2a0f3f6c);\n}", "file_path": "/mnt/persist/workspace/Buttons/Spacious74_tidy-moose-60.html" }, "uniapp": { "template": "<view class=\"btn-container\"></view>\n <button class=\"button\"></button>\n <text>Join Today </text>\n <view viewBox=\"0 0 48 48\" height=\"1.2em\" width=\"1.2em\" class=\"svg\" xmlns=\"http://www.w3.org/2000/svg\"></view>\n <path d=\"M42 24H6m24-12l12 12l-12 12\" stroke-width=\"4\" stroke-linejoin=\"round\" stroke-linecap=\"round\" stroke=\"currentColor\" fill=\"none\"></path>\n </svg>\n </button>\n</div>", "script": "export default {\n name: 'GalaxyTidyMoose60',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}", "style": "\n/* From Uiverse.io by Spacious74 - Tags: button */\n.btn-container {\n padding: 6rpx;\n background: linear-gradient(180deg, #f3aefe, #8d35d3);\n border-radius: 38rpx;\n transform: perspective(1700rpx) rotateX(14deg) rotateY(8deg) rotateZ(-11deg);\n color: white;\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow:\n -8rpx 8rpx 0rpx #5d2b82,\n -10rpx 14rpx 16rpx #4d1e7491,\n -20rpx 26rpx 36rpx #4d1e7450,\n -40rpx 40rpx 80rpx #4d1e74a8;\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n position: relative;\n transition: all 0.4s ease;\n}\n\n.btn-container:hover {\n transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow:\n 0rpx 8rpx 10rpx #5d2b82,\n 0rpx 14rpx 16rpx #4d1e7491,\n 0rpx 26rpx 36rpx #4d1e7450,\n 0rpx 40rpx 80rpx #4d1e74a8;\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n}\n.btn-container:active {\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow:\n 0rpx 8rpx 10rpx #5c2b82c7,\n 0rpx 14rpx 16rpx #4d1e745b,\n 0rpx 10rpx 36rpx #4d1e7434,\n 0rpx 20rpx 80rpx #4d1e746e;\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n}\n.btn-container:active > .button {\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: inset 0rpx 12rpx 20rpx #3114494b;\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n}\n\n.button {\n color: white;\n /* #ifdef H5 */\n cursor: pointer;\n /* #endif */\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 10rpx;\n padding: 44rpx 48rpx;\n font-size: 1.6rem;\n font-weight: 600;\n border-radius: 32rpx;\n border: none;\n background: linear-gradient(180deg, #d28dff, #8533c6);\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: inset 0rpx -12rpx 20rpx #3114494b;\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n /* #ifdef H5 */\n text-shadow: -2rpx 2rpx 6rpx #2a0f3fbb;\n /* #endif */\n transition: all 0.3s ease;\n}\n.svg {\n margin-top: 4rpx;\n font-weight: bold;\n \n}\n\n", "component_name": "GalaxyTidyMoose60" }, "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 属性", "不支持 filter 属性", "不支持 cursor 属性" ], "alternatives": [] }, "mp-alipay": { "supported": true, "issues": [ "不支持 box-shadow 属性", "不支持 text-shadow 属性", "不支持 filter 属性", "不支持 cursor 属性" ], "alternatives": [] }, "app-plus": { "supported": true, "issues": [], "alternatives": [] } }, "performance": { "complexity": "medium", "bundle_size": 1751, "render_cost": "medium", "memory_usage": "medium" }, "dependencies": [], "examples": [ { "title": "", "description": "", "code": "" } ], "created_at": "2025-07-31T07:55:34.849Z", "updated_at": "2025-07-31T07:55:34.849Z" }