[go: up one dir, main page]

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

how to use this with ajax #7

Open
cute-angelia opened this issue Aug 15, 2018 · 1 comment
Open

how to use this with ajax #7

cute-angelia opened this issue Aug 15, 2018 · 1 comment

Comments

@cute-angelia
Copy link

it's lapping when i use ajax load imgs

tomieric added a commit that referenced this issue Jan 12, 2019
add lazyload image usage

Issue #6,#7
Close #6,#7
@tomieric
Copy link
Member
fetch('/api/waterfall?search=girl')
          .then(data => {
            if (isReset) {
              this.waterfallData = data
            } else {
              this.waterfallData.push(...data)
            }
            resolve(data)
            this.$nextTick(() => this.$refs.bricks.pack())
          })

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

No branches or pull requests

2 participants