Merge branch 'feature/v2-renewal' of http://39.117.244.52:3000/kjs/ERP-node into feature/v2-unified-renewal

This commit is contained in:
kjs
2026-02-06 10:20:45 +09:00
parent 4e2209bd5d
commit f2bee41336
8 changed files with 820 additions and 292 deletions

View File

@@ -30,7 +30,7 @@ export interface FileInfo {
type?: string; // docType과 동일
uploadedAt?: string; // regdate와 동일
_file?: File; // 로컬 파일 객체 (업로드 전)
// 대표 이미지 설정
isRepresentative?: boolean; // 대표 이미지로 설정 여부
}
@@ -45,24 +45,24 @@ export interface FileUploadConfig extends ComponentConfig {
accept?: string;
maxSize?: number; // bytes
maxFiles?: number; // 최대 파일 수
// 공통 설정
disabled?: boolean;
required?: boolean;
readonly?: boolean;
helperText?: string;
// 스타일 관련
variant?: "default" | "outlined" | "filled";
size?: "sm" | "md" | "lg";
// V2 추가 설정
showPreview?: boolean; // 미리보기 표시 여부
showFileList?: boolean; // 파일 목록 표시 여부
showFileSize?: boolean; // 파일 크기 표시 여부
allowDelete?: boolean; // 삭제 허용 여부
allowDownload?: boolean; // 다운로드 허용 여부
// 이벤트 관련
onChange?: (value: any) => void;
onFocus?: () => void;
@@ -83,10 +83,10 @@ export interface FileUploadProps {
config?: FileUploadConfig;
className?: string;
style?: React.CSSProperties;
// 파일 관련
uploadedFiles?: FileInfo[];
// 이벤트 핸들러
onChange?: (value: any) => void;
onFocus?: () => void;
@@ -100,7 +100,7 @@ export interface FileUploadProps {
/**
* 파일 업로드 상태 타입
*/
export type FileUploadStatus = 'idle' | 'uploading' | 'success' | 'error';
export type FileUploadStatus = "idle" | "uploading" | "success" | "error";
/**
* 파일 업로드 응답 타입