Element-UI中el-tree的使用

<el-tree
        :data="treedata"
        show-checkbox
        default-expand-all
        node-key="id"
        ref="tree"
        highlight-current
        :props="defaultProps"
        :default-checked-keys="checkKeys"
        @check="checkNode"
        check-strictly="true"
      >
      </el-tree>

check-strictly="true"用于父节点取消了,子节点不影响
check-strictly----设置true,可以关闭父子关联

猜你喜欢

转载自blog.csdn.net/qq_46199553/article/details/131347408