var __assign = (this && this.__assign) || function () {
    __assign = Object.assign || function(t) {
        for (var s, i = 1, n = arguments.length; i < n; i++) {
            s = arguments[i];
            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
                t[p] = s[p];
        }
        return t;
    };
    return __assign.apply(this, arguments);
};
import React, { forwardRef } from 'react';
import { Form as FusionForm } from '@alifd/next';
import hoist from '../../utils/hoist';
import { hocCnChar } from '../../hoc';
// 之前很奇怪的杀了一个不存在的 prop labelWidth
function NextForm(props, ref) {
    return (React.createElement(FusionForm, __assign({}, __assign(__assign({ labelTextAlign: 'left' }, props), { ref: ref }))));
}
var Form = hoist(forwardRef(NextForm), FusionForm); // 原有
Form.Submit = hocCnChar(Form.Submit); // 覆盖
Form.Reset = hocCnChar(Form.Reset); // 覆盖
export default Form;
export var FormSubmit = Form.Submit;
export var FormReset = Form.Reset;
export var FormItem = Form.Item;
export var FormError = Form.Error;
