vue-sell icon indicating copy to clipboard operation
vue-sell copied to clipboard

请问在实例化better-scroll组件时 this.scroll中scroll不用在data里声明么

Open yumengzhong opened this issue 7 years ago • 1 comments

if (!this.scroll) { this.scroll = new BScroll(this.$refs.food, { click: true }); } else { this.scroll.refresh(); } 请问在实例化better-scroll组件时 this.scroll中scroll不用在data里声明么

yumengzhong avatar Jul 27 '17 15:07 yumengzhong

不用在data里声明吧,导进去,在适当的位置实例化就能用

HiramYong avatar Nov 08 '17 06:11 HiramYong