2019-12-31 12:01:43 +08:00
|
|
|
// 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';
|
2020-03-05 18:24:40 +08:00
|
|
|
import Image from './component/image';
|
2020-02-26 23:17:48 +08:00
|
|
|
import CustomNode from './component/custom-node';
|
2019-12-31 12:01:43 +08:00
|
|
|
|
|
|
|
export default { title: 'Shape' };
|
|
|
|
|
|
|
|
storiesOf('Shape', module)
|
2020-03-05 18:24:40 +08:00
|
|
|
.add('default node', () => (
|
|
|
|
// 一个 add 表示添加一个 story
|
|
|
|
<DefaultShape />
|
|
|
|
))
|
|
|
|
.add('image node', () => (
|
|
|
|
// 一个 add 表示添加一个 story
|
|
|
|
<Image />
|
|
|
|
))
|
2020-03-09 14:17:34 +08:00
|
|
|
.add('custom node', () => (
|
|
|
|
<CustomNode />
|
|
|
|
))
|