EmberSpirit

Results 1 issues of EmberSpirit

### 重现链接 https://github.com/wangKBweb/vant-tabs-demo ### Vant 版本 4.6.2 ### 描述一下你遇到的问题。 Tabs组件在Sticky模式下,如果外层的滚动容器不是window或者body便不会触发正确的切换置顶,具体源码我看了,是因为tabs的切换事件中setCurrentIndex方法最后调用的setRootScrollTop事件里只是执行了document和window的scrollTo而不是useScrollParent的元素 我不确定是否是当初便设计如此,但是总感觉既然切换时有置顶事件,是不是应该在什么情况下都要行为统一,暂且认为这是一个bug。。。 ![image](https://github.com/youzan/vant/assets/85718018/f8039c48-74c8-4c28-9fdd-7adc209f269a) ![image](https://github.com/youzan/vant/assets/85718018/2f3dfa9b-a0de-4111-895c-691d6121bfac) ### 重现步骤 在上面的github仓库里的项目中是简单写了个最小复现 具体复现方式为 src/components/HelloWorld.vue 28行 style中的.HellowWorld的注释 解开就行 ### 设备/浏览器 chrome

bug: need confirm