From 00ec5d12649c76fc68ad21aa8752bbe3e2c4fb40 Mon Sep 17 00:00:00 2001 From: Furkan Sezis Date: Tue, 21 Mar 2023 16:59:02 +0300 Subject: [PATCH] Indicator icon props added --- components/image/Image.d.ts | 5 +++++ components/image/Image.vue | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/components/image/Image.d.ts b/components/image/Image.d.ts index 4125d2464..26f9ae7fb 100644 --- a/components/image/Image.d.ts +++ b/components/image/Image.d.ts @@ -27,6 +27,11 @@ export interface ImageProps { * Style class of the image element. */ imageClass?: any; + /** + * Custom indicator icon. + * @defaultValue pi pi-eye + */ + indicatorIcon?: string; } /** diff --git a/components/image/Image.vue b/components/image/Image.vue index d757dce2f..87b3fb6f4 100644 --- a/components/image/Image.vue +++ b/components/image/Image.vue @@ -3,7 +3,7 @@ @@ -68,6 +68,10 @@ export default { previewButtonProps: { type: null, default: null + }, + indicatorIcon: { + type: String, + default: 'pi pi-eye' } }, mask: null,