<template>
  <div class="simple-table-wrapper">
    <el-table :data="data"
              @row-dblclick="rowDblClick"
              @row-click="rowClick"
              @sort-change="sortChange"
              stripe
              border
              fit
              highlight-current-row
              :default-sort="defaultSort"
              size="mini">
      <slot></slot>
    </el-table>
    <pagination
      :size-change="handleSizeChange"
      :pageData="search"
      :current-change="handleCurrentChange">
    </pagination>
  </div>
</template>

<script>
  import Pagination from './Pagination'
  import tableMixin from '../../mixins/tableMixin'

  /**
   * 普通查询表格
   */
  export default {
    name: 'SimpleTable',
    components: {Pagination},
    mixins: [tableMixin],
    props: {
      data: {}
    },
    created () {

    },
    methods: {
    }
  }
</script>

<style rel="stylesheet/scss" lang="scss" scoped>
  .simple-table-wrapper {
    /*padding: 10px 20px 30px;*/
    /*background: #ffffff;*/
  }
</style>
