Merge remote-tracking branch 'origin/sub_laptop_5' into main_laptop_1

This commit is contained in:
2026-10-06 14:38:15 +09:00
15 changed files with 125 additions and 170 deletions
+3 -3
View File
@@ -128,7 +128,7 @@ export function createSpecForm(links: SpecLinks | null, hooks: SpecFormHooks = {
const drawn = choices.find((ch) => ch.value === now);
// 그림이 쓰는 값은 빈 보기 자리에 꼬리를 달아 보임 — 고른 값과 구별(54-13)
const name = drawn ? choiceLabel(c, item, drawn, names) : now;
const blank = !tag ? "— 안 정함 —" : name ? `${name} (${tag})` : tag;
const blank = !tag ? "선택 안 함" : name ? `${name} (${tag})` : tag;
select.replaceChildren(
new Option(blank, ""),
...choices.map((ch) => new Option(choiceLabel(c, item, ch, names), ch.value)),
@@ -145,8 +145,8 @@ export function createSpecForm(links: SpecLinks | null, hooks: SpecFormHooks = {
input.value = values[item.id] ?? "";
return input;
}
const hint = hooks.hint?.(c, item, state) || (item.default ? `${item.default} (기본)` : "");
const input = numberInput(String(item.step ?? 0.1), "0", hint);
// 기본값은 새 상자 칸에 실제 값으로만(54-39) — 빈 칸 「(기본)」 안내 없음
const input = numberInput(String(item.step ?? 0.1), "0", hooks.hint?.(c, item, state) ?? "");
if (item.kind === "auto") {
// 보여 주는 칸(54-1) — 손 입력 칸 아님
const shown = document.createElement("output");