// ----- Description -----

const descriptionsProps = {
  column: {
    type: Number,
    default: 3
  },
  contentStyle: [Object, String],
  labelAlign: {
    type: String,
    default: 'left',
    validator(value) {
      return ['left', 'right', 'center'].includes(value);
    }
  },
  labelPlacement: {
    type: String,
    default: 'left',
    validator(value) {
      return ['left', 'top'].includes(value);
    }
  },
  labelStyle: [Object, String],
  separator: {
    type: String,
    default: ':'
  },
  title: String,
  bordered: Boolean,
  size: {
    type: String,
    default: 'small',
    validator(value) {
      return ['small', 'middle', 'large'].includes(value);
    }
  }
};
// ----- Description Item -----

const descriptionsItemProps = {
  contentStyle: [Object, String],
  label: String,
  labelStyle: [Object, String],
  span: {
    type: Number
  }
};

export { descriptionsItemProps, descriptionsProps };
