import React from 'react';
import Form from '../form';
import Group from './components/Group';
import BaseForm from '../wau-base-form';
import { Fragment as _Fragment } from "react/jsx-runtime";
import { jsxs as _jsxs } from "react/jsx-runtime";
import { jsx as _jsx } from "react/jsx-runtime";
function ProForm(props) {
  return /*#__PURE__*/_jsx(BaseForm, {
    layout: "vertical",
    submitter: {
      // 反转按钮，在正常模式下，按钮应该是主按钮在前
      render: (_, dom) => dom.reverse()
    },
    contentRender: (items, submitter) => {
      return /*#__PURE__*/_jsxs(_Fragment, {
        children: [items, submitter]
      });
    },
    ...props
  });
}
ProForm.Group = Group;
ProForm.useForm = Form.useForm;
ProForm.Item = Form.Item;
export default ProForm;