0
0
Fork 0
salix-front-mindshore-fork2/test/cypress/wrappers/DialogWrapper.vue

27 lines
567 B
Vue
Raw Normal View History

2022-03-24 13:12:14 +00:00
<script>
import { defineComponent } from 'vue';
import { Dialog } from 'quasar';
export default defineComponent({
2022-03-24 13:57:11 +00:00
name: 'DialogWrapper',
props: {
component: {
type: Object,
required: true,
},
componentProps: {
type: Object,
default: () => ({}),
},
2022-03-24 13:12:14 +00:00
},
2022-03-24 13:57:11 +00:00
setup(props) {
Dialog.create({
component: props.component,
2022-03-24 13:12:14 +00:00
2022-03-24 13:57:11 +00:00
// props forwarded to your custom component
componentProps: props.componentProps,
});
},
2022-03-24 13:12:14 +00:00
});
</script>