Checkbox iview form of how an item is selected by default

When switching data, the original selected data will be cleared, re-default all not selected, how the data remains after switching the original selected items?

 

Solution: The official reference document

 

 

 

// determine whether the current data with a selected data set has been selected to _checked to true 
data.forEach (Item => { 
    IF (determination condition) { 
        item._checked = to true; 
     } 
});

 

Guess you like

Origin www.cnblogs.com/stella1024/p/12559107.html