UNPKG

galaxy-uniapp-mcp-server

Version:

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

114 lines 7.1 kB
{ "id": "AqFox_happy-zebra-99", "name": "happy-zebra-99", "category": "buttons", "author": "AqFox", "description": "happy-zebra-99 组件 (button, gradient, interactive)", "tags": [ "button", "gradient", "interactive" ], "original": { "html": "<button class=\"custom-btn btn-4\"><span>Read More</span></button>", "css": "/* From Uiverse.io by AqFox - Tags: button */\n.custom-btn {\n width: 130px;\n height: 40px;\n color: #fff;\n border-radius: 5px;\n padding: 10px 25px;\n font-family: 'Lato', sans-serif;\n font-weight: 500;\n background: transparent;\n cursor: pointer;\n transition: all 0.3s ease;\n position: relative;\n display: inline-block;\n box-shadow: inset 2px 2px 2px 0px rgba(255,255,255,.5),\n 7px 7px 20px 0px rgba(0,0,0,.1),\n 4px 4px 5px 0px rgba(0,0,0,.1);\n outline: none;\n font-size: 15px;\n}\n\n.btn-4 {\n background-color: #004dff;\n background-image: linear-gradient(315deg, #03c8a8 0%, #004dff 74%);\n line-height: 42px;\n padding: 0;\n border: none;\n}\n\n.btn-4:hover {\n background-color: #004dff;\n background-image: linear-gradient(315deg, #004dff 0%, #03c8a8 74%);\n}\n\n.btn-4 span {\n position: relative;\n display: block;\n width: 100%;\n height: 100%;\n}\n\n.btn-4:before,\n.btn-4:after {\n position: absolute;\n content: \"\";\n right: 0;\n top: 0;\n box-shadow: 4px 4px 6px 0 rgba(255,255,255,.9),\n -4px -4px 6px 0 rgba(116, 125, 136, .2), \n inset -4px -4px 6px 0 rgba(255,255,255,.9),\n inset 4px 4px 6px 0 rgba(116, 125, 136, .3);\n transition: all 0.3s ease;\n}\n\n.btn-4:before {\n height: 0%;\n width: .1px;\n}\n\n.btn-4:after {\n width: 0%;\n height: .1px;\n}\n\n.btn-4:hover:before {\n height: 100%;\n}\n\n.btn-4:hover:after {\n width: 100%;\n}\n\n.btn-4 span:before,\n.btn-4 span:after {\n position: absolute;\n content: \"\";\n left: 0;\n bottom: 0;\n box-shadow: 4px 4px 6px 0 rgba(255,255,255,.9),\n -4px -4px 6px 0 rgba(116, 125, 136, .2), \n inset -4px -4px 6px 0 rgba(255,255,255,.9),\n inset 4px 4px 6px 0 rgba(116, 125, 136, .3);\n transition: all 0.3s ease;\n}\n\n.btn-4 span:before {\n width: .1px;\n height: 0%;\n}\n\n.btn-4 span:after {\n width: 0%;\n height: .1px;\n}\n\n.btn-4 span:hover:before {\n height: 100%;\n}\n\n.btn-4 span:hover:after {\n width: 100%;\n}", "file_path": "/mnt/persist/workspace/Buttons/AqFox_happy-zebra-99.html" }, "uniapp": { "template": "<button class=\"custom-btn btn-4\"></button><text>Read More</text></button>", "script": "export default {\n name: 'GalaxyHappyZebra99',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}", "style": "\n/* From Uiverse.io by AqFox - Tags: button */\n.custom-btn {\n width: 260rpx;\n height: 80rpx;\n color: #fff;\n border-radius: 10rpx;\n padding: 20rpx 50rpx;\n font-family: 'Lato', sans-serif;\n font-weight: 500;\n background: transparent;\n /* #ifdef H5 */\n cursor: pointer;\n /* #endif */\n transition: all 0.3s ease;\n position: relative;\n display: inline-block;\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: inset 4rpx 4rpx 4rpx 0rpx rgba(255,255,255,.5),\n 14rpx 14rpx 40rpx 0rpx rgba(0,0,0,.1),\n 8rpx 8rpx 10rpx 0rpx rgba(0,0,0,.1);\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n outline: none;\n font-size: 30rpx;\n}\n\n.btn-4 {\n background-color: #004dff;\n background-image: linear-gradient(315deg, #03c8a8 0%, #004dff 74%);\n line-height: 84rpx;\n padding: 0;\n border: none;\n}\n\n.btn-4:hover {\n background-color: #004dff;\n background-image: linear-gradient(315deg, #004dff 0%, #03c8a8 74%);\n}\n\n.btn-4 span {\n position: relative;\n display: block;\n width: 100%;\n height: 100%;\n}\n\n.btn-4:before,\n.btn-4:after {\n position: absolute;\n content: \"\";\n right: 0;\n top: 0;\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 8rpx 8rpx 12rpx 0 rgba(255,255,255,.9),\n -8rpx -8rpx 12rpx 0 rgba(116, 125, 136, .2), \n inset -8rpx -8rpx 12rpx 0 rgba(255,255,255,.9),\n inset 8rpx 8rpx 12rpx 0 rgba(116, 125, 136, .3);\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n transition: all 0.3s ease;\n}\n\n.btn-4:before {\n height: 0%;\n width: .2rpx;\n}\n\n.btn-4:after {\n width: 0%;\n height: .2rpx;\n}\n\n.btn-4:hover:before {\n height: 100%;\n}\n\n.btn-4:hover:after {\n width: 100%;\n}\n\n.btn-4 span:before,\n.btn-4 span:after {\n position: absolute;\n content: \"\";\n left: 0;\n bottom: 0;\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 8rpx 8rpx 12rpx 0 rgba(255,255,255,.9),\n -8rpx -8rpx 12rpx 0 rgba(116, 125, 136, .2), \n inset -8rpx -8rpx 12rpx 0 rgba(255,255,255,.9),\n inset 8rpx 8rpx 12rpx 0 rgba(116, 125, 136, .3);\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n transition: all 0.3s ease;\n}\n\n.btn-4 span:before {\n width: .2rpx;\n height: 0%;\n}\n\n.btn-4 span:after {\n width: 0%;\n height: .2rpx;\n}\n\n.btn-4 span:hover:before {\n height: 100%;\n}\n\n.btn-4 span:hover:after {\n width: 100%;\n}\n", "component_name": "GalaxyHappyZebra99" }, "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": "high", "bundle_size": 1959, "render_cost": "high", "memory_usage": "high" }, "dependencies": [], "examples": [ { "title": "", "description": "", "code": "" } ], "created_at": "2025-07-31T07:55:32.638Z", "updated_at": "2025-07-31T07:55:32.638Z" }