feat(mobile): my_todos_popup加embed=1整页渲染分支——手机端待办Tab直接整页VBox(不套PopupWindow弹窗壳),弹窗模式(桌面todo_badge)行为不变(2026-09-07手机端适配)
This commit is contained in:
parent
351de4c3cd
commit
a38e6d9141
@ -126,6 +126,21 @@ if not cards:
|
|||||||
cards = [{"widgettype": "Text",
|
cards = [{"widgettype": "Text",
|
||||||
"options": {"text": "暂无待办", "cfontsize": 0.9, "color": "#94a3b8", "padding": "16px"}}]
|
"options": {"text": "暂无待办", "cfontsize": 0.9, "color": "#94a3b8", "padding": "16px"}}]
|
||||||
|
|
||||||
|
# embed=1(手机端「待办」Tab 整页渲染):返回纯 VBox,不套 PopupWindow 弹窗壳
|
||||||
|
_embed = ((params_kw or {}).get('embed') or '').strip()
|
||||||
|
if _embed == '1':
|
||||||
|
return {
|
||||||
|
"widgettype": "VBox",
|
||||||
|
"options": {"css": "filler", "width": "100%", "height": "100%",
|
||||||
|
"padding": "0", "gap": "0px"},
|
||||||
|
"subwidgets": [{
|
||||||
|
"widgettype": "VScrollPanel",
|
||||||
|
"options": {"css": "filler", "width": "100%", "height": "100%",
|
||||||
|
"padding": "12px", "gap": "8px"},
|
||||||
|
"subwidgets": cards
|
||||||
|
}]
|
||||||
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
"widgettype": "PopupWindow",
|
"widgettype": "PopupWindow",
|
||||||
"id": "my_todos_pw",
|
"id": "my_todos_pw",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user