/* preview-render 对话框 Modal */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import { Modal,Button } from "antd";
export default function previewRender(dom) {
  return ReactDOM.render(
              <Button type="primary" onClick={() => {
              Modal.confirm({
    title: 'Confirm',
    content: 'Bla bla ...',
    okText: '确认',
    cancelText: '取消',
  });
              }}>
        Open Modal
      </Button>
              , dom);
};