el-table多选+树形table 使用全部勾选以后 只有父节点被勾选 父节点下的子节点都没被勾选
解决思路, toggleAllSelection只会对tree的第一层做勾选,我们需要递归子节点 来手动勾选
下面是代码片段
<el-table
:data="treeData"
style="width: 100%; margin-bottom: 20px; margin-top: 10px"
row-key="id"
border
:tree-props="defaultProps"
ref="dataTable"
@selection-change