A promise based, highly customize modal component
Suppose your application has many different modal components, if you use dynamic-component, you will find that your business logic is around all of components, that will hard to read and hard maintainable, so use promise based modal component can improve code readability and management.
We use codesandbox.io
to show you how to use mt-vue2-modal
-
showDefaultModal
: Use default modal to show simple text -
show
: Use custom component to show highly customize content and logic