1 | import React from 'react';
|
2 | import PubSub from 'pubsub-js';
|
3 |
|
4 | import { Layout } from 'antd';
|
5 | const {Content} = Layout;
|
6 | import Render from './render';
|
7 |
|
8 | export 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);
|
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 |