The vant tab component solves the problem of too much text and incomplete display

The vant tab component solves the problem of too much text and incomplete display

Use the vant tab component to render the navigation list.
Too many navigation problems will cause some text to be hidden.

Insert image description here

After searching around, they all said adding tab-class="tab-box", so I was convinced, but it didn't take effect in my project.

What can I do? I’m helpless too.

          <van-tabs v-model="active" tab-class="tab-box" scrollspy sticky color="#3473ff">
              <!-- 我的勋章前三个数据 --

Guess you like

Origin blog.csdn.net/sinat_52319736/article/details/127910986