Comments (4)
有个双击事件,看源码发现的,文档没有
<Tree
showLine
showIcon
defaultExpandAll={true}
onExpand={this.onExpand.bind(this)}
expandedKeys={expandedKeys}
autoExpandParent={autoExpandParent}
onRightClick={this.onRightClick}
onSelect={this.handle.bind(this)}
onDoubleClick={this.dbClickToOpen.bind(this)}
>
{TreeNodes}
</Tree>
from tree.
可以自己绑定事件、再设置相应 expandedKeys 即可
from tree.
ok. thx!
from tree.
@macisi 请问后面你实现这个双击展开的功能了么
from tree.
Related Issues (20)
- Deprecation of `children` and more complex Trees HOT 1
- Empty directory shows up as a file HOT 3
- Is it support dropping a file into browser HOT 1
- Getting TS Error 2604 with package.json type="module"
- Is there a parameter to control the scroll bar of y-axis always display or not for rc-tree? HOT 2
- Tooltip is the same as Label
- Namespace 'React' has no exported member 'JSX' HOT 1
- Invalid generics for onClick and switcherIcon events
- Can db records be passed to the tree?
- Can db records be passed to the tree?
- Can db records be passed to the tree?
- Why can't see getChildren() and getParent() in tree props?
- Type 'DateType' does not satisfy the constraint
- multiple node selection via shift key to drag-and-drop?
- Seeing type issue with latest upgrade for estree types HOT 2
- 将 node 拖拽到一个展开节点的下方时,drop indicator 很难出现
- Keyboard navigation issue
- Multiple react re-renderings when updating tree data
- v5.8.3 contains /rc-tree/dist/~demos/:id/ causing failure on Windows as : (colon) is not supported on Windows:
- Virtual tree Auto scroll to top when moving node to top
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tree.