primevue-mirror/components/lib/galleria/BaseGalleria.vue

126 lines
2.7 KiB
Vue
Raw Normal View History

2023-05-31 22:28:41 +00:00
<script>
import BaseComponent from 'primevue/basecomponent';
import GalleriaStyle from 'primevue/galleria/style';
2023-05-31 22:28:41 +00:00
export default {
name: 'BaseGalleria',
extends: BaseComponent,
props: {
id: {
2023-05-31 22:28:41 +00:00
type: String,
default: null
},
value: {
type: Array,
2023-05-31 22:28:41 +00:00
default: null
},
activeIndex: {
type: Number,
default: 0
},
fullScreen: {
type: Boolean,
default: false
},
visible: {
type: Boolean,
default: false
},
numVisible: {
type: Number,
default: 3
},
responsiveOptions: {
type: Array,
2023-05-31 22:28:41 +00:00
default: null
},
showItemNavigators: {
type: Boolean,
default: false
},
showThumbnailNavigators: {
type: Boolean,
default: true
},
showItemNavigatorsOnHover: {
type: Boolean,
default: false
},
changeItemOnIndicatorHover: {
type: Boolean,
default: false
},
circular: {
type: Boolean,
default: false
},
autoPlay: {
type: Boolean,
default: false
},
transitionInterval: {
type: Number,
default: 4000
},
showThumbnails: {
type: Boolean,
default: true
},
thumbnailsPosition: {
2023-05-31 22:28:41 +00:00
type: String,
default: 'bottom'
2023-05-31 22:28:41 +00:00
},
verticalThumbnailViewPortHeight: {
2023-05-31 22:28:41 +00:00
type: String,
default: '300px'
2023-05-31 22:28:41 +00:00
},
showIndicators: {
type: Boolean,
default: false
},
showIndicatorsOnItem: {
type: Boolean,
default: false
},
indicatorsPosition: {
2023-05-31 22:28:41 +00:00
type: String,
default: 'bottom'
},
baseZIndex: {
type: Number,
default: 0
2023-05-31 22:28:41 +00:00
},
maskClass: {
2023-05-31 22:28:41 +00:00
type: String,
default: null
},
containerStyle: {
type: null,
default: null
},
containerClass: {
type: null,
default: null
},
containerProps: {
type: null,
default: null
},
prevButtonProps: {
type: null,
default: null
},
nextButtonProps: {
type: null,
default: null
2023-05-31 22:28:41 +00:00
}
},
style: GalleriaStyle,
2023-05-31 22:28:41 +00:00
provide() {
return {
$parentInstance: this
};
}
};
</script>