'use strict';

require('../../../utils/index.cjs');
var vueTypes = require('../../../utils/vue/vueTypes.cjs');
var propType = require('../../../utils/vue/propType.cjs');

function formProps() {
  return {
    layout: vueTypes.default.oneOf(propType.tuple("horizontal", "inline", "vertical")),
    labelCol: propType.objectType(),
    wrapperCol: propType.objectType(),
    colon: propType.booleanType(),
    labelAlign: propType.stringType(),
    labelWrap: propType.booleanType(),
    prefixCls: String,
    requiredMark: propType.someType([String, Boolean]),
    /** @deprecated Will warning in future branch. Pls use `requiredMark` instead. */
    hideRequiredMark: propType.booleanType(),
    model: vueTypes.default.object,
    rules: propType.objectType(),
    validateMessages: propType.objectType(),
    validateOnRuleChange: propType.booleanType(),
    // 提交失败自动滚动到第一个错误字段
    scrollToFirstError: propType.anyType(),
    onSubmit: propType.functionType(),
    name: String,
    validateTrigger: propType.someType([String, Array]),
    size: propType.stringType(),
    disabled: propType.booleanType(),
    onValuesChange: propType.functionType(),
    onFieldsChange: propType.functionType(),
    onFinish: propType.functionType(),
    onFinishFailed: propType.functionType(),
    onValidate: propType.functionType()
  };
}
function formItemProps() {
  return {
    htmlFor: String,
    prefixCls: String,
    label: vueTypes.default.any,
    help: vueTypes.default.any,
    extra: vueTypes.default.any,
    labelCol: { type: Object },
    wrapperCol: { type: Object },
    hasFeedback: { type: Boolean, default: false },
    colon: { type: Boolean, default: void 0 },
    labelAlign: String,
    prop: { type: [String, Number, Array] },
    name: { type: [String, Number, Array] },
    rules: [Array, Object],
    autoLink: { type: Boolean, default: true },
    required: { type: Boolean, default: void 0 },
    validateFirst: { type: Boolean, default: void 0 },
    validateStatus: vueTypes.default.oneOf(propType.tuple("", "success", "warning", "error", "validating")),
    validateTrigger: { type: [String, Array] },
    messageVariables: { type: Object },
    hidden: Boolean,
    noStyle: Boolean,
    tooltip: String
  };
}

exports.formItemProps = formItemProps;
exports.formProps = formProps;
//# sourceMappingURL=props.cjs.map
