<template>
  <block :title="title" :on-resize="onResize">
    <template v-slot:main>
      <el-table
          :style="{width: '95%',maxHeight: '95%'  }"
          :data="tableData"
          style="width: 100%">
        <slot name="columns"></slot>
      </el-table>
    </template>
  </block>
</template>

<script>

import Block from '@/components/Block/block.vue';

export default {
  name: 'BlockTable',
  components: { Block },
  props: {
    title: {
      default: '标题',
      type: String,
    },
    onResize: {
      type: Function,
      default: () => {
        return () => {
        };
      },
    },
    tableData: {
      type: Array,
      default: [],
    },
  },
};
</script>
<style src="./index.scss" lang="scss" />
