<template>
  <div class="flex-item" :style="`width: ${width}`">
    <el-form-item :label="label" :prop="prop">
        <slot></slot>
    </el-form-item>
  </div>
</template>
<script>
export default {
  props: {
    label: String,
    width: String,
    prop: String,
  },
};
</script>
<style scoped>
.flex-item {
  width: 25%;
  display: flex;
}
.el-form-item {
  flex: 1;
}
</style>
