mirror of
https://github.com/gotson/komga.git
synced 2025-12-26 18:36:08 +01:00
make drawer stories work with dialogs
This commit is contained in:
parent
9277974bb6
commit
6ccfb9bbae
2 changed files with 4 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -137,7 +137,6 @@ function updateLibrary() {
|
|||
})
|
||||
}
|
||||
}
|
||||
|
||||
//endregion
|
||||
</script>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue