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

View File

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

View File

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