From 52925b404c4dd37ddf15ea1617b99e913b462d46 Mon Sep 17 00:00:00 2001 From: Tevin <tingquanren@163.com> Date: Mon, 15 Mar 2021 16:45:22 +0800 Subject: [PATCH] Merge branch 'master' of ssh://dev.zhiheiot.com:29418/mob-components --- layout/h5Page/CNavBar.vue | 15 +++++++++++++-- 1 files changed, 13 insertions(+), 2 deletions(-) diff --git a/layout/h5Page/CNavBar.vue b/layout/h5Page/CNavBar.vue index b037ade..50bfc5d 100644 --- a/layout/h5Page/CNavBar.vue +++ b/layout/h5Page/CNavBar.vue @@ -2,11 +2,17 @@ <view class="c-nav-bar"> <AtNavBar :title="title" - leftIconType="chevron-left" - :onClickLeftIcon="evt=>onGoBack()" + :leftIconType="iconType" + :onClickLeftIcon="evt=>onClickIcon ? onClickIcon() : onGoBack()" :rightFirstIconType="dropNav ? 'bullet-list' : ''" :onClickRgIconSt="evt=>onDropMenu()" /> + <view + class="c-nav-bar-right" + v-if="!dropNav" + > + <slot /> + </view> <view class="c-nav-bar-drop" v-show="dropShow" @@ -38,6 +44,11 @@ }, props: { title: String, + iconType: { + type: String, + default: 'chevron-left', + }, + onClickIcon: Function, dropNav: Array, }, data() { -- Gitblit v1.9.1