import React from 'react'; import { Modal } from 'antd'; const SiteModal = props => { const defaultCofig = { title: '提示', visible: false, }; const config = { ...defaultCofig, ...props }; return ( <Modal style={{ width: '1000px' }} {...config}> {props.children} </Modal> ); }; export default SiteModal;