Merge remote-tracking branch 'origin/main_laptop_1' into sub_laptop_6
This commit is contained in:
@@ -118,6 +118,8 @@ export interface MainExtras {
|
||||
search?: HTMLElement;
|
||||
newItem?: HTMLElement;
|
||||
onColumn?: (column: string | null) => void;
|
||||
/** 구조물 조합 표 머리 이름 칸 고침 → 나무 이름 바꾸기(쓸 수 있는 층만 · PLAN 31-1) */
|
||||
onHeadRename?: (col: StructureColumn, level: number, name: string) => void;
|
||||
}
|
||||
|
||||
/** 상세 제목 줄 오른쪽 끝 「새 …」 단추 — 공용 모양 `m02-main__new`(일위대가 「새 조합」과 같게 · 30-5) */
|
||||
@@ -402,6 +404,16 @@ export function createMain(
|
||||
drawingLabel: (colId: string) => struct.numbers()[colId]?.도번 ?? "",
|
||||
areaLabel: (colId: string) => struct.numbers()[colId]?.면적번 ?? "",
|
||||
materialLabel: (colId: string) => struct.numbers()[colId]?.재료번 ?? "",
|
||||
combo: {
|
||||
...(readOnly || !extras.onHeadRename
|
||||
? {}
|
||||
: {
|
||||
onHeadEdit: (colId: string, level: number, name: string) => {
|
||||
const col = columns().find((c) => c.id === colId);
|
||||
if (col) extras.onHeadRename?.(col, level, name);
|
||||
},
|
||||
}),
|
||||
},
|
||||
onSelect: (s: { colId: string | null }) => {
|
||||
struct.show(s.colId, columns());
|
||||
extras.onColumn?.(s.colId);
|
||||
|
||||
Reference in New Issue
Block a user