galaxy-uniapp-mcp-server
Version:
Galaxy组件库到UniApp组件转换MCP服务器 - 支持跨平台组件转换、兼容性分析和项目集成
116 lines • 5.51 kB
JSON
{
"id": "catraco_short-starfish-66",
"name": "short-starfish-66",
"category": "buttons",
"author": "catraco",
"description": "short-starfish-66 组件 (button, active, 3d button, animation, gradient)",
"tags": [
"button",
"active",
"3d button",
"animation",
"gradient"
],
"original": {
"html": "<button class=\"btn-class-name\">\n <span class=\"back\"></span>\n <span class=\"front\"></span>\n</button>",
"css": "/* From Uiverse.io by catraco - Tags: button, active, 3d button */\n.btn-class-name {\n --primary: 255, 90, 120;\n --secondary: 150, 50, 60;\n width: 60px;\n height: 50px;\n border: none;\n outline: none;\n cursor: pointer;\n user-select: none;\n touch-action: manipulation;\n outline: 10px solid rgb(var(--primary), .5);\n border-radius: 100%;\n position: relative;\n transition: .3s;\n}\n\n.btn-class-name .back {\n background: rgb(var(--secondary));\n border-radius: 100%;\n position: absolute;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n}\n\n.btn-class-name .front {\n background: linear-gradient(0deg, rgba(var(--primary), .6) 20%, rgba(var(--primary)) 50%);\n box-shadow: 0 .5em 1em -0.2em rgba(var(--secondary), .5);\n border-radius: 100%;\n position: absolute;\n border: 1px solid rgb(var(--secondary));\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n font-size: 1.2rem;\n font-weight: 600;\n font-family: inherit;\n transform: translateY(-15%);\n transition: .15s;\n color: rgb(var(--secondary));\n}\n\n.btn-class-name:active .front {\n transform: translateY(0%);\n box-shadow: 0 0;\n}",
"file_path": "/mnt/persist/workspace/Buttons/catraco_short-starfish-66.html"
},
"uniapp": {
"template": "<button class=\"btn-class-name\"></button>\n <text class=\"back\"></text>\n <text class=\"front\"></text>\n</button>",
"script": "export default {\n name: 'GalaxyShortStarfish66',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}",
"style": "\n/* From Uiverse.io by catraco - Tags: button, active, 3d button */\n.btn-class-name {\n --primary: 255, 90, 120;\n --secondary: 150, 50, 60;\n width: 120rpx;\n height: 100rpx;\n border: none;\n outline: none;\n /* #ifdef H5 */\n cursor: pointer;\n /* #endif */\n user-select: none;\n touch-action: manipulation;\n outline: 20rpx solid rgb(var(--primary), .5);\n border-radius: 100%;\n position: relative;\n transition: .3s;\n}\n\n.btn-class-name .back {\n background: rgb(var(--secondary));\n border-radius: 100%;\n position: absolute;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n}\n\n.btn-class-name .front {\n background: linear-gradient(0deg, rgba(var(--primary), .6) 20%, rgba(var(--primary)) 50%);\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 0 .5em 1em -0.2em rgba(var(--secondary), .5);\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n border-radius: 100%;\n position: absolute;\n border: 2rpx solid rgb(var(--secondary));\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n font-size: 1.2rem;\n font-weight: 600;\n font-family: inherit;\n transform: translateY(-15%);\n transition: .15s;\n color: rgb(var(--secondary));\n}\n\n.btn-class-name:active .front {\n transform: translateY(0%);\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 0 0;\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n}\n",
"component_name": "GalaxyShortStarfish66"
},
"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": 1270,
"render_cost": "medium",
"memory_usage": "medium"
},
"dependencies": [],
"examples": [
{
"title": "",
"description": "",
"code": ""
}
],
"created_at": "2025-07-31T07:55:36.095Z",
"updated_at": "2025-07-31T07:55:36.095Z"
}