feat(B07): 목록에서 연 도면 = 탭 — 열기 · 닫기 · 전환 · 이전/다음 · 탭 전환 때 미저장 편집 지킴(82-4)

- 공용 탭 줄: 마지막 한 탭 닫기 없음 · 지금 탭 미저장 점 · 탭 하나만 저장 표시 지움

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NPJGtfXo6GMbcpiboQC4uK
This commit is contained in:
2026-10-08 12:12:58 +09:00
co-authored by Claude Opus 5.5
parent b15a945bf8
commit 4e18bca4e4
5 changed files with 82 additions and 18 deletions
@@ -474,6 +474,7 @@ export function mountStructureSheets(
tabs: tabs.element,
onChanged: (dirty) => {
cadDirty = dirty;
if (dirty && !readOnly) tabs.markDirty();
report();
},
});
@@ -490,7 +491,7 @@ export function mountStructureSheets(
도면: tab.drawing ?? { format: 6, entities: [], layers: [{ ...BLANK_LAYER }] },
}));
listDirty = false;
tabs.markClean(true);
tabs.markClean(undefined, true);
return {
도면: first?.drawing ?? doc.도면,
...(rest.length || doc.더한장 ? { 더한장: rest } : {}),