mirror of
https://gitee.com/ElemeFE/element.git
synced 2024-12-03 20:58:09 +08:00
parent
d7d4310d0a
commit
ceccf51793
@ -189,7 +189,7 @@ export default class TreeStore {
|
||||
|
||||
_setCheckedKeys(key, leafOnly = false, checkedKeys) {
|
||||
const allNodes = this._getAllNodes();
|
||||
allNodes.sort((a, b) => a.level < b.level);
|
||||
allNodes.sort((a, b) => b.level - a.level);
|
||||
|
||||
const keys = Object.keys(checkedKeys);
|
||||
allNodes.forEach((node) => {
|
||||
|
Loading…
Reference in New Issue
Block a user