Refactor #3832 Refactor #3833 - For FileUpload

This commit is contained in:
mertsincan 2023-04-14 08:15:52 +03:00
parent 46afcf8c8d
commit 43ab62e0a5
3 changed files with 57 additions and 17 deletions

View file

@ -236,17 +236,14 @@ export interface FileUploadProps {
showCancelButton?: boolean | undefined;
/**
* Icon of the choose button.
* @defaultValue pi pi-fw pi-plus
*/
chooseIcon?: string | undefined;
/**
* Icon of the upload button.
* @defaultValue pi pi-fw pi-upload
*/
uploadIcon?: string | undefined;
/**
* Icon of the cancel button.
* @defaultValue pi pi-fw pi-times
*/
cancelIcon?: string | undefined;
/**
@ -321,6 +318,18 @@ export interface FileUploadSlots {
* Custom content when there is no selected file.
*/
empty(): VNode[];
/**
* Custom choose icon template.
*/
chooseicon(): VNode[];
/**
* Custom upload icon template.
*/
uploadicon(): VNode[];
/**
* Custom cancel icon template.
*/
cancelicon(): VNode[];
}
export interface FileUploadEmits {