UNPKG

galaxy-uniapp-mcp-server

Version:

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

116 lines 5.97 kB
{ "id": "r7chardgh_quiet-wasp-56", "name": "quiet-wasp-56", "category": "buttons", "author": "r7chardgh", "description": "quiet-wasp-56 组件 (button, hover, stars, animation, interactive)", "tags": [ "button", "hover", "stars", "animation", "interactive" ], "original": { "html": "<button class=\"button\">\n Button\n <svg class=\"stars\" viewBox=\"0 0 353 178\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M271 37.9914C289.244 33.3118 295.91 27.0769 299.991 9C305.137 29.7552 312.313 36.1206 331.104 40.1127C312.194 43.8462 305.081 49.4282 302.113 69.1041C296.925 50.845 289.057 44.9589 271 37.9914Z\"></path>\n<path d=\"M254.852 83.012C245.919 73.8857 239.998 72.0853 228 75.817C238.443 65.759 239.748 59.3874 235.721 47C244.325 56.8385 250.014 59.1225 262.574 54.195C253.611 63.4315 252.822 70.0469 254.852 83.012Z\"></path>\n<path d=\"M275.626 97.3875C278.179 88.2512 277.138 83.7734 270.281 77.4407C280.63 80.423 285.214 78.8959 291.687 71.7049C288.553 80.8937 289.197 85.4019 297.032 91.6517C287.761 89.3164 283.212 91.2658 275.626 97.3875Z\"></path>\n</svg>\n\n</button>", "css": "/* From Uiverse.io by r7chardgh - Tags: button, hover, stars */\n.stars {\n position: absolute;\n opacity: 0;\n top: -.3em;\n right: -.3em;\n height: 100%;\n transition: transform 300ms,opacity 150ms;\n}\n\n.stars :nth-child(n) {\n fill: #999;\n}\n\n.button {\n position: relative;\n cursor: pointer;\n padding: 1em 2em;\n border: 0;\n border-radius: .5em;\n font-weight: bolder;\n transition: transform 150ms, box-shadow 150ms;\n box-shadow: 0 0 #999;\n background-color: #f1f1f1;\n color: #333;\n}\n\n.button:hover {\n transform: translate(.3em,-.3em);\n box-shadow: -.3em .3em #999;\n}\n\n.button:hover > .stars {\n opacity: 1;\n transform: translate(.2em,-.2em);\n}\n\n.button:active > .stars :nth-child(n) {\n fill: #ccc;\n}", "file_path": "/mnt/persist/workspace/Buttons/r7chardgh_quiet-wasp-56.html" }, "uniapp": { "template": "<button class=\"button\"></button>\n Button\n <view class=\"stars\" viewBox=\"0 0 353 178\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"></view>\n<path d=\"M271 37.9914C289.244 33.3118 295.91 27.0769 299.991 9C305.137 29.7552 312.313 36.1206 331.104 40.1127C312.194 43.8462 305.081 49.4282 302.113 69.1041C296.925 50.845 289.057 44.9589 271 37.9914Z\"></path>\n<path d=\"M254.852 83.012C245.919 73.8857 239.998 72.0853 228 75.817C238.443 65.759 239.748 59.3874 235.721 47C244.325 56.8385 250.014 59.1225 262.574 54.195C253.611 63.4315 252.822 70.0469 254.852 83.012Z\"></path>\n<path d=\"M275.626 97.3875C278.179 88.2512 277.138 83.7734 270.281 77.4407C280.63 80.423 285.214 78.8959 291.687 71.7049C288.553 80.8937 289.197 85.4019 297.032 91.6517C287.761 89.3164 283.212 91.2658 275.626 97.3875Z\"></path>\n</svg>\n\n</button>", "script": "export default {\n name: 'GalaxyQuietWasp56',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}", "style": "\n/* From Uiverse.io by r7chardgh - Tags: button, hover, stars */\n.stars {\n position: absolute;\n opacity: 0;\n top: -.3em;\n right: -.3em;\n height: 100%;\n transition: transform 300ms,opacity 150ms;\n}\n\n.stars :nth-child(n) {\n fill: #999;\n}\n\n.button {\n position: relative;\n /* #ifdef H5 */\n cursor: pointer;\n /* #endif */\n padding: 1em 2em;\n border: 0;\n border-radius: .5em;\n font-weight: bolder;\n transition: transform 150ms, box-shadow 150ms;\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 0 0 #999;\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n background-color: #f1f1f1;\n color: #333;\n}\n\n.button:hover {\n transform: translate(.3em,-.3em);\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: -.3em .3em #999;\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n}\n\n.button:hover > .stars {\n opacity: 1;\n transform: translate(.2em,-.2em);\n}\n\n.button:active > .stars :nth-child(n) {\n fill: #ccc;\n}\n", "component_name": "GalaxyQuietWasp56" }, "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": 1509, "render_cost": "medium", "memory_usage": "medium" }, "dependencies": [], "examples": [ { "title": "", "description": "", "code": "" } ], "created_at": "2025-07-31T07:55:37.624Z", "updated_at": "2025-07-31T07:55:37.624Z" }