diff --git a/apps/ai-game-creator-shell/src-tauri/src/ui_editor/persistence.rs b/apps/ai-game-creator-shell/src-tauri/src/ui_editor/persistence.rs index 80c584609..a3dcb6adc 100644 --- a/apps/ai-game-creator-shell/src-tauri/src/ui_editor/persistence.rs +++ b/apps/ai-game-creator-shell/src-tauri/src/ui_editor/persistence.rs @@ -1119,11 +1119,18 @@ mod tests { "src_ui_design": "page", "root": { "id": "root", - "transform": { - "anchor_min": [0.0, 0.0], - "anchor_max": [1.0, 1.0], - "offset_min": [0.0, 0.0], - "offset_max": [0.0, 0.0] + "layout": { + "transform": { + "anchor_min": [0.0, 0.0], + "anchor_max": [1.0, 1.0], + "offset_min": [0.0, 0.0], + "offset_max": [0.0, 0.0] + }, + "custom_minimum_size": [0.0, 0.0], + "size_flags_horizontal": 1, + "size_flags_vertical": 1, + "size_flags_stretch_ratio": 1.0, + "container": "None" }, "metadata": { "name": "根节点", @@ -1137,7 +1144,7 @@ mod tests { "components": [{ "Text": { "content": "标题", - "font": "missing-font", + "font": {"Bound": "missing-font"}, "font_style": "Normal", "font_sizing": {"Fixed": 14}, "color": [255, 255, 255, 255], @@ -1147,6 +1154,7 @@ mod tests { "line_spacing": 1.0 } }], + "children_display_mode": "Stack", "children": [] } }],