Skip to content

虚拟滚动树例子中,treeRef.value为null #1463

Answered by kagol
sasadaisy asked this question in Q&A
Discussion options

You must be logged in to vote

@sasadaisy 我尝试在 Playground 中打印了 treeRef,确实有有值的哦,你可以尝试在 nextTick 或者 onMounted 事件中打印。

  nextTick(() => {
    console.log('treeRef:', treeRef);
  });

Tree 虚拟滚动例子,测试 treeRef 的值

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by kagol
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants