grooming stories
This commit is contained in:
parent
37eb81eedb
commit
5d14ddbe41
19
src/single.stories.vue
Normal file
19
src/single.stories.vue
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
<template>
|
||||||
|
<SvgPanZoom style="width: 500px; height: 500px; border:1px solid black;"
|
||||||
|
:zoomEnabled="true"
|
||||||
|
:controlIconsEnabled="true"
|
||||||
|
:fit="false"
|
||||||
|
:center="true"
|
||||||
|
>
|
||||||
|
<RawTiger />
|
||||||
|
</SvgPanZoom>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import RawTiger from './RawTiger.vue';
|
||||||
|
import SvgPanZoom from './index';
|
||||||
|
|
||||||
|
export default {
|
||||||
|
components: { SvgPanZoom, RawTiger },
|
||||||
|
}
|
||||||
|
</script>
|
@ -6,32 +6,13 @@ import RawTiger from './RawTiger.vue';
|
|||||||
|
|
||||||
import LayerStory from './layers.stories.vue';
|
import LayerStory from './layers.stories.vue';
|
||||||
import ThumbnailStory from './thumbnail.stories.vue';
|
import ThumbnailStory from './thumbnail.stories.vue';
|
||||||
|
import SingleStory from './single.stories.vue';
|
||||||
|
|
||||||
const stories = storiesOf('SvgPanZoom', module)
|
const stories = storiesOf('SvgPanZoom', module)
|
||||||
.addDecorator( withKnobs )
|
.addDecorator( withKnobs )
|
||||||
.add('single inline SVG', () => {
|
.add('single inline SVG',
|
||||||
return {
|
() => SingleStory
|
||||||
components: { SvgPanZoom, RawTiger },
|
|
||||||
template: `
|
|
||||||
<SvgPanZoom style="width: 500px; height: 500px; border:1px solid black;"
|
|
||||||
:zoomEnabled="true"
|
|
||||||
:controlIconsEnabled="true"
|
|
||||||
:fit="false"
|
|
||||||
:center="true"
|
|
||||||
>
|
|
||||||
<RawTiger />
|
|
||||||
</SvgPanZoom>`
|
|
||||||
}}
|
|
||||||
)
|
)
|
||||||
.add( 'layers', () => {
|
.add( 'layers', () => LayerStory )
|
||||||
return {
|
.add( 'thumbnail', () => ThumbnailStory )
|
||||||
components: { LayerStory },
|
;
|
||||||
template: '<div><LayerStory /></div>'
|
|
||||||
};
|
|
||||||
})
|
|
||||||
.add( 'thumbnail', () => {
|
|
||||||
return {
|
|
||||||
components: { ThumbnailStory },
|
|
||||||
template: '<div><ThumbnailStory /></div>',
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
Loading…
Reference in New Issue
Block a user