GGEditor icon indicating copy to clipboard operation
GGEditor copied to clipboard

禁止删除流程节点

Open rendongsc opened this issue 5 years ago • 6 comments

这个功能解决了什么问题

默认添加了流程图的【开始】和【结束】,一个流程图只能有一个【开始】和【结束】,希望【开始】和【结束】不能被删除。

你所期望的 API 是怎样的

1、流程节点model增加readonly或者disable等属性,禁止删除。 2、onBeforeChange增加返回参数,比如:e.cancel=true;

rendongsc avatar Jul 12 '19 01:07 rendongsc

可以用command实现

Jexecellent avatar Jul 23 '19 07:07 Jexecellent

可以用command实现

怎么实现呢?

ILuZhangKun avatar Jul 29 '19 09:07 ILuZhangKun

可以用command实现

怎么实现呢?

  1. 禁用删除命令;2. 监听命令,若是删除操作,执行undo命令

Jexecellent avatar Jul 30 '19 11:07 Jexecellent

大神,怎么实现的呀?我现在有个功能是连线的节点不可以删除,找了半天的api没发现金芝删除命令怎么实现

hanruiying avatar Sep 19 '19 01:09 hanruiying

@hanruiying 可以通过‘undo’命令实现

James-Xuan avatar Oct 25 '19 16:10 James-Xuan

@James-Xuan @Jexecellent 怎么实现呢 undo不是内置命令吗 怎么用在js中使用呢 propsAPI里面也没有undo事件 麻烦你们了><

phoebemoon16 avatar Feb 18 '22 09:02 phoebemoon16