lex 2 gadi atpakaļ
vecāks
revīzija
cec6d1b9bb

+ 1 - 0
src/components/o-sticky/index.tsx

@@ -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)
     })
   },

+ 1 - 0
src/school/train-planning/index.tsx

@@ -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')
           }}