Port of vue-modal-dialogs to Vue 3Promisify dialogs!A typical and essential type of user interaction is dialogs. Dialogs are somehow similar to Promise. A dialog will eventually close. A Promise will eventually resolve. A dialog returns some data when it closes. So does Promise. It is time...
importVuefrom'vue'importvDialogfrom'v-dialogs'; ... Vue.use(vDialog); Use case Modal importmyComponentfrom'./myComponent';//import component you want to open in Modal dialognewVue({el:'#app',methods: { click(){//open component in Modal, and passing params to componentthis.$vDialog....
Instead of using the default export (import ModalDialogs from "vue-modal-dialogs";) with Vue.use use the import all syntax (import * as ModalDialogs from "vue3-modal-dialogs";) makeDialog is renamed to create. The dialogId property is removed and kept internally. You might need to ...