What is the problem of check-box radio selection for iview components?

When the

project uses tree to display information, sometimes the user needs to select only one value, that is, radio selection.

clipboard.png

the ui framework of iview is used in the project. If I only have to select a single node, checkbox can only choose one end node. How can I implement it?

I have thought about using a recursive method. It is feasible to disable all other checkbox, every time I click one checkbox, which is feasible if the amount of data is small, but my method is inefficient because of the large amount of data.

Is there any other way to harm

? Friends.


doesn't he have an attribute: whether multiple, supports multiple selections?


Hello, how to solve this problem
I have encountered this problem now


written by myself
https://blog.csdn.net/u011384.

see for yourself!

Menu