2023-05-31 13:57:44 +00:00
|
|
|
<script>
|
|
|
|
import BaseComponent from 'primevue/basecomponent';
|
2023-10-02 10:46:09 +00:00
|
|
|
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
|
|
|
}
|
|
|
|
},
|
2023-10-02 10:46:09 +00:00
|
|
|
style: CarouselStyle,
|
2023-05-31 13:57:44 +00:00
|
|
|
provide() {
|
|
|
|
return {
|
2024-04-25 01:26:06 +00:00
|
|
|
$pcCarousel: this,
|
2023-05-31 13:57:44 +00:00
|
|
|
$parentInstance: this
|
|
|
|
};
|
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|