<uni-drawer ref="showRight" mode="right" :mask-click="false" :width='250' @change='drawerHander'>
</uni-drawer>
this.$refs.showRight.open();
this.$refs.showRight.close();
产品分类: uniapp/App
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: 19043.1415
HBuilderX类型: 正式
HBuilderX版本号: 3.3.3
手机系统: Android
手机系统版本号: Android 12
手机厂商: 小米
手机机型: 小米10
页面类型: vue
vue版本: vue2
打包方式: 云端
项目创建方式: HBuilderX
<uni-drawer ref="showRight" mode="right" :mask-click="false" :width='250' @change='drawerHander'>
</uni-drawer>
this.$refs.showRight.open();
this.$refs.showRight.close();
uni-drawer组件引入后 运行 this.$refs.showRight.open();或this.$refs.showRight.close(); 找不到方法
运行 this.$refs.showRight.open();或this.$refs.showRight.close(); 可打开或关闭
Error in v-on handler: "TypeError: this.$refs.showRight.close is not a function"
uni-drawer 组件的 this.$refs.showRight.open();和 this.$refs.showRight.close(); 两个方法找不到