TS VUE 踩坑笔记

使用$refs调用组件内方法报错

解决办法:断言

注意上面那个要加;号 不然会报错

this.selectOrganName = checkedOptions.organName;
(this.$refs.select as any).changeVisible(false)
原文地址:https://www.cnblogs.com/benbendu/p/13828585.html