Files
doc-mini-app/components/list-nav-bar/list-nav-bar.wxml
2024-08-20 23:59:50 +08:00

28 lines
1.2 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="navbar" style="height:{{navBarHeight}}px; background:#3c8bf6;" >
<view class="navbar-container">
<!-- 导航按钮 -->
<view wx:if="{{showNavBtn}}" style="z-index: 999999;">
<!-- 默认显示返回若添加isShowHome属性则显示主页添加isShowCustomIcon则显示用户自定义icon -->
<!-- <view class="navbar-btn" wx:if="{{navIcon}}" bindtap="navBtn">
<image class="navbar-icon custom-icon-class" src="{{navIcon}}"></image>
</view> -->
<!-- <view class="navbar-btn" wx:elif="{{navHome}}" bindtap="navHome">
<image class="navbar-icon custom-icon-class" src="./images/home.svg"></image>
</view> -->
<view class="navbar-btn" bind:tap="navBack">
<image class="navbar-icon custom-icon-class" src="../../images/back.png"></image>
</view>
</view>
<!-- 中间标题 -->
<view class="navbar_title" style="color: {{color}};" >
<text>{{title}}</text>
<!-- 具名插槽 position: relative;left: -80rpx;-->
<!-- <view style="display: inline-block;">
<slot name="titleSlot"></slot>
</view> -->
</view>
</view>
</view>
<!-- 占位,高度与顶部栏一样 -->
<view style="height:{{navBarHeight}}px;"></view>