Skip to content

Commit

Permalink
Integrate Changes
Browse files Browse the repository at this point in the history
Integrate Changes
  • Loading branch information
marcofeliponi authored Sep 12, 2024
2 parents 38e89b3 + 041d86c commit 104ef63
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-polar-bear",
"version": "4.5.0",
"version": "4.6.0",
"author": "adapcon",
"scripts": {
"storybook": "start-storybook --quiet -p 6006 -s ./src/static",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ import PbCarousel from './Carousel.vue';
visibleSlides: { type: 'number', defaultValue: 1 },
zoomOnHover: { type: 'boolean', defaultValue: true },
zoomScale: { type: 'number', defaultValue: 2 },
noShadow: { type: 'boolean', defaultValue: false },
}}
/>

Expand Down Expand Up @@ -125,6 +126,7 @@ export const Template = (args, { argTypes}) => ({
:visible-slides="visibleSlides"
:zoom-on-hover="zoomOnHover"
:zoom-scale="zoomScale"
:no-shadow="noShadow"
/>
</div>
`,
Expand Down Expand Up @@ -185,6 +187,7 @@ You can check the vueper-slides documentation [here.](https://antoniandre.github
| carouselStyle | String | large | the size of the component arrows and bullets. ['small', 'medium', 'large']
| zoomOnHover | Boolean | false | allows the image to be zoomed when hovered
| zoomScale | Number | 2 | when zoomOnHover is set to true, defines the amount of zoom when clicking on the image
| noShadow | Boolean | false | removes the shadow from the carousel slides

### Events

Expand Down
3 changes: 2 additions & 1 deletion src/components/DataVisualization/Carousel/Carousel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ export default {
visibleSlides: { type: Number, default: 1 },
zoomOnHover: { type: Boolean, default: false },
zoomScale: { type: Number, default: 2 },
noShadow: { type: Boolean, default: false },
},
emits: [
Expand All @@ -184,7 +185,7 @@ export default {
computed: {
carouselClass() {
return this.carouselStyle !== 'large' ? `carousel-${this.carouselStyle}` : '';
return `${this.noShadow ? 'no-shadow' : ''} ${this.carouselStyle !== 'large' ? `carousel-${this.carouselStyle}` : ''}`.trim();
},
allowZoom() {
Expand Down

0 comments on commit 104ef63

Please sign in to comment.