UNPKG

galaxy-uniapp-mcp-server

Version:

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

116 lines 8.41 kB
{ "id": "ilkhoeri_honest-panther-87", "name": "honest-panther-87", "category": "buttons", "author": "ilkhoeri", "description": "honest-panther-87 组件 (simple, success, button, like, click, animation, interactive)", "tags": [ "simple", "success", "button", "like", "click", "animation", "interactive" ], "original": { "html": "<button class=\"action_has has_liked\" aria-label=\"like\" type=\"button\">\n <span data-icon=\"\"><svg data-icon=\"aoeri\" aria-hidden=\"true\" xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" stroke-linejoin=\"round\" stroke-linecap=\"round\" stroke-width=\"2\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" fill=\"none\">\n <path d=\"m8.05,11.99c0-.84.28-1.07,1.2-1.25,1.6-.31,2.35-.74,3.14-1.54,1.19-1.21,1.58-1.97,2.18-3.24.66-1.69,1.55-2.82,3.04-2.76.9.03,2.33.8,1.67,2.72-.31.9-1.98,3.61-2.23,4.23-.18.46.4.8.8.8h2.5c1.2,0,2.2,1,2.2,2.2l-1.1,5.6c-.3,1.5-1.02,2.23-2.2,2.2h-7.6c-2,0-3.6-1.6-3.6-3.6v-5.35Z\" data-d=\"thumb\"></path>\n <path d=\"m5.4,19.9c0,.6-.5,1.1-1.1,1.1h-1c-1,0-1.9-.9-1.9-1.9v-6.3c0-1,.9-1.9,1.9-1.9h.9c.7,0,1.2.6,1.2,1.2v7.7Z\" data-d=\"sleeves\"></path></svg></span>\n</button>", "css": "/* From Uiverse.io by ilkhoeri - Tags: simple, success, button, like, click */\n.action_has {\n --color: 0 0% 60%;\n --color-has: 211deg 100% 48%;\n --sz: 1rem;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n height: calc(var(--sz) * 2.5);\n width: calc(var(--sz) * 2.5);\n padding: 0.4rem 0.5rem;\n border-radius: 0.375rem;\n border: 0.0625rem solid hsl(var(--color));\n}\n\n.has_liked svg,\n.has_saved svg {\n overflow: visible;\n height: calc(var(--sz) * 1.75);\n width: calc(var(--sz) * 1.75);\n --ease: cubic-bezier(0.5, 0, 0.25, 1);\n --zoom-from: 1.75;\n --zoom-via: 0.75;\n --zoom-to: 1;\n --duration: 1s;\n}\n\n.has_liked:hover {\n transition: border-color var(--duration) var(--ease);\n border-color: hsl(var(--color-has));\n}\n\n.has_liked:hover svg,\n.has_saved:hover svg {\n fill: hsl(var(--color-has) / 0.5);\n color: hsl(var(--color-has));\n}\n\n.has_liked:hover [data-d=\"thumb\"] {\n animation: has-liked-thumb var(--duration) var(--ease) forwards;\n}\n.has_liked:hover [data-d=\"sleeves\"] {\n animation: has-liked-sleeves var(--duration) var(--ease) forwards;\n}\n\n@keyframes has-liked-thumb {\n 33.333% {\n transform: rotate(-20deg) translate(1px, 2px) scale(var(--zoom-from));\n }\n 66.666% {\n transform: rotate(20deg) translate(2px, -2px) scale(var(--zoom-via));\n d: path(\n \"m8.05,11.99c0-.84.28-1.07,1.2-1.25,1.6-.31,2.3-.64,2.9-1.09,0,0,1.64-1.31,2.21-3.11,1.12-3.59,2.11-4.85,3.72-4.85,2.27,0,2.96,2.22,2.55,3.54-.6,1.97-3.81,4.09-3.94,4.99-.07.49.76.72,1.16.72h2.5c1.2,0,2.2,1,2.2,2.2l-1.1,5.6c-.3,1.5-1.02,2.23-2.2,2.2h-7.6c-2,0-3.6-1.6-3.6-3.6v-5.35Z\"\n );\n }\n 99.999% {\n transform: rotate(0deg) translate(0px, 0px) scale(var(--zoom-to));\n }\n}\n\n@keyframes has-liked-sleeves {\n 33.333% {\n transform: rotate(10deg) translate(6px, -2px) scale(var(--zoom-from));\n }\n 66.666% {\n transform: rotate(-10deg) translate(-6px, 0px) scale(var(--zoom-via));\n }\n 99.999% {\n transform: rotate(0deg) translate(0px, 0px) scale(var(--zoom-to));\n }\n}", "file_path": "/mnt/persist/workspace/Buttons/ilkhoeri_honest-panther-87.html" }, "uniapp": { "template": "<button class=\"action_has has_liked\" aria-label=\"like\" type=\"button\"></button>\n <text data-icon=\"\"></text><view data-icon=\"aoeri\" aria-hidden=\"true\" xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" stroke-linejoin=\"round\" stroke-linecap=\"round\" stroke-width=\"2\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" fill=\"none\"></view>\n <path d=\"m8.05,11.99c0-.84.28-1.07,1.2-1.25,1.6-.31,2.35-.74,3.14-1.54,1.19-1.21,1.58-1.97,2.18-3.24.66-1.69,1.55-2.82,3.04-2.76.9.03,2.33.8,1.67,2.72-.31.9-1.98,3.61-2.23,4.23-.18.46.4.8.8.8h2.5c1.2,0,2.2,1,2.2,2.2l-1.1,5.6c-.3,1.5-1.02,2.23-2.2,2.2h-7.6c-2,0-3.6-1.6-3.6-3.6v-5.35Z\" data-d=\"thumb\"></path>\n <path d=\"m5.4,19.9c0,.6-.5,1.1-1.1,1.1h-1c-1,0-1.9-.9-1.9-1.9v-6.3c0-1,.9-1.9,1.9-1.9h.9c.7,0,1.2.6,1.2,1.2v7.7Z\" data-d=\"sleeves\"></path></svg></span>\n</button>", "script": "export default {\n name: 'GalaxyHonestPanther87',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}", "style": "\n/* From Uiverse.io by ilkhoeri - Tags: simple, success, button, like, click */\n.action_has {\n --color: 0 0% 60%;\n --color-has: 211deg 100% 48%;\n --sz: 1rem;\n /* #ifdef H5 */\n cursor: pointer;\n /* #endif */\n display: flex;\n align-items: center;\n justify-content: center;\n height: calc(var(--sz) * 2.5);\n width: calc(var(--sz) * 2.5);\n padding: 0.4rem 0.5rem;\n border-radius: 0.375rem;\n border: 0.0625rem solid hsl(var(--color));\n}\n\n.has_liked svg,\n.has_saved svg {\n overflow: visible;\n height: calc(var(--sz) * 1.75);\n width: calc(var(--sz) * 1.75);\n --ease: cubic-bezier(0.5, 0, 0.25, 1);\n --zoom-from: 1.75;\n --zoom-via: 0.75;\n --zoom-to: 1;\n --duration: 1s;\n}\n\n.has_liked:hover {\n transition: border-color var(--duration) var(--ease);\n border-color: hsl(var(--color-has));\n}\n\n.has_liked:hover svg,\n.has_saved:hover svg {\n fill: hsl(var(--color-has) / 0.5);\n color: hsl(var(--color-has));\n}\n\n.has_liked:hover [data-d=\"thumb\"] {\n animation: has-liked-thumb var(--duration) var(--ease) forwards;\n}\n.has_liked:hover [data-d=\"sleeves\"] {\n animation: has-liked-sleeves var(--duration) var(--ease) forwards;\n}\n\n@keyframes has-liked-thumb {\n 33.333% {\n transform: rotate(-20deg) translate(2rpx, 4rpx) scale(var(--zoom-from));\n }\n 66.666% {\n transform: rotate(20deg) translate(4rpx, -4rpx) scale(var(--zoom-via));\n d: path(\n \"m8.05,11.99c0-.84.28-1.07,1.2-1.25,1.6-.31,2.3-.64,2.9-1.09,0,0,1.64-1.31,2.21-3.11,1.12-3.59,2.11-4.85,3.72-4.85,2.27,0,2.96,2.22,2.55,3.54-.6,1.97-3.81,4.09-3.94,4.99-.07.49.76.72,1.16.72h2.5c1.2,0,2.2,1,2.2,2.2l-1.1,5.6c-.3,1.5-1.02,2.23-2.2,2.2h-7.6c-2,0-3.6-1.6-3.6-3.6v-5.35Z\"\n );\n }\n 99.999% {\n transform: rotate(0deg) translate(0rpx, 0rpx) scale(var(--zoom-to));\n }\n}\n\n@keyframes has-liked-sleeves {\n 33.333% {\n transform: rotate(10deg) translate(12rpx, -4rpx) scale(var(--zoom-from));\n }\n 66.666% {\n transform: rotate(-10deg) translate(-12rpx, 0rpx) scale(var(--zoom-via));\n }\n 99.999% {\n transform: rotate(0deg) translate(0rpx, 0rpx) scale(var(--zoom-to));\n }\n}\n\n", "component_name": "GalaxyHonestPanther87" }, "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": 2814, "render_cost": "medium", "memory_usage": "medium" }, "dependencies": [], "examples": [ { "title": "", "description": "", "code": "" } ], "created_at": "2025-07-31T07:55:36.974Z", "updated_at": "2025-07-31T07:55:36.974Z" }