<template>
    <div class="flexable-tree">
        <el-tree :data="defaultdata" :props="defaultProps" @node-click="handleNodeClick" style="font-size: 20px"></el-tree>
    </div>
</template>
<script>
export default {
  props: {
    defaultProps: {
      type: Object
    },
    defaultdata: {
      type: Object
    },
    nodeClick: {
      type: Function,
      default: null
    }
  },
  data () {
    return {
    }
  },
  methods: {
    handleNodeClick (node) {
      this.nodeClick(node)
    }
  }
}
</script>
<style scoped>

.el-tooltip{
    position: absolute;
    top: 50%;
    right: -43px;
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    width: 32px;
    height: 32px;
    line-height: 36px;
    z-index: 100;
    cursor: pointer;
    border-radius: 1px;
}
</style>
