import React from "react" import { Modal } from "antd" import * as cs from "./constants" import { Spin } from "antd" class ModalPreview extends React.PureComponent { makeForm(body) { let form = document.createElement("form") form.method = cs.MethodPost form.action = this.props.previewURL form.target = "preview-iframe" let input = document.createElement("input") input.type = "hidden" input.name = "body" input.value = body form.appendChild(input) document.body.appendChild(form) form.submit() } render () { return (
) } } export default ModalPreview