tree组件设置defaultExpandAll无效
2019-08-06 本文已影响0人
Vivian_0430
解决方法:标签内添加v-if
<a-tree
v-if="tree.length"
:default-expand-all="defaultExpandAll"
multiple
:selected-keys="selectedKeys"
:checked-keys="checkedKeys"
:tree-data="tree"
:check-strictly="true"
@select="onSelect"
@check="onCheck"
@rightClick="rightHandle"
/>