import React from 'react'; import { Spin, Button, Tabs, Table, message, Modal, Tooltip } from 'antd'; import '../content.less'; // import './content.less'; const TabPane = Tabs.TabPane; const Content = React.createClass({ getInitialState() { return { loading: false, component: '
' }; }, componentWillMount() { let Module = require('./contacts/index').default; require.ensure([], () => { this.setState({ component: , }); }); }, render() { return (
{this.state.component}
) } }); export default Content;