2021-01-12 18:04:14 +08:00

29 lines
1.4 KiB
Plaintext

<!---------- wxs start ----------->
<wxs module="utils" src="../wxs/utils.wxs"></wxs>
<wxs module="computed" src="./index.wxs"></wxs>
<!---------- wxs end ----------->
<view wx:if="{{ fixed && placeholder }}" style="height: {{ height }}px;"></view>
<view class="{{ utils.bem('nav-bar', { fixed }) }} custom-class {{ border ? 'van-hairline--bottom' : '' }}" style="{{ computed.barStyle({ zIndex, statusBarHeight, safeAreaInsetTop }) }}; {{ customStyle }}">
<view class="van-nav-bar__content">
<view class="van-nav-bar__left" bind:tap="onClickLeft">
<block wx:if="{{ leftArrow || leftText }}">
<van-icon wx:if="{{ leftArrow }}" size="16px" name="arrow-left" custom-class="van-nav-bar__arrow"></van-icon>
<view wx:if="{{ leftText }}" class="van-nav-bar__text" hover-class="van-nav-bar__text--hover" hover-stay-time="70">{{ leftText }}</view>
</block>
<slot wx:else="" name="left"></slot>
</view>
<view class="van-nav-bar__title title-class van-ellipsis">
<block wx:if="{{ title }}">{{ title }}</block>
<slot wx:else="" name="title"></slot>
</view>
<view class="van-nav-bar__right" bind:tap="onClickRight">
<view wx:if="{{ rightText }}" class="van-nav-bar__text" hover-class="van-nav-bar__text--hover" hover-stay-time="70">{{ rightText }}</view>
<slot wx:else="" name="right"></slot>
</view>
</view>
</view>