Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/p-baleine/vue-draggable-virtual-scroll-list

๐Ÿ”Œ SortableJS/Vue.Draggable + โšก tangbc/vue-virtual-scroll-list = ๐Ÿ’กโœจ
https://github.com/p-baleine/vue-draggable-virtual-scroll-list

Last synced: 7 days ago
JSON representation

๐Ÿ”Œ SortableJS/Vue.Draggable + โšก tangbc/vue-virtual-scroll-list = ๐Ÿ’กโœจ

Awesome Lists containing this project

README

        

#+TITLE: vue-draggable-virtual-scroll-list

[[https://github.com/p-baleine/vue-draggable-virtual-scroll-list/workflows/CI/badge.svg]]

* Description

๐Ÿ”Œ [[https://github.com/SortableJS/Vue.Draggable][SortableJS/Vue.Draggable]] + โšก [[https://github.com/tangbc/vue-virtual-scroll-list][tangbc/vue-virtual-scroll-list]] = ๐Ÿ’กโœจ

Vue component who put [[https://github.com/SortableJS/Vue.Draggable][SortableJS/Vue.Draggable]] and
[[https://github.com/tangbc/vue-virtual-scroll-list][tangbc/vue-virtual-scroll-list]] together and allow drag-and-drop and big amount
data list with high scroll performance.

[[images/screenshot.gif]]

* Usage

#+begin_src html




const Item = {
props: {
source: {
type: Object,
default () {
return {}
},
},
},
template: `
<div class="phrase" :key="source.id">
{{ source.content }}
</div>
`
}

new Vue({
el: '#main',
components: {
DraggableVirtualList,
},
data() {
return {
items: [
{ source: { id: 1, content: 'hello' } },
{ source: { id: 2, content: world' } },
// ...
],
Item
}
},
})

#+end_src

Please see [[./example/index.html]].

* License
[[LICENSE][MIT License.]]