/**
 * ldesign v0.2.14
 * (c) 2022/11/2 16:16 built by swimly
 * @license MIT
 */

const FormProps = {
  colon: Boolean,
  data: {
    type: Object,
    default: () => ({})
  },
  disabled: {
    type: Boolean,
    default: void 0
  },
  errorMessage: {
    type: Object
  },
  formControlledComponents: {
    type: Array
  },
  labelAlign: {
    type: String,
    default: "right",
    validator(val) {
      if (!val) return true;
      return ["left", "right", "top"].includes(val);
    }
  },
  labelWidth: {
    type: [String, Number],
    default: "100px"
  },
  layout: {
    type: String,
    default: "vertical",
    validator(val) {
      if (!val) return true;
      return ["vertical", "inline"].includes(val);
    }
  },
  preventSubmitDefault: {
    type: Boolean,
    default: true
  },
  requiredMark: {
    type: Boolean,
    default: void 0
  },
  resetType: {
    type: String,
    default: "empty",
    validator(val) {
      if (!val) return true;
      return ["empty", "initial"].includes(val);
    }
  },
  rules: {
    type: Object
  },
  scrollToFirstError: {
    type: String,
    default: "",
    validator(val) {
      if (!val) return true;
      return ["", "smooth", "auto"].includes(val);
    }
  },
  showErrorMessage: {
    type: Boolean,
    default: true
  },
  statusIcon: {
    type: [Boolean, Function],
    default: void 0
  },
  submitWithWarningMessage: Boolean,
  onReset: Function,
  onSubmit: Function,
  onValidate: Function
};
const FormItemProps = {
  for: {
    type: String,
    default: ""
  },
  help: {
    type: [String, Function]
  },
  label: {
    type: [String, Function],
    default: ""
  },
  labelAlign: {
    type: String,
    validator(val) {
      if (!val) return true;
      return ["left", "right", "top"].includes(val);
    }
  },
  labelWidth: {
    type: [String, Number]
  },
  name: {
    type: [String, Number]
  },
  requiredMark: {
    type: Boolean,
    default: void 0
  },
  rules: {
    type: Array,
    default: () => []
  },
  showErrorMessage: {
    type: Boolean,
    default: void 0
  },
  statusIcon: {
    type: [Boolean, Function],
    default: void 0
  },
  successBorder: Boolean
};
var props = {
  FormProps,
  FormItemProps
};

export { FormItemProps, FormProps, props as default };
//# sourceMappingURL=props.js.map
