"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _react = _interopRequireDefault(require("react"));
var _form = _interopRequireDefault(require("../form"));
var _Group = _interopRequireDefault(require("./components/Group"));
var _wauBaseForm = _interopRequireDefault(require("../wau-base-form"));
var _jsxRuntime = require("react/jsx-runtime");
function ProForm(props) {
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_wauBaseForm.default, {
    layout: "vertical",
    submitter: {
      // 反转按钮，在正常模式下，按钮应该是主按钮在前
      render: (_, dom) => dom.reverse()
    },
    contentRender: (items, submitter) => {
      return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
        children: [items, submitter]
      });
    },
    ...props
  });
}
ProForm.Group = _Group.default;
ProForm.useForm = _form.default.useForm;
ProForm.Item = _form.default.Item;
var _default = ProForm;
exports.default = _default;