fix: tap → click event for bricks compatibility

This commit is contained in:
yumoqing 2026-07-23 13:00:33 +08:00
parent 458d68c3f4
commit 995ab3051b
2 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@
"subwidgets": [
{"widgettype": "Text", "options": {"text": "知识库", "cfontsize": 22, "fontWeight": "bold", "color": "#333"}},
{"widgettype": "Button", "options": {"label": "+ 新建知识库", "bgcolor": "#4a90d9", "color": "#fff"}, "binds": [
{"wid": "self", "event": "tap", "actiontype": "urlwidget", "target": "app.rag_main_content", "mode": "replace",
{"wid": "self", "event": "click", "actiontype": "urlwidget", "target": "app.rag_main_content", "mode": "replace",
"options": {"url": "{{entire_url('/knowledge_bases_list/new_kb_form.ui')}}"}}
]}
]

View File

@ -16,7 +16,7 @@
},
{"widgettype": "Button", "options": {"label": "创建", "bgcolor": "#4a90d9", "color": "#fff"}},
{"widgettype": "Button", "options": {"label": "取消", "bgcolor": "#e0e0e0", "color": "#666"}, "binds": [
{"wid": "self", "event": "tap", "actiontype": "urlwidget", "target": "app.rag_main_content", "mode": "replace",
{"wid": "self", "event": "click", "actiontype": "urlwidget", "target": "app.rag_main_content", "mode": "replace",
"options": {"url": "{{entire_url('/knowledge_bases_list/index.ui')}}"}}
]}
]