lixiao.1022
lixiao.1022
分支节点的 conditionNodeType 属性要对应一个节点的 type 属性,例如这样: [ { type: 'branch', name: '分支节点', conditionNodeType: 'myCondition', }, { type: 'myCondition', name: '条件节点', } ]
明白了,之前是设计了 addIcon 用来自定义节点图标的,这个分支节点增加条件的按钮忘记了。可以尝试升级到 0.1.25 或者 1.0.2 版本,我都加上了
> > 明白了,之前是设计了 addIcon 用来自定义节点图标的,这个分支节点增加条件的按钮忘记了。可以尝试升级到 0.1.25 或者 1.0.2 版本,我都加上了 > > { type: "branch", name: "分支", removeConfirmTitle: "确认要删除此节点?", conditionNodeType: "condition", addableComponent: CustomAddableComponent, initialNodeData: { id: createUUID(), name: "分支", type: "branch",...
> @Komorebiqch 你定义节点的时候,就已经把 initialNodeData 的 id 求出来了,(你的 createUUID 函数已经调用了)。当然每次都是一样的。话说,现在好像不支持传一个函数过去惰性求值。 是的,我们暂时还没有遇到这么复杂的场景,所以就没有这样设计 😁
> [Feature] Hope add sorting function on branch condition node Try to upgrade version 1.4.1, set sortable true, condition nodes will can be dragged and sorted in branch
> @lixiao1022 would you provide a API, the we can call the sort function by the button? some cases don't wanna use draggable ui @syssam Try to upgrade version 1.4.3,...
是的,用到了 antd 的几个组件,Popover、Popconfirm 这些
之前也考虑过,但目前的这种交互不太好行成环……
@3drinkerlgtm3 @agkrid 是类似于这种效果吗?
> 需要修改一些属性了 打开 visible 都换成open 了 会有warning 感谢提醒,看到了 antd 4.23.0 之后会有这个警告