mfuu / vue3-virtual-drag-list

A virtual scrolling list component that can be sorted by dragging, for vue3
https://mfuu.github.io/vue3-virtual-drag-list/
MIT License
38 stars 11 forks source link

Code examples #3

Closed theSilverFisch closed 1 year ago

theSilverFisch commented 1 year ago

Could you provide code examples for your demo components? The List somewhat works but I can't seem to manipulate the output in the slot template no matter what I add there. I also seem to be unable to deactivate the drag feature.

Is there an API documentation anywhere?

Regards

theSilverFisch commented 1 year ago

edit: just realized that it's an issue with the documentation. The correct way to register the slot item is:

 <template v-slot:item="{ record, index, dataKey }">
    {{ record }}
 </template>
theSilverFisch commented 1 year ago

But how do you make the items into "infinity-items" as in your demo? For me it currently just renders the amount of items I defined in keeps

theSilverFisch commented 1 year ago

@mfuu Any chance to get an updated documentation for the examples soonish? So far I seem not to be able to let it render more dataItems than I have defined in the "keeps"

mfuu commented 1 year ago

@theSilverFisch Sorry to reply so late, I will update the version in the near future to fix some known issues and update the documentation. Thank you for your patience.

theSilverFisch commented 1 year ago

@theSilverFisch Sorry to reply so late, I will update the version in the near future to fix some known issues and update the documentation. Thank you for your patience.

Awesome! Thanks a lot my friend!