-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
Every item has an uuid, like
[{ id: 1 }, { id: 2 }, { id: 3 } ]
if move item idx.3 to idx.2 ,then looks like:
[{ id: 1 }, { id: 3 }, { id: 2 } ]
diff should produce
[ [ 1, { p: 0 } ], [ 2, { d: 0 } ] ]
and:
{
a: [{ id: 1 }, { id: 2 }, { id: 3 }],
b: [{ id: 4 }]
}
move a.idx2 to b, just like:
{
a: [{ id: 1 }, { id: 3 }],
b: [{ id: 2 }, { id: 4 }]
}
diff should produce
[ [ 'a', 1, { p: 0 } ], [ 'b', 0, { d: 0 } ] ]
kbadk
Metadata
Metadata
Assignees
Labels
No labels