(e)
| 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 | * 获取文本组件,处于编辑态时,需要能修改标题;否则只展示标题. |