diff --git a/src/stories/components/Document/DocumentCard.stories.js b/src/stories/components/Document/DocumentCard.stories.js index 827febf4c3..cdf61dad89 100644 --- a/src/stories/components/Document/DocumentCard.stories.js +++ b/src/stories/components/Document/DocumentCard.stories.js @@ -19,6 +19,7 @@ const routes = [ export default { title: 'Components/Document/DocumentCard', decorators: [withMurmur({ previewHost: null }), vueRouter(routes)], + component: DocumentCard, tags: ['autodocs'], argTypes: { properties: { @@ -41,9 +42,9 @@ export default { } }, args: { - active: true, - selected: true, - selectMode: true, + active: false, + selected: false, + selectMode: false, to: { name: 'document' }, properties: [ 'title', @@ -81,16 +82,7 @@ export default { ], contentTypeIcon: markRaw(PhFilePdf) } - }, - render: (args) => ({ - components: { - DocumentCard - }, - setup: () => ({ args }), - template: ` - - ` - }) + } } export const Default = {} diff --git a/src/stories/components/Document/DocumentThumbnail.stories.js b/src/stories/components/Document/DocumentThumbnail.stories.js index deb20648ae..ed9401e26a 100644 --- a/src/stories/components/Document/DocumentThumbnail.stories.js +++ b/src/stories/components/Document/DocumentThumbnail.stories.js @@ -7,6 +7,7 @@ import DocumentThumbnail from '@/components/Document/DocumentThumbnail' export default { title: 'Components/Document/DocumentThumbnail', decorators: [withMurmur({ previewHost: null })], + component: DocumentThumbnail, tags: ['autodocs'], argTypes: { size: { @@ -29,16 +30,7 @@ export default { isSupportedImage: true, contentTypeIcon: markRaw(PhFilePdf) } - }, - render: (args) => ({ - components: { - DocumentThumbnail - }, - setup: () => ({ args }), - template: ` - - ` - }) + } } export const Default = {}