0.0.2 • Published 4 years ago
minico-navigate v0.0.2
navigate
minico基础跳转插件
Install
npm install minico-navigate
npx cap syncAPI
echo(...)
echo(options: { value: string; }) => any| Param | Type |
|---|---|
options | { value: string; } |
Returns: any
navigateTo(...)
navigateTo(options: NavigateToOption) => any导航打开新页
| Param | Type | Description |
|---|---|---|
options | NavigateToOption | 导航参数 |
Returns: any
navigateBack(...)
navigateBack(options: { depth: 1; }) => any返回上一页
| Param | Type | Description |
|---|---|---|
options | { depth: 1; } | 返回push栈的页数 默认1 |
Returns: any
closeWebview()
closeWebview() => any关闭当前HybridWeb
Returns: any
Interfaces
NavigateToOption
| Prop | Type | Description |
|---|---|---|
url | string | 要跳转的URL |
title | string | 标题 |
showNav | boolean | 导航栏展示 |
height | number | 弹出页面的高度 |
style | JumpStyle | 页面跳转风格 |
Enums
JumpStyle
| Members | Value |
|---|---|
push | 'push' |
present | 'present' |