geekhybrid / vue3-tree-vue

MIT License
63 stars 22 forks source link

Reordering items within the same Folder? #33

Open JamesFreeman opened 4 days ago

JamesFreeman commented 4 days ago
Screenshot 2024-11-11 at 13 47 26

When I'm trying to move Foo2 above Foo, it moves it into the Foo folder. Is there some way I can reorganise nodes within the same folder?

geekhybrid commented 4 days ago

Interesting use case,

There is no current way to do so with drag and drag.

I could look into creating an invisible drop zone above and beneath each node to support ordering.

happy to review a PR if you have one.

JamesFreeman commented 4 days ago

That would be a really good solution - I am a little surprised this hasn't come up in the past. I'd love to drop a PR, but I'm not proficient with TS.