Li Yang
Results
27
comments of
Li Yang
> 需要搜索功能 求更新 春节前开发完哈,最晚春节回家写
@lee0720 😅 那个搜索功能好像有点问题了,我这周末改一下
在 4.0 上重试一下哈
Could you replay this bug with [codesandbox](https://codesandbox.io/)? It will help me to resolve this problem faster. @manishpatelUK
I don't think is not a good solution to solve this problem. Cause I have rewrited `BaseNode.click` for the reason of emit node click event to `React Element` in `render`.
猴啊,下班了看一下
React请参考这个例子: https://butterfly-dag.gitee.io/butterfly-dag/demo/react
目前可以给你提供一个相对原始的做法,在 `onLoaded` 里面拿到 `butterfly` 的实例,然后监听 边 的点击事件。 后续我打算把事件监听集成到 `props` 内
如果是 `webpack` 的话,需要在 `babel` 的 plugin 内加入一下这个,`@babel/plugin-proposal-object-rest-spread`