Browse Source

Merge branch 'master' of github.com:ant-design/ant-design

pull/5153/head
afc163 8 years ago
parent
commit
27f3269623
  1. 8
      components/tree/demo/draggable.md

8
components/tree/demo/draggable.md

@ -106,6 +106,7 @@ class Demo extends React.Component {
}); });
return ( return (
<Tree <Tree
className="draggable-tree"
defaultExpandedKeys={this.state.expandedKeys} defaultExpandedKeys={this.state.expandedKeys}
draggable draggable
onDragEnter={this.onDragEnter} onDragEnter={this.onDragEnter}
@ -119,3 +120,10 @@ class Demo extends React.Component {
ReactDOM.render(<Demo />, mountNode); 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);
}
````

Loading…
Cancel
Save