Refactor on galleria demo pages
parent
ac2f718b18
commit
eba832d958
|
@ -63,7 +63,7 @@
|
|||
<img :src="slotProps.item.previewImageSrc" :alt="slotProps.item.alt" style="width: 100%; display: block;" />
|
||||
</template>
|
||||
<template #indicator="{index}">
|
||||
<span style="color: #e9ecef; cursor: pointer">
|
||||
<span class="indicator-text">
|
||||
{{index + 1}}
|
||||
</span>
|
||||
</template>
|
||||
|
@ -173,6 +173,23 @@ export default {
|
|||
});
|
||||
}
|
||||
}
|
||||
</CodeHighlight>
|
||||
|
||||
<CodeHighlight lang="css">
|
||||
::v-deep {
|
||||
.custom-indicator-galleria {
|
||||
.indicator-text {
|
||||
color: #e9ecef;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.p-highlight {
|
||||
.indicator-text {
|
||||
color: var(--primary-color);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</CodeHighlight>
|
||||
</TabPanel>
|
||||
</TabView>
|
||||
|
@ -216,3 +233,20 @@ export default {
|
|||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
::v-deep {
|
||||
.custom-indicator-galleria {
|
||||
.indicator-text {
|
||||
color: #e9ecef;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.p-highlight {
|
||||
.indicator-text {
|
||||
color: var(--primary-color);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
</Galleria>
|
||||
|
||||
<h3>Positioned at Left</h3>
|
||||
<Galleria :value="images" :responsiveOptions="responsiveOptions2" :numVisible="4" thumbnailsPosition="left" style="max-width: 610px">
|
||||
<Galleria :value="images" :responsiveOptions="responsiveOptions2" :numVisible="4" thumbnailsPosition="left" style="max-width: 640px">
|
||||
<template #item="slotProps">
|
||||
<img :src="slotProps.item.previewImageSrc" :alt="slotProps.item.alt" style="width: 100%; display: block;" />
|
||||
</template>
|
||||
|
@ -31,7 +31,7 @@
|
|||
</Galleria>
|
||||
|
||||
<h3>Positioned at Right</h3>
|
||||
<Galleria :value="images" :responsiveOptions="responsiveOptions2" :numVisible="4" thumbnailsPosition="right" style="max-width: 610px">
|
||||
<Galleria :value="images" :responsiveOptions="responsiveOptions2" :numVisible="4" thumbnailsPosition="right" style="max-width: 640px">
|
||||
<template #item="slotProps">
|
||||
<img :src="slotProps.item.previewImageSrc" :alt="slotProps.item.alt" style="width: 100%; display: block;" />
|
||||
</template>
|
||||
|
@ -69,7 +69,7 @@
|
|||
</Galleria>
|
||||
|
||||
<h3>Positioned at Left</h3>
|
||||
<Galleria :value="images" :responsiveOptions="responsiveOptions2" :numVisible="4" thumbnailsPosition="left" style="max-width: 610px">
|
||||
<Galleria :value="images" :responsiveOptions="responsiveOptions2" :numVisible="4" thumbnailsPosition="left" style="max-width: 640px">
|
||||
<template #item="slotProps">
|
||||
<img :src="slotProps.item.previewImageSrc" :alt="slotProps.item.alt" style="width: 100%; display: block;" />
|
||||
</template>
|
||||
|
@ -81,7 +81,7 @@
|
|||
</Galleria>
|
||||
|
||||
<h3>Positioned at Right</h3>
|
||||
<Galleria :value="images" :responsiveOptions="responsiveOptions2" :numVisible="4" thumbnailsPosition="right" style="max-width: 610px">
|
||||
<Galleria :value="images" :responsiveOptions="responsiveOptions2" :numVisible="4" thumbnailsPosition="right" style="max-width: 640px">
|
||||
<template #item="slotProps">
|
||||
<img :src="slotProps.item.previewImageSrc" :alt="slotProps.item.alt" style="width: 100%; display: block;" />
|
||||
</template>
|
||||
|
|
Loading…
Reference in New Issue