feat(vom): update vom algorithm, fix overlay problem with background state machine

This commit is contained in:
Ljy-0827
2026-07-27 13:46:33 +08:00
parent e14ae9cea0
commit 4fb2e331a6
36 changed files with 2276 additions and 452 deletions
+1 -1
View File
@@ -386,7 +386,7 @@ describe("renderVom single-layer page", () => {
],
});
expect(out.text).toContain('@e1 button "Products" [→ Shoes | Bags | Accessories]');
expect(out.text).toContain('@e1 button "Products" [hover: Shoes | Bags | Accessories]');
expect(out.refs).toEqual([{ ref: "e1", backendNodeId: 2 }]);
});
+1 -1
View File
@@ -633,7 +633,7 @@ function renderNodeLine(
if (surface && surface.subItems.length > 0) {
const items = surface.subItems.slice(0, MAX_SURFACE_ITEMS).join(" | ");
const suffix = surface.subItems.length > MAX_SURFACE_ITEMS ? " | …" : "";
line += ` [→ ${items}${suffix}]`;
line += ` [${surface.triggerAction}: ${items}${suffix}]`;
}
return line;