When using the Vant component library, implement a pull-down refresh, which will only be refreshed at the top of the list

Scenes

The official code is to refresh as long as you pull down, but this is not what we want. We want to achieve pull-down refresh, which will only be refreshed at the top of the list
insert image description here

solve

global style

.van-pull-refresh {
    
    
  height: calc(100vh - 100px) !important;
  overflow: auto !important;
}

epilogue

Thank readers for reading and following blog posts, and express gratitude for opinions, suggestions, or criticisms mentioned in articles

Guess you like

Origin blog.csdn.net/qq_54334713/article/details/132607094