// 清空地区选中节点和高亮节点
this.$nextTick(() => {
this.$refs.locationCascader.$refs.panel.clearCheckedNodes()
this.$refs.locationCascader.$refs.panel.activePath = []
})
当前页使用重置,获取到ref=locationCascader的级联组件,在进行上述操作即可;
// 清空地区选中节点和高亮节点
this.$nextTick(() => {
this.$refs.account.$refs.locationCascader.$refs.panel.clearCheckedNodes()
this.$refs.account.$refs.locationCascader.$refs.panel.activePath = []
})
当前页面引入的组件里使用级联组件,重置问题:先获取当前页面的组件ref=account,在获取里面的级联组件ref=locationCascader,在进行重置操作;