Merge pull request #2974 from AndyJinSS/filter-highlight

fix(plugin-outline): fix matched title highlight
This commit is contained in:
唐澜 2024-07-03 10:37:37 +08:00 committed by GitHub
commit 9000a87436
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -86,12 +86,16 @@ 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,
loop: treeNode.loop,
visible: !treeNode.hidden,
filterWorking,
matchSelf,
keywords,
});
treeNode.onTitleLabelChanged(() => {
this.setState({