Fix settings.ui: Replace non-existent Tabs控件 with TabPanel控件 and ensure Form控件 uses correct options.fields structure
This commit is contained in:
parent
02b2cdaeec
commit
701aedfa5a
@ -17,7 +17,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"widgettype": "Tabs",
|
"widgettype": "TabPanel",
|
||||||
"id": "settings-tabs",
|
"id": "settings-tabs",
|
||||||
"options": {
|
"options": {
|
||||||
"width": "100%",
|
"width": "100%",
|
||||||
@ -25,26 +25,8 @@
|
|||||||
"tabs": [
|
"tabs": [
|
||||||
{
|
{
|
||||||
"label": "General",
|
"label": "General",
|
||||||
"id": "general-tab"
|
"content": {
|
||||||
},
|
|
||||||
{
|
|
||||||
"label": "AI Models",
|
|
||||||
"id": "models-tab"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"label": "Security",
|
|
||||||
"id": "security-tab"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"label": "Appearance",
|
|
||||||
"id": "appearance-tab"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"subwidgets": [
|
|
||||||
{
|
|
||||||
"widgettype": "VBox",
|
"widgettype": "VBox",
|
||||||
"id": "general-tab",
|
|
||||||
"options": {
|
"options": {
|
||||||
"width": "100%",
|
"width": "100%",
|
||||||
"height": "100%",
|
"height": "100%",
|
||||||
@ -100,7 +82,7 @@
|
|||||||
"wid": "self",
|
"wid": "self",
|
||||||
"event": "click",
|
"event": "click",
|
||||||
"actiontype": "registerfunction",
|
"actiontype": "registerfunction",
|
||||||
"target": "app.general-tab",
|
"target": "app.settings-tabs",
|
||||||
"rfname": "save_general_settings",
|
"rfname": "save_general_settings",
|
||||||
"params": {
|
"params": {
|
||||||
"form_data": "{{ 'general-settings-form'.data }}"
|
"form_data": "{{ 'general-settings-form'.data }}"
|
||||||
@ -109,10 +91,12 @@
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"label": "AI Models",
|
||||||
|
"content": {
|
||||||
"widgettype": "VBox",
|
"widgettype": "VBox",
|
||||||
"id": "models-tab",
|
|
||||||
"options": {
|
"options": {
|
||||||
"width": "100%",
|
"width": "100%",
|
||||||
"height": "100%",
|
"height": "100%",
|
||||||
@ -156,17 +140,19 @@
|
|||||||
"wid": "self",
|
"wid": "self",
|
||||||
"event": "click",
|
"event": "click",
|
||||||
"actiontype": "registerfunction",
|
"actiontype": "registerfunction",
|
||||||
"target": "app.models-tab",
|
"target": "app.settings-tabs",
|
||||||
"rfname": "add_model",
|
"rfname": "add_model",
|
||||||
"params": {}
|
"params": {}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"label": "Security",
|
||||||
|
"content": {
|
||||||
"widgettype": "VBox",
|
"widgettype": "VBox",
|
||||||
"id": "security-tab",
|
|
||||||
"options": {
|
"options": {
|
||||||
"width": "100%",
|
"width": "100%",
|
||||||
"height": "100%",
|
"height": "100%",
|
||||||
@ -217,7 +203,7 @@
|
|||||||
"wid": "self",
|
"wid": "self",
|
||||||
"event": "click",
|
"event": "click",
|
||||||
"actiontype": "registerfunction",
|
"actiontype": "registerfunction",
|
||||||
"target": "app.security-tab",
|
"target": "app.settings-tabs",
|
||||||
"rfname": "save_security_settings",
|
"rfname": "save_security_settings",
|
||||||
"params": {
|
"params": {
|
||||||
"require_auth": "{{require-auth.checked}}",
|
"require_auth": "{{require-auth.checked}}",
|
||||||
@ -227,10 +213,12 @@
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"label": "Appearance",
|
||||||
|
"content": {
|
||||||
"widgettype": "VBox",
|
"widgettype": "VBox",
|
||||||
"id": "appearance-tab",
|
|
||||||
"options": {
|
"options": {
|
||||||
"width": "100%",
|
"width": "100%",
|
||||||
"height": "100%",
|
"height": "100%",
|
||||||
@ -278,7 +266,7 @@
|
|||||||
"wid": "self",
|
"wid": "self",
|
||||||
"event": "click",
|
"event": "click",
|
||||||
"actiontype": "registerfunction",
|
"actiontype": "registerfunction",
|
||||||
"target": "app.appearance-tab",
|
"target": "app.settings-tabs",
|
||||||
"rfname": "save_appearance_settings",
|
"rfname": "save_appearance_settings",
|
||||||
"params": {
|
"params": {
|
||||||
"theme": "{{theme-select.value}}"
|
"theme": "{{theme-select.value}}"
|
||||||
@ -288,7 +276,9 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user