UNPKG

galaxy-uniapp-mcp-server

Version:

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

114 lines 5.9 kB
{ "id": "Bodyhc_sharp-seahorse-46", "name": "sharp-seahorse-46", "category": "buttons", "author": "Bodyhc", "description": "sharp-seahorse-46 组件 (button, animation, interactive)", "tags": [ "button", "animation", "interactive" ], "original": { "html": "<button class=\"button\"> \n <svg height=\"18\" width=\"18\" xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" viewBox=\"0 0 1024 1024\" class=\"icon\"> \n <path fill=\"#fff\" d=\"M767.99994 585.142857q75.995429 0 129.462857 53.394286t53.394286 129.462857-53.394286 129.462857-129.462857 53.394286-129.462857-53.394286-53.394286-129.462857q0-6.875429 1.170286-19.456l-205.677714-102.838857q-52.589714 49.152-124.562286 49.152-75.995429 0-129.462857-53.394286t-53.394286-129.462857 53.394286-129.462857 129.462857-53.394286q71.972571 0 124.562286 49.152l205.677714-102.838857q-1.170286-12.580571-1.170286-19.456 0-75.995429 53.394286-129.462857t129.462857-53.394286 129.462857 53.394286 53.394286 129.462857-53.394286 129.462857-129.462857 53.394286q-71.972571 0-124.562286-49.152l-205.677714 102.838857q1.170286 12.580571 1.170286 19.456t-1.170286 19.456l205.677714 102.838857q52.589714-49.152 124.562286-49.152z\"></path> \n </svg> \n <span class=\"share\">SHARE </span> \n </button>", "css": "/* From Uiverse.io by Bodyhc - Tags: button */\n.button {\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: rgb(66, 13, 240);\n width: 200px;\n height: 50px;\n border-radius: 10px;\n font-size: 18px;\n outline: 3px solid #270092;\n cursor: pointer;\n transition: ease-out .5s;\n}\n\n.button:hover {\n width: 180px;\n height: 60px;\n outline-offset: 4px;\n transform: scale(1.3) rotate(2deg);\n background-color: blue;\n box-shadow: 5px 20px #cdcbd4\n}\n\n.icon {\n color: #270092;\n margin-right: 5px;\n}\n\n.share {\n margin-left: 5px;\n color: #fff;\n}", "file_path": "/mnt/persist/workspace/Buttons/Bodyhc_sharp-seahorse-46.html" }, "uniapp": { "template": "<button class=\"button\"></button> \n <view height=\"18\" width=\"18\" xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" viewBox=\"0 0 1024 1024\" class=\"icon\"></view> \n <path fill=\"#fff\" d=\"M767.99994 585.142857q75.995429 0 129.462857 53.394286t53.394286 129.462857-53.394286 129.462857-129.462857 53.394286-129.462857-53.394286-53.394286-129.462857q0-6.875429 1.170286-19.456l-205.677714-102.838857q-52.589714 49.152-124.562286 49.152-75.995429 0-129.462857-53.394286t-53.394286-129.462857 53.394286-129.462857 129.462857-53.394286q71.972571 0 124.562286 49.152l205.677714-102.838857q-1.170286-12.580571-1.170286-19.456 0-75.995429 53.394286-129.462857t129.462857-53.394286 129.462857 53.394286 53.394286 129.462857-53.394286 129.462857-129.462857 53.394286q-71.972571 0-124.562286-49.152l-205.677714 102.838857q1.170286 12.580571 1.170286 19.456t-1.170286 19.456l205.677714 102.838857q52.589714-49.152 124.562286-49.152z\"></path> \n </svg> \n <text class=\"share\">SHARE </text> \n </button>", "script": "export default {\n name: 'GalaxySharpSeahorse46',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}", "style": "\n/* From Uiverse.io by Bodyhc - Tags: button */\n.button {\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: rgb(66, 13, 240);\n width: 400rpx;\n height: 100rpx;\n border-radius: 20rpx;\n font-size: 36rpx;\n outline: 6rpx solid #270092;\n /* #ifdef H5 */\n cursor: pointer;\n /* #endif */\n transition: ease-out .5s;\n}\n\n.button:hover {\n width: 360rpx;\n height: 120rpx;\n outline-offset: 8rpx;\n transform: scale(1.3) rotate(2deg);\n background-color: blue;\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 10rpx 40rpx #cdcbd4\n}\n\n.icon {\n color: #270092;\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n margin-right: 10rpx;\n}\n\n.share {\n margin-left: 10rpx;\n color: #fff;\n}\n\n\n", "component_name": "GalaxySharpSeahorse46" }, "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": 1554, "render_cost": "medium", "memory_usage": "medium" }, "dependencies": [], "examples": [ { "title": "", "description": "", "code": "" } ], "created_at": "2025-07-31T07:55:32.794Z", "updated_at": "2025-07-31T07:55:32.794Z" }