UNPKG

galaxy-uniapp-mcp-server

Version:

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

114 lines 6.74 kB
{ "id": "MuhammadHasann_smart-turkey-26", "name": "smart-turkey-26", "category": "buttons", "author": "MuhammadHasann", "description": "smart-turkey-26 组件 (button, animation, interactive)", "tags": [ "button", "animation", "interactive" ], "original": { "html": "<button>Button\n <p>Button</p>\n <p>Button</p>\n <p>Button</p>\n <p>Button</p>\n</button>", "css": "/* From Uiverse.io by MuhammadHasann - Tags: button */\nbutton {\n position: relative;\n padding: 13px 35px;\n background: #2e323c;\n font-size: 17px;\n font-weight: 900;\n color: #FFF;\n border: 3px solid #2e323c;\n border-radius: 8px;\n transition: all .3s ease-in-out;\n}\n\np:nth-child(1) {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n font-size: 17px;\n font-weight: 900;\n color: #FFF;\n transition: all .3s ease-in-out;\n z-index: -5;\n}\n\np:nth-child(2) {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n font-size: 17px;\n font-weight: 900;\n color: #FFF;\n transition: all .3s ease-in-out;\n z-index: -5;\n}\n\np:nth-child(3) {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n font-size: 17px;\n font-weight: 900;\n color: #FFF;\n transition: all .3s ease-in-out;\n z-index: -5;\n}\n\np:nth-child(4) {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n font-size: 17px;\n font-weight: 900;\n color: #FFF;\n transition: all .3s ease-in-out;\n z-index: -5;\n}\n\nbutton:hover {\n background: transparent;\n box-shadow: 0 0 15px #2e323c;\n}\n\nbutton:hover p:nth-child(1) {\n top: 0%;\n filter: drop-shadow(0 0 5px #FFFFFF);\n z-index: 1;\n}\n\nbutton:hover p:nth-child(2) {\n top: -50%;\n filter: drop-shadow(0 0 5px #FFFFFF);\n z-index: 1;\n}\n\nbutton:hover p:nth-child(3) {\n top: 100%;\n filter: drop-shadow(0 0 5px #FFFFFF);\n z-index: 1;\n}\n\nbutton:hover p:nth-child(4) {\n top: 150%;\n filter: drop-shadow(0 0 5px #FFFFFF);\n z-index: 1;\n}\n\nbutton:active p:nth-child(1) {\n top: -20%;\n filter: drop-shadow(0 0 5px #FFFFFF);\n z-index: 1;\n}\n\nbutton:active p:nth-child(2) {\n top: -90%;\n filter: drop-shadow(0 0 5px #FFFFFF);\n z-index: 1;\n}\n\nbutton:active p:nth-child(3) {\n top: 120%;\n filter: drop-shadow(0 0 5px #FFFFFF);\n z-index: 1;\n}\n\nbutton:active p:nth-child(4) {\n top: 190%;\n filter: drop-shadow(0 0 5px #FFFFFF);\n z-index: 1;\n}", "file_path": "/mnt/persist/workspace/Buttons/MuhammadHasann_smart-turkey-26.html" }, "uniapp": { "template": "<button></button>Button\n <text>Button</text>\n <text>Button</text>\n <text>Button</text>\n <text>Button</text>\n</button>", "script": "export default {\n name: 'GalaxySmartTurkey26',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}", "style": "\n/* From Uiverse.io by MuhammadHasann - Tags: button */\nbutton {\n position: relative;\n padding: 26rpx 70rpx;\n background: #2e323c;\n font-size: 34rpx;\n font-weight: 900;\n color: #FFF;\n border: 6rpx solid #2e323c;\n border-radius: 16rpx;\n transition: all .3s ease-in-out;\n}\n\np:nth-child(1) {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n font-size: 34rpx;\n font-weight: 900;\n color: #FFF;\n transition: all .3s ease-in-out;\n z-index: -5;\n}\n\np:nth-child(2) {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n font-size: 34rpx;\n font-weight: 900;\n color: #FFF;\n transition: all .3s ease-in-out;\n z-index: -5;\n}\n\np:nth-child(3) {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n font-size: 34rpx;\n font-weight: 900;\n color: #FFF;\n transition: all .3s ease-in-out;\n z-index: -5;\n}\n\np:nth-child(4) {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n font-size: 34rpx;\n font-weight: 900;\n color: #FFF;\n transition: all .3s ease-in-out;\n z-index: -5;\n}\n\nbutton:hover {\n background: transparent;\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 0 0 30rpx #2e323c;\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n}\n\nbutton:hover p:nth-child(1) {\n top: 0%;\n \n z-index: 1;\n}\n\nbutton:hover p:nth-child(2) {\n top: -50%;\n \n z-index: 1;\n}\n\nbutton:hover p:nth-child(3) {\n top: 100%;\n \n z-index: 1;\n}\n\nbutton:hover p:nth-child(4) {\n top: 150%;\n \n z-index: 1;\n}\n\nbutton:active p:nth-child(1) {\n top: -20%;\n \n z-index: 1;\n}\n\nbutton:active p:nth-child(2) {\n top: -90%;\n \n z-index: 1;\n}\n\nbutton:active p:nth-child(3) {\n top: 120%;\n \n z-index: 1;\n}\n\nbutton:active p:nth-child(4) {\n top: 190%;\n \n z-index: 1;\n}\n", "component_name": "GalaxySmartTurkey26" }, "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 属性", "不支持 filter 属性" ], "alternatives": [] }, "mp-alipay": { "supported": true, "issues": [ "不支持 box-shadow 属性", "不支持 filter 属性" ], "alternatives": [] }, "app-plus": { "supported": true, "issues": [], "alternatives": [] } }, "performance": { "complexity": "high", "bundle_size": 2071, "render_cost": "high", "memory_usage": "high" }, "dependencies": [], "examples": [ { "title": "", "description": "", "code": "" } ], "created_at": "2025-07-31T07:55:34.078Z", "updated_at": "2025-07-31T07:55:34.078Z" }