fix all stories using SBComp

This commit is contained in:
Ulf Gebhardt 2023-12-14 01:06:30 +01:00
parent 3d28141447
commit eaf361c31d
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9
3 changed files with 9 additions and 6 deletions

View File

@ -1,3 +1,5 @@
import { SBComp } from '#types/SBComp'
import ExampleButton from './ExampleButton.vue'
import type { Meta, StoryObj } from '@storybook/vue3'
@ -5,8 +7,7 @@ import type { Meta, StoryObj } from '@storybook/vue3'
// More on how to set up stories at: https://storybook.js.org/docs/vue/writing-stories/introduction
const meta = {
title: 'Example/Button',
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
component: ExampleButton,
component: ExampleButton as SBComp,
// This component will have an automatically generated docsPage entry: https://storybook.js.org/docs/vue/writing-docs/autodocs
tags: ['autodocs'],
argTypes: {

View File

@ -1,3 +1,5 @@
import { SBComp } from '#types/SBComp'
import ExampleHeader from './ExampleHeader.vue'
import type { Meta, StoryObj } from '@storybook/vue3'
@ -8,8 +10,7 @@ const meta = {
* to learn how to generate automatic titles
*/
title: 'Example/Header',
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
component: ExampleHeader,
component: ExampleHeader as SBComp,
// eslint-disable-next-line @typescript-eslint/no-explicit-any
render: (args: any) => ({
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment

View File

@ -1,13 +1,14 @@
import { within, userEvent } from '@storybook/testing-library'
import { SBComp } from '#types/SBComp'
import ExamplePage from './ExamplePage.vue'
import type { Meta, StoryObj } from '@storybook/vue3'
const meta = {
title: 'Example/Page',
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
component: ExamplePage,
component: ExamplePage as SBComp,
render: () => ({
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
components: { ExamplePage },