fix: replace background with bgcolor, unwrap widgettype:Page to promote subwidgets to top level

This commit is contained in:
yumoqing 2026-05-06 07:49:05 +08:00
parent 1d483a4d4d
commit 39db75c818
3 changed files with 8 additions and 12 deletions

View File

@ -27,12 +27,12 @@
{ {
"widgettype": "VBox", "widgettype": "VBox",
"options": { "options": {
"background": "#4CAF50",
"color": "white", "color": "white",
"padding": "24px", "padding": "24px",
"borderRadius": "8px", "borderRadius": "8px",
"minWidth": "200px", "minWidth": "200px",
"flex": 1 "flex": 1,
"bgcolor": "#4CAF50"
}, },
"subwidgets": [ "subwidgets": [
{ {
@ -57,12 +57,12 @@
{ {
"widgettype": "VBox", "widgettype": "VBox",
"options": { "options": {
"background": "#2196F3",
"color": "white", "color": "white",
"padding": "24px", "padding": "24px",
"borderRadius": "8px", "borderRadius": "8px",
"minWidth": "200px", "minWidth": "200px",
"flex": 1 "flex": 1,
"bgcolor": "#2196F3"
}, },
"subwidgets": [ "subwidgets": [
{ {
@ -87,12 +87,12 @@
{ {
"widgettype": "VBox", "widgettype": "VBox",
"options": { "options": {
"background": "#FF9800",
"color": "white", "color": "white",
"padding": "24px", "padding": "24px",
"borderRadius": "8px", "borderRadius": "8px",
"minWidth": "200px", "minWidth": "200px",
"flex": 1 "flex": 1,
"bgcolor": "#FF9800"
}, },
"subwidgets": [ "subwidgets": [
{ {
@ -117,12 +117,12 @@
{ {
"widgettype": "VBox", "widgettype": "VBox",
"options": { "options": {
"background": "#F44336",
"color": "white", "color": "white",
"padding": "24px", "padding": "24px",
"borderRadius": "8px", "borderRadius": "8px",
"minWidth": "200px", "minWidth": "200px",
"flex": 1 "flex": 1,
"bgcolor": "#F44336"
}, },
"subwidgets": [ "subwidgets": [
{ {

View File

@ -1,7 +1,5 @@
{ {
"widgettype": "Page",
"options": { "options": {
"title": "仪表板",
"height": "100%", "height": "100%",
"padding": "0" "padding": "0"
}, },

View File

@ -1,7 +1,5 @@
{ {
"widgettype": "Page",
"options": { "options": {
"title": "报表中心",
"height": "100%", "height": "100%",
"padding": "0" "padding": "0"
}, },