UNPKG

galaxy-uniapp-mcp-server

Version:

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

113 lines 4.33 kB
{ "id": "AmIt-DasIT_evil-wolverine-68", "name": "evil-wolverine-68", "category": "buttons", "author": "AmIt-DasIT", "description": "evil-wolverine-68 组件 (button, add, btn, interactive)", "tags": [ "button", "add", "btn", "interactive" ], "original": { "html": "<div class=\"svg-wrapper\">\n <svg height=\"60\" width=\"190\" xmlns=\"http://www.w3.org/2000/svg\">\n <rect class=\"shape\" height=\"60\" width=\"190\"></rect>\n </svg>\n <div class=\"text\">Subscribe</div>\n</div>", "css": "/* From Uiverse.io by AmIt-DasIT - Tags: button, add, btn */\n.svg-wrapper {\n position: relative;\n width: 190px;\n height: 60px;\n text-align: center;\n cursor: pointer;\n}\n\n.shape {\n stroke-dasharray: 100 300;\n stroke-dashoffset: -297;\n fill: transparent;\n stroke: rgb(220, 20, 60);\n stroke-width: 5px;\n transition: stroke-width 1s, stroke-dashoffset 1s, stroke-dasharray 1s;\n}\n\n.text {\n font-size: 22px;\n top: -52px;\n position: relative;\n font-weight: 600;\n color: white;\n}\n\n.svg-wrapper:hover .shape {\n stroke-width: 2px;\n stroke-dashoffset: 0;\n stroke-dasharray: 760;\n}\n\n.svg-wrapper:hover {\n background-color: rgba(220, 20, 60, 0.2);\n transition: 1s;\n}", "file_path": "/mnt/persist/workspace/Buttons/AmIt-DasIT_evil-wolverine-68.html" }, "uniapp": { "template": "<view class=\"svg-wrapper\"></view>\n <view height=\"60\" width=\"190\" xmlns=\"http://www.w3.org/2000/svg\"></view>\n <rect class=\"shape\" height=\"60\" width=\"190\"></rect>\n </svg>\n <view class=\"text\">Subscribe</view>\n</div>", "script": "export default {\n name: 'GalaxyEvilWolverine68',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}", "style": "\n/* From Uiverse.io by AmIt-DasIT - Tags: button, add, btn */\n.svg-wrapper {\n position: relative;\n width: 380rpx;\n height: 120rpx;\n text-align: center;\n /* #ifdef H5 */\n cursor: pointer;\n /* #endif */\n}\n\n.shape {\n stroke-dasharray: 100 300;\n stroke-dashoffset: -297;\n fill: transparent;\n stroke: rgb(220, 20, 60);\n stroke-width: 10rpx;\n transition: stroke-width 1s, stroke-dashoffset 1s, stroke-dasharray 1s;\n}\n\n.text {\n font-size: 44rpx;\n top: -104rpx;\n position: relative;\n font-weight: 600;\n color: white;\n}\n\n.svg-wrapper:hover .shape {\n stroke-width: 4rpx;\n stroke-dashoffset: 0;\n stroke-dasharray: 760;\n}\n\n.svg-wrapper:hover {\n background-color: rgba(220, 20, 60, 0.2);\n transition: 1s;\n}\n\n\n", "component_name": "GalaxyEvilWolverine68" }, "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": "low", "bundle_size": 883, "render_cost": "low", "memory_usage": "low" }, "dependencies": [], "examples": [ { "title": "", "description": "", "code": "" } ], "created_at": "2025-07-31T07:55:32.587Z", "updated_at": "2025-07-31T07:55:32.587Z" }