<template>
  <div class="tree">
    <el-tree
      :data="treeData"
      :props="defaultProps"
      @node-click="handleNodeClick"
    />
    </div>
</template>

<script setup>
  import { defineProps,ref } from 'vue';

  const treeHeight = ref(50)

  const props = defineProps({
    treeData: {
      type: Array,
      default: []
    },
  })
</script>

<style lang="scss" scoped>
  .tree {
    border-right: 0;
    overflow: auto;
    height: 100%;
  }
</style>