분할 패널 수정,삭제버튼 on,off기능
This commit is contained in:
parent
2b747a1030
commit
b9ee860e71
|
|
@ -2150,7 +2150,10 @@ export const SplitPanelLayoutComponent: React.FC<SplitPanelLayoutComponentProps>
|
||||||
{col.label}
|
{col.label}
|
||||||
</th>
|
</th>
|
||||||
))}
|
))}
|
||||||
{!isDesignMode && (
|
{/* 수정 또는 삭제 버튼이 하나라도 활성화되어 있을 때만 작업 컬럼 표시 */}
|
||||||
|
{!isDesignMode &&
|
||||||
|
((componentConfig.rightPanel?.editButton?.enabled ?? true) ||
|
||||||
|
(componentConfig.rightPanel?.deleteButton?.enabled ?? true)) && (
|
||||||
<th className="px-3 py-2 text-right text-xs font-medium text-gray-500 uppercase">
|
<th className="px-3 py-2 text-right text-xs font-medium text-gray-500 uppercase">
|
||||||
작업
|
작업
|
||||||
</th>
|
</th>
|
||||||
|
|
@ -2172,7 +2175,10 @@ 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 &&
|
||||||
|
((componentConfig.rightPanel?.editButton?.enabled ?? true) ||
|
||||||
|
(componentConfig.rightPanel?.deleteButton?.enabled ?? true)) && (
|
||||||
<td className="px-3 py-2 text-right text-sm whitespace-nowrap">
|
<td className="px-3 py-2 text-right text-sm whitespace-nowrap">
|
||||||
<div className="flex justify-end gap-1">
|
<div className="flex justify-end gap-1">
|
||||||
{(componentConfig.rightPanel?.editButton?.enabled ?? true) && (
|
{(componentConfig.rightPanel?.editButton?.enabled ?? true) && (
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue