Bootstrap

element Tree 树形控件实现单选

第一块:
<el-tree
          v-loading="loading"
          :data="treemenu"
          show-checkbox
          check-strictly
          :props="defaultProps"
          default-expand-all
          node-key="menuId"
          ref="tree"
          @check="check"
          @check-change="handleCheckChange"
          :default-checked-keys="[checkedId]"
></el-tree>



第二块:触发选择事件

check(row){
      console.log(11,row)
      this.isshow = true
      this.$refs.tree.setCheckedKeys([row.menuId])
},

;