在解决el-tree default-checked-keys 父节点选中子节点全选的过程,使用添加
check-strictly="true"
但是出现如下错误
Invalid prop: type check failed for prop "checkStrictly". Expected Boolean, got String with value "true".
解决方法
将check-strictly="true"改为:check-strictly="true"
<el-tree
:data="menuList"
show-checkbox
default-expand-all
node-key="id"
ref="tree"
:check-strictly="true"
highlight-current
:props="defaultProps">
</el-tree>
奇迹诞生