UNPKG

galaxy-uniapp-mcp-server

Version:

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

111 lines 5.39 kB
{ "id": "andrew-demchenk0_nasty-rabbit-89", "name": "nasty-rabbit-89", "category": "buttons", "author": "andrew-demchenk0", "description": "nasty-rabbit-89 组件 (button, gradient)", "tags": [ "button", "gradient" ], "original": { "html": "<button>\n <span class=\"text\">FIRE !!!</span>\n <span class=\"bullet\"></span>\n</button>", "css": "/* From Uiverse.io by andrew-demchenk0 - Tags: button */\nbutton {\n padding: 0 15px 0 15px;\n font-size: 17px;\n font-weight: 700;\n text-shadow: 1px 1px 2.3px rgba(255,255,255, 0.8);\n position: relative;\n width: 150px;\n height: 40px;\n border-radius: 100% 9% 9% 100% / 0% 100% 100% 0%;\n border: none;\n background-image: linear-gradient(\n 180deg, #CDB373, #795E2B,\n #AD8D53, #FFFAB7, #795D2F,\n #614818, #BC9859, #876A35,\n #736141);\n}\n\nbutton::before {\n content: '';\n height: 44px;\n width: 10px;\n position: absolute;\n top: -4.7%;\n left: -5.9%;\n border-radius: 100% 31% 28% 100% / 0% 100% 100% 0%;\n background-image: linear-gradient(\n 180deg, #CDB373, #795E2B,\n #AD8D53, #FFFAB7, #795D2F,\n #614818, #BC9859, #876A35,\n #736141);\n}\n\n.bullet {\n height: 38px;\n width: 60px;\n position: absolute;\n top: 3%;\n left: 95%;\n border-radius: 10% 100% 100% 10% / 10% 50% 50% 10%;\n background-image: linear-gradient(\n 180deg, #512614, #A1623A,\n #BA7447, #EDC38B, #B27449,\n #DDAB77, #EAC4AE, #B67E4E,\n #5B2D17, #44271C);\n z-index: -1;\n}\n\nbutton:active .bullet {\n left: 115%;\n transition: all 0.2s;\n}", "file_path": "/mnt/persist/workspace/Buttons/andrew-demchenk0_nasty-rabbit-89.html" }, "uniapp": { "template": "<button></button>\n <text class=\"text\">FIRE !!!</text>\n <text class=\"bullet\"></text>\n</button>", "script": "export default {\n name: 'GalaxyNastyRabbit89',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}", "style": "\n/* From Uiverse.io by andrew-demchenk0 - Tags: button */\nbutton {\n padding: 0 30rpx 0 30rpx;\n font-size: 34rpx;\n font-weight: 700;\n /* #ifdef H5 */\n text-shadow: 2rpx 2rpx 4.6rpx rgba(255,255,255, 0.8);\n /* #endif */\n position: relative;\n width: 300rpx;\n height: 80rpx;\n border-radius: 100% 9% 9% 100% / 0% 100% 100% 0%;\n border: none;\n background-image: linear-gradient(\n 180deg, #CDB373, #795E2B,\n #AD8D53, #FFFAB7, #795D2F,\n #614818, #BC9859, #876A35,\n #736141);\n}\n\nbutton::before {\n content: '';\n height: 88rpx;\n width: 20rpx;\n position: absolute;\n top: -4.7%;\n left: -5.9%;\n border-radius: 100% 31% 28% 100% / 0% 100% 100% 0%;\n background-image: linear-gradient(\n 180deg, #CDB373, #795E2B,\n #AD8D53, #FFFAB7, #795D2F,\n #614818, #BC9859, #876A35,\n #736141);\n}\n\n.bullet {\n height: 76rpx;\n width: 120rpx;\n position: absolute;\n top: 3%;\n left: 95%;\n border-radius: 10% 100% 100% 10% / 10% 50% 50% 10%;\n background-image: linear-gradient(\n 180deg, #512614, #A1623A,\n #BA7447, #EDC38B, #B27449,\n #DDAB77, #EAC4AE, #B67E4E,\n #5B2D17, #44271C);\n z-index: -1;\n}\n\nbutton:active .bullet {\n left: 115%;\n transition: all 0.2s;\n}\n", "component_name": "GalaxyNastyRabbit89" }, "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": [ "不支持 text-shadow 属性" ], "alternatives": [] }, "mp-alipay": { "supported": true, "issues": [ "不支持 text-shadow 属性" ], "alternatives": [] }, "app-plus": { "supported": true, "issues": [], "alternatives": [] } }, "performance": { "complexity": "low", "bundle_size": 1423, "render_cost": "low", "memory_usage": "low" }, "dependencies": [], "examples": [ { "title": "", "description": "", "code": "" } ], "created_at": "2025-07-31T07:55:35.666Z", "updated_at": "2025-07-31T07:55:35.666Z" }