@@ -52,6 +52,7 @@ export default defineComponent({
const { height } = useRect((this as any).$refs.div)
this.sectionStyle.height = `${height}px`
this.$emit('getHeight', height)
+ console.log(height, 'osticky height')
}, 200)
})
},
@@ -36,6 +36,7 @@ export default defineComponent({
<OSticky
position="top"
onGetHeight={(height: any) => {
+ console.log(height, 'height')
heightV.value = height
document.documentElement.style.setProperty('--header-height', height + 'px')
}}