mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 22:36:31 +08:00
fix demo lint
This commit is contained in:
parent
56020cda39
commit
0981ef06a4
@ -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>
|
||||
|
@ -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');
|
||||
};
|
||||
|
@ -21,6 +21,6 @@ ReactDOM.render(
|
||||
<Button>
|
||||
<Icon type="upload" /> Upload Directory
|
||||
</Button>
|
||||
</Upload>
|
||||
, mountNode);
|
||||
</Upload>,
|
||||
mountNode);
|
||||
````
|
||||
|
Loading…
Reference in New Issue
Block a user