We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c6e3a30 commit 506e409Copy full SHA for 506e409
src/index.ts
@@ -1,6 +1,6 @@
1
import { toReactive } from "@vueuse/core";
2
-import { v4 } from "uuid";
3
import { computed, isReactive, reactive } from "vue";
+
4
export default (
5
tree: Record<string, unknown>[],
6
{
@@ -85,7 +85,7 @@ export default (
85
| undefined,
86
index = the[keyIndex] as number,
87
siblings = the[keySiblings] as Record<string, unknown>[];
88
- const id = v4();
+ const id = Date.now().toString(36);
89
switch (true) {
90
case !!the[keyParent]:
91
siblings.splice(index + 1, 0, { [keyId]: id });
0 commit comments