<template>
    <div class="tab-bar">
        <van-tabbar v-model="active" route :placeholder="false">
            <van-tabbar-item replace to="/yumi">
                <span>主页管理</span>
                <template #icon="props">
                    <img :src="props.active ? icon.active : icon.inactive" />
                </template>
            </van-tabbar-item>
            <van-tabbar-item replace to="/portfolioMan" icon="search"><span>作品集管理</span>
                <template #icon="props">
                    <img :src="props.active ? icon.active : icon.inactive" />
                </template></van-tabbar-item>
            <van-tabbar-item replace to="/sampleCollectionman" icon="setting-o"><span>样品集管理</span>
                <template #icon="props">
                    <img :src="props.active ? icon.active : icon.inactive" />
                </template></van-tabbar-item>
            <van-tabbar-item replace to="/tagManPage" icon="setting-o"><span>标签管理</span>
                <template #icon="props">
                    <img :src="props.active ? icon.active : icon.inactive" />
                </template></van-tabbar-item>
        </van-tabbar>
    </div>
</template>

<script>
export default {
    name: 'ManTabBar',
    components: {},
    props: {},
    data() {
        return {
            active: 0,
            icon: {
                active: 'https://img01.yzcdn.cn/vant/user-active.png',
                inactive: 'https://img01.yzcdn.cn/vant/user-inactive.png',
            },
        };
    },
    watch: {},
    computed: {},
    methods: {},
    created() { },
    mounted() { }
};
</script>
<style lang="less" scoped>
.tab-bar {
    max-width: 800px;
    margin: 0 auto;
}
</style>