Closed MoonLikeSinging closed 4 years ago
I set an background image, and I use js to get the height, when I use the variable height to set :style={height: height], it's conflict with v-lazy:background-image. How can I use v-lazy:background-image to set the height?
<div class="row" v-lazy:background-image="imageSrc" style="background-repeat: no-repeat; background-size: 100% 100%">
Solved, set parent div's style.height
I set an background image, and I use js to get the height, when I use the variable height to set :style={height: height], it's conflict with v-lazy:background-image. How can I use v-lazy:background-image to set the height?
<div class="row" v-lazy:background-image="imageSrc" style="background-repeat: no-repeat; background-size: 100% 100%">