테이블 헤더 고정

This commit is contained in:
kjs 2025-12-24 13:54:24 +09:00
parent b68c0bd340
commit 5102eec46f
3 changed files with 10 additions and 2 deletions

View File

@ -25,8 +25,8 @@ export const UnifiedList = forwardRef<HTMLDivElement, UnifiedListProps>((props,
columns: [],
};
// 테이블명 추출
const tableName = config.dataSource?.table || (props as any).tableName;
// 테이블명 추출 (여러 가능한 경로에서 시도)
const tableName = config.dataSource?.table || (config as any).tableName || (props as any).tableName;
// columns 형식 변환 (UnifiedListConfigPanel 형식 -> TableListComponent 형식)
const tableColumns = useMemo(

View File

@ -53,6 +53,13 @@ export const UnifiedListConfigPanel: React.FC<UnifiedListConfigPanelProps> = ({
// 테이블명 (현재 화면의 테이블 사용)
const tableName = currentTableName || config.tableName;
// 화면의 테이블명을 config에 자동 저장
useEffect(() => {
if (currentTableName && config.tableName !== currentTableName) {
onChange({ ...config, tableName: currentTableName });
}
}, [currentTableName]);
// 테이블 컬럼 및 엔티티 조인 컬럼 로드
useEffect(() => {
const loadColumns = async () => {

View File

@ -90,6 +90,7 @@ export const SingleTableWithSticky: React.FC<SingleTableWithStickyProps> = ({
>
<div className="relative flex-1 overflow-auto">
<Table
noWrapper
className="w-full"
style={{
width: "100%",