primevue-mirror/components/lib/carousel/BaseCarousel.vue

71 lines
1.6 KiB
Vue
Raw Normal View History

2023-05-31 13:57:44 +00:00
<script>
import BaseComponent from 'primevue/basecomponent';
import CarouselStyle from 'primevue/carousel/style';
2023-05-31 13:57:44 +00:00
export default {
name: 'BaseCarousel',
extends: BaseComponent,
props: {
value: null,
page: {
type: Number,
default: 0
},
numVisible: {
type: Number,
default: 1
},
numScroll: {
type: Number,
default: 1
},
responsiveOptions: Array,
orientation: {
type: String,
default: 'horizontal'
},
verticalViewPortHeight: {
type: String,
default: '300px'
},
contentClass: String,
containerClass: String,
indicatorsContentClass: String,
circular: {
type: Boolean,
default: false
},
autoplayInterval: {
type: Number,
default: 0
},
showNavigators: {
type: Boolean,
default: true
},
showIndicators: {
type: Boolean,
default: true
},
prevButtonProps: {
2024-04-15 08:08:42 +00:00
type: Object,
default: () => {
return { severity: 'secondary', text: true, rounded: true };
}
2023-05-31 13:57:44 +00:00
},
nextButtonProps: {
2024-04-15 08:08:42 +00:00
type: Object,
default: () => {
return { severity: 'secondary', text: true, rounded: true };
}
2023-05-31 13:57:44 +00:00
}
},
style: CarouselStyle,
2023-05-31 13:57:44 +00:00
provide() {
return {
$parentInstance: this
};
}
};
</script>