cube-ui / question-answer

Q&A for cube-ui
16 stars 7 forks source link

使用Scroll的时候,用v-show显示隐藏后无法滚动 #45

Closed Max-Law closed 5 years ago

Max-Law commented 5 years ago

image

当触发v-show后,scroll就无法滚动了,使用 this.$refs.scroll.refresh();也没有反应

tank0317 commented 5 years ago

问题解决了吗? 确定是一开始可以滚动,隐藏后再显示,无法滚动?

我这没有复现,能提供个链接看下吗?

不好意思,回复晚了

Max-Law commented 5 years ago

能告诉我this.$refs.scroll.refresh();这样调用的方法是对的吗? cube创造的better-scroll实例是this.$refs.scroll还是this.scroll?调用都没反应

Max-Law commented 5 years ago

没事了,我解决了~麻烦了

liyan888 commented 4 years ago

可以问下是怎么解决的么?我也出现了这样的问题