MCPcopy Create free account
hub / github.com/ModelEngine-Group/app-platform / onMenuClick

Function onMenuClick

agent-flow/src/components/Header.jsx:64–75  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

62 * @param e 事件对象.
63 */
64 const onMenuClick = (e) => {
65 const m = shape.drawer.getToolMenus().find(t => t.key === e.key);
66 if (m.action) {
67 if (e.key === 'rename') {
68 m.action(setEdit);
69 } else if (e.key === 'advancedConfiguration') {
70 m.action(setAdvancedConfigurationOpen);
71 } else {
72 m.action();
73 }
74 }
75 };
76
77 /**
78 * 获取文本组件,处于编辑态时,需要能修改标题;否则只展示标题.

Callers 1

getMenuFunction · 0.85

Calls 1

findMethod · 0.65

Tested by

no test coverage detected