From 37611339fea096e47aaa42311a13a6313b4200db Mon Sep 17 00:00:00 2001
From: dujinkim <dujin.kim@dtsolution.co.kr>
Date: Mon, 2 Jun 2025 02:27:28 +0000
Subject: (대표님) 20250602 오전 작업사항 (코드프리징)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../table/enhanced-documents-table.tsx             | 48 +++++++++++++---------
 1 file changed, 28 insertions(+), 20 deletions(-)

(limited to 'lib/vendor-document-list/table/enhanced-documents-table.tsx')

diff --git a/lib/vendor-document-list/table/enhanced-documents-table.tsx b/lib/vendor-document-list/table/enhanced-documents-table.tsx
index 14c52455..f840a10c 100644
--- a/lib/vendor-document-list/table/enhanced-documents-table.tsx
+++ b/lib/vendor-document-list/table/enhanced-documents-table.tsx
@@ -468,26 +468,34 @@ export function EnhancedDocumentsTable({
       {/* 메인 테이블 - 가로스크롤 문제 해결을 위한 구조 개선 */}
       <div className="space-y-4">
         <div className="rounded-md border bg-white overflow-hidden">
-          <ExpandableDataTable 
-            table={table}
-            expandable={true}
-            expandedRows={expandedRows}
-            setExpandedRows={setExpandedRows}
-            renderExpandedContent={(document) => (
-              // ✅ 확장된 내용을 별도 컨테이너로 분리하여 가로스크롤 영향 차단
-              <div className="">
-                <StageRevisionExpandedContent 
-                  document={document}
-                  onUploadRevision={handleUploadRevision}
-                  projectType={projectType}
-                  expandedStages={expandedStages[String(document.documentId)] || {}}
-                  onStageToggle={(stageId) => handleStageToggle(String(document.documentId), stageId)}
-                />
-              </div>
-            )}
-            // 확장된 행에 대한 특별한 스타일링
-            expandedRowClassName="!p-0"
-          >
+        <ExpandableDataTable 
+          table={table}
+          expandable={true}
+          expandedRows={expandedRows}
+          setExpandedRows={setExpandedRows}
+          renderExpandedContent={(document) => (
+            <div className="">
+              <StageRevisionExpandedContent 
+                document={document}
+                onUploadRevision={handleUploadRevision}
+                projectType={projectType}
+                expandedStages={expandedStages[String(document.documentId)] || {}}
+                onStageToggle={(stageId) => handleStageToggle(String(document.documentId), stageId)}
+              />
+            </div>
+          )}
+          expandedRowClassName="!p-0"
+          // clickableColumns={[
+          //   'docNumber',    
+          //   'title',        
+          //   'currentStageStatus', 
+          //   'progressPercentage', 
+          // ]}
+          excludeFromClick={[
+            'actions',      
+            'select'        
+          ]}
+        >
             <DataTableAdvancedToolbar
               table={table}
               filterFields={advancedFilterFields}
-- 
cgit v1.2.3

