Tree: reserve node expanding state while filtering

This commit is contained in:
Leopoldthecoder
2017-10-30 19:03:54 +08:00
committed by 杨奕
parent 3eb06dcb0e
commit 0cca820dac

View File

@@ -54,6 +54,7 @@ export default class TreeStore {
node.visible = allHidden === false;
}
}
if (!value) return;
if (node.visible && !node.isLeaf) node.expand();
};