mirror of
https://gitee.com/antv/g6.git
synced 2024-12-03 20:28:36 +08:00
28 lines
794 B
TypeScript
28 lines
794 B
TypeScript
// import { Button } from '@storybook/react/demo';
|
|
import { storiesOf } from '@storybook/react';
|
|
import React from 'react';
|
|
import DecisionTree from './component/decision-tree';
|
|
import CustomFlow from './component/flow';
|
|
import Tutorial from './component/tutorial';
|
|
import ForceLoop from './component/force-loop-zero';
|
|
|
|
export default { title: 'Case' };
|
|
|
|
storiesOf('Case', module)
|
|
.add('decision tree bubble', () => (
|
|
// 一个 add 表示添加一个 story
|
|
<DecisionTree />
|
|
))
|
|
.add('custom flow', () => (
|
|
// 一个 add 表示添加一个 story
|
|
<CustomFlow />
|
|
))
|
|
.add('tutorial', () => (
|
|
// 一个 add 表示添加一个 story
|
|
<Tutorial />
|
|
))
|
|
.add('force loop with zero positions', () => (
|
|
// 一个 add 表示添加一个 story
|
|
<ForceLoop />
|
|
));
|