galaxy-uniapp-mcp-server
Version:
Galaxy组件库到UniApp组件转换MCP服务器 - 支持跨平台组件转换、兼容性分析和项目集成
116 lines • 8.45 kB
JSON
{
"id": "roroland_loud-pig-27",
"name": "loud-pig-27",
"category": "buttons",
"author": "roroland",
"description": "loud-pig-27 组件 (button, animation, interactive)",
"tags": [
"button",
"animation",
"interactive"
],
"original": {
"html": "<button>\n <span>View more</span>\n</button>",
"css": "/* From Uiverse.io by roroland - Tags: button */\nbutton {\n --fs: 1.25em;\n --col1: honeydew;\n --col2: rgba(240, 128, 128, 0.603);\n --col3: indianred;\n --col4: maroon;\n --pd: .5em .65em;\n display: grid;\n align-content: baseline;\n appearance: none;\n border: 0;\n grid-template-columns: min-content 1fr;\n padding: var(--pd);\n font-size: var(--fs);\n color: var(--col1);\n background-color: var(--col3);\n border-radius: 6px;\n text-shadow: 1px 1px var(--col4);\n box-shadow: inset -2px 1px 1px var(--col2),\n inset 2px 1px 1px var(--col2);\n position: relative;\n transition: all .75s ease-out;\n transform-origin: center;\n}\n\nbutton:hover {\n color: var(--col4);\n box-shadow: inset -2px 1px 1px var(--col2),\n inset 2px 1px 1px var(--col2),\n inset 0px -2px 20px var(--col4),\n 0px 20px 30px var(--col3),\n 0px -20px 30px var(--col2),\n 1px 2px 20px var(--col4);\n text-shadow: 1px 1px var(--col2);\n}\n\nbutton:active {\n animation: offset 1s ease-in-out infinite;\n outline: 2px solid var(--col2);\n outline-offset: 0;\n}\n\nbutton::after,\nbutton::before {\n content: '';\n align-self: center;\n justify-self: center;\n height: .5em;\n margin: 0 .5em;\n grid-column: 1;\n grid-row: 1;\n opacity: 1;\n}\n\nbutton::after {\n position: relative;\n border: 2px solid var(--col4);\n border-radius: 50%;\n transition: all .5s ease-out;\n height: .1em;\n width: .1em;\n}\n\nbutton:hover::after {\n border: 2px solid var(--col3);\n transform: rotate(-120deg) translate(10%, 140%);\n}\n\nbutton::before {\n border-radius: 50% 0%;\n border: 4px solid var(--col4);\n box-shadow: inset 1px 1px var(--col2);\n transition: all 1s ease-out;\n transform: rotate(45deg);\n height: .45em;\n width: .45em;\n}\n\nbutton:hover::before {\n border-radius: 50%;\n border: 4px solid var(--col1);\n transform: scale(1.25) rotate(0deg);\n animation: blink 1.5s ease-out 1s infinite alternate;\n}\n\nbutton:hover > span {\n filter: contrast(150%);\n}\n\n@keyframes blink {\n 0% {\n transform: scale(1, 1) skewX(0deg);\n opacity: 1;\n }\n\n 5% {\n transform: scale(1.5, .1) skewX(10deg);\n opacity: .5;\n }\n\n 10%,\n 35% {\n transform: scale(1, 1) skewX(0deg);\n opacity: 1;\n }\n\n 40% {\n transform: scale(1.5, .1) skewX(10deg);\n opacity: .25;\n }\n\n 45%,\n 100% {\n transform: scale(1, 1) skewX(0deg);\n opacity: 1;\n }\n}\n\n@keyframes offset {\n 50% {\n outline-offset: .15em;\n outline-color: var(--col1);\n }\n\n 55% {\n outline-offset: .1em;\n transform: translateY(1px);\n }\n\n 80%,\n 100% {\n outline-offset: 0;\n }\n}",
"file_path": "/mnt/persist/workspace/Buttons/roroland_loud-pig-27.html"
},
"uniapp": {
"template": "<button></button>\n <text>View more</text>\n</button>",
"script": "export default {\n name: 'GalaxyLoudPig27',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}",
"style": "\n/* From Uiverse.io by roroland - Tags: button */\nbutton {\n --fs: 1.25em;\n --col1: honeydew;\n --col2: rgba(240, 128, 128, 0.603);\n --col3: indianred;\n --col4: maroon;\n --pd: .5em .65em;\n display: grid;\n align-content: baseline;\n appearance: none;\n border: 0;\n grid-template-columns: min-content 1fr;\n padding: var(--pd);\n font-size: var(--fs);\n color: var(--col1);\n background-color: var(--col3);\n border-radius: 12rpx;\n /* #ifdef H5 */\n text-shadow: 2rpx 2rpx var(--col4);\n /* #endif */\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: inset -4rpx 2rpx 2rpx var(--col2),\n inset 4rpx 2rpx 2rpx var(--col2);\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n position: relative;\n transition: all .75s ease-out;\n transform-origin: center;\n}\n\nbutton:hover {\n color: var(--col4);\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: inset -4rpx 2rpx 2rpx var(--col2),\n inset 4rpx 2rpx 2rpx var(--col2),\n inset 0rpx -4rpx 40rpx var(--col4),\n 0rpx 40rpx 60rpx var(--col3),\n 0rpx -40rpx 60rpx var(--col2),\n 2rpx 4rpx 40rpx var(--col4);\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n /* #ifdef H5 */\n text-shadow: 2rpx 2rpx var(--col2);\n /* #endif */\n}\n\nbutton:active {\n animation: offset 1s ease-in-out infinite;\n outline: 4rpx solid var(--col2);\n outline-offset: 0;\n}\n\nbutton::after,\nbutton::before {\n content: '';\n align-self: center;\n justify-self: center;\n height: .5em;\n margin: 0 .5em;\n grid-column: 1;\n grid-row: 1;\n opacity: 1;\n}\n\nbutton::after {\n position: relative;\n border: 4rpx solid var(--col4);\n border-radius: 50%;\n transition: all .5s ease-out;\n height: .1em;\n width: .1em;\n}\n\nbutton:hover::after {\n border: 4rpx solid var(--col3);\n transform: rotate(-120deg) translate(10%, 140%);\n}\n\nbutton::before {\n border-radius: 50% 0%;\n border: 8rpx solid var(--col4);\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: inset 2rpx 2rpx var(--col2);\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n transition: all 1s ease-out;\n transform: rotate(45deg);\n height: .45em;\n width: .45em;\n}\n\nbutton:hover::before {\n border-radius: 50%;\n border: 8rpx solid var(--col1);\n transform: scale(1.25) rotate(0deg);\n animation: blink 1.5s ease-out 1s infinite alternate;\n}\n\nbutton:hover > span {\n \n}\n\n@keyframes blink {\n 0% {\n transform: scale(1, 1) skewX(0deg);\n opacity: 1;\n }\n\n 5% {\n transform: scale(1.5, .1) skewX(10deg);\n opacity: .5;\n }\n\n 10%,\n 35% {\n transform: scale(1, 1) skewX(0deg);\n opacity: 1;\n }\n\n 40% {\n transform: scale(1.5, .1) skewX(10deg);\n opacity: .25;\n }\n\n 45%,\n 100% {\n transform: scale(1, 1) skewX(0deg);\n opacity: 1;\n }\n}\n\n@keyframes offset {\n 50% {\n outline-offset: .15em;\n outline-color: var(--col1);\n }\n\n 55% {\n outline-offset: .1em;\n transform: translateY(2rpx);\n }\n\n 80%,\n 100% {\n outline-offset: 0;\n }\n}\n",
"component_name": "GalaxyLoudPig27"
},
"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 属性"
],
"alternatives": []
},
"mp-alipay": {
"supported": true,
"issues": [
"不支持 box-shadow 属性",
"不支持 text-shadow 属性",
"不支持 filter 属性"
],
"alternatives": []
},
"app-plus": {
"supported": true,
"issues": [],
"alternatives": []
}
},
"performance": {
"complexity": "high",
"bundle_size": 2569,
"render_cost": "high",
"memory_usage": "high"
},
"dependencies": [],
"examples": [
{
"title": "",
"description": "",
"code": ""
}
],
"created_at": "2025-07-31T07:55:37.674Z",
"updated_at": "2025-07-31T07:55:37.674Z"
}