From c3abbf9bfeb8883654728603c7eff558d7aa140c Mon Sep 17 00:00:00 2001 From: yumoqing Date: Mon, 1 Jun 2026 23:52:54 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20llmage=20index=E5=B8=83=E5=B1=80?= =?UTF-8?q?=E6=94=B9=E4=B8=BAflex=EF=BC=8Cllmage=5Fcontent=E5=A1=AB?= =?UTF-8?q?=E6=BB=A1=E5=89=A9=E4=BD=99=E7=A9=BA=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit VScrollPanel改为VBox(filler),卡片区自然高度, llmage_content设为css=filler+height=100%, Tabular加载后有固定高度约束,内部表格可滚动。 --- wwwroot/index.ui | 272 +++++++++++++++++++++++------------------------ 1 file changed, 133 insertions(+), 139 deletions(-) diff --git a/wwwroot/index.ui b/wwwroot/index.ui index e7bec99..1416a1c 100644 --- a/wwwroot/index.ui +++ b/wwwroot/index.ui @@ -33,164 +33,154 @@ ] }, { - "widgettype": "VScrollPanel", + "widgettype": "VBox", "options": { - "css": "filler" + "css": "filler", + "spacing": 16 }, "subwidgets": [ { - "widgettype": "VBox", + "widgettype": "ResponsableBox", "options": { - "spacing": 24 + "gap": "16px", + "minWidth": "250px" }, "subwidgets": [ { - "widgettype": "ResponsableBox", + "widgettype": "VBox", "options": { - "gap": "16px", - "minWidth": "250px" + "css": "card", + "cwidth": 23, + "padding": "16px", + "cursor": "pointer", + "borderRadius": "8px" }, + "binds": [ + { + "wid": "self", + "event": "click", + "actiontype": "urlwidget", + "target": "app.llmage_content", + "options": { + "url": "{{entire_url('/llmage/llmcatelog_list.ui')}}" + }, + "mode": "replace" + } + ], "subwidgets": [ { - "widgettype": "VBox", + "widgettype": "Svg", "options": { - "css": "card", - - "cwidth": 23, - "padding": "16px", - "cursor": "pointer", - "borderRadius": "8px" - }, - "binds": [ - { - "wid": "self", - "event": "click", - "actiontype": "urlwidget", - "target": "app.llmage_content", - "options": { - "url": "{{entire_url('/llmage/llmcatelog_list.ui')}}" - }, - "mode": "replace" - } - ], - "subwidgets": [ - { - "widgettype": "Svg", - "options": { - "svg": "", - "width": "28px", - "height": "28px" - } - }, - { - "widgettype": "Title4", - "options": { - "text": "模型类型管理", - "marginTop": "8px" - } - }, - { - "widgettype": "Text", - "options": { - "text": "管理模型的分类和类型", - "cfontsize": 1.2 - } - } - ] + "svg": "", + "width": "28px", + "height": "28px" + } }, { - "widgettype": "VBox", + "widgettype": "Title4", "options": { - "css": "card", - - "cwidth": 23, - "padding": "16px", - "cursor": "pointer", - "borderRadius": "8px" - }, - "binds": [ - { - "wid": "self", - "event": "click", - "actiontype": "urlwidget", - "target": "app.llmage_content", - "options": { - "url": "{{entire_url('/llmage/llm')}}" - }, - "mode": "replace" - } - ], - "subwidgets": [ - { - "widgettype": "Svg", - "options": { - "svg": "", - "width": "28px", - "height": "28px" - } - }, - { - "widgettype": "Title4", - "options": { - "text": "模型管理", - "marginTop": "8px" - } - }, - { - "widgettype": "Text", - "options": { - "text": "管理 LLM 模型配置", - "cfontsize": 1.2 - } - } - ] + "text": "模型类型管理", + "marginTop": "8px" + } }, { - "widgettype": "VBox", + "widgettype": "Text", "options": { - "css": "card", - - "cwidth": 23, - "padding": "16px", - "cursor": "pointer", - "borderRadius": "8px" + "text": "管理模型的分类和类型", + "cfontsize": 1.2 + } + } + ] + }, + { + "widgettype": "VBox", + "options": { + "css": "card", + "cwidth": 23, + "padding": "16px", + "cursor": "pointer", + "borderRadius": "8px" + }, + "binds": [ + { + "wid": "self", + "event": "click", + "actiontype": "urlwidget", + "target": "app.llmage_content", + "options": { + "url": "{{entire_url('/llmage/llm')}}" }, - "binds": [ - { - "wid": "self", - "event": "click", - "actiontype": "urlwidget", - "target": "app.llmage_content", - "options": { - "url": "{{entire_url('/llmage/failed_accounting.ui')}}" - }, - "mode": "replace" - } - ], - "subwidgets": [ - { - "widgettype": "Svg", - "options": { - "svg": "", - "width": "28px", - "height": "28px" - } - }, - { - "widgettype": "Title4", - "options": { - "text": "记账失败记录", - "marginTop": "8px" - } - }, - { - "widgettype": "Text", - "options": { - "text": "查看和检索记账失败的记录", - "cfontsize": 1.2 - } - } - ] + "mode": "replace" + } + ], + "subwidgets": [ + { + "widgettype": "Svg", + "options": { + "svg": "", + "width": "28px", + "height": "28px" + } + }, + { + "widgettype": "Title4", + "options": { + "text": "模型管理", + "marginTop": "8px" + } + }, + { + "widgettype": "Text", + "options": { + "text": "管理 LLM 模型配置", + "cfontsize": 1.2 + } + } + ] + }, + { + "widgettype": "VBox", + "options": { + "css": "card", + "cwidth": 23, + "padding": "16px", + "cursor": "pointer", + "borderRadius": "8px" + }, + "binds": [ + { + "wid": "self", + "event": "click", + "actiontype": "urlwidget", + "target": "app.llmage_content", + "options": { + "url": "{{entire_url('/llmage/failed_accounting.ui')}}" + }, + "mode": "replace" + } + ], + "subwidgets": [ + { + "widgettype": "Svg", + "options": { + "svg": "", + "width": "28px", + "height": "28px" + } + }, + { + "widgettype": "Title4", + "options": { + "text": "记账失败记录", + "marginTop": "8px" + } + }, + { + "widgettype": "Text", + "options": { + "text": "查看和检索记账失败的记录", + "cfontsize": 1.2 + } } ] } @@ -198,7 +188,11 @@ }, { "widgettype": "VBox", - "id": "llmage_content" + "id": "llmage_content", + "options": { + "css": "filler", + "height": "100%" + } } ] }