Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3eb77c5

Browse files
committed
feat: allow opening a navigator modal
1 parentb58b36b commit3eb77c5

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

‎index.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,16 @@ export default function install(Vue, {routes}) {
7272
back(options, ...args){
7373
options=Object.assign({frame:'navigator'},options)
7474
returnthis.$navigateBack.call(this,options, ...args)
75+
},
76+
modal(to,options){
77+
returnappRoot.$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}`))
7585
}
7686
},
7787
})

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp