Browse Source

标题默认显示(可隐藏)

htc 6 months ago
parent
commit
5e1fa7270d
1 changed files with 5 additions and 1 deletions
  1. 5 1
      components/common/uFunction.vue

+ 5 - 1
components/common/uFunction.vue

@@ -1,6 +1,6 @@
 <template>
 	<view class="item">
-		<view class="i_title">
+		<view class="i_title" v-if="showTitle">
 			<image src="../../static/imgs/fmcs_title.png"></image>
 			<text>{{title}}</text>
 		</view>
@@ -14,6 +14,10 @@
 <script>
 	export default {
 		props:{
+			showTitle:{
+				typeof:Boolean,
+				default:true
+			},
 			title:{
 				typeof:String,
 				default:''