<template>
    <ui-swiper v-bind="$attrs" v-on="$listeners" :items="banners" titleClass="swiper-title" :showPagination="showPagination" :paginationclass="paginationclass" :titleClass="titleClass" :class="`swiper ${bannerClass}`"
               :class="bannerClass"></ui-swiper>
</template>

<script>
    export default {
        props: {
            flag: '',
            bannerClass: {
                type: String,
                default() {
                    return {}
                }
            },
            showPagination: {
                default: false,
            },
            paginationclass:{
                default: ''
            } ,
            titleClass: {},
        },
        computed: {
            banners() {
                return this.$store.state.banners.filter(e => e.position == this.flag);
            }
        }
    }
</script>

<style scoped>

</style>