import React, { Component } from 'react'; import './index.less'; import { Modal, Icon } from 'antd'; import Button from '../Button'; export default class extends Component { render() { const { show, className, children, width, title, btnAlign = 'right', cancelText = '取消', confirmText = '确定', onCancel, onConfirm, onClose, close = true, maskClosable = false, body = true, center, } = this.props; return (
{close && onClose && onClose()} />}
{title}
{body ?
{children}
: children}
{onCancel && ( )} {onConfirm && ( )}
); } }