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

ElementTree 树形控件 | 有一个晗 #10

Closed
Xiaohantx opened this issue May 23, 2019 · 0 comments
Closed

ElementTree 树形控件 | 有一个晗 #10

Xiaohantx opened this issue May 23, 2019 · 0 comments

Comments

@Xiaohantx
Copy link
Owner

https://www.markone.xyz/2019/05/23/code/element-ui-tree.html#more

前言 遇见一个需求,我需要在tree控件里随意选中内容,并且最后发送给后端一个字符串,字符串格式要求,父级后面跟:,子级后面跟,,其实我刚开始想了很多方法,甚至比如递归循环之类的,但后面发现其实把问题复杂化了 思路首先你在选中或者取消选中的时候并不需要每次转换格式,因为这样做效率是很低的,我是在想每次选中通过组件自带的方法this.$refs.tree.getCheckedNodes(false,

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

No branches or pull requests

1 participant