From 466ff524319ec69f8646a624c75ccb8187899977 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: Tue, 24 Oct 2023 12:40:46 +0300 Subject: [PATCH] Remove v-deep use pt --- doc/galleria/AdvancedDoc.vue | 342 +++++++++++------------------------ 1 file changed, 108 insertions(+), 234 deletions(-) diff --git a/doc/galleria/AdvancedDoc.vue b/doc/galleria/AdvancedDoc.vue index d30e01202..d382dcb5f 100644 --- a/doc/galleria/AdvancedDoc.vue +++ b/doc/galleria/AdvancedDoc.vue @@ -9,13 +9,22 @@ :value="images" :numVisible="5" containerStyle="max-width: 640px" - :containerClass="galleriaClass" :showThumbnails="showThumbnails" :showItemNavigators="true" :showItemNavigatorsOnHover="true" :circular="true" :autoPlay="isAutoPlay" :transitionInterval="3000" + :pt="{ + root: { + class: [{ 'flex flex-column': fullScreen }] + }, + content: { + class: ['relative', { 'flex-1 justify-content-center': fullScreen }] + }, + + thumbnailwrapper: 'absolute w-full left-0 bottom-0' + }" > @@ -56,8 +65,29 @@ export default { isAutoPlay: true, code: { basic: ` - + @@ -67,15 +97,15 @@ export default { @@ -83,8 +113,29 @@ export default { options: ` @@ -187,84 +238,39 @@ export default { slideButtonIcon() { return this.isAutoPlay ? 'pi pi-pause' : 'pi pi-play'; }, - galleriaClass() { - return ['custom-galleria', { fullscreen: this.fullScreen }]; - }, fullScreenIcon() { return \`pi ${this.fullScreen ? 'pi-window-minimize' : 'pi-window-maximize'}\`; } } }; <\/script> - - `, composition: ` @@ -361,11 +367,6 @@ const unbindDocumentListeners = () => { document.removeEventListener('msfullscreenchange', onFullScreenChange); }; - - -const galleriaClass = computed(() => { - return ['custom-galleria', { fullscreen: fullScreen.value }]; -}); const fullScreenIcon = computed(() => { return \`pi \${fullScreen.value ? 'pi-window-minimize' : 'pi-window-maximize'}\`; }); @@ -374,68 +375,7 @@ const slideButtonIcon = computed(() => { }); <\/script> -`, +`, data: ` /* PhotoService */ { @@ -514,75 +454,9 @@ const slideButtonIcon = computed(() => { slideButtonIcon() { return this.isAutoPlay ? 'pi pi-pause' : 'pi pi-play'; }, - galleriaClass() { - return ['custom-galleria', { fullscreen: this.fullScreen }]; - }, fullScreenIcon() { return `pi ${this.fullScreen ? 'pi-window-minimize' : 'pi-window-maximize'}`; } } }; - -