quasar
Version:
Build high-performance VueJS user interfaces (SPA, PWA, SSR, Mobile and Desktop) in record time
12 lines (10 loc) • 321 B
JavaScript
import DialogPlugin from '../components/dialog-plugin/DialogPlugin.js'
import globalDialog from '../utils/private/global-dialog.js'
export default {
install ({ $q, parentApp }) {
$q.dialog = globalDialog(DialogPlugin, true, parentApp)
if (this.__installed !== true) {
this.create = $q.dialog
}
}
}