Why the sticky layout of tab tabs in vant-ui cannot be used by scroll

Code:

  <van-tabs v-model="active"  scroll="{scrollTop:146px,isFixed:true}">
    <van-tab v-for="index in 4" :title="" " + index">
      <div style="height:15rem;"> {{ index }}</div>
    </van-tab>
  </van-tabs>
      

document:
scroll triggered when scrolling, effective only in sticky mode {scrollTop: distance from top position, isFixed: whether to suck top}

Jul.18,2022

sticky to true


scroll official documentation describes this as a method, not an attribute
@ scroll = "" binding event. Callback function returns {scrollTop: distance to the top, isFixed: whether to absorb the top}


Hello, have you solved


first of all, take a look at the official document, this is an event ide" alt=".png" title=".png">
.png

Menu