<template>
  <u-fragment>
    <div class="uif-form-patch" v-for="(i, idx) in new Array(Number(list))" :style="patchStyles" :key="idx"></div>
    <div :class="`uif-form-patch-${type}`"></div>
  </u-fragment>
</template>

<script>
import UFragment from './fragment'
import {oneOf} from '@uif/hq/lib/utils/assist'
export default {
  components: {
    UFragment
  },
  props: {
    type: {
      validator (value) {
        return oneOf(value, ['break', 'line'])
      },
      type: String
    },
    // 最大列数
    list: {
      type: [Number, String],
      default: 4
    },
    patchStyles: {
      type: Object,
      default: null
    }
  },
  computed: {
  }
}
</script>
