search

Home  >  Q&A  >  body text

javascript - vue component, how to get the height of the elements in the slot

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.

为情所困为情所困2709 days ago1063

reply all(1)I'll reply

  • 给我你的怀抱

    给我你的怀抱2017-07-05 11:11:08

    Isn’t it okay to give a default height first and then copy it again after rendering?

    reply
    0
  • Cancelreply