yumoqing c9e1879d80 fix: flatten style to options, fix Button/Text widget properties
- Flatten nested style objects directly into options
- Text/Title use 'text', Button uses 'label'
- All paths use {{entire_url()}}
2026-05-05 19:36:14 +08:00

150 lines
5.2 KiB
XML

{
"id": "unified_dashboard",
"widgettype": "VBox",
"options": {
"width": "100%",
"height": "100%",
"padding": "16px"
},
"subwidgets": [
{
"widgettype": "Text",
"options": {
"text": "工作台",
"fontSize": "20px",
"fontWeight": "bold",
"marginBottom": "16px"
}
},
{
"widgettype": "HBox",
"options": {
"gap": "16px",
"flexWrap": "wrap",
"marginBottom": "24px"
},
"subwidgets": [
{
"widgettype": "VBox",
"options": {
"background": "#4CAF50",
"color": "white",
"padding": "24px",
"borderRadius": "8px",
"minWidth": "200px",
"flex": 1
},
"subwidgets": [
{
"widgettype": "Text",
"options": {
"text": "客户总数",
"fontSize": "14px",
"opacity": 0.9
}
},
{
"widgettype": "Text",
"id": "lbl_customer_count",
"options": {
"text": "--",
"fontSize": "32px",
"fontWeight": "bold"
}
}
]
},
{
"widgettype": "VBox",
"options": {
"background": "#2196F3",
"color": "white",
"padding": "24px",
"borderRadius": "8px",
"minWidth": "200px",
"flex": 1
},
"subwidgets": [
{
"widgettype": "Text",
"options": {
"text": "商机总数",
"fontSize": "14px",
"opacity": 0.9
}
},
{
"widgettype": "Text",
"id": "lbl_opportunity_count",
"options": {
"text": "--",
"fontSize": "32px",
"fontWeight": "bold"
}
}
]
},
{
"widgettype": "VBox",
"options": {
"background": "#FF9800",
"color": "white",
"padding": "24px",
"borderRadius": "8px",
"minWidth": "200px",
"flex": 1
},
"subwidgets": [
{
"widgettype": "Text",
"options": {
"text": "合同总数",
"fontSize": "14px",
"opacity": 0.9
}
},
{
"widgettype": "Text",
"id": "lbl_contract_count",
"options": {
"text": "--",
"fontSize": "32px",
"fontWeight": "bold"
}
}
]
},
{
"widgettype": "VBox",
"options": {
"background": "#F44336",
"color": "white",
"padding": "24px",
"borderRadius": "8px",
"minWidth": "200px",
"flex": 1
},
"subwidgets": [
{
"widgettype": "Text",
"options": {
"text": "待审批",
"fontSize": "14px",
"opacity": 0.9
}
},
{
"widgettype": "Text",
"id": "lbl_approval_count",
"options": {
"text": "--",
"fontSize": "32px",
"fontWeight": "bold"
}
}
]
}
]
}
]
}