"use strict";const e=require("../../common/vendor.js"),t=e.defineComponent({__name:"hs-custom-title",props:["title","objStyle"],setup(t){const o=t,l=e.ref("标题"),n=e.ref({});return e.watch((()=>o.title),(e=>{l.value=e,console.log(e,"title")})),e.onMounted((()=>{l.value=o.title,n.value=e.index.getMenuButtonBoundingClientRect(),console.log(n.value,"capsuleRect")})),(t,u)=>({a:e.t(l.value||"标题"),b:e.s(`padding-top:${n.value.top}px;height:${n.value.height}px;line-height:${n.value.height}px;${null==o?void 0:o.objStyle}`)})}}),o=e._export_sfc(t,[["__scopeId","data-v-e1a2d9a5"]]);wx.createComponent(o);
