htc 1 год назад
Родитель
Сommit
118f216051
1 измененных файлов с 8 добавлено и 4 удалено
  1. 8 4
      components/uNavBar/index.vue

+ 8 - 4
components/uNavBar/index.vue

@@ -1,9 +1,9 @@
 <template>
 	<u-navbar :title="title" :bgColor="bgColor" :titleStyle="titleStyle">
 		<view class="u-nav-slot" slot="left" style="display: flex;">
-			<u-icon name="arrow-left" size="44" :color="leftIconColor" @tap="toBack(backUrl)"></u-icon>
-			<u-line v-if="showHome" direction="column" :hairline="false" length="0" margin="0 15rpx"></u-line>
-			<u-icon v-if="showHome" name="home" size="48" :color="leftIconColor" @tap="toHome"></u-icon>
+			<u-icon v-if="showIcon" name="arrow-left" size="44" :color="leftIconColor" @tap="toBack(backUrl)"></u-icon>
+			<u-line v-if="showHome&&showIcon" direction="column" :hairline="false" length="0" margin="0 15rpx"></u-line>
+			<u-icon v-if="showHome&&showIcon" name="home" size="48" :color="leftIconColor" @tap="toHome"></u-icon>
 		</view>
 	</u-navbar>
 </template>
@@ -18,6 +18,10 @@
 				typeof: String,
 				default: ''
 			},
+			showIcon: {
+				typeof: Boolean,
+				default: true
+			},
 			showHome: {
 				typeof: Boolean,
 				default: true
@@ -37,7 +41,7 @@
 			titleStyle: {
 				typeof: Object,
 				default: {
-					fontSize: '36rpx',
+					fontSize: '34rpx',
 					fontWeight: "bold",
 					color: '#111111'
 				}