import Drawer from '..'; import React from 'react'; import ReactDOM from 'react-dom'; import { Button } from '../..'; class Demo extends React.Component { state = { visible: false, }; onOpen = () => { this.setState({ visible: true, }); }; onClose = (reason, e) => { console.log('onClose: ', reason, e); this.setState({ visible: false, }); }; render() { return (
{ console.log('okokk'); }} onCancel={() => { console.log('notnotnot'); }} okProps = "确认提交吗" cancelProps = "取消返回吗" footerAlign = "right" footerActions = {[ 'ok', 'cancel' ]} visible={this.state.visible} onClose={this.onClose}> Start your business here by searching a popular product

很长的内容

很长的内容

很长的内容

很长的内容

很长的内容

很长的内容

很长的内容

很长的内容

很长的内容

很长的内容

很长的内容

很长的内容

很长的内容

很长的内容

很长的内容

很长的内容

很长的内容

很长的内容

很长的内容

很长的内容

很长的内容

很长的内容

很长的内容

很长的内容

很长的内容

很长的内容

很长的内容

很长的内容

111

); } } ReactDOM.render(, document.getElementById('drawer-demo-1'));