<template>
  <el-table-column :prop="col.prop" :label="col.label">
    <template v-if="col.children">
      <custom-column v-for="(item, index) in col.children" :key="index" :col="item" />
    </template>
  </el-table-column>
</template>

<script>
export default {
  name: 'CustomColumn',
  props: {
    col: {
      type: Object
    }
  }
}
</script>
<style scoped>
</style>
