@zwkang/vue-use-modal
v0.0.1-beta.6
Published
a simple way for function-call create modal
Downloads
2
Readme
@zwkang/vue-use-modal
description: a simple modal component for vue3 to using with function call
experimental !!! do not using in production!
Features
- simple hook function call modal.
- experimental
Try it now
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,
});