<template>
    <div class="tabBarComponent" :style="`height:${vieHeight}px`">
        <slot name="footer">
            <div class="tabBar_Left">
                <slot name="tabBar-Left"></slot>
            </div>
            <div class="tabBar-Right">
                <slot name="tabBar-Right"></slot>
            </div>
        </slot>
    </div>
</template>

<script>
export default {
    name: 'tabBarComponent',
    props: {
        vieHeight: {
            type: Number,
            default: 46
        }
    }
}
</script>

<style lang="scss" scoped>
.tabBarComponent {
    width: auto;
    padding: 0 16px;
    // position: sticky;
    // bottom: 0;
    // left: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    background: #fff;
    z-index: 20;
    box-shadow: 0px -1px 2px 0px rgba(0, 0, 0, 0.06), 0px 1px 0px 0px rgba(0, 0, 0, 0.2);
    .tabBar_Left{
        flex:1;
    }
    .tabBar_Right{
        width:auto;
        height:100%;
    }
}
</style>
