<template>
  <el-table-column v-bind="$attrs" show-overflow-tooltip :formatter="checkTableValFormat">
    <template slot-scope="scope">
      <slot :columnData="scope"></slot>
    </template>
  </el-table-column>
</template>

<script>
export default {
  name: "PsTableColumn",
  props: {
    dataType: {
      type: String,
      default: null
    }
  },
  data() {
    return {

    };
  },
  created() {
    console.log(this.$slots)
  },
  mounted() {
  },
  methods: {

    checkTableValFormat: (row, column, cellValue) => {
      let valFormater = "-";
      if (cellValue || cellValue === 0) {
        valFormater = cellValue;
      }
      // console.log(valFormater)
      return valFormater;
    },
  },
};
</script>

<style></style>
