mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-10 01:12:37 +00:00
Refactor #4274 - For Image
This commit is contained in:
parent
c4b7221efb
commit
07dae2e611
2 changed files with 3 additions and 3 deletions
4
components/lib/image/Image.d.ts
vendored
4
components/lib/image/Image.d.ts
vendored
|
@ -232,7 +232,7 @@ export interface ImageSlots {
|
|||
/**
|
||||
* Image error function.
|
||||
*/
|
||||
onError: void;
|
||||
onError(): void;
|
||||
}): VNode[];
|
||||
/**
|
||||
* Custom preview template.
|
||||
|
@ -249,7 +249,7 @@ export interface ImageSlots {
|
|||
/**
|
||||
* Preview click function.
|
||||
*/
|
||||
onClick: void;
|
||||
onClick(): void;
|
||||
}): VNode[];
|
||||
}
|
||||
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
</div>
|
||||
<transition name="p-image-preview" @before-enter="onBeforeEnter" @enter="onEnter" @leave="onLeave" @before-leave="onBeforeLeave" @after-leave="onAfterLeave" v-bind="ptm('transition')">
|
||||
<div v-if="previewVisible" v-bind="ptm('previewContainer')">
|
||||
<slot name="preview" :style="imagePreviewStyle" :onClick="onPreviewImageClick">
|
||||
<slot name="preview" :class="cx('preview')" :style="imagePreviewStyle" :onClick="onPreviewImageClick">
|
||||
<img :src="$attrs.src" :class="cx('preview')" :style="imagePreviewStyle" @click="onPreviewImageClick" v-bind="ptm('preview')" />
|
||||
</slot>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue