<template>
  <el-table-column :label="label" v-bind="$attrs">
    <template slot-scope="{row}">
      <el-input v-model="row[prop]" :placeholder="placeholder" clearable/>
    </template>
  </el-table-column>
</template>
<script>
export default {
  name: 'table-input-column',
  props: {
    label: {type: String, required: true},
    prop: {type: String, required: true},
    placeholder: {default: "请输入"}
  }
}
</script>
