description: a simple modal component for vue3 to using with function call
experimental !!! do not using in production!
- simple hook function call modal.
- experimental
const { open } = useDialog({
component: Component,
props: {
title: 'title',
content: 'content',
},
lazy: true,
});
const { open, close } = useDialog({
component: Component,
props: {
onClose: () => {
close();
},
title: 'title',
content: ref('content'),
},
lazy: false,
});