UNPKG

galaxy-uniapp-mcp-server

Version:

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

115 lines 5.8 kB
{ "id": "Satwinder04_tame-panther-46", "name": "tame-panther-46", "category": "buttons", "author": "Satwinder04", "description": "tame-panther-46 组件 (button, animation, gradient, interactive)", "tags": [ "button", "animation", "gradient", "interactive" ], "original": { "html": "<button class=\"complex-animated-button\">Click me</button>", "css": "/* From Uiverse.io by Satwinder04 - Tags: button */\n.complex-animated-button {\n --primary-color: #ff7f50;\n --secondary-color: #ffa07a;\n --border-radius: 8px;\n --shadow-color: rgba(0, 0, 0, 0.2);\n --shadow-offset: 2px;\n --shadow-blur: 4px;\n --ripple-color: rgba(255, 255, 255, 0.5);\n background: linear-gradient(to right, var(--primary-color), var(--secondary-color));\n border: none;\n border-radius: var(--border-radius);\n color: white;\n font-size: 1.2rem;\n padding: 1rem 2rem;\n position: relative;\n overflow: hidden;\n cursor: pointer;\n box-shadow: var(--shadow-offset) var(--shadow-offset) var(--shadow-blur) var(--shadow-color);\n transition: transform 0.3s ease-in-out, background 0.3s ease-in-out;\n}\n\n.complex-animated-button:hover {\n transform: scale(1);\n background: linear-gradient(to right, var(--secondary-color), var(--primary-color));\n}\n\n.complex-animated-button:focus {\n outline: none;\n}\n\n.complex-animated-button:active {\n animation: ripple 0.6s ease-out;\n}\n\n@keyframes ripple {\n to {\n transform: scale(1);\n opacity: 0;\n }\n}\n\n.complex-animated-button::after {\n content: '';\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n width: 0;\n height: 0;\n background-color: var(--ripple-color);\n border-radius: 50%;\n opacity: 0.5;\n}\n\n.complex-animated-button:active::after {\n width: 100%;\n height: 100%;\n transition: width 0.3s ease-out, height 0.3s ease-out;\n}", "file_path": "/mnt/persist/workspace/Buttons/Satwinder04_tame-panther-46.html" }, "uniapp": { "template": "<button class=\"complex-animated-button\"></button>Click me</button>", "script": "export default {\n name: 'GalaxyTamePanther46',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}", "style": "\n/* From Uiverse.io by Satwinder04 - Tags: button */\n.complex-animated-button {\n --primary-color: #ff7f50;\n --secondary-color: #ffa07a;\n --border-radius: 16rpx;\n --shadow-color: rgba(0, 0, 0, 0.2);\n --shadow-offset: 4rpx;\n --shadow-blur: 8rpx;\n --ripple-color: rgba(255, 255, 255, 0.5);\n background: linear-gradient(to right, var(--primary-color), var(--secondary-color));\n border: none;\n border-radius: var(--border-radius);\n color: white;\n font-size: 1.2rem;\n padding: 1rem 2rem;\n position: relative;\n overflow: hidden;\n /* #ifdef H5 */\n cursor: pointer;\n /* #endif */\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: var(--shadow-offset) var(--shadow-offset) var(--shadow-blur) var(--shadow-color);\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n transition: transform 0.3s ease-in-out, background 0.3s ease-in-out;\n}\n\n.complex-animated-button:hover {\n transform: scale(1);\n background: linear-gradient(to right, var(--secondary-color), var(--primary-color));\n}\n\n.complex-animated-button:focus {\n outline: none;\n}\n\n.complex-animated-button:active {\n animation: ripple 0.6s ease-out;\n}\n\n@keyframes ripple {\n to {\n transform: scale(1);\n opacity: 0;\n }\n}\n\n.complex-animated-button::after {\n content: '';\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n width: 0;\n height: 0;\n background-color: var(--ripple-color);\n border-radius: 50%;\n opacity: 0.5;\n}\n\n.complex-animated-button:active::after {\n width: 100%;\n height: 100%;\n transition: width 0.3s ease-out, height 0.3s ease-out;\n}\n\n", "component_name": "GalaxyTamePanther46" }, "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": 1499, "render_cost": "medium", "memory_usage": "medium" }, "dependencies": [], "examples": [ { "title": "", "description": "", "code": "" } ], "created_at": "2025-07-31T07:55:34.550Z", "updated_at": "2025-07-31T07:55:34.550Z" }