fix demo lint

This commit is contained in:
afc163 2018-06-27 16:14:47 +08:00
parent 56020cda39
commit 0981ef06a4
3 changed files with 8 additions and 2 deletions

View File

@ -18,23 +18,27 @@ import { Modal, Button } from 'antd';
class App extends React.Component {
state = { visible: false }
showModal = () => {
this.setState({
visible: true,
});
}
handleOk = (e) => {
console.log(e);
this.setState({
visible: false,
});
}
handleCancel = (e) => {
console.log(e);
this.setState({
visible: false,
});
}
render() {
return (
<div>

View File

@ -15,6 +15,7 @@ Built-in directory tree. `multiple` support `ctrl(Windows)` / `command(Mac)` sel
````jsx
import { Tree } from 'antd';
const DirectoryTree = Tree.DirectoryTree;
const TreeNode = Tree.TreeNode;
@ -22,6 +23,7 @@ class Demo extends React.Component {
onSelect = () => {
console.log('Trigger Select');
};
onExpand = () => {
console.log('Trigger Expand');
};

View File

@ -21,6 +21,6 @@ ReactDOM.render(
<Button>
<Icon type="upload" /> Upload Directory
</Button>
</Upload>
, mountNode);
</Upload>,
mountNode);
````