fix: the action of history would not update outline tree

This commit is contained in:
AndyJin 2023-07-12 11:27:37 +08:00 committed by 刘菊萍(絮黎)
parent 19935cfc93
commit 2d98f1c9b5

View File

@ -30,6 +30,10 @@ export class Tree {
treeNode?.notifyExpandableChanged();
});
doc?.history.onChangeCursor(() => {
this.root?.notifyExpandableChanged();
});
doc?.onChangeNodeProp((info: IPublicTypePropChangeOptions) => {
const { node, key } = info;
if (key === '___title___') {