GGEditor icon indicating copy to clipboard operation
GGEditor copied to clipboard

ItemPanel中的item实现连线

Open Statfine opened this issue 3 years ago • 3 comments

这个功能解决了什么问题

                <Item
                  model={{
                    type: 'circle',
                    size: 80,
                    label: 'circle'
                  }}
                >
                  <img
                    alt="圆"
                    width="90"
                    height="90"
                    draggable={false}
                  />
                </Item>
                <Item
                  model={{
                    type: 'bizFlowNode',
                    size: [100, 50],
                    label: 'bizFlowNode'
                  }}
                >
                  <img
                    alt="矩形"
                    width="90"
                    height="90"
                    draggable={false}
                  />
                </Item>
              </ItemPanel>```
当中的Item. model设置成circle的时候拖拽到画布之后不会有节点,如何设置才能连线

## 你所期望的 API 是怎样的
保留item图片样式,同时可以连线
![1603165640188](https://user-images.githubusercontent.com/4608910/96538404-08c94000-12cb-11eb-8e2d-3e86394338d9.jpg)

Statfine avatar Oct 20 '20 03:10 Statfine

same issue. 期待 自定义itemPanel,并支持拖拽到画布后可以连线的例子

leftstick avatar Jan 20 '21 07:01 leftstick

@leftstick 估计ggedit不维护了, 迁移到x6去了

Statfine avatar Jan 20 '21 09:01 Statfine

@Statfine 好惨

leftstick avatar Jan 21 '21 02:01 leftstick