vux Tab tabitem dynamic loading assembly when not dynamically centered bottom bar

Question: vux Tab dynamically loaded assembly when tabitem bottom bar is not dynamic center

 

Solution: As long as v-if to judge whether there is a value on it, because v-if only when the request will go to the content rendering

<tab :line-width=2 active-color='#fc378c' custom-bar-width="20px" v-if="list2">
    <tab-item class="vux-center" :selected="demo2 === item.id" v-for="(item, index) in list2" @on-item-click="changeCate(index)" :key="index">{{item.catename}}</tab-item>
</tab>

Published 20 original articles · won praise 0 · Views 120

Guess you like

Origin blog.csdn.net/qq_2422941992/article/details/104219882