<template>
  <el-form ref="form" :rules="rules" :model="form" :label-width="$attrs.labelWidth || '120px'" :disabled="$attrs.disabled" >
    <el-row :gutter="20" type="flex" class="wrap">
      <el-col :span="item.span || 24" v-for="item in config" :key="item.label">
        <hoc :item="item" :formData="form" :detail='true'></hoc>
      </el-col>
    </el-row>
  </el-form>
</template>

<script>
import { hoc } from "../Base/BaseItemHoc";

export default {
  name:'mgDetail',
  components: {
    hoc: hoc()
  },
  props: {
    rules: {
      type: Object
    },
    config: {
      type: Array,
      required: true
    },
    form: {
      type: Object,
      default: function () {
        return {};
      }
    }
  },
  data() {
    return {};
  },
  created() { },
  mounted() { },
  methods: {
  
  }
};
</script>

<style lang="less" scoped>
.wrap {
  flex-wrap: wrap;
  justify-content: space-between;
}
</style>
