vue-tree icon indicating copy to clipboard operation
vue-tree copied to clipboard

getNodes获取的节点的parent属性有问题,无法获取父节点

Open guohui1992 opened this issue 4 years ago • 4 comments

guohui1992 avatar Apr 09 '20 01:04 guohui1992

[Exception: TypeError: 'caller', 'callee', and 'arguments' properties may not be accessed on strict mode functions or the arguments objects for calls to them at Function.invokeGetter (:1:142)

guohui1992 avatar Apr 16 '20 06:04 guohui1992

加一个参数 true,会包含父节点。 getNodes(true)

halower avatar Apr 16 '20 09:04 halower

加一个参数 true,会包含父节点。 getNodes(true) 不好意思,不太明白这种用法,我本意是想通过勾选子节点,获取该子节点的父节点信息。按照您的这种操作,获取的是整个树的节点数据

guohui1992 avatar May 26 '20 06:05 guohui1992

加一个参数 true,会包含父节点。 getNodes(true)

我明白了,多谢

guohui1992 avatar May 26 '20 07:05 guohui1992