fix(plugin-outline): fix matched title highlight

This commit is contained in:
AndyJin 2024-03-25 10:57:32 +08:00
parent bd85ca3ca6
commit e6ac33f11c

View File

@ -85,11 +85,15 @@ export default class TreeTitle extends PureComponent<{
componentDidMount() {
const { treeNode } = this.props;
const { filterWorking, matchSelf, keywords } = treeNode.filterReult;
this.setState({
editing: false,
title: treeNode.titleLabel,
condition: treeNode.condition,
visible: !treeNode.hidden,
filterWorking,
matchSelf,
keywords,
});
treeNode.onTitleLabelChanged(() => {
this.setState({