@et-modules/cause
v1.0.75
Published
@et-modules/cause
Downloads
17
Readme
CauseEditor 组件
1、引入方式
import { CauseData, CauseEditor } from '@et-modules/cause';
const [data, setData] = useState<CauseData>({ nodes: [], relations: [], demandList: [], constraints: [] });
return <CauseEditor onChanged={setData} dataSource={data} />;
CauseReport 组件
1、引入方式
import {CauseReport} from '@et-modules/cause-report'
const getDesignCauseEffect = (...args)=>{
return {
...
}
}
const data = {...}
<CauseReport data={data} getDesignCauseEffect={getDesignCauseEffect} />