1.转换完成,启动项目
一直提示
[Vue warn]: Property or method "hide" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.
问题描述?
微信小程序转uni-app,组件方法selectComponent这种方式不能获取 请问有什么方法获取组件方法
重现步骤
1.转换完成,启动项目 一直提示 [Vue warn]: Property or method "hide" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.
尝试了this.$scope.selectComponent,还是一样报错,也尝试了this.$refs.myTab.selectTab(0)方法,也是一样结果
期望的结果
能直接获取组件方法