<template>
  <el-table-column :label="label" :prop="prop" :min-width="minWidth" :align="align">
    <template slot-scope="scope" >
      <el-input v-model="scope.row[prop]" :maxlength="40" @change="$emit('change',scope.row)" :disabled="disabled" :class="customHeight"/>
    </template>
  </el-table-column>
</template>

<script>
export default {
  name: "InputColumn",
  props: {
    label: {
      type: String,
      default: "",
    },
    prop: {
      type: String,
    },
    minWidth: {
      type: Number,
      default: 150,
    },
    disabled:{
      type:Boolean,
      default:false,
    },
    align:{
      type:String,
      default:'left',
    },
    customHeight:{
      type:String,
      default:'',
    }
  },
 
};
</script>


