0.0.7 • Published 3 years ago

@minico/core v0.0.7

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
3 years ago

navigate

minico基础跳转插件

Install

npm install @minico/core
npx cap sync

API

echo(...)

echo(options: { value: string; }) => any
ParamType
options{ value: string; }

Returns: any


navigateTo(...)

navigateTo(options: NavigateToOption) => any

导航打开新页

ParamTypeDescription
optionsNavigateToOption导航参数

Returns: any


navigateBack(...)

navigateBack(options: { depth: 1; }) => any

返回上一页

ParamTypeDescription
options{ depth: 1; }返回push栈的页数 默认1

Returns: any


closeWebview()

closeWebview() => any

关闭当前HybridWeb

Returns: any


Interfaces

NavigateToOption

PropTypeDescription
urlstring要跳转的URL
titlestring标题
showNavboolean导航栏展示
heightnumber弹出页面的高度
styleJumpStyle页面跳转风格
themColorstring

Enums

JumpStyle

MembersValue
push'push'
present'present'