Bootstrap

elementui 树形组件如何获取当前点击的节点的所有节点,并且按照从上到下的顺序

 <el-tree ref="treeData" :data="dict" :props="defaultProps" show-checkbox node-key="id"
          :expand-on-click-node="false" :check-on-click-node="true" @node-click="handleNodeClick"
          style="margin-top: 0.5rem;" :highlight-current="true">
        </el-tree>

js:

this.$refs.treeData.getCheckedNodes(false, true)

;