g6/stories/Shape/shape.stories.tsx

31 lines
769 B
TypeScript
Raw Normal View History

// import { Button } from '@storybook/react/demo';
import { storiesOf } from '@storybook/react';
import React from 'react';
2020-02-14 10:10:54 +08:00
import DefaultShape from './component/default-shape';
import Image from './component/image';
2020-02-26 23:17:48 +08:00
import CustomNode from './component/custom-node';
import Polyline from './component/polyline';
import Image2 from './component/image2';
export default { title: 'Shape' };
storiesOf('Shape', module)
.add('default node', () => (
// 一个 add 表示添加一个 story
<DefaultShape />
))
.add('image node', () => (
// 一个 add 表示添加一个 story
<Image />
))
.add('image node 2', () => (
// 一个 add 表示添加一个 story
<Image2 />
))
2020-03-09 14:17:34 +08:00
.add('custom node', () => (
<CustomNode />
))
.add('polyline', () => (
<Polyline />
))