Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

el-tree增加虚拟滚动后,node-expand不触发,去掉虚拟(不传height)就正常触发 #86

Open
sinkxy opened this issue Apr 16, 2021 · 3 comments

Comments

@sinkxy
Copy link

sinkxy commented Apr 16, 2021

Describe the bug

A clear and concise description of what the bug is.

Screenshots

If applicable, add screenshots to help explain your problem.

To Reproduce

Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior

A clear and concise description of what you expected to happen.

environment information

  • Version [e.g. 22]
  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
@konnga
Copy link

konnga commented May 27, 2021

请问你解决这个问题了吗?

@ab690257072
Copy link

可能作者忘了实现这个功能:

/* tree-virtual-node.vue */
props: {
  // ...
  onNodeExpand: Function
},
/* mixin/node.js */
handleExpandIconClick() {
  // ...
  if (this.expanded) {
    // ...
  } else {
    // ...
    /* add this line. */
    this.onNodeExpand && this.onNodeExpand(node.data, node, this);
  }
},

@konnga
Copy link

konnga commented Jul 28, 2021

可能作者忘了实现这个功能:

/* tree-virtual-node.vue */
props: {
  // ...
  onNodeExpand: Function
},
/* mixin/node.js */
handleExpandIconClick() {
  // ...
  if (this.expanded) {
    // ...
  } else {
    // ...
    /* add this line. */
    this.onNodeExpand && this.onNodeExpand(node.data, node, this);
  }
},

害,我也加了这个代码,点击展开,依然没有出现子节点

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants