UNPKG

galaxy-uniapp-mcp-server

Version:

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

113 lines 5.79 kB
{ "id": "learnMyHobby_dangerous-sheep-52", "name": "dangerous-sheep-52", "category": "buttons", "author": "learnMyHobby", "description": "dangerous-sheep-52 组件 (button, animation, gradient, interactive)", "tags": [ "button", "animation", "gradient", "interactive" ], "original": { "html": "<button>\n <span>Hover</span>\n</button>", "css": "/* From Uiverse.io by learnMyHobby - Tags: button */\nbutton {\n position: relative;\n text-decoration: none;\n font-size: 15px;\n text-transform: uppercase;\n letter-spacing: 5px;\n line-height: 48px;\n width: 160px;\n font-weight: bold;\n height: 55px;\n -webkit-box-reflect: bottom 1px linear-gradient(transparent, #0004);\n}\n\nbutton span {\n position: absolute;\n display: flex;\n justify-content: center;\n top: 4px;\n right: 4px;\n bottom: 4px;\n left: 4px;\n text-align: center;\n background: #2E2E2E;\n color: rgba(255, 255, 255, 0.781);\n transition: 0.5s;\n z-index: 1;\n}\n\nbutton:hover span {\n color: rgba(255,255,255,1);\n}\n\nbutton::before {\n content: '';\n position: absolute;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n background-size: 400%;\n opacity: 0;\n transition: 0.5s;\n background: linear-gradient(45deg,#91155d,#525296,#0f0,#ff0,#fb0094,#00f,#0f0,#ff0);\n animation: animate123 20% linear infinte;\n}\n\nbutton::after {\n content: '';\n position: absolute;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n background-size: 400%;\n filter: blur(20px);\n transition: 0.5s;\n background: linear-gradient(45deg,#91155d,#525296,#0f0,#ff0,#fb0094,#00f,#0f0,#ff0);\n animation: animate123 20% linear infinte;\n}\n\nbutton:hover::before,\nbutton:hover::after {\n opacity: 1;\n}\n\n@keyframes animate123 {\n 0% {\n background-position: 0 0;\n }\n\n 50% {\n background-position: 300% 0;\n }\n\n 100% {\n background-position: 0 0;\n }\n}\n\nbutton span::before {\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 50%;\n background: rgba(255,255,255,0.1);\n}", "file_path": "/mnt/persist/workspace/Buttons/learnMyHobby_dangerous-sheep-52.html" }, "uniapp": { "template": "<button></button>\n <text>Hover</text>\n</button>", "script": "export default {\n name: 'GalaxyDangerousSheep52',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}", "style": "\n/* From Uiverse.io by learnMyHobby - Tags: button */\nbutton {\n position: relative;\n text-decoration: none;\n font-size: 30rpx;\n text-transform: uppercase;\n letter-spacing: 10rpx;\n line-height: 96rpx;\n width: 320rpx;\n font-weight: bold;\n height: 110rpx;\n -webkit-box-reflect: bottom 2rpx linear-gradient(transparent, #0004);\n}\n\nbutton span {\n position: absolute;\n display: flex;\n justify-content: center;\n top: 8rpx;\n right: 8rpx;\n bottom: 8rpx;\n left: 8rpx;\n text-align: center;\n background: #2E2E2E;\n color: rgba(255, 255, 255, 0.781);\n transition: 0.5s;\n z-index: 1;\n}\n\nbutton:hover span {\n color: rgba(255,255,255,1);\n}\n\nbutton::before {\n content: '';\n position: absolute;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n background-size: 400%;\n opacity: 0;\n transition: 0.5s;\n background: linear-gradient(45deg,#91155d,#525296,#0f0,#ff0,#fb0094,#00f,#0f0,#ff0);\n animation: animate123 20% linear infinte;\n}\n\nbutton::after {\n content: '';\n position: absolute;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n background-size: 400%;\n \n transition: 0.5s;\n background: linear-gradient(45deg,#91155d,#525296,#0f0,#ff0,#fb0094,#00f,#0f0,#ff0);\n animation: animate123 20% linear infinte;\n}\n\nbutton:hover::before,\nbutton:hover::after {\n opacity: 1;\n}\n\n@keyframes animate123 {\n 0% {\n background-position: 0 0;\n }\n\n 50% {\n background-position: 300% 0;\n }\n\n 100% {\n background-position: 0 0;\n }\n}\n\nbutton span::before {\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 50%;\n background: rgba(255,255,255,0.1);\n}\n", "component_name": "GalaxyDangerousSheep52" }, "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": [ "不支持 filter 属性" ], "alternatives": [] }, "mp-alipay": { "supported": true, "issues": [ "不支持 filter 属性" ], "alternatives": [] }, "app-plus": { "supported": true, "issues": [], "alternatives": [] } }, "performance": { "complexity": "medium", "bundle_size": 1584, "render_cost": "medium", "memory_usage": "medium" }, "dependencies": [], "examples": [ { "title": "", "description": "", "code": "" } ], "created_at": "2025-07-31T07:55:37.137Z", "updated_at": "2025-07-31T07:55:37.137Z" }