소스 검색

新增导航高度返回

sys 3 년 전
부모
커밋
afda180593
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      components/en-utils/en-nav/en-nav.vue

+ 1 - 0
components/en-utils/en-nav/en-nav.vue

@@ -85,6 +85,7 @@
           self.statusBarH = e.statusBarHeight + 10
           let custom = wx.getMenuButtonBoundingClientRect()
           self.customBarH = custom.height
+          self.$emit('navHeight', self.customBarH-10)
         }
       })
     }