<template>
    <div class="nus_listtitle"
        v-if="listTitle && listTitle.length > 0 && lists && lists.length > 0">
        <div class="nu_list-name"
            v-for="(item, key) in lists"
            v-text="listTitle[key] || ''"
            :key="key">
        </div>
    </div>
</template>

<script>
export default {
    props: {
        /**
         * 表头列表
         */
        listTitle: {
            type: Array
            // default () {
            //     return ['avery', 'json', 'avery'];
            // }
        },
        /**
         * picker展示的内容列表
         */
        lists: {
            type: Array
        }
    }
};
</script>

<style lang="scss">
@import '../../../../_assets/style/_iconFont.scss';
@import '../../../../_assets/style/_var.scss';
@import '../../../../_assets/style/_mixin.scss';

.nus_listtitle {
    background: $nupicker-title-bg-color;
    border-color: $nupicker-title-br-color;
    display: flex;
    font-size: $nupicker-title-font-size;
    *,::after,::before{
        border-color: inherit;
    }
    .nu_list-name {
        @include flexFix();
        text-align: center;
        line-height: 1.8;
        overflow: hidden;
    }
}
</style>
