mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-03-10 18:06:02 +00:00
add fn node.getIndex for alias node.index
This commit is contained in:
parent
38599fffa1
commit
83d6cd3b58
@ -419,6 +419,13 @@ export class Node<Schema extends NodeSchema = NodeSchema> {
|
|||||||
return this.parent.children.indexOf(this);
|
return this.parent.children.indexOf(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* alias index
|
||||||
|
*/
|
||||||
|
getIndex = () => {
|
||||||
|
return this.index;
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取下一个兄弟节点
|
* 获取下一个兄弟节点
|
||||||
*/
|
*/
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user