galaxy-uniapp-mcp-server
Version:
Galaxy组件库到UniApp组件转换MCP服务器 - 支持跨平台组件转换、兼容性分析和项目集成
116 lines • 7.66 kB
JSON
{
"id": "vinodjangid07_rare-stingray-41",
"name": "rare-stingray-41",
"category": "buttons",
"author": "vinodjangid07",
"description": "rare-stingray-41 组件 (button, hover effect, click effect, animation, interactive)",
"tags": [
"button",
"hover effect",
"click effect",
"animation",
"interactive"
],
"original": {
"html": "<button class=\"cartBtn\">\n <svg class=\"cart\" fill=\"white\" viewBox=\"0 0 576 512\" height=\"1em\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M0 24C0 10.7 10.7 0 24 0H69.5c22 0 41.5 12.8 50.6 32h411c26.3 0 45.5 25 38.6 50.4l-41 152.3c-8.5 31.4-37 53.3-69.5 53.3H170.7l5.4 28.5c2.2 11.3 12.1 19.5 23.6 19.5H488c13.3 0 24 10.7 24 24s-10.7 24-24 24H199.7c-34.6 0-64.3-24.6-70.7-58.5L77.4 54.5c-.7-3.8-4-6.5-7.9-6.5H24C10.7 48 0 37.3 0 24zM128 464a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zm336-48a48 48 0 1 1 0 96 48 48 0 1 1 0-96z\"></path></svg>\n ADD TO CART\n <svg xmlns=\"http://www.w3.org/2000/svg\" height=\"1em\" viewBox=\"0 0 640 512\" class=\"product\"><path d=\"M211.8 0c7.8 0 14.3 5.7 16.7 13.2C240.8 51.9 277.1 80 320 80s79.2-28.1 91.5-66.8C413.9 5.7 420.4 0 428.2 0h12.6c22.5 0 44.2 7.9 61.5 22.3L628.5 127.4c6.6 5.5 10.7 13.5 11.4 22.1s-2.1 17.1-7.8 23.6l-56 64c-11.4 13.1-31.2 14.6-44.6 3.5L480 197.7V448c0 35.3-28.7 64-64 64H224c-35.3 0-64-28.7-64-64V197.7l-51.5 42.9c-13.3 11.1-33.1 9.6-44.6-3.5l-56-64c-5.7-6.5-8.5-15-7.8-23.6s4.8-16.6 11.4-22.1L137.7 22.3C155 7.9 176.7 0 199.2 0h12.6z\"></path></svg>\n</button>",
"css": "/* From Uiverse.io by vinodjangid07 - Tags: button, hover effect, click effect */\n.cartBtn {\n width: 155px;\n height: 50px;\n border: none;\n border-radius: 0px;\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 7px;\n color: white;\n font-weight: 500;\n position: relative;\n background-color: rgb(29, 29, 29);\n box-shadow: 0 20px 30px -7px rgba(27, 27, 27, 0.219);\n transition: all 0.3s ease-in-out;\n cursor: pointer;\n overflow: hidden;\n}\n\n.cart {\n z-index: 2;\n}\n\n.cartBtn:active {\n transform: scale(0.96);\n}\n\n.product {\n position: absolute;\n width: 12px;\n border-radius: 3px;\n content: \"\";\n left: 23px;\n bottom: 23px;\n opacity: 0;\n z-index: 1;\n fill: rgb(211, 211, 211);\n}\n\n.cartBtn:hover .product {\n animation: slide-in-top 1.2s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;\n}\n\n@keyframes slide-in-top {\n 0% {\n transform: translateY(-30px);\n opacity: 1;\n }\n\n 100% {\n transform: translateY(0) rotate(-90deg);\n opacity: 1;\n }\n}\n\n.cartBtn:hover .cart {\n animation: slide-in-left 1s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;\n}\n\n@keyframes slide-in-left {\n 0% {\n transform: translateX(-10px);\n opacity: 0;\n }\n\n 100% {\n transform: translateX(0);\n opacity: 1;\n }\n}",
"file_path": "/mnt/persist/workspace/Buttons/vinodjangid07_rare-stingray-41.html"
},
"uniapp": {
"template": "<button class=\"cartBtn\"></button>\n <view class=\"cart\" fill=\"white\" viewBox=\"0 0 576 512\" height=\"1em\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M0 24C0 10.7 10.7 0 24 0H69.5c22 0 41.5 12.8 50.6 32h411c26.3 0 45.5 25 38.6 50.4l-41 152.3c-8.5 31.4-37 53.3-69.5 53.3H170.7l5.4 28.5c2.2 11.3 12.1 19.5 23.6 19.5H488c13.3 0 24 10.7 24 24s-10.7 24-24 24H199.7c-34.6 0-64.3-24.6-70.7-58.5L77.4 54.5c-.7-3.8-4-6.5-7.9-6.5H24C10.7 48 0 37.3 0 24zM128 464a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zm336-48a48 48 0 1 1 0 96 48 48 0 1 1 0-96z\"></path></view>\n ADD TO CART\n <view xmlns=\"http://www.w3.org/2000/svg\" height=\"1em\" viewBox=\"0 0 640 512\" class=\"product\"><path d=\"M211.8 0c7.8 0 14.3 5.7 16.7 13.2C240.8 51.9 277.1 80 320 80s79.2-28.1 91.5-66.8C413.9 5.7 420.4 0 428.2 0h12.6c22.5 0 44.2 7.9 61.5 22.3L628.5 127.4c6.6 5.5 10.7 13.5 11.4 22.1s-2.1 17.1-7.8 23.6l-56 64c-11.4 13.1-31.2 14.6-44.6 3.5L480 197.7V448c0 35.3-28.7 64-64 64H224c-35.3 0-64-28.7-64-64V197.7l-51.5 42.9c-13.3 11.1-33.1 9.6-44.6-3.5l-56-64c-5.7-6.5-8.5-15-7.8-23.6s4.8-16.6 11.4-22.1L137.7 22.3C155 7.9 176.7 0 199.2 0h12.6z\"></path></view>\n</button>",
"script": "export default {\n name: 'GalaxyRareStingray41',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}",
"style": "\n/* From Uiverse.io by vinodjangid07 - Tags: button, hover effect, click effect */\n.cartBtn {\n width: 310rpx;\n height: 100rpx;\n border: none;\n border-radius: 0rpx;\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 14rpx;\n color: white;\n font-weight: 500;\n position: relative;\n background-color: rgb(29, 29, 29);\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 0 40rpx 60rpx -14rpx rgba(27, 27, 27, 0.219);\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-in-out;\n /* #ifdef H5 */\n cursor: pointer;\n /* #endif */\n overflow: hidden;\n}\n\n.cart {\n z-index: 2;\n}\n\n.cartBtn:active {\n transform: scale(0.96);\n}\n\n.product {\n position: absolute;\n width: 24rpx;\n border-radius: 6rpx;\n content: \"\";\n left: 46rpx;\n bottom: 46rpx;\n opacity: 0;\n z-index: 1;\n fill: rgb(211, 211, 211);\n}\n\n.cartBtn:hover .product {\n animation: slide-in-top 1.2s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;\n}\n\n@keyframes slide-in-top {\n 0% {\n transform: translateY(-60rpx);\n opacity: 1;\n }\n\n 100% {\n transform: translateY(0) rotate(-90deg);\n opacity: 1;\n }\n}\n\n.cartBtn:hover .cart {\n animation: slide-in-left 1s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;\n}\n\n@keyframes slide-in-left {\n 0% {\n transform: translateX(-20rpx);\n opacity: 0;\n }\n\n 100% {\n transform: translateX(0);\n opacity: 1;\n }\n}\n",
"component_name": "GalaxyRareStingray41"
},
"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": 2350,
"render_cost": "medium",
"memory_usage": "medium"
},
"dependencies": [],
"examples": [
{
"title": "",
"description": "",
"code": ""
}
],
"created_at": "2025-07-31T07:55:38.238Z",
"updated_at": "2025-07-31T07:55:38.238Z"
}