From 5d14ddbe41e9e05a407dd2df3f8769ac25e185e1 Mon Sep 17 00:00:00 2001 From: Yanick Champoux Date: Mon, 15 Jan 2018 18:51:23 -0500 Subject: [PATCH] grooming stories --- src/single.stories.vue | 19 +++++++++++++++++++ src/stories.js | 31 ++++++------------------------- 2 files changed, 25 insertions(+), 25 deletions(-) create mode 100644 src/single.stories.vue diff --git a/src/single.stories.vue b/src/single.stories.vue new file mode 100644 index 0000000..3d660f8 --- /dev/null +++ b/src/single.stories.vue @@ -0,0 +1,19 @@ + + + diff --git a/src/stories.js b/src/stories.js index d6a2590..f81dcb8 100644 --- a/src/stories.js +++ b/src/stories.js @@ -6,32 +6,13 @@ import RawTiger from './RawTiger.vue'; import LayerStory from './layers.stories.vue'; import ThumbnailStory from './thumbnail.stories.vue'; +import SingleStory from './single.stories.vue'; const stories = storiesOf('SvgPanZoom', module) .addDecorator( withKnobs ) -.add('single inline SVG', () => { - return { - components: { SvgPanZoom, RawTiger }, - template: ` - - - ` - }} +.add('single inline SVG', + () => SingleStory ) -.add( 'layers', () => { - return { - components: { LayerStory }, - template: '
' - }; -}) -.add( 'thumbnail', () => { - return { - components: { ThumbnailStory }, - template: '
', - }; -}); +.add( 'layers', () => LayerStory ) +.add( 'thumbnail', () => ThumbnailStory ) +;