mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Fixed #3864 - Image: New image and preview slots
This commit is contained in:
parent
ef4887d5a9
commit
85df7a558d
3 changed files with 42 additions and 5 deletions
34
components/lib/image/Image.d.ts
vendored
34
components/lib/image/Image.d.ts
vendored
|
@ -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 {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue