<!--components/navBar/navBar.wxml-->
<view class="nav-bar-cmp">
  <view wx:if="{{filled}}" style="height: {{menuInfo.top + menuInfo.height + padding}}px"></view>
  <view class="nav-bar-container" style="padding-top: {{menuInfo.top - padding}}px; background: {{bg}}">
    <view class="nav-bar-box {{type}}" style="height: {{menuInfo.height + padding * 2}}px">
      <view class="left">
        <image wx:if="{{(pageNum > 1) && back}}" class="back" src="/assets/images/navBar/back_{{type}}.png" bind:tap="handleBack" />
        <slot name="left"></slot>
      </view>
      <view class="center">
        <slot ></slot>
      </view>
      <view class="right">
        <slot name="right"></slot>
      </view>
    </view>
  </view>
</view>
