-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
建议取消树形控件isLeaf设置 #3561
Comments
Translation of this issue: It is recommended to cancel the tree control isLeaf settingsWhat problem does this feature solve?Whether the leaf node can be completely determined by the child or not, there is no need for the developer to display the designation. "Foliage nodes can't be placed in drag and drop mode" This property is recommended to be named "canDrop" instead of isLeaf, otherwise it is easy to confuse the concept. In many cases leaf nodes can be placed in drag and drop mode. What does the proposed API look like?isLeaf changed to canDrop, the default is true |
|
不能取消,因为无法控制异步加载的节点是否有下层 |
如以上同学所说,去掉这个 API 没法知道异步加载之后是否会有子节点。 |
解决了么就close |
What problem does this feature solve?
是否是叶子节点完全可以通过判断是否由children来做到,没必要让开发者显示指定。“叶子节点不可被拖拽模式放置”这个属性建议命名为"canDrop",而不是使用isLeaf,否则容易混淆概念。很多情况下叶子节点是可以被拖拽模式放置的。
What does the proposed API look like?
isLeaf改为canDrop,默认为true
The text was updated successfully, but these errors were encountered: