UNPKG

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