<template>
  <el-table-column :label="label" :prop="prop" :min-width="minWidth">
      <template slot-scope="scope">
          <el-input v-model="scope.row[prop]" :maxlength="20"/>
      </template>
  </el-table-column>
</template>

<script>
export default {
    name: 'InputColumn',
    props: {
        label: {
            type: String,
            default: ''
        },
        prop: {
            type: String
        },
        minWidth: {
            type: Number,
            default: 150
        }
    }
}
</script>