import { uuid } from "../_utils/utils";
export function getRowInitChildrenByColNumber(colNum) {
  var result = [];
  if (colNum === 13) {
    result = [{
      componentName: 'Col',
      props: {
        span: 6,
        componentKey: "cr_" + uuid(),
        componentName: "cr_" + uuid()
      }
    }, {
      componentName: 'Col',
      props: {
        span: 18,
        componentKey: "cr_" + uuid(),
        componentName: "cr_" + uuid()
      }
    }];
  } else {
    for (var i = 0; i < colNum; i++) {
      result.push({
        componentName: 'Col',
        props: {
          span: 24 / colNum,
          componentKey: "cr_" + uuid(),
          componentName: "cr_" + uuid()
        }
      });
    }
  }
  return result;
}