Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Customer scrollable element" doesn't support "v-lazy:background-image" #60

Closed
WalterZou opened this issue Nov 15, 2016 · 2 comments
Closed
Labels

Comments

@WalterZou
Copy link

WalterZou commented Nov 15, 2016

<ul id="container">
  <li v-for="img in list">
    <div v-lazy.container:background-image="img"></div>
  </li> 
</ul>

The code above dosen't work , it rendered:

<div src="imgurl"></div>

instead of

<div style="background-image:'url(...)'"></div>
@hilongjw
Copy link
Owner

@WalterZou I will check it

@hilongjw
Copy link
Owner

hilongjw commented Nov 25, 2016

@WalterZou there are some different between Vue2.0 and Vue1.0 directive parse behavior

<!-- Vue 2.0 -->
<div v-lazy:background-image.box="img" ></div>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants