aliyun / react-lineage-dag

MIT License
57 stars 20 forks source link

npmjs 没有 lineage-dag包 #4

Open GuanJdoJ opened 2 years ago

GuanJdoJ commented 2 years ago

1、npm 没有 lineage-dag包,使用yarn add lineage-dag会有报错提示 Not found

2、yarn add react-lineage-dag倒是可以,但是按照官网demo,页面也会报错

import { LineageTable } from 'react-lineage-dag'; const Lineage() { const data = {tables: [xxx], relations:[xxx]}, return (< LineageTable {...data} /> } export default Lineage;

image
noonnightstorm commented 2 years ago

@cctv1005s

cctv1005s commented 2 years ago

晚点处理一下,你有可复现的 demo 吗?

GuanJdoJ commented 2 years ago

晚点处理一下,你有可复现的 demo 吗?

https://codesandbox.io/s/elastic-silence-6ekhh?file=/src/App.js

又发现个问题,hover页面就挂了

MZChangchun commented 2 years ago

1、npm 没有 lineage-dag包,使用yarn add lineage-dag会有报错提示 Not found

2、yarn add react-lineage-dag倒是可以,但是按照官网demo,页面也会报错

import { LineageTable } from 'react-lineage-dag'; const Lineage() { const data = {tables: [xxx], relations:[xxx]}, return (< LineageTable {...data} /> } export default Lineage;

image

代码里没有判断props是否具有onEachFrame属性而直接调用,

1636094966107_D93E04BC-0AEA-4D7E-8625-147C8ECD7153

你需要在LineageTable中添加onEachFrame属性即可

softguy888 commented 2 years ago

@GuanJdoJ 你的这个问题解决了吗?