From 506a31df02ffa8cc88a9ac3ffa967206a9abc433 Mon Sep 17 00:00:00 2001 From: dohyeons Date: Fri, 19 Dec 2025 18:24:18 +0900 Subject: [PATCH] =?UTF-8?q?=EC=BB=B4=ED=8F=AC=EB=84=8C=ED=8A=B8=20WYSIWYG?= =?UTF-8?q?=20=EA=B0=9C=EC=84=A0=20=EB=B0=8F=20=EA=B5=AC=EB=B6=84=EC=84=A0?= =?UTF-8?q?=20=EB=A6=AC=EC=82=AC=EC=9D=B4=EC=A6=88=20=EB=B0=A9=ED=96=A5=20?= =?UTF-8?q?=EC=A0=9C=ED=95=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../report/designer/CanvasComponent.tsx | 159 ++++++------------ 1 file changed, 54 insertions(+), 105 deletions(-) diff --git a/frontend/components/report/designer/CanvasComponent.tsx b/frontend/components/report/designer/CanvasComponent.tsx index 85eed9f0..ee0f9c4b 100644 --- a/frontend/components/report/designer/CanvasComponent.tsx +++ b/frontend/components/report/designer/CanvasComponent.tsx @@ -409,45 +409,19 @@ export function CanvasComponent({ component }: CanvasComponentProps) { switch (component.type) { case "text": - return ( -
-
- 텍스트 필드 - {hasBinding && ● 연결됨} -
-
- {displayValue} -
-
- ); - case "label": return ( -
-
- 레이블 - {hasBinding && ● 연결됨} -
-
- {displayValue} -
+
+ {displayValue}
); @@ -470,10 +444,6 @@ export function CanvasComponent({ component }: CanvasComponentProps) { return (
-
- 테이블 - ● 연결됨 ({queryResult.rows.length}행) -
-
테이블
-
- 쿼리를 연결하세요 -
+
+ 쿼리를 연결하세요
); case "image": return (
-
이미지
{component.imageUrl ? ( 이미지 ) : ( -
+
이미지를 업로드하세요
)} @@ -611,9 +577,8 @@ export function CanvasComponent({ component }: CanvasComponentProps) { return (
-
서명란
-
도장란
-
+
{stampPersonName &&
{stampPersonName}
}
{component.imageUrl ? ( @@ -983,38 +947,30 @@ export function CanvasComponent({ component }: CanvasComponentProps) { const isQR = barcodeType === "QR"; return ( -
-
- {isQR ? "QR코드" : `바코드 (${barcodeType})`} - {component.barcodeFieldName && component.queryId && ( - ● 연결됨 - )} -
-
- {isQR ? ( - - ) : ( - - )} -
+
+ {isQR ? ( + + ) : ( + + )}
); @@ -1047,15 +1003,8 @@ export function CanvasComponent({ component }: CanvasComponentProps) { const isChecked = getCheckboxValue(); return ( -
-
- 체크박스 - {component.checkboxFieldName && component.queryId && ( - ● 연결됨 - )} -
-
@@ -1087,17 +1036,17 @@ export function CanvasComponent({ component }: CanvasComponentProps) { )}
{/* 레이블 */} - {checkboxLabel && ( - - {checkboxLabel} - - )} -
+ {/* 레이블 */} + {checkboxLabel && ( + + {checkboxLabel} + + )}
);