/* eslint react/no-multi-comp:0, no-console:0 */
import { createForm } from '../index'
import { regionStyle } from './styles'
import { Switch } from 'antd'
const TopForm = {
  props: {
    form: Object,
  },
  render () {
    const { getFieldProps } = this.form
    return (
)
  },
}
const BottomForm = {
  props: {
    form: Object,
    on: Boolean,
  },
  render () {
    const { form } = this
    const on = form.getFieldValue('on')
    const style = {
      ...regionStyle,
      display: on ? 'block' : 'none',
    }
    return ()
  },
}
const Form = {
  props: {
    form: Object,
  },
  methods: {
    onSubmit (e) {
      e.preventDefault()
      console.log(this.form.getFieldsValue())
    },
  },
  render () {
    const { form } = this
    return ()
  },
}
const NewForm = createForm()(Form)
export default {
  render () {
    return (
      
parallel form
      
    )
  },
}