2020-01-15 19:46:47 +08:00
|
|
|
// import { Button } from '@storybook/react/demo';
|
|
|
|
import { storiesOf } from '@storybook/react';
|
|
|
|
import React from 'react';
|
|
|
|
import DecisionTree from './component/decision-tree';
|
2020-02-14 10:10:54 +08:00
|
|
|
import CustomFlow from './component/flow';
|
|
|
|
import Tutorial from './component/tutorial';
|
2020-02-25 14:45:12 +08:00
|
|
|
import ForceLoop from './component/force-loop-zero';
|
2020-01-15 19:46:47 +08:00
|
|
|
|
|
|
|
export default { title: 'Case' };
|
|
|
|
|
|
|
|
storiesOf('Case', module)
|
2020-02-14 10:10:54 +08:00
|
|
|
.add('decision tree bubble', () => (
|
|
|
|
// 一个 add 表示添加一个 story
|
2020-01-15 19:46:47 +08:00
|
|
|
<DecisionTree />
|
|
|
|
))
|
2020-02-14 10:10:54 +08:00
|
|
|
.add('custom flow', () => (
|
|
|
|
// 一个 add 表示添加一个 story
|
2020-01-15 19:46:47 +08:00
|
|
|
<CustomFlow />
|
2020-02-10 18:28:24 +08:00
|
|
|
))
|
2020-02-14 10:10:54 +08:00
|
|
|
.add('tutorial', () => (
|
|
|
|
// 一个 add 表示添加一个 story
|
2020-02-10 18:28:24 +08:00
|
|
|
<Tutorial />
|
2020-02-25 14:45:12 +08:00
|
|
|
))
|
|
|
|
.add('force loop with zero positions', () => (
|
|
|
|
// 一个 add 表示添加一个 story
|
|
|
|
<ForceLoop />
|
2020-02-14 10:10:54 +08:00
|
|
|
));
|