.vue
<van-tabs v-model="activeTab">
<van-tab title="XXX" v-if="isShow"></van-tab>
<van-tab title="XXX"></van-tab>
</van-tabs>
.ts
private activeTab = 0;
private isShow = false;
来源:CSDN
作者:勋勋勋勋小勋勋
链接:https://blog.csdn.net/qq_34607371/article/details/86318604