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

ElementUI el-tree 加入搜索在清除筛选项时会默认展开全部子节点 #168

Open
smileyby opened this issue Oct 25, 2021 · 0 comments
Labels
Element-UI 🍄 饿了么UI组件库

Comments

@smileyby
Copy link
Owner

smileyby commented Oct 25, 2021

解决:
采用循环全部子节点将 expanded 属性置为false
代码如下:
this.$refs.tree.$children[i].node.parent.childNodes[i].expanded = false

@smileyby smileyby added the Element-UI 🍄 饿了么UI组件库 label Oct 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Element-UI 🍄 饿了么UI组件库
Projects
None yet
Development

No branches or pull requests

1 participant