yumoqing 32622d0a97 fix: Text widgets use 'text' not 'label', Button widgets use 'label' not 'text'
Per bricks-framework spec:
- Text/Title: use 'text' for non-i18n, 'otext'+'i18n:true' for i18n
- Button: use 'label' for button text
2026-05-05 19:28:26 +08:00

99 lines
3.5 KiB
XML

{
"widgettype": "Page",
"options": {
"title": "报表中心",
"style": {
"height": "100%",
"padding": "0"
}
},
"subwidgets": [
{
"widgettype": "VBox",
"options": {
"style": {
"padding": "16px",
"flex": 1,
"overflow": "auto"
}
},
"subwidgets": [
{
"widgettype": "HBox",
"options": {
"style": {
"marginBottom": "16px",
"gap": "8px"
}
},
"subwidgets": [
{
"widgettype": "TextField",
"id": "report_search",
"options": {
"label": "搜索报表",
"placeholder": "报表名称",
"style": {
"flex": 1
}
}
},
{
"widgettype": "Button",
"id": "btn_search",
"options": {
"variant": "primary",
"label": "搜索"
}
}
]
},
{
"widgettype": "DataGrid",
"id": "report_grid",
"options": {
"url": "{{entire_url('api/report_list.dspy')}}",
"style": {
"flex": 1
},
"columns": [
{
"field": "template_name",
"header": "报表名称",
"width": 200
},
{
"field": "category",
"header": "分类",
"width": 120
},
{
"field": "description",
"header": "说明",
"width": 300
},
{
"field": "is_active",
"header": "状态",
"width": 80
},
{
"field": "created_at",
"header": "创建时间",
"width": 160
}
],
"toolbar": [
{
"type": "button",
"text": "查看",
"icon": "view",
"action": "navigate('main/unified_dashboard/report_view.ui?id={% raw %}{{selectedRow.id}}{% endraw %}')"
}
]
}
}
]
}
]
}