UNPKG

galaxy-uniapp-mcp-server

Version:

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

116 lines 6.65 kB
{ "id": "Mini-khamasino_cowardly-parrot-21", "name": "cowardly-parrot-21", "category": "buttons", "author": "Mini-khamasino", "description": "cowardly-parrot-21 组件 (simple, animation, button, gradient, interactive)", "tags": [ "simple", "animation", "button", "gradient", "interactive" ], "original": { "html": "<button class=\"button\">\n <div class=\"ellipse\">\n <span class=\"icon\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 448 512\">\n <path d=\"M429.6 92.1c4.9-11.9 2.1-25.6-7-34.7s-22.8-11.9-34.7-7l-352 144c-14.2 5.8-22.2 20.8-19.3 35.8s16.1 25.8 31.4 25.8H224V432c0 15.3 10.8 28.4 25.8 31.4s30-5.1 35.8-19.3l144-352z\"></path></svg></span>\n <span class=\"text1\"> Send message </span>\n <span class=\"text2\"> Send </span>\n </div>\n</button>", "css": "/* From Uiverse.io by Mini-khamasino - Tags: simple, animation, button */\n.button {\n background-color: rgb(236, 235, 235);\n width: 170px;\n height: 50px;\n border-radius: 10px;\n border: 0.1px solid rgb(179, 178, 178);\n position: absolute;\n display: flex;\n align-items: center;\n justify-content: center;\n box-shadow: 0px 3px 7px rgb(97, 97, 97);\n cursor: pointer;\n}\n.ellipse {\n position: relative;\n padding-top: 10px;\n width: 160px;\n height: 40px;\n border-radius: 25px;\n border: 0px;\n background-image: linear-gradient(rgb(218, 217, 217), rgb(250, 250, 250));\n box-shadow: 0px 4px 5px rgb(231, 231, 231);\n cursor: pointer;\n font-size: medium;\n}\n.icon {\n position: absolute;\n width: 18px;\n left: 8%;\n transition-duration: 0.5s;\n}\n\n.button:hover .icon {\n left: 80%;\n transform: rotate(45deg);\n fill: rgb(22, 219, 101);\n}\n\n.text2 {\n position: absolute;\n left: 30%;\n top: 27%;\n font-weight: bold;\n color: rgb(22, 219, 101, 0);\n letter-spacing: 3px;\n transition: color 0.3s;\n}\n\n.button:hover .text1 {\n color: rgb(255, 255, 255, 0);\n transition-duration: 0.3s;\n}\n\n.text1 {\n width: 70%;\n position: absolute;\n font-size: 15px;\n left: 24%;\n transition-duration: 1s;\n}\n\n.button:hover .text2 {\n color: rgb(22, 219, 101);\n letter-spacing: 3px;\n transition-duration: 0.5s;\n}", "file_path": "/mnt/persist/workspace/Buttons/Mini-khamasino_cowardly-parrot-21.html" }, "uniapp": { "template": "<button class=\"button\"></button>\n <view class=\"ellipse\"></view>\n <text class=\"icon\"></text><view xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 448 512\"></view>\n <path d=\"M429.6 92.1c4.9-11.9 2.1-25.6-7-34.7s-22.8-11.9-34.7-7l-352 144c-14.2 5.8-22.2 20.8-19.3 35.8s16.1 25.8 31.4 25.8H224V432c0 15.3 10.8 28.4 25.8 31.4s30-5.1 35.8-19.3l144-352z\"></path></svg></span>\n <text class=\"text1\"> Send message </text>\n <text class=\"text2\"> Send </text>\n </div>\n</button>", "script": "export default {\n name: 'GalaxyCowardlyParrot21',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}", "style": "\n/* From Uiverse.io by Mini-khamasino - Tags: simple, animation, button */\n.button {\n background-color: rgb(236, 235, 235);\n width: 340rpx;\n height: 100rpx;\n border-radius: 20rpx;\n border: 0.2rpx solid rgb(179, 178, 178);\n position: absolute;\n display: flex;\n align-items: center;\n justify-content: center;\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 0rpx 6rpx 14rpx rgb(97, 97, 97);\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n /* #ifdef H5 */\n cursor: pointer;\n /* #endif */\n}\n.ellipse {\n position: relative;\n padding-top: 20rpx;\n width: 320rpx;\n height: 80rpx;\n border-radius: 50rpx;\n border: 0rpx;\n background-image: linear-gradient(rgb(218, 217, 217), rgb(250, 250, 250));\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 0rpx 8rpx 10rpx rgb(231, 231, 231);\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n /* #ifdef H5 */\n cursor: pointer;\n /* #endif */\n font-size: medium;\n}\n.icon {\n position: absolute;\n width: 36rpx;\n left: 8%;\n transition-duration: 0.5s;\n}\n\n.button:hover .icon {\n left: 80%;\n transform: rotate(45deg);\n fill: rgb(22, 219, 101);\n}\n\n.text2 {\n position: absolute;\n left: 30%;\n top: 27%;\n font-weight: bold;\n color: rgb(22, 219, 101, 0);\n letter-spacing: 6rpx;\n transition: color 0.3s;\n}\n\n.button:hover .text1 {\n color: rgb(255, 255, 255, 0);\n transition-duration: 0.3s;\n}\n\n.text1 {\n width: 70%;\n position: absolute;\n font-size: 30rpx;\n left: 24%;\n transition-duration: 1s;\n}\n\n.button:hover .text2 {\n color: rgb(22, 219, 101);\n letter-spacing: 6rpx;\n transition-duration: 0.5s;\n}\n\n", "component_name": "GalaxyCowardlyParrot21" }, "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 属性", "不支持 cursor 属性" ], "alternatives": [] }, "mp-alipay": { "supported": true, "issues": [ "不支持 box-shadow 属性", "不支持 cursor 属性" ], "alternatives": [] }, "app-plus": { "supported": true, "issues": [], "alternatives": [] } }, "performance": { "complexity": "medium", "bundle_size": 1764, "render_cost": "medium", "memory_usage": "medium" }, "dependencies": [], "examples": [ { "title": "", "description": "", "code": "" } ], "created_at": "2025-07-31T07:55:33.991Z", "updated_at": "2025-07-31T07:55:33.991Z" }