From cac9a2d823f0928243bc37905ae92d6d776473f0 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Wed, 22 Jul 2026 13:21:05 +0800 Subject: [PATCH] fix: Button widgets + tap events, app.rag_main_content target for bricks convention --- wwwroot/index.ui | 41 +++++++++++++++++++++++------------------ 1 file changed, 23 insertions(+), 18 deletions(-) diff --git a/wwwroot/index.ui b/wwwroot/index.ui index 38e92e6..23f9589 100644 --- a/wwwroot/index.ui +++ b/wwwroot/index.ui @@ -26,8 +26,9 @@ { "widgettype": "VBox", "options": { - "css": "rag-sidebar", - "cwidth": 13 + "bgcolor": "#2c2c2c", + "cwidth": 13, + "color": "#ccc" }, "subwidgets": [ { @@ -38,15 +39,16 @@ } }, { - "widgettype": "Text", + "widgettype": "Button", "options": { - "text": "知识库", - "css": "menu-item" + "label": "知识库", + "bgcolor": "transparent", + "color": "#ccc" }, "binds": [ { "wid": "self", - "event": "click", + "event": "tap", "actiontype": "urlwidget", "target": "app.rag_main_content", "mode": "replace", @@ -57,15 +59,16 @@ ] }, { - "widgettype": "Text", + "widgettype": "Button", "options": { - "text": "文档管理", - "css": "menu-item" + "label": "文档管理", + "bgcolor": "transparent", + "color": "#ccc" }, "binds": [ { "wid": "self", - "event": "click", + "event": "tap", "actiontype": "urlwidget", "target": "app.rag_main_content", "mode": "replace", @@ -76,15 +79,16 @@ ] }, { - "widgettype": "Text", + "widgettype": "Button", "options": { - "text": "引擎配置", - "css": "menu-item" + "label": "引擎配置", + "bgcolor": "transparent", + "color": "#ccc" }, "binds": [ { "wid": "self", - "event": "click", + "event": "tap", "actiontype": "urlwidget", "target": "app.rag_main_content", "mode": "replace", @@ -95,15 +99,16 @@ ] }, { - "widgettype": "Text", + "widgettype": "Button", "options": { - "text": "订阅管理", - "css": "menu-item" + "label": "订阅管理", + "bgcolor": "transparent", + "color": "#ccc" }, "binds": [ { "wid": "self", - "event": "click", + "event": "tap", "actiontype": "urlwidget", "target": "app.rag_main_content", "mode": "replace",