/* preview-render 菜单 Form */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import { Form,Input } from "antd";
export default function previewRender(dom) {
  return ReactDOM.render(<Form name="basic" labelCol={{ span: 8 }} wrapperCol={{ span: 16 }} >
                <Form.Item
        label="用户名"
        name="username"
        rules={[{ required: true, message: 'Please input your username!' }]}
      >
        <Input />
      </Form.Item>
      <Form.Item
        label="密码"
        name="password"
        rules={[{ required: true, message: 'Please input your password!' }]}
      >
        <Input />
      </Form.Item>
              </Form>, dom);
};