current position:Home>Now to realize a function, use the El tree component of element UI, select the relevant node, and then copy a new tree with only relevant parent-child nodes below.

Now to realize a function, use the El tree component of element UI, select the relevant node, and then copy a new tree with only relevant parent-child nodes below.

2022-02-03 00:09:57 CSDN Q & A

Now I want to realize a function , Use element ui Of el-tree Components , Select the relevant node , At the bottom, copy a new tree with only related parent and child nodes .

Have you achieved this





Refer to the answer 1:

Tolerable ,
When a node is selected , Get the data of the current node , Just plug it back under the current node




Refer to the answer 2:



Refer to the answer 3:

It's just data Handle only . You put your choice value . The data of To filter out . Put together a A tree structure . then Assign to the tree below




Refer to the answer 4:

copyright notice
author[CSDN Q & A],Please bring the original link to reprint, thank you.
https://en.primo.wiki/2022/02/202202030009546163.html

Random recommended