mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Removed code duplication and get baseURL from nuxt runtime
This commit is contained in:
parent
0c840beded
commit
06df25c7cc
34 changed files with 215 additions and 244 deletions
|
@ -16,10 +16,10 @@
|
|||
|
||||
<Galleria v-model:activeIndex="activeIndex" :value="images" :responsiveOptions="responsiveOptions" :numVisible="5" containerStyle="max-width: 640px">
|
||||
<template #item="slotProps">
|
||||
<img :src="baseUrl + slotProps.item.itemImageSrc" :alt="slotProps.item.alt" style="width: 100%" />
|
||||
<img :src="$config.public.contextPath + slotProps.item.itemImageSrc" :alt="slotProps.item.alt" style="width: 100%" />
|
||||
</template>
|
||||
<template #thumbnail="slotProps">
|
||||
<img :src="baseUrl + slotProps.item.thumbnailImageSrc" :alt="slotProps.item.alt" />
|
||||
<img :src="$config.public.contextPath + slotProps.item.thumbnailImageSrc" :alt="slotProps.item.alt" />
|
||||
</template>
|
||||
</Galleria>
|
||||
</div>
|
||||
|
@ -114,8 +114,7 @@ export default {
|
|||
breakpoint: '560px',
|
||||
numVisible: 1
|
||||
}
|
||||
],
|
||||
baseUrl: process.dev ? '' : '/primevue-nuxt'
|
||||
]
|
||||
};
|
||||
},
|
||||
galleriaService: null,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue