vant icon indicating copy to clipboard operation
vant copied to clipboard

Swipe轮播组件 通过 ref 获取swipe 实例并调用实例方法时报错

Open arronlovepudding opened this issue 7 years ago • 5 comments

Describe the bug swiper组件通过ref获取dom元素,使用swipeTo方法报错。

Screenshots image

Environment

  • Browser: Chrome
  • Vant Version: 1.6.12

Reproduce 通过 ref 可以获取到 swipe 实例并调用实例方法时报错:

image

arronlovepudding avatar Apr 10 '19 05:04 arronlovepudding

image 我的可以啊

futurehu avatar Apr 10 '19 05:04 futurehu

image 我的可以啊 我这边还是一直报: Invalid prop: type check failed for prop "initialSwipe". Expected Number with value 0, got String with value "0".

arronlovepudding avatar Apr 10 '19 09:04 arronlovepudding

image 我的可以啊 我这边还是一直报: Invalid prop: type check failed for prop "initialSwipe". Expected Number with value 0, got String with value "0".

加我qq吧 qq多少呀

arronlovepudding avatar Apr 10 '19 09:04 arronlovepudding

image 我的可以啊 我这边还是一直报: Invalid prop: type check failed for prop "initialSwipe". Expected Number with value 0, got String with value "0".

加我qq吧 qq多少呀

912826754

futurehu avatar Apr 10 '19 09:04 futurehu

image 我的可以啊 我这边还是一直报: Invalid prop: type check failed for prop "initialSwipe". Expected Number with value 0, got String with value "0".

加我qq吧 qq多少呀

912826754

刚解决了!!!thanks~

arronlovepudding avatar Apr 10 '19 09:04 arronlovepudding