From efc9e031e02346ef2fbcefe0ef1ae62c3ce1d21f Mon Sep 17 00:00:00 2001 From: Pierre Romera Date: Wed, 17 Jul 2024 11:45:08 +0000 Subject: [PATCH] doc: simplify doc --- .../Document/DocumentCard.stories.js | 18 +++++------------- .../Document/DocumentThumbnail.stories.js | 12 ++---------- 2 files changed, 7 insertions(+), 23 deletions(-) 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 = {}