itable 添加设置默认选中行的功能

This commit is contained in:
leonine 2017-02-15 16:04:35 +08:00
parent 8f48491aa6
commit 1594942f2c
2 changed files with 40 additions and 1 deletions

View file

@ -548,7 +548,11 @@
this.data.forEach((row, index) => {
const newRow = deepCopy(row);// todo
newRow._isHover = false;
newRow._isChecked = false;
if(newRow.checked){// checked:true
newRow._isChecked = newRow.checked;
}else{
newRow._isChecked = false;
}
newRow._isHighlight = false;
data[index] = newRow;
});