Pārlūkot izejas kodu

新增导航高度返回

sys 3 gadi atpakaļ
vecāks
revīzija
afda180593
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  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)
         }
       })
     }