<template>
  <el-col :span="span">
    <el-form-item :label="label" :prop="prop" :label-width="labelWidth">
      <slot></slot>
    </el-form-item>
  </el-col>
</template>

<script>
export default {
  name: 'FormCol',
  props: {
    span: {
      type: Number,
      default: 24
    },
    label: {
      type: String,
      default: null
    },
    prop: {
      type: String,
      default: null
    },
    labelWidth: {
      type: String,
      default: null
    }
  }
}
</script>
