Skip to content
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

官网Tree树形控件拖拽demo有一系列bug #2616

Closed
zjuasmn opened this issue Aug 4, 2016 · 5 comments
Closed

官网Tree树形控件拖拽demo有一系列bug #2616

zjuasmn opened this issue Aug 4, 2016 · 5 comments

Comments

@zjuasmn
Copy link

zjuasmn commented Aug 4, 2016

本地环境

  • antd 1.7.0:
  • Mac OS X:
  • Chrome 51

你做了什么?

使用官网的树形控件拖拽

  1. 将0-0-0-0 移出 0-0-0 至0-0下
  2. 将0-0-0-1 0-0-0-2 移出0-0-0
  3. 0-0往下移至0-2下方

你期待的结果是:

  1. 0-0-0-0移到在0-0下作为他的儿子
  2. 0-0-0 左边指示箭头消失
  3. 0-0在0-2下方成为最后一个节点
  4. 0-0在移动时不会提示插入到自己的子孙节点
  5. 移动完成后鼠标移开节点蓝色高亮消失

实际上的结果:

  1. 0-0-0-0移到了0-0上方
  2. 0-0-0左侧仍有箭头
  3. 0-0在0-2上方,成为倒数第二个元素
  4. 0-0在移动时会提示插入到自己的子孙节点
  5. 移动完成后鼠标移开不时会有部分节点仍然高亮

可重现的在线演示

http://ant.design/components/tree/

@zjuasmn zjuasmn changed the title Tree树形控件拖拽demo有一系列bug 官网Tree树形控件拖拽demo有一系列bug Aug 4, 2016
@warmhug
Copy link
Contributor

warmhug commented Aug 5, 2016

插入到自己的子孙节点,控制台有 warn 提示。箭头和部分节点高亮问题、我看下。其他问题我再测测

@zjuasmn
Copy link
Author

zjuasmn commented Aug 8, 2016

插入自己子孙节点主要的问题是当0-0收起来,作为一个整体往下拖动时,子孙节点直接就展开了,如何能让他们在拖动过程中不展开呢?

@warmhug
Copy link
Contributor

warmhug commented Aug 8, 2016

image

可以自己控制是否展开

@warmhug
Copy link
Contributor

warmhug commented Aug 10, 2016

ref #2660

@warmhug warmhug closed this as completed Aug 10, 2016
@benjycui benjycui mentioned this issue Sep 13, 2016
2 tasks
@lock
Copy link

lock bot commented May 4, 2018

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

@lock lock bot locked as resolved and limited conversation to collaborators May 4, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants