element-plus [Component] [tree] 可拖拽树的节点定位有问题

myzjeezk  于 4个月前  发布在  其他
关注(0)|答案(3)|浏览(64)

Bug Type: Component

Environment

  • Vue Version: 3.3.4
  • Element Plus Version: 2.3.8
  • Browser / OS: Chrome114.0.5735.198/MacOS13.3.1
  • Build Tool: Vite

Reproduction

  • el-tree

Docs

Steps to reproduce

3-2-1向上拖动, 在3-1和3-1-1之间有两个放置位置, 靠上的位置会将节点放到与3-1, 3-2同级而不是与3-1-1同级

What is Expected?

3-2-1成为3-1的子节点, 在3-1-1上方

What is actually happening?

3-2-1与3-1/3-2同级

Additional comments

z3yyvxxp

z3yyvxxp1#

I think it's reasonable to drop 3-2-1 to the closer node.

llmtgqce

llmtgqce2#

while it's not reasonable to drop 3-2-1 under 3-1-1 when i drag it close to 3-1, it seems you drop it closer to 3-2 rather than 3-1
QQ20230727-091310-HD.mp4

laximzn5

laximzn53#

while it's not reasonable to drop 3-2-1 under 3-1-1 when i drag it close to 3-1, it seems you drop it closer to 3-2 rather than 3-1

Okay, I've got your point. It does look counterintuitive.

相关问题