설정패널 간소화
This commit is contained in:
@@ -170,12 +170,6 @@ export const UnifiedListConfigPanel: React.FC<UnifiedListConfigPanelProps> = ({
|
||||
updateConfig("columns", newColumns);
|
||||
};
|
||||
|
||||
// 컬럼 너비 수정
|
||||
const updateColumnWidth = (columnKey: string, width: string) => {
|
||||
const newColumns = configColumns.map((col) => (col.key === columnKey ? { ...col, width } : col));
|
||||
updateConfig("columns", newColumns);
|
||||
};
|
||||
|
||||
// 그룹별 컬럼 분리
|
||||
const baseColumns = useMemo(() => columns.filter((col) => !col.isJoinColumn), [columns]);
|
||||
|
||||
@@ -209,21 +203,6 @@ export const UnifiedListConfigPanel: React.FC<UnifiedListConfigPanelProps> = ({
|
||||
|
||||
return (
|
||||
<div className="space-y-4">
|
||||
{/* 데이터 소스 정보 (읽기 전용) */}
|
||||
<div className="space-y-1">
|
||||
<Label className="text-xs font-medium">데이터 소스</Label>
|
||||
{tableName ? (
|
||||
<div className="flex items-center gap-2">
|
||||
<Database className="text-muted-foreground h-4 w-4" />
|
||||
<span className="text-sm font-medium">{tableName}</span>
|
||||
</div>
|
||||
) : (
|
||||
<p className="text-xs text-amber-600">화면에 테이블이 설정되지 않았습니다</p>
|
||||
)}
|
||||
</div>
|
||||
|
||||
<Separator />
|
||||
|
||||
{/* 뷰 모드 */}
|
||||
<div className="space-y-2">
|
||||
<Label className="text-xs font-medium">표시 방식</Label>
|
||||
@@ -422,12 +401,6 @@ export const UnifiedListConfigPanel: React.FC<UnifiedListConfigPanelProps> = ({
|
||||
placeholder="제목"
|
||||
className="h-6 flex-1 text-xs"
|
||||
/>
|
||||
<Input
|
||||
value={column.width || ""}
|
||||
onChange={(e) => updateColumnWidth(column.key, e.target.value)}
|
||||
placeholder="너비"
|
||||
className="h-6 w-14 text-xs"
|
||||
/>
|
||||
<Button
|
||||
type="button"
|
||||
variant="ghost"
|
||||
|
||||
Reference in New Issue
Block a user