Files
mini-yu/unpackage/dist/build/web/assets/using-custom-navbar.D_-3PoX-.js

2 lines
392 B
JavaScript
Raw Normal View History

2026-02-10 08:05:03 +08:00
import{s as t}from"./button.BC3KjxGU.js";const a={data:()=>({distanceTop:0}),props:{usingCustomNavbar:{type:Boolean,default:!1},customNavbarHeight:{type:Number,default:0}},created(){this.usingCustomNavbar&&this.calculateCustomNavbarDistanceTop()},methods:{calculateCustomNavbarDistanceTop(){const{statusBarHeight:a}=t;this.distanceTop=Math.max(0,this.customNavbarHeight+a)}}};export{a as u};