FormModal.jsx 603 Bytes
Newer Older
钟是志's avatar
钟是志 committed
1 2 3
import React, { } from 'react';
import { getModal } from '@/webPublic/one_stop_public/utils/utils';
const Modal = getModal();
chscls@163.com's avatar
chscls@163.com committed
4 5

export default class FormModal extends React.Component {
6 7 8
	render() {
		return (
			<Modal
9 10 11 12 13
        bodyStyle={{
          maxHeight: '80vh',
          overflowY: 'auto',
        }}
        {...this.props}
14 15 16 17 18 19 20 21 22 23 24 25 26
				destroyOnClose
				title={this.props.title}
				maskClosable={false}
				width={this.props.width}
				height={this.props.height}
				visible={this.props.visible}
				footer={null}
				onCancel={this.props.handleCancel}>
				{this.props.children}
			</Modal>
		);
	}
}