From 5f57291418c545b55126fcf4a6988b540ed31b28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olgu=20=C3=96rs=20Ba=C5=9Fak?= Date: Mon, 10 Apr 2023 13:35:15 +0300 Subject: [PATCH] ZoomIn and zoomOut props added --- api-generator/components/image.js | 12 +++++++++++ components/lib/image/Image.d.ts | 10 +++++++++ components/lib/image/Image.vue | 36 ++++++++++++++++++++++++++----- 3 files changed, 53 insertions(+), 5 deletions(-) diff --git a/api-generator/components/image.js b/api-generator/components/image.js index d5966f3a6..dc7205074 100644 --- a/api-generator/components/image.js +++ b/api-generator/components/image.js @@ -10,6 +10,18 @@ const ImageProps = [ type: 'string', default: 'pi pi-eye', description: 'Custom indicator icon.' + }, + { + name: 'zoomInDisabled', + type: 'boolean', + default: 'false', + description: 'Disable the zoom-in button' + }, + { + name: 'zoomOutDisabled', + type: 'boolean', + default: 'false', + description: 'Disable the zoom-out button' } ]; diff --git a/components/lib/image/Image.d.ts b/components/lib/image/Image.d.ts index b753a1b43..d03035c99 100644 --- a/components/lib/image/Image.d.ts +++ b/components/lib/image/Image.d.ts @@ -32,6 +32,16 @@ export interface ImageProps { * @defaultValue pi pi-eye */ indicatorIcon?: string; + /** + * Disable the zoom-in button + * @defaultValue false + */ + zoomInDisabled?: boolean | undefined; + /** + * Disable the zoom-out button + * @defaultValue false + */ + zoomOutDisabled?: boolean | undefined; } /** diff --git a/components/lib/image/Image.vue b/components/lib/image/Image.vue index 0084b3aca..2479992d4 100644 --- a/components/lib/image/Image.vue +++ b/components/lib/image/Image.vue @@ -21,13 +21,13 @@ - -