浏览代码

返回导航

wangxy 1 月之前
父节点
当前提交
32b0a09e0c
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      components/custom-navbar/custom-navbar.vue

+ 3 - 3
components/custom-navbar/custom-navbar.vue

@@ -1,13 +1,13 @@
 <template>
   <view class="custom-nav">
-	  <view v-if="showBackBtn" @click="handleBack"><</view>
+	  <view v-if="showBackBtn" @click="handleBack">返回</view>
     <!-- 状态栏填充(兼容刘海屏) -->
     <view class="status-bar" :style="{ height: statusBarHeight + 'px' }"></view>
     <!-- 标题区域 -->
     <view class="nav-content">
-      <text class="nav-title" :style="{ fontSize: titleSize + 'px', color: titleColor }">
+      <view class="nav-title" :style="{fontSize: titleSize + 'px', color: titleColor}">
         {{ title }}
-      </text>
+      </view>
     </view>
   </view>
 </template>