网上看到好几种实现方式,都不能成功
在尝试了好几种后尝试出了,奉上代码
this.$nextTick(() => {
// 清空左边搜索
this.$refs.myTransfer.$children["0"]._data.query = '';
// 清空右边搜索
this.$refs.myTransfer.$children["3"]._data.query = '';
})
网上看到好几种实现方式,都不能成功
在尝试了好几种后尝试出了,奉上代码
this.$nextTick(() => {
// 清空左边搜索
this.$refs.myTransfer.$children["0"]._data.query = '';
// 清空右边搜索
this.$refs.myTransfer.$children["3"]._data.query = '';
})