🏷️ FileUpload component interface file updated
This commit is contained in:
parent
d72f0b67d2
commit
0d925df378
|
@ -181,27 +181,18 @@ export interface FileUploadProps {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Extended interface for the customizable VFileUpload component.
|
* Extended interface for a customizable FileUpload component.
|
||||||
*
|
*
|
||||||
* This interface merges selected properties from:
|
* Combines selected properties from IFile and FileUploadProps,
|
||||||
* - `IFile`: your internal file-related interface
|
* while omitting and overriding specific ones for more control.
|
||||||
* - `FileUploadProps`: the native PrimeVue <FileUpload> component props
|
|
||||||
*
|
|
||||||
* It omits and overrides specific properties to provide better control
|
|
||||||
* over the component's behavior and to avoid conflicts with internal logic.
|
|
||||||
*/
|
*/
|
||||||
export default interface IVFileUpload
|
export default interface IVFileUpload extends
|
||||||
extends Partial<Omit<IFile, 'accept' | 'error'>>, // Exclude 'accept' and 'error' from IFile
|
Partial<Omit<IFile, 'accept' | 'error'>>,
|
||||||
Partial<Omit<FileUploadProps, 'auto' | 'mode' | 'multiple'>> // Exclude 'auto', 'mode', and 'multiple' from PrimeVue
|
Partial<Omit<FileUploadProps, 'auto' | 'mode' | 'multiple'>> {
|
||||||
|
|
||||||
{
|
|
||||||
/**
|
/**
|
||||||
* Defines the display mode of the file upload component.
|
* If true, enables the advanced mode of the file upload component,
|
||||||
* - 'advanced': enables a rich interface with manual control over upload actions
|
* which may include features like drag-and-drop, file previews, etc.
|
||||||
* - 'simple': enables a minimal interface with automatic upload behavior
|
|
||||||
*
|
|
||||||
* This property is used internally to determine layout, behavior, and slot rendering.
|
|
||||||
*/
|
*/
|
||||||
option?: 'advanced' | 'simple';
|
advanced?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user