수정사항 변경

This commit is contained in:
JIeunhuh
2025-05-13 17:34:19 +09:00
parent 105c9de31b
commit 9b406aac3d
9 changed files with 62 additions and 49 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ const Modal: React.FC<ModalProps> = ({ isModalOpen, setIsModalOpen, title, child
return (
<Dialog open={isModalOpen} onOpenChange={setIsModalOpen}>
<DialogOverlay className='z-[200]'/>
<DialogContent className="w-auto max-w-[1200px] h-auto max-h-[450px] overflow-auto z-[1000]">
<DialogContent className="w-auto max-w-[1200px] min-w-[400px] min-h-[300px] h-auto max-h-[450px] overflow-auto z-[1000]">
{title ? <DialogHeader>
<DialogTitle>{title}</DialogTitle>
</DialogHeader> : null}
+2 -2
View File
@@ -8,7 +8,7 @@ type UiTableProps = {
headlist: UiHeadProps[];
pageSize: number;
total: number;
children: React.ReactNode | undefined;
children: Record<string, React.ReactNode> | undefined;
cellClick: ((index: number | undefined, headId: string) => void) | undefined;
onPageChange: (page: number) => void;
className?: string;
@@ -82,7 +82,7 @@ export function VerticalTable({
</TableCell>
{/* 데이터 값 또는 입력 필드 */}
<TableCell className="text-xs">
{isEditable ? (
{children && children[head.id] ? children[head.id] : isEditable ? (
head.type === "select" ? (
<select
value={formData[head.id] ?? "-"}