<template>
  <el-form-item
    :label="label"
    :rules="requireRule(required, label)"
    :prop="prop"
  >
    <slot></slot>
  </el-form-item>
</template>

<script>
import mixin from "./mixin";
/**
 * 表单项
 */
export default {
  mixins: [mixin],
  props: {
    label: {
      type: String,
      default: "",
    },
  },
};
</script>
