UNPKG

galaxy-uniapp-mcp-server

Version:

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

114 lines 5.8 kB
{ "id": "Df12345677_black-rat-82", "name": "black-rat-82", "category": "buttons", "author": "Df12345677", "description": "black-rat-82 组件 (button, animated, add, animation, interactive)", "tags": [ "button", "animated", "add", "animation", "interactive" ], "original": { "html": "<button class=\"button\">\n <span>Add to cart</span>\n <svg fill=\"#fff\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><g stroke-width=\"0\" id=\"SVGRepo_bgCarrier\"></g><g stroke-linejoin=\"round\" stroke-linecap=\"round\" id=\"SVGRepo_tracerCarrier\"></g><g id=\"SVGRepo_iconCarrier\"> <defs> </defs> <g id=\"cart\"> <circle r=\"1.91\" cy=\"20.59\" cx=\"10.07\" class=\"cls-1\"></circle> <circle r=\"1.91\" cy=\"20.59\" cx=\"18.66\" class=\"cls-1\"></circle> <path d=\"M.52,1.5H3.18a2.87,2.87,0,0,1,2.74,2L9.11,13.91H8.64A2.39,2.39,0,0,0,6.25,16.3h0a2.39,2.39,0,0,0,2.39,2.38h10\" class=\"cls-1\"></path> <polyline points=\"7.21 5.32 22.48 5.32 22.48 7.23 20.57 13.91 9.11 13.91\" class=\"cls-1\"></polyline> </g> </g></svg>\n</button>", "css": "/* From Uiverse.io by Df12345677 - Tags: button, animated, add */\n.button {\n height: 60px;\n width: 200px;\n background-color: #132233;\n border: 2px solid rgb(182, 128, 128);\n color: #eee;\n transition: .6s;\n font-size: 15px;\n border-radius: 50px;\n display: flex;\n justify-content: center;\n align-items: center;\n /* padding: 20px; */\n overflow: hidden;\n}\n\n.button span {\n transform: translateX(10px);\n transition: .5s;\n}\n\n.button svg {\n transform: translateX(-300px);\n transition: .6s;\n z-index: 3;\n height: 20px;\n}\n\n.button:hover {\n width: 60px;\n background-color: rgba(51, 34, 51, 0.815);\n box-shadow: 20px 20px 96px #bebebe,-20px -20px 96px #ffffff;\n}\n\n.button:hover svg {\n transform: translateX(-5px);\n}\n\n.button:hover span {\n transform: translateY(70px);\n font-size: .1rem;\n}", "file_path": "/mnt/persist/workspace/Buttons/Df12345677_black-rat-82.html" }, "uniapp": { "template": "<button class=\"button\"></button>\n <text>Add to cart</text>\n <view fill=\"#fff\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><g stroke-width=\"0\" id=\"SVGRepo_bgCarrier\"></g><g stroke-linejoin=\"round\" stroke-linecap=\"round\" id=\"SVGRepo_tracerCarrier\"></g><g id=\"SVGRepo_iconCarrier\"> <defs> </defs> <g id=\"cart\"> <circle r=\"1.91\" cy=\"20.59\" cx=\"10.07\" class=\"cls-1\"></circle> <circle r=\"1.91\" cy=\"20.59\" cx=\"18.66\" class=\"cls-1\"></circle> <path d=\"M.52,1.5H3.18a2.87,2.87,0,0,1,2.74,2L9.11,13.91H8.64A2.39,2.39,0,0,0,6.25,16.3h0a2.39,2.39,0,0,0,2.39,2.38h10\" class=\"cls-1\"></path> <polyline points=\"7.21 5.32 22.48 5.32 22.48 7.23 20.57 13.91 9.11 13.91\" class=\"cls-1\"></polyline> </g> </g></view>\n</button>", "script": "export default {\n name: 'GalaxyBlackRat82',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}", "style": "\n/* From Uiverse.io by Df12345677 - Tags: button, animated, add */\n.button {\n height: 120rpx;\n width: 400rpx;\n background-color: #132233;\n border: 4rpx solid rgb(182, 128, 128);\n color: #eee;\n transition: .6s;\n font-size: 30rpx;\n border-radius: 100rpx;\n display: flex;\n justify-content: center;\n align-items: center;\n /* padding: 40rpx; */\n overflow: hidden;\n}\n\n.button span {\n transform: translateX(20rpx);\n transition: .5s;\n}\n\n.button svg {\n transform: translateX(-600rpx);\n transition: .6s;\n z-index: 3;\n height: 40rpx;\n}\n\n.button:hover {\n width: 120rpx;\n background-color: rgba(51, 34, 51, 0.815);\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 40rpx 40rpx 192rpx #bebebe,-40rpx -40rpx 192rpx #ffffff;\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n}\n\n.button:hover svg {\n transform: translateX(-10rpx);\n}\n\n.button:hover span {\n transform: translateY(140rpx);\n font-size: .1rem;\n}\n", "component_name": "GalaxyBlackRat82" }, "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 属性" ], "alternatives": [] }, "mp-alipay": { "supported": true, "issues": [ "不支持 box-shadow 属性" ], "alternatives": [] }, "app-plus": { "supported": true, "issues": [], "alternatives": [] } }, "performance": { "complexity": "medium", "bundle_size": 1511, "render_cost": "medium", "memory_usage": "medium" }, "dependencies": [], "examples": [ { "title": "", "description": "", "code": "" } ], "created_at": "2025-07-31T07:55:33.134Z", "updated_at": "2025-07-31T07:55:33.134Z" }