<template>
  <ul class="v-tree-list">
    <tree-item
      v-for="item of list"
      :key="item.value"
      :nodes="item"
      :bus="bus"
      :is-simple-list="isSimpleList"
    >
      <slot />
    </tree-item>
    <slot name="companyUser" />
  </ul>
</template>

<script>
import TreeItem from './TreeItem'
export default {
    name: 'TreeList',
    components: {
        TreeItem
    },
    props: {
        list: {
            type: Array,
            required: true
        },
        bus: {
            required: true
        },
        isSimpleList: {
            type: Boolean
        }
    },
    data () {
        return {
        }
    },
    methods: {

    }

}
</script>

<style lang="stylus" scoped>
.v-tree-list
  position relative
</style>
