How vue listens to dom elements that meet v-if conditions. Rendering is complete.

how vue listens to v-if-qualified dom elements after rendering, and then performs subsequent operations. If you don"t listen, you can"t get qualified dom elements

Mar.23,2021

call the nextTick setting callback function when the condition after v-if changes.
for example:

Example</div>
</template>

Note mounted does not guarantee that it has been rendered. Match $nextClick in handleChildMounted to ensure the end of sub-component rendering.

Menu