UNPKG

galaxy-uniapp-mcp-server

Version:

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

116 lines 8.14 kB
{ "id": "OnCloud125252_tough-moth-4", "name": "tough-moth-4", "category": "buttons", "author": "OnCloud125252", "description": "tough-moth-4 组件 (simple, black, button, animated, simple button, animation, interactive)", "tags": [ "simple", "black", "button", "animated", "simple button", "animation", "interactive" ], "original": { "html": "<div tabindex=\"0\" class=\"signInButton\">\n <p class=\"signInButtonText\">Sign In</p>\n</div>", "css": "/* From Uiverse.io by OnCloud125252 - Tags: simple, black, button, animated, simple button */\n/* Note that you only needs to edit the config to customize the button! */\n\n.signInButton {\n /* Config start */\n --signIn_width: 6rem;\n --signIn_height: 2.5rem;\n --signIn_bottomLeftTriangleSideLength: 1rem;\n --signIn_topRightTriangleSideLength: 0.9rem;\n /* Config end */\n position: relative;\n display: flex;\n justify-content: center;\n align-items: center;\n border: 1px solid white;\n width: 6rem;\n height: 2.5rem;\n background-color: #000000;\n overflow: hidden;\n}\n\n.signInButton::before {\n position: absolute;\n content: \"\";\n bottom: 0;\n left: 0;\n width: 0;\n height: 0;\n border-width: 0 var(--signIn_bottomLeftTriangleSideLength) var(--signIn_bottomLeftTriangleSideLength) 0;\n border-style: solid;\n border-color: transparent transparent white transparent;\n transition-timing-function: ease-in-out;\n transition-duration: 0.2s;\n}\n\n.signInButton::after {\n position: absolute;\n content: \"\";\n top: 0;\n right: 0;\n width: calc(var(--signIn_topRightTriangleSideLength) * 1.4142135623730950488016887242097);\n height: calc(var(--signIn_topRightTriangleSideLength) * 1.4142135623730950488016887242097);\n outline: 1px solid white;\n transform: translate(50%, -50%) rotate(45deg);\n transition-timing-function: ease-in-out;\n transition-duration: 0.2s;\n}\n\n.signInButton:hover {\n cursor: pointer;\n}\n\n.signInButton:hover::before {\n --signIn_bottomLeftTriangleSideLength: calc(var(--signIn_width) + var(--signIn_height) - var(--signIn_topRightTriangleSideLength) + (var(--signIn_topRightTriangleSideLength) * 0.3));\n}\n\n.signInButton:focus-visible::before {\n --signIn_bottomLeftTriangleSideLength: calc(var(--signIn_width) + var(--signIn_height) - var(--signIn_topRightTriangleSideLength) + (var(--signIn_topRightTriangleSideLength) * 0.3));\n}\n\n.signInButton:hover::after {\n transform: translate(calc(50% + var(--signIn_topRightTriangleSideLength) * 0.1), calc((50% + var(--signIn_topRightTriangleSideLength) * 0.1) * -1)) rotate(45deg);\n}\n\n.signInButton:focus-visible::after {\n transform: translate(calc(50% + var(--signIn_topRightTriangleSideLength) * 0.1), calc((50% + var(--signIn_topRightTriangleSideLength) * 0.1) * -1)) rotate(45deg);\n}\n\n.signInButton:hover>.signInButtonText {\n color: black;\n}\n\n.signInButton:focus-visible>.signInButtonText {\n color: black;\n}\n\n.signInButtonText {\n margin: auto 0;\n color: white;\n font-size: 0.875rem;\n line-height: 1.25rem;\n font-weight: 700;\n text-align: center;\n z-index: 1;\n transition-timing-function: ease-in-out;\n transition-duration: 0.2s;\n}", "file_path": "/mnt/persist/workspace/Buttons/OnCloud125252_tough-moth-4.html" }, "uniapp": { "template": "<view tabindex=\"0\" class=\"signInButton\"></view>\n <text class=\"signInButtonText\">Sign In</text>\n</div>", "script": "export default {\n name: 'GalaxyToughMoth4',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}", "style": "\n/* From Uiverse.io by OnCloud125252 - Tags: simple, black, button, animated, simple button */\n/* Note that you only needs to edit the config to customize the button! */\n\n.signInButton {\n /* Config start */\n --signIn_width: 6rem;\n --signIn_height: 2.5rem;\n --signIn_bottomLeftTriangleSideLength: 1rem;\n --signIn_topRightTriangleSideLength: 0.9rem;\n /* Config end */\n position: relative;\n display: flex;\n justify-content: center;\n align-items: center;\n border: 2rpx solid white;\n width: 6rem;\n height: 2.5rem;\n background-color: #000000;\n overflow: hidden;\n}\n\n.signInButton::before {\n position: absolute;\n content: \"\";\n bottom: 0;\n left: 0;\n width: 0;\n height: 0;\n border-width: 0 var(--signIn_bottomLeftTriangleSideLength) var(--signIn_bottomLeftTriangleSideLength) 0;\n border-style: solid;\n border-color: transparent transparent white transparent;\n transition-timing-function: ease-in-out;\n transition-duration: 0.2s;\n}\n\n.signInButton::after {\n position: absolute;\n content: \"\";\n top: 0;\n right: 0;\n width: calc(var(--signIn_topRightTriangleSideLength) * 1.4142135623730950488016887242097);\n height: calc(var(--signIn_topRightTriangleSideLength) * 1.4142135623730950488016887242097);\n outline: 2rpx solid white;\n transform: translate(50%, -50%) rotate(45deg);\n transition-timing-function: ease-in-out;\n transition-duration: 0.2s;\n}\n\n.signInButton:hover {\n /* #ifdef H5 */\n cursor: pointer;\n /* #endif */\n}\n\n.signInButton:hover::before {\n --signIn_bottomLeftTriangleSideLength: calc(var(--signIn_width) + var(--signIn_height) - var(--signIn_topRightTriangleSideLength) + (var(--signIn_topRightTriangleSideLength) * 0.3));\n}\n\n.signInButton:focus-visible::before {\n --signIn_bottomLeftTriangleSideLength: calc(var(--signIn_width) + var(--signIn_height) - var(--signIn_topRightTriangleSideLength) + (var(--signIn_topRightTriangleSideLength) * 0.3));\n}\n\n.signInButton:hover::after {\n transform: translate(calc(50% + var(--signIn_topRightTriangleSideLength) * 0.1), calc((50% + var(--signIn_topRightTriangleSideLength) * 0.1) * -1)) rotate(45deg);\n}\n\n.signInButton:focus-visible::after {\n transform: translate(calc(50% + var(--signIn_topRightTriangleSideLength) * 0.1), calc((50% + var(--signIn_topRightTriangleSideLength) * 0.1) * -1)) rotate(45deg);\n}\n\n.signInButton:hover>.signInButtonText {\n color: black;\n}\n\n.signInButton:focus-visible>.signInButtonText {\n color: black;\n}\n\n.signInButtonText {\n margin: auto 0;\n color: white;\n font-size: 0.875rem;\n line-height: 1.25rem;\n font-weight: 700;\n text-align: center;\n z-index: 1;\n transition-timing-function: ease-in-out;\n transition-duration: 0.2s;\n}\n", "component_name": "GalaxyToughMoth4" }, "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": [ "不支持 cursor 属性" ], "alternatives": [] }, "mp-alipay": { "supported": true, "issues": [ "不支持 cursor 属性" ], "alternatives": [] }, "app-plus": { "supported": true, "issues": [], "alternatives": [] } }, "performance": { "complexity": "medium", "bundle_size": 2705, "render_cost": "medium", "memory_usage": "medium" }, "dependencies": [], "examples": [ { "title": "", "description": "", "code": "" } ], "created_at": "2025-07-31T07:55:34.185Z", "updated_at": "2025-07-31T07:55:34.185Z" }