u-navbar.wxml
1.9 KB
<view class="u-navbar data-v-75dad532"><block wx:if="{{fixed&&placeholder}}"><view class="u-navbar__placeholder data-v-75dad532" style="{{'height:'+($root.g0)+';'}}"></view></block><view class="{{['data-v-75dad532',fixed&&'u-navbar--fixed']}}"><block wx:if="{{safeAreaInsetTop}}"><u-status-bar vue-id="a7d66e66-1" bgColor="{{bgColor}}" class="data-v-75dad532" bind:__l="__l"></u-status-bar></block><view class="{{['u-navbar__content','data-v-75dad532',border&&'u-border-bottom']}}" style="{{'height:'+($root.g1)+';'+('background-color:'+(bgColor)+';')}}"><view class="u-navbar__content__left data-v-75dad532" hover-class="u-navbar__content__left--hover" hover-start-time="150" data-event-opts="{{[['tap',[['leftClick',['$event']]]]]}}" bindtap="__e"><block wx:if="{{$slots.left}}"><slot name="left"></slot></block><block wx:else><block wx:if="{{leftIcon}}"><u-icon vue-id="a7d66e66-2" name="{{leftIcon}}" size="{{leftIconSize}}" color="{{leftIconColor}}" class="data-v-75dad532" bind:__l="__l"></u-icon></block><block wx:if="{{leftText}}"><text class="u-navbar__content__left__text data-v-75dad532" style="{{'color:'+(leftIconColor)+';'}}">{{leftText}}</text></block></block></view><block wx:if="{{$slots.center}}"><slot name="center"></slot></block><block wx:else><text class="u-line-1 u-navbar__content__title data-v-75dad532" style="{{$root.s0}}">{{title}}</text></block><block wx:if="{{$slots.right||rightIcon||rightText}}"><view data-event-opts="{{[['tap',[['rightClick',['$event']]]]]}}" class="u-navbar__content__right data-v-75dad532" bindtap="__e"><block wx:if="{{$slots.right}}"><slot name="right"></slot></block><block wx:else><block wx:if="{{rightIcon}}"><u-icon vue-id="a7d66e66-3" name="{{rightIcon}}" size="20" class="data-v-75dad532" bind:__l="__l"></u-icon></block><block wx:if="{{rightText}}"><text class="u-navbar__content__right__text data-v-75dad532">{{rightText}}</text></block></block></view></block></view></view></view>