From 08383819df4c4a11db3e4e322cb2d7c28bc424a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tu=C4=9F=C3=A7e=20K=C3=BC=C3=A7=C3=BCko=C4=9Flu?= Date: Thu, 6 Apr 2023 11:21:23 +0300 Subject: [PATCH] Refactor #3832 Refactor #3833 - For Galleria --- api-generator/components/galleria.js | 32 +++++++++++++---- components/lib/galleria/Galleria.d.ts | 20 +++++++++++ components/lib/galleria/Galleria.vue | 4 +-- components/lib/galleria/GalleriaContent.vue | 8 +++-- components/lib/galleria/GalleriaItem.vue | 14 ++++++-- .../lib/galleria/GalleriaThumbnails.vue | 36 +++++++++---------- 6 files changed, 82 insertions(+), 32 deletions(-) diff --git a/api-generator/components/galleria.js b/api-generator/components/galleria.js index 95dd12bc3..4ef0cb142 100644 --- a/api-generator/components/galleria.js +++ b/api-generator/components/galleria.js @@ -148,27 +148,47 @@ const GalleriaProps = [ const GalleriaSlots = [ { name: 'header', - description: "Custom content for the component's header" + description: "Custom content for the component's header." }, { name: 'footer', - description: "Custom content for the component's header" + description: "Custom content for the component's footer." }, { name: 'item', - description: 'Custom content for the item' + description: 'Custom content for the item.' }, { name: 'caption', - description: 'Custom caption content' + description: 'Custom caption content.' }, { name: 'thumbnail', - description: 'Custom thumbnail content' + description: 'Custom thumbnail content.' }, { name: 'indicator', - description: 'Custom indicator content' + description: 'Custom indicator content.' + }, + { + name: 'closeicon', + description: 'Custom close icon template.' + }, + { + name: 'previtemicon', + description: 'Custom navigator previous item icon template.' + }, + { + name: 'nextitemicon', + description: 'Custom navigator next item icon template.' + }, + { + name: 'prevthumbnailicon', + description: 'Custom thumbnail previous icon template.' + }, + { + name: 'nextthumbnailicon', + description: 'Custom thumbnail next icon template.' } ]; diff --git a/components/lib/galleria/Galleria.d.ts b/components/lib/galleria/Galleria.d.ts index deefc784c..37797415f 100755 --- a/components/lib/galleria/Galleria.d.ts +++ b/components/lib/galleria/Galleria.d.ts @@ -205,6 +205,26 @@ export interface GalleriaSlots { */ item: any; }): VNode[]; + /** + * Custom close icon template. + */ + closeicon(): VNode[]; + /** + * Custom navigator previous item icon template. + */ + previtemicon(): VNode[]; + /** + * Custom navigator next item icon template. + */ + nextitemicon(): VNode[]; + /** + * Custom thumbnail previous icon template. + */ + prevthumbnailicon(): VNode[]; + /** + * Custom thumbnail next item template. + */ + nextthumbnailicon(): VNode[]; } /** diff --git a/components/lib/galleria/Galleria.vue b/components/lib/galleria/Galleria.vue index 901751f7a..c4fcf35de 100755 --- a/components/lib/galleria/Galleria.vue +++ b/components/lib/galleria/Galleria.vue @@ -2,11 +2,11 @@
- +
- +