From 0981ef06a4946a2633f4d13c855d298b54cfa541 Mon Sep 17 00:00:00 2001 From: afc163 Date: Wed, 27 Jun 2018 16:14:47 +0800 Subject: [PATCH] fix demo lint --- components/modal/demo/button-props.md | 4 ++++ components/tree/demo/directory.md | 2 ++ components/upload/demo/directory.md | 4 ++-- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/components/modal/demo/button-props.md b/components/modal/demo/button-props.md index 1a2f941a99..9fdd905ec4 100644 --- a/components/modal/demo/button-props.md +++ b/components/modal/demo/button-props.md @@ -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 (
diff --git a/components/tree/demo/directory.md b/components/tree/demo/directory.md index 33852edba2..fa41f4a947 100644 --- a/components/tree/demo/directory.md +++ b/components/tree/demo/directory.md @@ -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'); }; diff --git a/components/upload/demo/directory.md b/components/upload/demo/directory.md index ddf94778b4..5c844cd2dc 100644 --- a/components/upload/demo/directory.md +++ b/components/upload/demo/directory.md @@ -21,6 +21,6 @@ ReactDOM.render( - -, mountNode); + , + mountNode); ````