<template>
  <el-table-column :label="label" :prop="prop" :min-width="minWidth">
      <template slot-scope="scope">
            <el-input-number v-model="scope.row[prop]" :min="min" :max="max" :precision="precision" :controls="false"/>
      </template>
  </el-table-column>
</template>

<script>
export default {
    name: 'InputNumberColumn',
    props: {
        label: {
            type: String,
            default: ''
        },
        prop: {
            type: String
        },
        minWidth: {
            type: Number,
            default: 150
        },
        min: {
            type: Number,
            default: 0
        },
        max: {
            type: Number,
            default: 99999999
        },
        precision: {
            type: Number,
            default: 0
        }
    }
}
</script>