mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-10 17:32:36 +00:00
Merge pull request #3780 from sezisfurkan/issue-3492
Image: Indicator icon props added
This commit is contained in:
commit
f16095b00f
2 changed files with 10 additions and 1 deletions
|
@ -3,7 +3,7 @@
|
|||
<img v-bind="$attrs" :style="imageStyle" :class="imageClass" @error="onError" />
|
||||
<button v-if="preview" ref="previewButton" class="p-image-preview-indicator" @click="onImageClick" v-bind="previewButtonProps">
|
||||
<slot name="indicator">
|
||||
<i class="p-image-preview-icon pi pi-eye"></i>
|
||||
<i :class="['p-image-preview-icon', indicatorIcon]"></i>
|
||||
</slot>
|
||||
</button>
|
||||
<Portal>
|
||||
|
@ -82,6 +82,10 @@ export default {
|
|||
previewButtonProps: {
|
||||
type: null,
|
||||
default: null
|
||||
},
|
||||
indicatorIcon: {
|
||||
type: String,
|
||||
default: 'pi pi-eye'
|
||||
}
|
||||
},
|
||||
mask: null,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue