mirror of
https://github.com/Elvanos/fantasia-archive.git
synced 2024-09-29 08:41:49 +13:00
26 lines
493 B
Vue
26 lines
493 B
Vue
<script lang="ts">
|
|
import { Dialog } from 'quasar'
|
|
import { defineComponent } from 'vue'
|
|
|
|
export default defineComponent({
|
|
name: 'DialogWrapper',
|
|
props: {
|
|
component: {
|
|
type: Object,
|
|
required: true
|
|
},
|
|
componentProps: {
|
|
type: Object,
|
|
default: () => ({})
|
|
}
|
|
},
|
|
setup (props) {
|
|
Dialog.create({
|
|
component: props.component,
|
|
|
|
// props forwarded to your custom component
|
|
componentProps: props.componentProps
|
|
})
|
|
}
|
|
})
|
|
</script>
|