From de942145b38c221b2c39df423dfef33d7407081d Mon Sep 17 00:00:00 2001 From: PierreGAMEN Date: Tue, 3 Jun 2025 12:07:13 +0200 Subject: [PATCH] fix: update default props initialization and clean up unused code in AGallery component --- components/AGallery.vue | 295 +++++++++------------------------------- 1 file changed, 63 insertions(+), 232 deletions(-) diff --git a/components/AGallery.vue b/components/AGallery.vue index 34d0cea..053ce55 100644 --- a/components/AGallery.vue +++ b/components/AGallery.vue @@ -25,8 +25,8 @@ interface AGalleryProps { const props = withDefaults(defineProps(), { containerWidth: 300, containerHeight: 300, - medias: [], - inspirations: [], + medias: () => [], + inspirations: () => [], tootlip: "", title: undefined, subTitle: undefined, @@ -80,10 +80,6 @@ const setActiveMedia = (index: number) => { : -props.containerWidth * index; }; -const clickMedia = () => { - emits("click-media", activeButtonIndex.value); -}; - const clickInsert = () => { emits("click-insert"); }; @@ -111,12 +107,9 @@ watch(