We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b58b36b commit 3eb77c5Copy full SHA for 3eb77c5
index.js
@@ -72,6 +72,16 @@ export default function install(Vue, {routes}) {
72
back(options, ...args) {
73
options = Object.assign({frame: 'navigator'}, options)
74
return this.$navigateBack.call(this, options, ...args)
75
+ },
76
+ modal(to, options) {
77
+ return appRoot.$showModal({
78
+ render: h => h(Navigator, {
79
+ props: {
80
+ id: options.id || 'navigatorModal',
81
+ defaultRoute: to
82
+ }
83
+ })
84
+ }, options).catch(err => console.log(`[Navigator] Failed to show modal: ${err}`))
85
}
86
},
87
})
0 commit comments