<!--
 * @Company: 沈阳信诚科技
 * @Email: html_venustar@163.com
 * @Author: Liuqiming
 * @Description: 多级表头
 * @LastEditors: Liuqiming
 * @LastEditTime: 2024-03-25 11:37:11
 * @Date: 2024-02-22 09:35:37
-->
<template>
  <el-table-column
    v-if="!item.hidden"
    :label="item.label"
    :prop="item.prop"
    :min-width="item.minWidth"
    :align="item.align"
    :fixed="item.fixed"
    :sortable="item.sort"
    :formatter="item.slots"
    :class-name="item.className"
    :show-overflow-tooltip="item.tooltip || true"
    reserve-selection
  >
    <template v-if="item.children && item.children.length > 0">
      <tableColumn v-for="i in item.children" :item="i" :key="i"></tableColumn>
    </template>
  </el-table-column>
</template>

<script setup>
const props = defineProps({
  item:{
    type: Object,
    default: () => {}
  }
});
const emit = defineEmits();

</script>

<style lang="scss" scoped></style>
