Compare commits
No commits in common. "2327dbe35c60420c4109254bff5a309c57124eb1" and "91f9bb9d12403d77f0f822254a63916065285505" have entirely different histories.
2327dbe35c
...
91f9bb9d12
|
|
@ -2150,14 +2150,11 @@ export const SplitPanelLayoutComponent: React.FC<SplitPanelLayoutComponentProps>
|
||||||
{col.label}
|
{col.label}
|
||||||
</th>
|
</th>
|
||||||
))}
|
))}
|
||||||
{/* 수정 또는 삭제 버튼이 하나라도 활성화되어 있을 때만 작업 컬럼 표시 */}
|
{!isDesignMode && (
|
||||||
{!isDesignMode &&
|
<th className="px-3 py-2 text-right text-xs font-medium text-gray-500 uppercase">
|
||||||
((componentConfig.rightPanel?.editButton?.enabled ?? true) ||
|
작업
|
||||||
(componentConfig.rightPanel?.deleteButton?.enabled ?? true)) && (
|
</th>
|
||||||
<th className="px-3 py-2 text-right text-xs font-medium text-gray-500 uppercase">
|
)}
|
||||||
작업
|
|
||||||
</th>
|
|
||||||
)}
|
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody className="divide-y divide-gray-200 bg-white">
|
<tbody className="divide-y divide-gray-200 bg-white">
|
||||||
|
|
@ -2175,43 +2172,40 @@ export const SplitPanelLayoutComponent: React.FC<SplitPanelLayoutComponentProps>
|
||||||
{formatCellValue(col.name, item[col.name], rightCategoryMappings, col.format)}
|
{formatCellValue(col.name, item[col.name], rightCategoryMappings, col.format)}
|
||||||
</td>
|
</td>
|
||||||
))}
|
))}
|
||||||
{/* 수정 또는 삭제 버튼이 하나라도 활성화되어 있을 때만 작업 셀 표시 */}
|
{!isDesignMode && (
|
||||||
{!isDesignMode &&
|
<td className="px-3 py-2 text-right text-sm whitespace-nowrap">
|
||||||
((componentConfig.rightPanel?.editButton?.enabled ?? true) ||
|
<div className="flex justify-end gap-1">
|
||||||
(componentConfig.rightPanel?.deleteButton?.enabled ?? true)) && (
|
{(componentConfig.rightPanel?.editButton?.enabled ?? true) && (
|
||||||
<td className="px-3 py-2 text-right text-sm whitespace-nowrap">
|
<Button
|
||||||
<div className="flex justify-end gap-1">
|
variant={
|
||||||
{(componentConfig.rightPanel?.editButton?.enabled ?? true) && (
|
componentConfig.rightPanel?.editButton?.buttonVariant || "outline"
|
||||||
<Button
|
}
|
||||||
variant={
|
size="sm"
|
||||||
componentConfig.rightPanel?.editButton?.buttonVariant || "outline"
|
onClick={(e) => {
|
||||||
}
|
e.stopPropagation();
|
||||||
size="sm"
|
handleEditClick("right", item);
|
||||||
onClick={(e) => {
|
}}
|
||||||
e.stopPropagation();
|
className="h-7"
|
||||||
handleEditClick("right", item);
|
>
|
||||||
}}
|
<Pencil className="mr-1 h-3 w-3" />
|
||||||
className="h-7"
|
{componentConfig.rightPanel?.editButton?.buttonLabel || "수정"}
|
||||||
>
|
</Button>
|
||||||
<Pencil className="mr-1 h-3 w-3" />
|
)}
|
||||||
{componentConfig.rightPanel?.editButton?.buttonLabel || "수정"}
|
{(componentConfig.rightPanel?.deleteButton?.enabled ?? true) && (
|
||||||
</Button>
|
<button
|
||||||
)}
|
onClick={(e) => {
|
||||||
{(componentConfig.rightPanel?.deleteButton?.enabled ?? true) && (
|
e.stopPropagation();
|
||||||
<button
|
handleDeleteClick("right", item);
|
||||||
onClick={(e) => {
|
}}
|
||||||
e.stopPropagation();
|
className="rounded p-1 transition-colors hover:bg-red-100"
|
||||||
handleDeleteClick("right", item);
|
title={componentConfig.rightPanel?.deleteButton?.buttonLabel || "삭제"}
|
||||||
}}
|
>
|
||||||
className="rounded p-1 transition-colors hover:bg-red-100"
|
<Trash2 className="h-4 w-4 text-red-600" />
|
||||||
title={componentConfig.rightPanel?.deleteButton?.buttonLabel || "삭제"}
|
</button>
|
||||||
>
|
)}
|
||||||
<Trash2 className="h-4 w-4 text-red-600" />
|
</div>
|
||||||
</button>
|
</td>
|
||||||
)}
|
)}
|
||||||
</div>
|
|
||||||
</td>
|
|
||||||
)}
|
|
||||||
</tr>
|
</tr>
|
||||||
);
|
);
|
||||||
})}
|
})}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue