页面链接。
属性名 | 类型 | 默认值 | 说明 |
url | String | 应用内的跳转链接 | |
redirect | Boolean | false | 是否关闭当前页面 |
hover-class | String | navigator-hover | 指定点击时的样式类,当hover-class="none"时,没有点击态效果 |
注:navigator-hover默认为{background-color: rgba(0, 0, 0, 0.1); opacity: 0.7;}, <navigator/>的子节点背景色应为透明色
<view class="page">
<view class="page__hd">
<text class="page__title">navigator</text>
<text class="page__desc">导航栏</text>
</view>
<view class="page__bd">
<view class="btn-area">
<navigator url="navigate?title=navigate" hover-class="navigator-hover">
<button type="default">跳转到新页面</button>
</navigator>
<navigator url="redirect?title=redirect" redirect hover-class="otherother-navigator-hover">
<button type="default">在当前页打开</button>
</navigator>
</view>
</view>
</view>