화면 편집기에서 라벨표시

This commit is contained in:
kjs 2025-09-08 14:23:55 +09:00
parent 2d07041110
commit 540d82e7e4
2 changed files with 4 additions and 5 deletions

View File

@ -1252,7 +1252,7 @@ export default function ScreenDesigner({ selectedScreen, onBackToList }: ScreenD
newComponent = {
id: generateComponentId(),
type: "container",
label: table.tableName,
label: table.tableLabel || table.tableName, // 테이블 라벨 우선, 없으면 테이블명
tableName: table.tableName,
position: { x, y, z: 1 } as Position,
size: { width: 300, height: 200 },
@ -1458,7 +1458,7 @@ export default function ScreenDesigner({ selectedScreen, onBackToList }: ScreenD
newComponent = {
id: generateComponentId(),
type: "widget",
label: column.columnName,
label: column.columnLabel || column.columnName, // 컬럼 라벨 우선, 없으면 컬럼명
tableName: table.tableName,
columnName: column.columnName,
widgetType: column.widgetType,

View File

@ -305,7 +305,7 @@ export default function ScreenDesigner({ selectedScreen, onBackToList }: ScreenD
newComponent = {
id: generateComponentId(),
type: "container",
label: table.tableName,
label: table.tableLabel || table.tableName, // 테이블 라벨 우선, 없으면 테이블명
tableName: table.tableName,
position: { x, y, z: 1 },
size: { width: 300, height: 200 },
@ -315,7 +315,7 @@ export default function ScreenDesigner({ selectedScreen, onBackToList }: ScreenD
newComponent = {
id: generateComponentId(),
type: "widget",
label: column.columnName,
label: column.columnLabel || column.columnName, // 컬럼 라벨 우선, 없으면 컬럼명
tableName: table.tableName,
columnName: column.columnName,
widgetType: column.widgetType,
@ -664,4 +664,3 @@ export default function ScreenDesigner({ selectedScreen, onBackToList }: ScreenD
</div>
);
}