<template>
  <div>
    <el-table :data="data">
      <my-chart-column v-for="(item, index) in col" :key="index" :col="item" />
    </el-table>
  </div>
</template>

<script>
import MyChartColumn from './MyChartColumn'

export default {
  name: 'MyChartTable',
  components: {
    MyChartColumn
  },
  props: {
    col: {
      type: Array,
      required: true,
      default: () => {
        return []
      }
    },
    data: {
      type: Array,
      required: true,
      default: () => {
        return []
      }
    }
  }
}
</script>

<style lang="scss" scoped>

</style>
