javascript - vue component, how to get the height of the elements in the slot
为情所困2017-07-05 11:09:08
0
1
1101
Write a slider component, similar to swiper.js, and insert a dom structure into each slider-item. During the operation, it was found that the inserted dom structure cannot obtain the height in the mounted stage, so it should not be rendered.
Isn’t it okay to give a default height first and then copy it again after rendering?