刚看了下源码getSelectedIndex内部是this.option.wheel && this.selectedIndex而this.option.wheel的默认值是false,需要你在初始化BScroll传入参数覆盖默认值wheel才能返回数字wheel配置
刚看了下源码
getSelectedIndex
内部是this.option.wheel && this.selectedIndex
而
this.option.wheel
的默认值是false
,需要你在初始化BScroll
传入参数覆盖默认值wheel
才能返回数字wheel配置