UNPKG

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