llmage/wwwroot/show_llms.ui
yumoqing bab415ba83 Revert "fix: 模型列表右侧面板改为VScrollPanel支持滚动"
This reverts commit e186e74b631e162161d5525b21a00191ccf35f1a.
2026-06-01 17:38:27 +08:00

85 lines
1.5 KiB
XML

{% set catelogs = get_llmcatelogs() %}
{
"widgettype":"HBox",
"options":{
"css":"filler",
"width":"100%",
"height":"100%"
},
"subwidgets":[
{
"widgettype":"VScrollPanel",
"options":{
"cwidth":18,
"height":"100%",
"css":"plaza-sidebar"
},
"subwidgets":[
{
"widgettype":"Button",
"options":{
"label":"全部",
"css":"plaza-nav-btn",
"width":"100%"
},
"binds":[
{
"wid":"self",
"event":"click",
"actiontype":"urlwidget",
"target":"app.plaza_cards_panel",
"mode":"replace",
"options":{
"url":"{{entire_url('show_llms_cards.ui')}}"
}
}
]
}{% for cat in catelogs %},
{
"widgettype":"Button",
"options":{
"label":"{{cat.name}}",
"css":"plaza-nav-btn",
"width":"100%"
},
"binds":[
{
"wid":"self",
"event":"click",
"actiontype":"urlwidget",
"target":"app.plaza_cards_panel",
"mode":"replace",
"options":{
"url":"{{entire_url('show_llms_cards.ui')}}",
"params":{
"catelogid":"{{cat.id}}"
}
}
}
]
}{% endfor %}
]
},
{
"widgettype":"VBox",
"id":"plaza_cards_panel",
"options":{
"css":"filler",
"cwidth":82,
"height":"100%"
},
"subwidgets":[
{
"widgettype":"urlwidget",
"options":{
"css":"filler",
"width":"100%",
"height":"100%",
"url":"{{entire_url('show_llms_cards.ui')}}"
}
}
]
}
]
}