aliyun / react-lineage-dag

MIT License
57 stars 20 forks source link

为什么跑不起来呢? #9

Open softguy888 opened 2 years ago

softguy888 commented 2 years ago

index.js:1 Warning: Failed prop type: LineageDag: prop type layout is invalid; it must be a function, usually from the prop-types package, but received object.This often happens because of typos such as PropTypes.function instead of PropTypes.func. at LineageDag

这是什么原因,是源码定义:

layout: { ranksep: PropTypes.number, radius: PropTypes.number },

实际调用:

layout: dagreLayout({ ranksep: layout.ranksep, nodesep: layout.nodesep, }),

dagreLayout 定义:

drageLayout = (parmas) => ({height, width, data}) =>  {}

这是错了?那大家是怎么跑起来的呢?

noonnightstorm commented 2 years ago

@cctv1005s 帮忙看下

softguy888 commented 2 years ago

和这个问题其实是一个问题 #4

目前还是不能运行,很可惜。 @noonnightstorm @cctv1005s 能提供一个可运行的版本吗,谢谢!