UNPKG

galaxy-uniapp-mcp-server

Version:

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

116 lines 5.11 kB
{ "id": "lenfear23_empty-lion-5", "name": "empty-lion-5", "category": "buttons", "author": "lenfear23", "description": "empty-lion-5 组件 (button, gradient, interactive)", "tags": [ "button", "gradient", "interactive" ], "original": { "html": "<button>\n Button\n</button>", "css": "/* From Uiverse.io by lenfear23 - Tags: button */\nbutton {\n display: flex;\n align-items: center;\n justify-content: center;\n outline: none;\n cursor: pointer;\n width: 150px;\n height: 50px;\n background-image: linear-gradient(to top, #D8D9DB 0%, #fff 80%, #FDFDFD 100%);\n border-radius: 30px;\n border: 1px solid #8F9092;\n transition: all 0.2s ease;\n font-family: \"Source Sans Pro\", sans-serif;\n font-size: 14px;\n font-weight: 600;\n color: #606060;\n text-shadow: 0 1px #fff;\n}\n\nbutton:hover {\n box-shadow: 0 4px 3px 1px #FCFCFC, 0 6px 8px #D6D7D9, 0 -4px 4px #CECFD1, 0 -6px 4px #FEFEFE, inset 0 0 3px 3px #CECFD1;\n}\n\nbutton:active {\n box-shadow: 0 4px 3px 1px #FCFCFC, 0 6px 8px #D6D7D9, 0 -4px 4px #CECFD1, 0 -6px 4px #FEFEFE, inset 0 0 5px 3px #999, inset 0 0 30px #aaa;\n}\n\nbutton:focus {\n box-shadow: 0 4px 3px 1px #FCFCFC, 0 6px 8px #D6D7D9, 0 -4px 4px #CECFD1, 0 -6px 4px #FEFEFE, inset 0 0 5px 3px #999, inset 0 0 30px #aaa;\n}", "file_path": "/mnt/persist/workspace/Buttons/lenfear23_empty-lion-5.html" }, "uniapp": { "template": "<button></button>\n Button\n</button>", "script": "export default {\n name: 'GalaxyEmptyLion5',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}", "style": "\n/* From Uiverse.io by lenfear23 - Tags: button */\nbutton {\n display: flex;\n align-items: center;\n justify-content: center;\n outline: none;\n /* #ifdef H5 */\n cursor: pointer;\n /* #endif */\n width: 300rpx;\n height: 100rpx;\n background-image: linear-gradient(to top, #D8D9DB 0%, #fff 80%, #FDFDFD 100%);\n border-radius: 60rpx;\n border: 2rpx solid #8F9092;\n transition: all 0.2s ease;\n font-family: \"Source Sans Pro\", sans-serif;\n font-size: 28rpx;\n font-weight: 600;\n color: #606060;\n /* #ifdef H5 */\n text-shadow: 0 2rpx #fff;\n /* #endif */\n}\n\nbutton:hover {\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 0 8rpx 6rpx 2rpx #FCFCFC, 0 12rpx 16rpx #D6D7D9, 0 -8rpx 8rpx #CECFD1, 0 -12rpx 8rpx #FEFEFE, inset 0 0 6rpx 6rpx #CECFD1;\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n}\n\nbutton:active {\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 0 8rpx 6rpx 2rpx #FCFCFC, 0 12rpx 16rpx #D6D7D9, 0 -8rpx 8rpx #CECFD1, 0 -12rpx 8rpx #FEFEFE, inset 0 0 10rpx 6rpx #999, inset 0 0 60rpx #aaa;\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n}\n\nbutton:focus {\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 0 8rpx 6rpx 2rpx #FCFCFC, 0 12rpx 16rpx #D6D7D9, 0 -8rpx 8rpx #CECFD1, 0 -12rpx 8rpx #FEFEFE, inset 0 0 10rpx 6rpx #999, inset 0 0 60rpx #aaa;\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n}\n\n\n\n", "component_name": "GalaxyEmptyLion5" }, "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 属性", "不支持 text-shadow 属性", "不支持 cursor 属性" ], "alternatives": [] }, "mp-alipay": { "supported": true, "issues": [ "不支持 box-shadow 属性", "不支持 text-shadow 属性", "不支持 cursor 属性" ], "alternatives": [] }, "app-plus": { "supported": true, "issues": [], "alternatives": [] } }, "performance": { "complexity": "low", "bundle_size": 983, "render_cost": "low", "memory_usage": "low" }, "dependencies": [], "examples": [ { "title": "", "description": "", "code": "" } ], "created_at": "2025-07-31T07:55:37.147Z", "updated_at": "2025-07-31T07:55:37.147Z" }