Image: indicator slot is without function #5389
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
In the current primevue version the indicator slot in the Image is without function.
Looking into the code the ImageSlots interface defines the slot as indicator.
The Image.vue component however has the slot defined as indicatoricon and in the docs the slot is described as indicatoricon.
Therefore I assume that the TypeScript definition is broken.
Reproducer
https://stackblitz.com/edit/primevue-create-vue-typescript-issue-template-9hmkd1
PrimeVue version
3.49.1
Vue version
3.x
Language
TypeScript
Build / Runtime
Vite
Browser(s)
No response
Steps to reproduce the behavior
<PrimeVueImage> <template #indicator> <i class="pi pi-eye text-4xl"></i> <span>enlarge</span> </template> <PrimeVueImage>
Expected behavior
The template slot should be used for rendering the indicator. And display a larger eye icon with the text enlarge.
The text was updated successfully, but these errors were encountered: