<!-- @file 表格组件 -->
<template>
  <div>
    <a-table :data-source="tableData.list" :row-key="rowKey" :loading="tableData.loading">
      <slot>
      </slot>
    </a-table>
  </div>
</template>

<script>
export default {
  name: 'LkTable',
  props: {
    tableData: {
      type: Object,
      default: function() {
        return {
          list: [],
          total: 0,
          page: 1,
          size: 10,
          isLoading: false
        }
      }
    },
    rowKey: {
      type: String,
      default: 'id'
    }
  },
  data() {
    return {}
  },

  mounted() {},

  methods: {}
}
</script>

<style>

</style>
