mirror of
https://github.com/IT4Change/boilerplate-frontend.git
synced 2025-12-13 07:35:53 +00:00
fix all stories using SBComp
This commit is contained in:
parent
3d28141447
commit
eaf361c31d
@ -1,3 +1,5 @@
|
|||||||
|
import { SBComp } from '#types/SBComp'
|
||||||
|
|
||||||
import ExampleButton from './ExampleButton.vue'
|
import ExampleButton from './ExampleButton.vue'
|
||||||
|
|
||||||
import type { Meta, StoryObj } from '@storybook/vue3'
|
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
|
// More on how to set up stories at: https://storybook.js.org/docs/vue/writing-stories/introduction
|
||||||
const meta = {
|
const meta = {
|
||||||
title: 'Example/Button',
|
title: 'Example/Button',
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
component: ExampleButton as SBComp,
|
||||||
component: ExampleButton,
|
|
||||||
// This component will have an automatically generated docsPage entry: https://storybook.js.org/docs/vue/writing-docs/autodocs
|
// This component will have an automatically generated docsPage entry: https://storybook.js.org/docs/vue/writing-docs/autodocs
|
||||||
tags: ['autodocs'],
|
tags: ['autodocs'],
|
||||||
argTypes: {
|
argTypes: {
|
||||||
|
|||||||
@ -1,3 +1,5 @@
|
|||||||
|
import { SBComp } from '#types/SBComp'
|
||||||
|
|
||||||
import ExampleHeader from './ExampleHeader.vue'
|
import ExampleHeader from './ExampleHeader.vue'
|
||||||
|
|
||||||
import type { Meta, StoryObj } from '@storybook/vue3'
|
import type { Meta, StoryObj } from '@storybook/vue3'
|
||||||
@ -8,8 +10,7 @@ const meta = {
|
|||||||
* to learn how to generate automatic titles
|
* to learn how to generate automatic titles
|
||||||
*/
|
*/
|
||||||
title: 'Example/Header',
|
title: 'Example/Header',
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
component: ExampleHeader as SBComp,
|
||||||
component: ExampleHeader,
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||||
render: (args: any) => ({
|
render: (args: any) => ({
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
||||||
|
|||||||
@ -1,13 +1,14 @@
|
|||||||
import { within, userEvent } from '@storybook/testing-library'
|
import { within, userEvent } from '@storybook/testing-library'
|
||||||
|
|
||||||
|
import { SBComp } from '#types/SBComp'
|
||||||
|
|
||||||
import ExamplePage from './ExamplePage.vue'
|
import ExamplePage from './ExamplePage.vue'
|
||||||
|
|
||||||
import type { Meta, StoryObj } from '@storybook/vue3'
|
import type { Meta, StoryObj } from '@storybook/vue3'
|
||||||
|
|
||||||
const meta = {
|
const meta = {
|
||||||
title: 'Example/Page',
|
title: 'Example/Page',
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
component: ExamplePage as SBComp,
|
||||||
component: ExamplePage,
|
|
||||||
render: () => ({
|
render: () => ({
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
||||||
components: { ExamplePage },
|
components: { ExamplePage },
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user