huangjx

Results 3 issues of huangjx

我试了下直接获取菜单项去修改 ```ts const item = Menu.getApplicationMenu().getMenuItemById("xxx"); item.label = "test"; item.enabled = false; ``` 似乎只是下面那个enabled的设置有效(变灰),但是label的修改并没有生效 请教一下大佬,除了重建整个ApplicationMenu,还有没有比较优雅的实现方式。

夏天要来了,建议多多来点冷饮干货

## 这个功能解决了什么问题 我想在Mind中实现类似Flow的复制粘贴功能,我尝试着给当前选中的节点的model的children添加要复制的model,然后使用propsAPI的update更新当前选中的节点,结果报错 Uncaught TypeError: Cannot read property 'getEdges' of undefined 求助大神,代码如下: ``` execute() { const selected = getSelected()[0]; const curModel = selected.getModel(); const copiedModel = getCopiedModel(); if (!copiedModel) {...