SiteModa.jsx 340 Bytes
Newer Older
Maofei94's avatar
Maofei94 committed
1 2
import React from 'react';
import { Modal } from 'antd';
3

Maofei94's avatar
Maofei94 committed
4
const SiteModal = props => {
5
  const defaultCofig = {
Maofei94's avatar
Maofei94 committed
6 7 8 9
    title: '提示',
    visible: false,
  };
  const config = { ...defaultCofig, ...props };
10
  return (
Maofei94's avatar
Maofei94 committed
11
    <Modal style={{ width: '1000px' }} {...config}>
12 13
      {props.children}
    </Modal>
Maofei94's avatar
Maofei94 committed
14 15
  );
};
16

Maofei94's avatar
Maofei94 committed
17
export default SiteModal;