<template>
  <el-table-column align="center" v-bind="column">
    <!-- 默认插槽 -->
    <template v-if="column.render" #default="scope">
      <ColumnRender :scope="scope" :render="column.render" />
    </template>
  </el-table-column>
</template>

<script>
import ColumnRender from './column-render'

export default {
  name: 'BaseColumn',
  components: {
    ColumnRender,
  },
  props: {
    column: {
      type: Object,
      default: () => ({}),
    },
  },
}
</script>
