element-ui tree组件
lazy渲染后,设置check-strictly
但是调用setCheckedKeys仍会选择父节点
组件引入并设置
<el-tree
ref="orgTree"
:props="props"
node-key="id"
default-expand-all
lazy
:load="loadNode"
show-checkbox
check-strictly
@check="checkChange"
style="margin-top: 6px;">
</el-tree>
设置选中的keys
this.$refs.tree.setCheckedKeys([this.orgId],true);
本来只想选中子节点,但现在的效果是
请问element ui懒加载和check-strictly结合用是不是有bug啊?