import { _ as _extends } from '../_rollupPluginBabelHelpers-736b301a.js';
import React__default from 'react';
import { Form, Button } from 'antd';

function FormContent(props) {
  const {
    onOk,
    className = '',
    noticeExtView,
    form,
    okText = '确认',
    cancelText = '取消',
    refs,
    onCancel,
    children,
    disabled = false,
    footerType = 1,
    wrapStyle,
    ...params
  } = props;
  return /*#__PURE__*/React__default.createElement(Form, _extends({}, params, {
    form: form,
    ref: refs,
    className: `lm-c-drawer-with-footer-content ${className}`
  }), /*#__PURE__*/React__default.createElement("div", {
    style: wrapStyle,
    className: "content-part"
  }, children), /*#__PURE__*/React__default.createElement("div", {
    className: "footer-part"
  }, /*#__PURE__*/React__default.createElement("div", {
    className: "notice-ext-view"
  }, noticeExtView), /*#__PURE__*/React__default.createElement("div", {
    className: "footer-action"
  }, footerType === 1 && /*#__PURE__*/React__default.createElement(Button, {
    style: {
      marginRight: 10
    },
    onClick: onCancel
  }, cancelText), /*#__PURE__*/React__default.createElement(Button, {
    disabled: disabled,
    onClick: onOk,
    type: "primary"
  }, okText))));
}

export { FormContent as default };
//# sourceMappingURL=index.js.map
