Fixed #3864 - Image: New image and preview slots

This commit is contained in:
Tuğçe Küçükoğlu 2023-05-03 20:54:50 +03:00
parent ef4887d5a9
commit 85df7a558d
3 changed files with 42 additions and 5 deletions

View file

@ -62,10 +62,40 @@ export interface ImageSlots {
* Custom close template.
*/
close(): VNode[];
/**
/**
* Custom image template.
*/
image(scope: {
/**
* Style class of the image element.
*/
class: any;
/**
* Style of the image element.
*/
style: any;
/**
* Image error function.
*/
onError: void;
}): VNode[];
/**
* Custom preview template.
*/
imagePreview(): VNode[];
preview(scope: {
/**
* Style class of the preview image element.
*/
class: any;
/**
* Style of the preview image element.
*/
style: any;
/**
* Preview click function.
*/
onClick: void;
}): VNode[];
}
export interface ImageEmits {}