<template>
  <div>
    <el-table
      ref="table"
      v-loading="loading"
      :data="tableData"
      border>
      <!-- <el-table-column type="selection" width="60" align="center">
      </el-table-column> -->
      <el-table-column label="字段" prop="fieldCh" align="center">
      </el-table-column>
      <el-table-column label="比较" align="center">
        <template>=</template>
      </el-table-column>
      <el-table-column label="值" prop="value" align="center">
      </el-table-column>
      <el-table-column label="操作" align="center">
        <template slot-scope="scope">
          <el-button @click.capture="handleDel(scope.row)" type="text" style="color:#ff0000;font-weight:600;">删除</el-button>
        </template>
      </el-table-column>
    </el-table>
  </div>
</template>

<script>
export default {
  props: {
    loading: {
      type: Boolean,
      default: () => true
    },
    tableData: {
      type: Array,
      default: () => []
    }
  },
  components: {},
  data() {
    return {
    };
  },
  methods: {
    handleDel(row){
      this.$emit('clickDel',row)
    }
  }
};
</script>

<style></style>
