1

A question like this:
What exists today is the easiest way to get a reactive value of the height of an element, provided that specific parameters for this height are not specified. I am primarily interested in the implementation in conjunction with the Vue3 Composition Api

Tried options like the following:

введите сюда описание изображения

введите сюда описание изображения

But they all didn't work.

1 Answers1

0

try this

template:

<ul ref="infoBox"></ul>

script:

const infoBox = ref(0)

const height = infoBox.value.clientHeight
Daimla
  • 24
  • 1
  • 4