fix: replace with 0

This commit is contained in:
wenxingluo 2024-06-11 22:33:59 +08:00
parent b9bb77e027
commit b74eb017af

View File

@ -175,7 +175,7 @@ export abstract class Node<Config extends NodeConfig = NodeConfig> {
if (this.parent) {
return this.parent.children.indexOf(this);
}
return -1;
return 0;
}
set index(_val: number) {