mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-09-19 03:55:50 +08:00
fix(editor): 树组件搜索后不展开所有节点
This commit is contained in:
parent
727af1058d
commit
c984c1a0cf
@ -32,10 +32,12 @@ export const useFilter = (
|
||||
const visible = filterIsMatch(text, node);
|
||||
if (visible && parents.length) {
|
||||
parents.forEach((parent) => {
|
||||
if (text || text.length) {
|
||||
updateStatus(nodeStatusMap.value!, parent.id, {
|
||||
visible,
|
||||
expand: true,
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user