1. How to obtain slot content with JS in Vue3:

const defaults = context.slots.default()

2. Get the width, height and position of the element

const { width , height , top , left } = el.getBoundingClientRect()

3. The renaming syntax of ES 6 destructor assignment

const { left: left1 } = x. getBoundingClientRect()

const { left: left2 } = y. getBoundingClientRect()

4. Upgrade Vue2 to Vue3 using the tools and tutorials provided by Vue