Skip to content

Commit

Permalink
Merge branch 'master' of github.com:ant-design/ant-design
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 committed Mar 2, 2017
2 parents 34cfe5f + 64cbb95 commit 27f3269
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions components/tree/demo/draggable.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ class Demo extends React.Component {
});
return (
<Tree
className="draggable-tree"
defaultExpandedKeys={this.state.expandedKeys}
draggable
onDragEnter={this.onDragEnter}
Expand All @@ -119,3 +120,10 @@ class Demo extends React.Component {

ReactDOM.render(<Demo />, mountNode);
````

````css
// You can add the following CSS to your project to make draggable area bigger
#components-tree-demo-draggable .draggable-tree .ant-tree-node-content-wrapper {
width: calc(100% - 18px);
}
````

0 comments on commit 27f3269

Please sign in to comment.