mirror of
https://github.com/WeBankFinTech/fes.js.git
synced 2025-04-06 03:59:53 +08:00
fix: 修复tree组件多选时通过selected默认选中bug
This commit is contained in:
parent
3713d4b023
commit
73d00120d1
@ -13,6 +13,11 @@ $dark-color: rgba(255, 255, 255, 0.65);
|
||||
$dark-selected-bg: rgb(24, 144, 255);
|
||||
$dark-selected-color: #ffffff;
|
||||
|
||||
html, body {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.layout {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
|
@ -173,8 +173,8 @@ export default {
|
||||
}
|
||||
} else {
|
||||
// 只是子节点,选中的则默认选中
|
||||
this.$set(obj, 'checked', node.checked || false);
|
||||
this.$set(obj, 'childrenCheckedStatus', node.checked ? '2' : '0');
|
||||
this.$set(obj, 'checked', node.selected || false);
|
||||
this.$set(obj, 'childrenCheckedStatus', node.selected ? '2' : '0');
|
||||
if (obj.selected) {
|
||||
this.selectedNode = obj;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user