合并原作者更新
This commit is contained in:
parent
1594942f2c
commit
2404849c30
5 changed files with 29 additions and 14 deletions
|
@ -548,12 +548,16 @@
|
|||
this.data.forEach((row, index) => {
|
||||
const newRow = deepCopy(row);// todo 直接替换
|
||||
newRow._isHover = false;
|
||||
if(newRow.checked){// 传checked:true 可以设置该行为默认选中状态
|
||||
newRow._isChecked = newRow.checked;
|
||||
}else{
|
||||
if (newRow._checked) {
|
||||
newRow._isChecked = newRow._checked;
|
||||
} else {
|
||||
newRow._isChecked = false;
|
||||
}
|
||||
newRow._isHighlight = false;
|
||||
if (newRow._highlight) {
|
||||
newRow._isHighlight = newRow._highlight;
|
||||
} else {
|
||||
newRow._isHighlight = false;
|
||||
}
|
||||
data[index] = newRow;
|
||||
});
|
||||
return data;
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
:class="itemClasses(item)"
|
||||
@click.prevent="select(item)">
|
||||
<Checkbox :checked="isCheck(item)" :disabled="item.disabled"></Checkbox>
|
||||
<span>{{ showLabel(item) }}</span>
|
||||
<span>{{{ showLabel(item) }}}</span>
|
||||
</li>
|
||||
<li :class="prefixCls + '-content-not-found'">{{ notFoundText }}</li>
|
||||
</ul>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue