<template>
  <el-table-column v-bind="$attrs" v-on="$listeners" v-if="showOperation">
    <template slot="header" slot-scope="scope">
      <slot name="header"></slot>
    </template>
    <template slot-scope="scope">
      <slot :row="scope.row" :$index="scope.$index"></slot>
    </template>
  </el-table-column>
  <el-table-column v-bind="$attrs" v-on="$listeners" v-else> </el-table-column>
</template>
<script>
export default {
  name: "sh-table-column",
  props: {
    showOperation: {
      type: Boolean,
      default: false,
    },
  },
  methods: {},
};
</script>