fix: eventPanel-autoClose

This commit is contained in:
allenve 2024-07-25 14:52:33 +08:00
parent 76ee885c19
commit 438ce7ce79

View File

@ -220,13 +220,13 @@ export class EventControl extends React.Component<
const pluginEvents = const pluginEvents =
typeof tmpEvents === 'function' ? tmpEvents(data) : [...tmpEvents]; typeof tmpEvents === 'function' ? tmpEvents(data) : [...tmpEvents];
pluginEvents.forEach((event: RendererPluginEvent) => { // 事件配置面板不自动折叠
eventPanelActive[event.eventName] = true; // pluginEvents.forEach((event: RendererPluginEvent) => {
}); // eventPanelActive[event.eventName] = true;
// });
this.setState({ this.setState({
events: pluginEvents, events: pluginEvents
eventPanelActive
}); });
} }
} }