<template>
  <div>
    <el-table v-loading='loading' :tableData='tableData'>
      <el-table-column label="发布时间"></el-table-column>
      <el-table-column label="操作员"></el-table-column>
      <el-table-column label="门类名称"></el-table-column>
      <el-table-column label="条目数量"></el-table-column>
      <el-table-column label="原文数量"></el-table-column>
      <el-table-column label="原文大小"></el-table-column>
    </el-table>
    <el-pagination @current-change="handleCurrentChange" @size-change="handleSizeChange"
      layout="total, prev, pager, next, sizes" :page-size="pagination.pageSize" :page-sizes="[10, 20, 30, 50]"
      :current-page="pagination.pageNum" :total="pagination.total">
    </el-pagination>
  </div>
</template>
<script>
  export default {
    props: {
      loading: {
        type: Boolean,
        default: () => {},
      },
      tableData: {
        type: Array,
        default: () => [],
      },
      pagination: {
        type: Object,
        default: () => {},
      },
    },
    data() {
      return {

      }
    },
    methods: {
      handleCurrentChange(val) {
        this.pagination.pageNum = val;
        this.$emit("refreshTable");
      },
      handleSizeChange(val) {
        this.pagination.pageSize = val;
        this.pagination.pageNum = 1;
        this.$emit("refreshTable");
      },
    }
  }

</script>
<style lang='scss' scoped>

</style>
