workflow_approval/wwwroot/approval_task_detail.ui
yumoqing 9e3734525c 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:25 +08:00

72 lines
2.1 KiB
XML

{
"widgettype": "VBox",
"options": {
"maxWidth": "100%",
"padding": "15px"
},
"subwidgets": [
{
"widgettype": "Text",
"options": {
"text": "审批详情",
"fontSize": "18px",
"fontWeight": "bold",
"marginBottom": "20px"
}
},
{
"widgettype": "Form",
"options": {
"tblname": "approval_task",
"mode": "view",
"fields": [
"title",
"step_name",
"description",
"assigned_at",
"due_at"
],
"fieldLabels": {
"title": "审批事项",
"step_name": "审批步骤",
"description": "详细说明",
"assigned_at": "分配时间",
"due_at": "截止时间"
}
}
},
{
"widgettype": "HBox",
"options": {
"marginTop": "30px",
"gap": "10px"
},
"subwidgets": [
{
"widgettype": "Button",
"options": {
"onClick": "approve_task",
"style": {
"backgroundColor": "#28a745",
"color": "white",
"flex": "1"
},
"label": "批准"
}
},
{
"widgettype": "Button",
"options": {
"onClick": "reject_task",
"style": {
"backgroundColor": "#dc3545",
"color": "white",
"flex": "1"
},
"label": "拒绝"
}
}
]
}
]
}