UNPKG

galaxy-uniapp-mcp-server

Version:

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

116 lines 6.5 kB
{ "id": "barisdogansutcu_red-goat-98", "name": "red-goat-98", "category": "buttons", "author": "barisdogansutcu", "description": "red-goat-98 组件 (button, checkbox, input, bold, italic, underline, animation)", "tags": [ "button", "checkbox", "input", "bold", "italic", "underline", "animation" ], "original": { "html": "<div class=\"button-options\">\n <div class=\"content\">\n <input name=\"boldInput\" id=\"boldInput\" hidden=\"\" type=\"checkbox\">\n <label class=\"label-layout\" for=\"boldInput\">\n <b>B</b>\n </label>\n\n <input name=\"italicInput\" id=\"italicInput\" hidden=\"\" type=\"checkbox\">\n <label class=\"label-layout\" for=\"italicInput\">\n <i>i</i>\n </label>\n\n <input name=\"underlineInput\" id=\"underlineInput\" hidden=\"\" type=\"checkbox\">\n <label class=\"label-layout\" for=\"underlineInput\">\n <u>U</u>\n </label>\n <span class=\"title\">L❤VE FRONT-END</span>\n </div>\n</div>", "css": "/* From Uiverse.io by barisdogansutcu - Tags: button, checkbox, input, bold, italic, underline */\n.button-options .content {\n display: flex;\n align-items: center;\n justify-content: center;\n border: solid 2px #29429b;\n border-radius: 4px;\n position: relative;\n}\n.button-options .content .label-layout {\n min-width: 45px;\n height: 45px;\n display: flexa;\n align-items: center;\n justify-content: center;\n}\n.button-options .content .label-layout :is(b, i, u) {\n display: grid;\n place-content: center;\n height: 100%;\n color: #29429b;\n font-size: 17px;\n line-height: 1;\n cursor: pointer;\n}\n.button-options .content .label-layout[for=\"italicInput\"] {\n border-left: solid 2px #29429b;\n border-right: solid 2px #29429b;\n min-width: 49px;\n}\n.button-options .content input[type=\"checkbox\"]:checked + .label-layout {\n background-color: #29429b34;\n}\n#boldInput:checked ~ .title {\n font-weight: bold;\n}\n#italicInput:checked ~ .title {\n font-style: italic;\n}\n#underlineInput:checked ~ .title {\n text-decoration: underline;\n}\n.button-options .title {\n font-size: 13px;\n display: flex;\n align-items: center;\n justify-content: center;\n margin-top: 5px;\n position: absolute;\n bottom: 0;\n top: 2px;\n transform: translateY(100%);\n color: #29429b;\n}", "file_path": "/mnt/persist/workspace/Buttons/barisdogansutcu_red-goat-98.html" }, "uniapp": { "template": "<view class=\"button-options\"></view>\n <view class=\"content\"></view>\n <input name=\"boldInput\" id=\"boldInput\" hidden=\"\" type=\"checkbox\"></input>\n <label class=\"label-layout\" for=\"boldInput\"></label>\n <b>B</b>\n </label>\n\n <input name=\"italicInput\" id=\"italicInput\" hidden=\"\" type=\"checkbox\"></input>\n <label class=\"label-layout\" for=\"italicInput\"></label>\n <i>i</i>\n </label>\n\n <input name=\"underlineInput\" id=\"underlineInput\" hidden=\"\" type=\"checkbox\"></input>\n <label class=\"label-layout\" for=\"underlineInput\"></label>\n <u>U</u>\n </label>\n <text class=\"title\">L❤VE FRONT-END</text>\n </div>\n</div>", "script": "export default {\n name: 'GalaxyRedGoat98',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}", "style": "\n/* From Uiverse.io by barisdogansutcu - Tags: button, checkbox, input, bold, italic, underline */\n.button-options .content {\n display: flex;\n align-items: center;\n justify-content: center;\n border: solid 4rpx #29429b;\n border-radius: 8rpx;\n position: relative;\n}\n.button-options .content .label-layout {\n min-width: 90rpx;\n height: 90rpx;\n display: flexa;\n align-items: center;\n justify-content: center;\n}\n.button-options .content .label-layout :is(b, i, u) {\n display: grid;\n place-content: center;\n height: 100%;\n color: #29429b;\n font-size: 34rpx;\n line-height: 1;\n /* #ifdef H5 */\n cursor: pointer;\n /* #endif */\n}\n.button-options .content .label-layout[for=\"italicInput\"] {\n border-left: solid 4rpx #29429b;\n border-right: solid 4rpx #29429b;\n min-width: 98rpx;\n}\n.button-options .content input[type=\"checkbox\"]:checked + .label-layout {\n background-color: #29429b34;\n}\n#boldInput:checked ~ .title {\n font-weight: bold;\n}\n#italicInput:checked ~ .title {\n font-style: italic;\n}\n#underlineInput:checked ~ .title {\n text-decoration: underline;\n}\n.button-options .title {\n font-size: 26rpx;\n display: flex;\n align-items: center;\n justify-content: center;\n margin-top: 10rpx;\n position: absolute;\n bottom: 0;\n top: 4rpx;\n transform: translateY(100%);\n color: #29429b;\n}\n\n", "component_name": "GalaxyRedGoat98" }, "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": [ "不支持 cursor 属性" ], "alternatives": [] }, "mp-alipay": { "supported": true, "issues": [ "不支持 cursor 属性" ], "alternatives": [] }, "app-plus": { "supported": true, "issues": [], "alternatives": [] } }, "performance": { "complexity": "medium", "bundle_size": 1850, "render_cost": "medium", "memory_usage": "medium" }, "dependencies": [], "examples": [ { "title": "", "description": "", "code": "" } ], "created_at": "2025-07-31T07:55:35.923Z", "updated_at": "2025-07-31T07:55:35.923Z" }