UNPKG

627 BJavaScriptView Raw
1import React from 'react';
2import PubSub from 'pubsub-js';
3
4import { Layout } from 'antd';
5const {Content} = Layout;
6import Render from './render';
7
8export default class ContentView extends React.Component {
9
10 token;
11
12 constructor(props) {
13 super(props);
14 }
15
16 render() {
17 console.log('================')
18 console.log(this.props.match);
19 const {match} = this.props;
20 return (
21 <Content style={{ background: '#fff', padding: 24, margin: 0, minHeight: 280 }}>
22 <Render ref='render' pageName={match.params.pageName}/>
23 </Content>
24 )
25 }
26}
\No newline at end of file