Table add check & highlight default setting in data
Table add check & highlight default setting in data #275 #265
This commit is contained in:
parent
3fd978800f
commit
c13e7cea81
3 changed files with 26 additions and 8 deletions
|
@ -548,8 +548,16 @@
|
|||
this.data.forEach((row, index) => {
|
||||
const newRow = deepCopy(row);// todo 直接替换
|
||||
newRow._isHover = false;
|
||||
newRow._isChecked = false;
|
||||
newRow._isHighlight = false;
|
||||
if (newRow._checked) {
|
||||
newRow._isChecked = newRow._checked;
|
||||
} else {
|
||||
newRow._isChecked = false;
|
||||
}
|
||||
if (newRow._highlight) {
|
||||
newRow._isHighlight = newRow._highlight;
|
||||
} else {
|
||||
newRow._isHighlight = false;
|
||||
}
|
||||
data[index] = newRow;
|
||||
});
|
||||
return data;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue