el-tree设置导航树选中状态


setTreeCurrentKey (nodeKey) {
if (nodeKey) {
that.$refs.devTree.setCurrentKey(nodeKey)
} else {
that.$refs.devTree.setCurrentKey(null)
}
document.querySelector('.is-current')
},
// 设置导航树节点选中
setTreeSelectNodeByKey (nodeKey) {
// 延迟几秒执行
setTimeout(function () {
that.$nextTick(() => {
that.currentSelectNodeKey = nodeKey
that.setTreeCurrentKey(nodeKey)
})
}, 1000)
}


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM