mirror of
https://gitee.com/antv/g6.git
synced 2024-12-04 04:38:55 +08:00
22 lines
554 B
TypeScript
22 lines
554 B
TypeScript
// import { Button } from '@storybook/react/demo';
|
|
import { storiesOf } from '@storybook/react';
|
|
import React from 'react';
|
|
import DefaultShape from './component/default-shape';
|
|
import Image from './component/image';
|
|
import CustomNode from './component/custom-node';
|
|
|
|
export default { title: 'Shape' };
|
|
|
|
storiesOf('Shape', module)
|
|
.add('default node', () => (
|
|
// 一个 add 表示添加一个 story
|
|
<DefaultShape />
|
|
))
|
|
.add('image node', () => (
|
|
// 一个 add 表示添加一个 story
|
|
<Image />
|
|
))
|
|
.add('custom node', () => (
|
|
<CustomNode />
|
|
))
|