make drawer stories work with dialogs

This commit is contained in:
Gauthier Roebroeck 2025-12-11 13:08:51 +08:00
parent 9277974bb6
commit 6ccfb9bbae
2 changed files with 4 additions and 3 deletions

View file

@ -2,15 +2,17 @@ import type { Meta, StoryObj } from '@storybook/vue3-vite'
import Drawer from './Drawer.vue'
import { useAppStore } from '@/stores/app'
import DialogConfirmEditInstance from '@/components/dialog/ConfirmEditInstance.vue'
import SnackQueue from '@/components/SnackQueue.vue'
const meta = {
component: Drawer,
render: (args: object) => ({
components: { Drawer },
components: { Drawer, DialogConfirmEditInstance, SnackQueue },
setup() {
return { args }
},
template: '<Drawer />',
template: '<Drawer /><DialogConfirmEditInstance/><SnackQueue/>',
}),
parameters: {
// More on how to position stories at: https://storybook.js.org/docs/configure/story-layout

View file

@ -137,7 +137,6 @@ function updateLibrary() {
})
}
}
//endregion
</script>