Skip to content

Conversation

@lianghx-319
Copy link
Member

每次折叠或者展开时更新 el-tree 的 defaultExpandedKeys
会导致 el-tree 多次去执行初始化才会执行的展开操作
实际使用的时候,并不需要外部干预 el-tree 节点展开状态

why & how & test

Closes #33

@netlify
Copy link

netlify bot commented Jun 28, 2019

Deploy preview for el-data-tree ready!

Built with commit 52a34c7

https://deploy-preview-34--el-data-tree.netlify.com

@lianghx-319
Copy link
Member Author

before

  • 只要子节点展开,父节点就收不起来

201903135

after

201903136

row: {},
expandedKeys: []
row: {}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

prettierrc的trailingComma应该为"all",受不了😖

@lianghx-319 lianghx-319 force-pushed the fix#33 branch 4 times, most recently from 0429a0b to c201a42 Compare June 28, 2019 10:42
每次折叠或者展开时更新 el-tree 的 defaultExpandedKeys
会导致 el-tree 多次去执行初始化才会执行的展开操作
实际使用的时候,并不需要外部干预 el-tree 节点展开状态

Closes FEMessage#33
@levy9527 levy9527 added the bug Something isn't working label Jul 1, 2019
@levy9527 levy9527 changed the title fix(#33): 二次封装干预了el-tree内部的状态管理 fix(defaultExpandedKeys): 子节点展开后,父节点不能缩回 Jul 1, 2019
@levy9527 levy9527 merged commit 2c7785e into FEMessage:dev Jul 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

懒加载后,如果没有子节点,父节点收不回去

3 participants