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

:data-index="index" is incorrect in DynamicScrollerItem demo #865

Open
2 tasks done
lizyChy0329 opened this issue Mar 28, 2024 · 1 comment
Open
2 tasks done

:data-index="index" is incorrect in DynamicScrollerItem demo #865

lizyChy0329 opened this issue Mar 28, 2024 · 1 comment

Comments

@lizyChy0329
Copy link

Clear and concise description of the problem

image
image

Suggested solution

key-field and index must be consistent otherwise the size of the computed could be 0.

// DynamicScroller
key-field="post_id"
// DynamicScrollerItem
:data-index="item.post_id"
:index="item.post_id"

image

Alternative

No response

Additional context

No response

Validations

  • Read the docs.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
@jamesallan93
Copy link

jamesallan93 commented Dec 1, 2024

my items were not being rendered and after doing what you posted, it worked, thx:
I used index instead

// DynamicScrollerItem
:data-index="index"
:index="index"

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