The use of el-tree in Element-UI

<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" is used to cancel the parent node, and the child node does not affect
check-strictly----set true to close the parent-child relationship

Guess you like

Origin blog.csdn.net/qq_46199553/article/details/131347408