refactor(M01): 표 · 모달 · 띠 알림 · 배지 · 알약 · 보조 글 · 빈 상태를 부품으로 (PLAN 553-5)
- 표 둘 = 표 부품(m01-master__grid = 일반표 · m01-logic__grid = 데이터표) · 페이지 CSS 는 폭 · 머리 고정 · 칸 상태만 - 손 모달 다섯(조달 찾기 · 요소 고르기 · 표 바꾸기 · 복사 시트 · 표 고르기) = 모달 부품 openModal - 알림 띠 · 막힘 까닭 = 띠 알림 · 태그 = 배지 · 알약 · × · 삭제 · 로직 키 = 단추 부품 · muted 세 벌 = 보조 글 · 빈 줄 = 빈 상태 - M02 가 빌린 M01 클래스(표 · muted · 고르기 창)도 같은 부품으로 · 죽은 CSS 걷음 · 지킴 시험 test_553_5_m01_m02 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
* ========================================================================== */
|
||||
|
||||
import { el } from "@ui/ui_template_elements";
|
||||
import { createButton } from "@ui/ui_template_button";
|
||||
|
||||
export interface Pill {
|
||||
/** 알약 글 — 보기 「표 QF000421」 */
|
||||
@@ -16,11 +17,10 @@ export interface Pill {
|
||||
|
||||
/** 알약 하나 — 글자 조각 사이에 끼워 쓰는 단추 */
|
||||
export function pillButton(p: Pill): HTMLButtonElement {
|
||||
const b = el("button", {
|
||||
className: "m01lab__pill",
|
||||
text: p.label,
|
||||
attrs: { type: "button", "data-pill": p.label },
|
||||
});
|
||||
// 알약 = 단추 부품(보조 · 24) — data-pill 은 시험 · 촬영이 잡음
|
||||
const b = createButton({ label: p.label, variant: "ghost", size: 24 });
|
||||
b.classList.add("m01lab__pill");
|
||||
b.dataset.pill = p.label;
|
||||
b.addEventListener("click", (ev) => {
|
||||
ev.stopPropagation(); // 줄 전체 누르기(행 모달)와 안 겹치게
|
||||
p.onClick();
|
||||
|
||||
Reference in New Issue
Block a user