1 | import React from 'react';
|
2 | import styles from './App.css';
|
3 |
|
4 | import RM from 'react-dom';
|
5 |
|
6 | import Render from './render';
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 | import { Layout, Menu, Breadcrumb, Icon } from 'antd';
|
14 |
|
15 |
|
16 |
|
17 | class App extends React.Component {
|
18 | constructor(props) {
|
19 | super(props);
|
20 | }
|
21 |
|
22 | componentDidMount() {
|
23 | }
|
24 |
|
25 | handleClicked(page) {
|
26 | this.refs.render.setPage(page);
|
27 | }
|
28 |
|
29 | render() {
|
30 | return (
|
31 | <div className={styles.app}>
|
32 | <Render ref='render'/>
|
33 | <button onClick={this.handleClicked.bind(this, 'A')}>测试A</button>
|
34 | <button onClick={this.handleClicked.bind(this, 'B')}>测试B</button>
|
35 |
|
36 | </div>
|
37 | )
|
38 | }
|
39 | }
|
40 |
|
41 | export default App; |
\ | No newline at end of file |