Files
JayuCloud/WeChatProgram/components/navigation-bar/navigation-bar.wxml
T

57 lines
2.0 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<view class="weui-navigation-bar {{extClass}} {{safeAreaMode === 'overlay' ? 'weui-navigation-bar--overlay' : ''}}">
<view
class="weui-navigation-bar__inner {{ios ? 'ios' : 'android'}}"
style="color: {{color}}; background: {{background}}; {{displayStyle}}; {{innerPaddingRight}}; {{safeAreaTop}};"
>
<view class="weui-navigation-bar__left" style="{{leftWidth}};">
<block wx:if="{{resolvedShowBack || homeButton}}">
<view wx:if="{{resolvedShowBack}}" class="weui-navigation-bar__buttons">
<view
bindtap="back"
class="weui-navigation-bar__action"
hover-class="weui-navigation-bar__action--active"
hover-stay-time="80"
aria-role="button"
aria-label="返回"
>
<text class="weui-navigation-bar__arrow">‹</text>
<text class="weui-navigation-bar__label">返回</text>
</view>
</view>
<view wx:if="{{homeButton}}" class="weui-navigation-bar__buttons">
<view
bindtap="home"
class="weui-navigation-bar__action"
hover-class="weui-navigation-bar__action--active"
hover-stay-time="80"
aria-role="button"
aria-label="首页"
>
<text class="weui-navigation-bar__home-dot"></text>
<text class="weui-navigation-bar__label">首页</text>
</view>
</view>
</block>
<block wx:else>
<slot name="left"></slot>
</block>
</view>
<view class="weui-navigation-bar__center">
<view wx:if="{{loading}}" class="weui-navigation-bar__loading" aria-role="alert">
<view class="weui-loading" aria-role="img" aria-label="加载中"></view>
</view>
<block wx:if="{{title}}">
<text>{{title}}</text>
</block>
<block wx:else>
<slot name="center"></slot>
</block>
</view>
<view class="weui-navigation-bar__right">
<slot name="right"></slot>
</view>
</view>
</view>