0.0.7 • Published 3 years ago
@minico/core v0.0.7
navigate
minico基础跳转插件
Install
npm install @minico/core
npx cap sync
API
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 | 页面跳转风格 |
themColor | string |
Enums
JumpStyle
Members | Value |
---|---|
push | 'push' |
present | 'present' |