2020-03-16 23:31:15 +08:00
|
|
|
import { storiesOf } from '@storybook/react';
|
|
|
|
import * as React from 'react';
|
2020-04-07 15:24:23 +08:00
|
|
|
import AMapDraw from './Components/AmapDraw';
|
2020-03-23 15:02:23 +08:00
|
|
|
import Circle from './Components/Circle';
|
2020-03-20 11:13:58 +08:00
|
|
|
import DrawCircle from './Components/DrawCircle';
|
2020-04-01 15:22:53 +08:00
|
|
|
import DrawControl from './Components/DrawControl';
|
2020-03-25 16:39:30 +08:00
|
|
|
import Line from './Components/DrawLine';
|
|
|
|
import Point from './Components/DrawPoint';
|
2020-03-20 11:13:58 +08:00
|
|
|
import DrawRect from './Components/DrawRect';
|
2020-03-25 16:39:30 +08:00
|
|
|
import Polygon from './Components/Polygon';
|
2020-03-16 23:31:15 +08:00
|
|
|
|
2020-03-20 11:13:58 +08:00
|
|
|
storiesOf('绘制', module)
|
2020-03-23 15:02:23 +08:00
|
|
|
.add('圆', () => <Circle />, {})
|
2020-03-25 16:39:30 +08:00
|
|
|
.add('矩形', () => <DrawRect />, {})
|
|
|
|
.add('多边形', () => <Polygon />, {})
|
|
|
|
.add('点', () => <Point />, {})
|
|
|
|
.add('路径', () => <Line />, {})
|
2020-04-01 15:22:53 +08:00
|
|
|
.add('绘制组件', () => <DrawControl />, {})
|
2020-03-20 11:13:58 +08:00
|
|
|
.add('绘制圆', () => <DrawCircle />, {})
|
2020-04-26 23:42:25 +08:00
|
|
|
.add('高德地图', () => <AMapDraw />, {});
|