"use strict";

var _ = _interopRequireDefault(require(".."));

var _grid = _interopRequireDefault(require("../../grid"));

var _input = _interopRequireDefault(require("../../input"));

var _react = _interopRequireDefault(require("react"));

var _reactDom = _interopRequireDefault(require("react-dom"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

var FormItem = _["default"].Item;
var Row = _grid["default"].Row,
    Col = _grid["default"].Col;
var formItemLayout = {
  labelCol: {
    span: 4
  },
  wrapperCol: {
    span: 14
  }
};
var insetLayout = {
  labelCol: {
    fixedSpan: 3
  }
};

_reactDom["default"].render( /*#__PURE__*/_react["default"].createElement(_["default"], formItemLayout, /*#__PURE__*/_react["default"].createElement(FormItem, {
  id: "control-input",
  label: "Input Something\uFF1A"
}, /*#__PURE__*/_react["default"].createElement(Row, {
  gutter: "4"
}, /*#__PURE__*/_react["default"].createElement(Col, null, /*#__PURE__*/_react["default"].createElement(FormItem, _extends({
  style: {
    margin: 0
  },
  label: "Nest",
  labelAlign: "inset"
}, insetLayout, {
  required: true,
  requiredTrigger: "onBlur",
  asterisk: false
}), /*#__PURE__*/_react["default"].createElement(_input["default"], {
  placeholder: "Please enter...",
  name: "firstname"
}))), /*#__PURE__*/_react["default"].createElement(Col, null, /*#__PURE__*/_react["default"].createElement(FormItem, _extends({
  style: {
    margin: 0
  },
  label: "Nest",
  labelAlign: "inset"
}, insetLayout, {
  required: true,
  asterisk: false
}), /*#__PURE__*/_react["default"].createElement(_input["default"], {
  placeholder: "need onChange",
  name: "secondname"
}))))), /*#__PURE__*/_react["default"].createElement(FormItem, {
  label: "Bank Account\uFF1A"
}, /*#__PURE__*/_react["default"].createElement(Row, {
  gutter: "4"
}, /*#__PURE__*/_react["default"].createElement(Col, null, /*#__PURE__*/_react["default"].createElement(FormItem, {
  required: true,
  requiredTrigger: "onBlur"
}, /*#__PURE__*/_react["default"].createElement(_input["default"], {
  name: "A"
}))), /*#__PURE__*/_react["default"].createElement(Col, null, /*#__PURE__*/_react["default"].createElement(FormItem, {
  required: true,
  requiredTrigger: "onBlur"
}, /*#__PURE__*/_react["default"].createElement(_input["default"], {
  name: "B"
}))), /*#__PURE__*/_react["default"].createElement(Col, null, /*#__PURE__*/_react["default"].createElement(FormItem, {
  required: true,
  requiredTrigger: "onBlur"
}, /*#__PURE__*/_react["default"].createElement(_input["default"], {
  name: "C"
}))), /*#__PURE__*/_react["default"].createElement(Col, null, /*#__PURE__*/_react["default"].createElement(FormItem, {
  required: true,
  requiredTrigger: "onBlur"
}, /*#__PURE__*/_react["default"].createElement(_input["default"], {
  name: "D"
}))))), /*#__PURE__*/_react["default"].createElement(FormItem, {
  label: " "
}, /*#__PURE__*/_react["default"].createElement(_["default"].Submit, {
  validate: true,
  onClick: function onClick(v) {
    return console.log(v);
  }
}, "Submit"))), document.getElementById('form-demo-5'));