fix: Button widgets + tap events, app.rag_main_content target for bricks convention

This commit is contained in:
yumoqing 2026-07-22 13:21:05 +08:00
parent 16fa189959
commit cac9a2d823

View File

@ -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",