Development using element UI such component library is very convenient but there are some places do not understand how to go to a variety of Baidu, but did not understand, because want to make this effect is very anxious to see?

Be patient when you read my articles. Patience is how you learn

Okay, that’s the point

Code snippet


The toggleRowSelection () attribute is key. Note that the

TAB must have multiple selection enabled



Final effect



The data format is also the data format for the list rendering and the key point is the ifDevChk field, which tells you whether you are selected or not





The rest depends on your ability to handle the data format


Conclusion:

I’m going to do the data format like this and then I’m going to solve the key point here on this toggleRowSelection () property, elementUI problem as well