<template>
  <el-table :size="tableSize" v-bind="_props">
    <slot></slot>
    <slot name="append"></slot>
  </el-table>
</template>

<script>
import tableProps from './props';

export default {
  name: 'TableNormal',
  inject: {
    elForm: {
      default: '',
    },
    elFormItem: {
      default: '',
    },
  },
  props: {
    ...tableProps,
  },
  computed: {
    _elFormItemSize() {
      return (this.elFormItem || {}).elFormItemSize;
    },
    tableSize() {
      return this.size || this._elFormItemSize || (this.elForm || {}).size || (this.$ELEMENT || {}).size;
    },
  },
  mounted() {
    // console.log(this);
  },
};
</script>
