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