galaxy-uniapp-mcp-server
Version:
Galaxy组件库到UniApp组件转换MCP服务器 - 支持跨平台组件转换、兼容性分析和项目集成
124 lines • 9.33 kB
JSON
{
"id": "ShrinilDhorda_pink-zebra-4",
"name": "pink-zebra-4",
"category": "buttons",
"author": "ShrinilDhorda",
"description": "pink-zebra-4 组件 (gradient, button, active, modern, blur filter, svg, crush, animation, interactive)",
"tags": [
"gradient",
"button",
"active",
"modern",
"blur filter",
"svg",
"crush",
"animation",
"interactive"
],
"original": {
"html": "<button class=\"crushbtn\">\n crush\n <div class=\"heart1\">\n\n <svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 24 24\" stroke-width=\"1.5\" stroke=\"currentColor\" class=\"\">\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M21 8.25c0-2.485-2.099-4.5-4.688-4.5-1.935 0-3.597 1.126-4.312 2.733-.715-1.607-2.377-2.733-4.313-2.733C5.1 3.75 3 5.765 3 8.25c0 7.22 9 12 9 12s9-4.78 9-12z\"></path>\n </svg>\n </div>\n <div class=\"heart2\">\n\n <svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 24 24\" stroke-width=\"1.5\" stroke=\"currentColor\" class=\"\">\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M21 8.25c0-2.485-2.099-4.5-4.688-4.5-1.935 0-3.597 1.126-4.312 2.733-.715-1.607-2.377-2.733-4.313-2.733C5.1 3.75 3 5.765 3 8.25c0 7.22 9 12 9 12s9-4.78 9-12z\"></path>\n </svg>\n </div>\n <div class=\"heart3\">\n\n <svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 24 24\" stroke-width=\"1.5\" stroke=\"currentColor\" class=\"\">\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M21 8.25c0-2.485-2.099-4.5-4.688-4.5-1.935 0-3.597 1.126-4.312 2.733-.715-1.607-2.377-2.733-4.313-2.733C5.1 3.75 3 5.765 3 8.25c0 7.22 9 12 9 12s9-4.78 9-12z\"></path>\n </svg>\n </div>\n</button>",
"css": "/* From Uiverse.io by ShrinilDhorda - Tags: gradient, button, active, modern, blur filter, svg, crush */\n.crushbtn {\n font-size: 2rem;\n padding: 0.7rem 2.4rem;\n letter-spacing: .3rem;\n border-radius: 1.5rem;\n position: relative;\n background-color: #e8e8e8;\n color: red;\n border: none;\n text-shadow: 0 0 3px #ff6e6e;\n overflow: hidden;\n cursor: pointer;\n transition: 0.7s;\n z-index: 2;\n}\n\n.heart1 svg {\n position: absolute;\n left: 4.5rem;\n top: 1.8rem;\n opacity: 0;\n fill: red;\n stroke: none;\n transition: 0.7s;\n width: 2rem;\n height: 2rem;\n animation: move1 5s ease-in-out infinite alternate-reverse;\n}\n\n.heart2 svg {\n position: absolute;\n left: 0.8rem;\n opacity: 0;\n top: 0.3rem;\n width: 1.5rem;\n height: 1.5rem;\n fill: red;\n stroke: none;\n transform: rotate(-20deg );\n animation: move2 5s ease infinite alternate-reverse;\n}\n\n.heart3 svg {\n position: absolute;\n right: 1rem;\n top: 0.5rem;\n opacity: 0;\n width: 1.4rem;\n height: 1.4rem;\n transform: rotate(20deg);\n fill: red;\n stroke: none;\n z-index: -1;\n animation: move3 5s ease infinite alternate-reverse;\n}\n\n@keyframes move1 {\n 0% {\n top: 2rem;\n }\n\n 50% {\n top: 4rem;\n }\n\n 100% {\n top: 2rem;\n }\n}\n\n@keyframes move2 {\n 0% {\n top: 0.3rem;\n }\n\n 50% {\n top: 1.5rem;\n }\n\n 100% {\n top: 0.3rem;\n }\n}\n\n@keyframes move3 {\n 0% {\n top: 1.5rem;\n }\n\n 50% {\n top: .6rem;\n }\n\n 100% {\n top: 1.5rem;\n }\n}\n\n.crushbtn:hover .heart1 svg,\n.crushbtn:hover .heart2 svg,\n.crushbtn:hover .heart3 svg {\n opacity: 1;\n filter: drop-shadow(0 0 10px #ff6e6e)\n}\n\n.crushbtn:hover {\n color: red;\n box-shadow: 0 0 10px inset #ff6e6e;\n scale: 105%;\n}\n\n.crushbtn:active {\n scale: 100%;\n}",
"file_path": "/mnt/persist/workspace/Buttons/ShrinilDhorda_pink-zebra-4.html"
},
"uniapp": {
"template": "<button class=\"crushbtn\"></button>\n crush\n <view class=\"heart1\"></view>\n\n <view xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 24 24\" stroke-width=\"1.5\" stroke=\"currentColor\" class=\"\"></view>\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M21 8.25c0-2.485-2.099-4.5-4.688-4.5-1.935 0-3.597 1.126-4.312 2.733-.715-1.607-2.377-2.733-4.313-2.733C5.1 3.75 3 5.765 3 8.25c0 7.22 9 12 9 12s9-4.78 9-12z\"></path>\n </svg>\n </div>\n <view class=\"heart2\"></view>\n\n <view xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 24 24\" stroke-width=\"1.5\" stroke=\"currentColor\" class=\"\"></view>\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M21 8.25c0-2.485-2.099-4.5-4.688-4.5-1.935 0-3.597 1.126-4.312 2.733-.715-1.607-2.377-2.733-4.313-2.733C5.1 3.75 3 5.765 3 8.25c0 7.22 9 12 9 12s9-4.78 9-12z\"></path>\n </svg>\n </div>\n <view class=\"heart3\"></view>\n\n <view xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 24 24\" stroke-width=\"1.5\" stroke=\"currentColor\" class=\"\"></view>\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M21 8.25c0-2.485-2.099-4.5-4.688-4.5-1.935 0-3.597 1.126-4.312 2.733-.715-1.607-2.377-2.733-4.313-2.733C5.1 3.75 3 5.765 3 8.25c0 7.22 9 12 9 12s9-4.78 9-12z\"></path>\n </svg>\n </div>\n</button>",
"script": "export default {\n name: 'GalaxyPinkZebra4',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}",
"style": "\n/* From Uiverse.io by ShrinilDhorda - Tags: gradient, button, active, modern, blur filter, svg, crush */\n.crushbtn {\n font-size: 2rem;\n padding: 0.7rem 2.4rem;\n letter-spacing: .3rem;\n border-radius: 1.5rem;\n position: relative;\n background-color: #e8e8e8;\n color: red;\n border: none;\n /* #ifdef H5 */\n text-shadow: 0 0 6rpx #ff6e6e;\n /* #endif */\n overflow: hidden;\n /* #ifdef H5 */\n cursor: pointer;\n /* #endif */\n transition: 0.7s;\n z-index: 2;\n}\n\n.heart1 svg {\n position: absolute;\n left: 4.5rem;\n top: 1.8rem;\n opacity: 0;\n fill: red;\n stroke: none;\n transition: 0.7s;\n width: 2rem;\n height: 2rem;\n animation: move1 5s ease-in-out infinite alternate-reverse;\n}\n\n.heart2 svg {\n position: absolute;\n left: 0.8rem;\n opacity: 0;\n top: 0.3rem;\n width: 1.5rem;\n height: 1.5rem;\n fill: red;\n stroke: none;\n transform: rotate(-20deg );\n animation: move2 5s ease infinite alternate-reverse;\n}\n\n.heart3 svg {\n position: absolute;\n right: 1rem;\n top: 0.5rem;\n opacity: 0;\n width: 1.4rem;\n height: 1.4rem;\n transform: rotate(20deg);\n fill: red;\n stroke: none;\n z-index: -1;\n animation: move3 5s ease infinite alternate-reverse;\n}\n\n@keyframes move1 {\n 0% {\n top: 2rem;\n }\n\n 50% {\n top: 4rem;\n }\n\n 100% {\n top: 2rem;\n }\n}\n\n@keyframes move2 {\n 0% {\n top: 0.3rem;\n }\n\n 50% {\n top: 1.5rem;\n }\n\n 100% {\n top: 0.3rem;\n }\n}\n\n@keyframes move3 {\n 0% {\n top: 1.5rem;\n }\n\n 50% {\n top: .6rem;\n }\n\n 100% {\n top: 1.5rem;\n }\n}\n\n.crushbtn:hover .heart1 svg,\n.crushbtn:hover .heart2 svg,\n.crushbtn:hover .heart3 svg {\n opacity: 1;\n \n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 0 0 20rpx inset #ff6e6e;\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n scale: 105%;\n}\n\n.crushbtn:active {\n scale: 100%;\n}\n",
"component_name": "GalaxyPinkZebra4"
},
"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 属性",
"不支持 filter 属性",
"不支持 cursor 属性"
],
"alternatives": []
},
"mp-alipay": {
"supported": true,
"issues": [
"不支持 box-shadow 属性",
"不支持 text-shadow 属性",
"不支持 filter 属性",
"不支持 cursor 属性"
],
"alternatives": []
},
"app-plus": {
"supported": true,
"issues": [],
"alternatives": []
}
},
"performance": {
"complexity": "high",
"bundle_size": 3002,
"render_cost": "high",
"memory_usage": "high"
},
"dependencies": [],
"examples": [
{
"title": "",
"description": "",
"code": ""
}
],
"created_at": "2025-07-31T07:55:34.697Z",
"updated_at": "2025-07-31T07:55:34.697Z"
}