<template>
  <el-table-column :label="column.name" :prop="String(column.id)" align="center">
    <template v-for="(item, index) in column.children">
      <table-column v-if="item.children && item.children.length" :column="item"></table-column>
      <el-table-column v-else :label="item.name" :prop="String(item.id)" align="center"></el-table-column>
    </template>
  </el-table-column>
</template>

<script>
export default {
  name: "TableColumn",
  props: {
    column: Object
  }
}
</script>

<style lang="less">

</style>
