fix: 子页面卡片target改为-main_content,简化布局去除VScrollPanel子容器

This commit is contained in:
yumoqing 2026-06-12 01:24:54 +08:00
parent 05f22677ab
commit 06b7b3f986
3 changed files with 183 additions and 262 deletions

View File

@ -2,16 +2,8 @@
"widgettype": "VBox", "widgettype": "VBox",
"options": { "options": {
"width": "100%", "width": "100%",
"height": "100%", "padding": "32px",
"padding": "0" "spacing": "24px"
},
"subwidgets": [
{
"widgettype": "HBox",
"options": {
"width": "100%",
"alignItems": "center",
"marginBottom": "24px"
}, },
"subwidgets": [ "subwidgets": [
{ {
@ -20,25 +12,13 @@
"text": "产线管理" "text": "产线管理"
} }
}, },
{
"widgettype": "Filler"
},
{ {
"widgettype": "Text", "widgettype": "Text",
"options": { "options": {
"text": "产线定义、步骤配置与发布管理", "text": "产线定义、步骤配置与发布管理",
"cfontsize": 1.2 "cfontsize": 1.2
} }
}
]
}, },
{
"widgettype": "VBox",
"options": {
"css": "filler",
"spacing": 16
},
"subwidgets": [
{ {
"widgettype": "ResponsableBox", "widgettype": "ResponsableBox",
"options": { "options": {
@ -54,18 +34,16 @@
"cwidth": 23, "cwidth": 23,
"cheight": 8 "cheight": 8
}, },
"binds": [ "binds": [{
{
"wid": "self", "wid": "self",
"event": "click", "event": "click",
"actiontype": "urlwidget", "actiontype": "urlwidget",
"target": "-pipeline_core_content", "target": "-main_content",
"options": { "options": {
"url": "{{entire_url('pipelines/')}}" "url": "{{entire_url('pipelines/')}}"
}, },
"mode": "replace" "mode": "replace"
} }]
]
}, },
{ {
"widgettype": "Button", "widgettype": "Button",
@ -75,18 +53,16 @@
"cwidth": 23, "cwidth": 23,
"cheight": 8 "cheight": 8
}, },
"binds": [ "binds": [{
{
"wid": "self", "wid": "self",
"event": "click", "event": "click",
"actiontype": "urlwidget", "actiontype": "urlwidget",
"target": "-pipeline_core_content", "target": "-main_content",
"options": { "options": {
"url": "{{entire_url('pipeline_steps/')}}" "url": "{{entire_url('pipeline_steps/')}}"
}, },
"mode": "replace" "mode": "replace"
} }]
]
}, },
{ {
"widgettype": "Button", "widgettype": "Button",
@ -96,29 +72,16 @@
"cwidth": 23, "cwidth": 23,
"cheight": 8 "cheight": 8
}, },
"binds": [ "binds": [{
{
"wid": "self", "wid": "self",
"event": "click", "event": "click",
"actiontype": "urlwidget", "actiontype": "urlwidget",
"target": "-pipeline_core_content", "target": "-main_content",
"options": { "options": {
"url": "{{entire_url('pipeline_versions/')}}" "url": "{{entire_url('pipeline_versions/')}}"
}, },
"mode": "replace" "mode": "replace"
} }]
]
}
]
},
{
"widgettype": "VScrollPanel",
"id": "pipeline_core_content",
"options": {
"css": "filler",
"width": "100%",
"height": "100%"
}
} }
] ]
} }

View File

@ -1,21 +1,4 @@
{ {
"widgettype": "VBox",
"options": {
"width": "100%",
"height": "100%",
"padding": "0"
},
"subwidgets": [
{
"widgettype": "VScrollPanel",
"id": "pipeline_dist_content",
"options": {
"css": "filler",
"width": "100%",
"height": "100%"
},
"subwidgets": [
{
"widgettype": "VBox", "widgettype": "VBox",
"options": { "options": {
"width": "100%", "width": "100%",
@ -55,7 +38,7 @@
"wid": "self", "wid": "self",
"event": "click", "event": "click",
"actiontype": "urlwidget", "actiontype": "urlwidget",
"target": "-pipeline_dist_content", "target": "-main_content",
"options": { "options": {
"url": "{{entire_url('distributors/')}}" "url": "{{entire_url('distributors/')}}"
}, },
@ -74,7 +57,7 @@
"wid": "self", "wid": "self",
"event": "click", "event": "click",
"actiontype": "urlwidget", "actiontype": "urlwidget",
"target": "-pipeline_dist_content", "target": "-main_content",
"options": { "options": {
"url": "{{entire_url('distributor_pipeline/')}}" "url": "{{entire_url('distributor_pipeline/')}}"
}, },
@ -84,8 +67,4 @@
] ]
} }
] ]
}
]
}
]
} }

View File

@ -1,21 +1,4 @@
{ {
"widgettype": "VBox",
"options": {
"width": "100%",
"height": "100%",
"padding": "0"
},
"subwidgets": [
{
"widgettype": "VScrollPanel",
"id": "pipeline_ops_content",
"options": {
"css": "filler",
"width": "100%",
"height": "100%"
},
"subwidgets": [
{
"widgettype": "VBox", "widgettype": "VBox",
"options": { "options": {
"width": "100%", "width": "100%",
@ -55,7 +38,7 @@
"wid": "self", "wid": "self",
"event": "click", "event": "click",
"actiontype": "urlwidget", "actiontype": "urlwidget",
"target": "-pipeline_ops_content", "target": "-main_content",
"options": { "options": {
"url": "{{entire_url('pipeline_pricing/')}}" "url": "{{entire_url('pipeline_pricing/')}}"
}, },
@ -74,7 +57,7 @@
"wid": "self", "wid": "self",
"event": "click", "event": "click",
"actiontype": "urlwidget", "actiontype": "urlwidget",
"target": "-pipeline_ops_content", "target": "-main_content",
"options": { "options": {
"url": "{{entire_url('pipeline_capacity/')}}" "url": "{{entire_url('pipeline_capacity/')}}"
}, },
@ -93,7 +76,7 @@
"wid": "self", "wid": "self",
"event": "click", "event": "click",
"actiontype": "urlwidget", "actiontype": "urlwidget",
"target": "-pipeline_ops_content", "target": "-main_content",
"options": { "options": {
"url": "{{entire_url('pipeline_usage_log/')}}" "url": "{{entire_url('pipeline_usage_log/')}}"
}, },
@ -103,8 +86,4 @@
] ]
} }
] ]
}
]
}
]
} }