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

Update vue-virtual-scroll-list and vuedraggable version #27

Open
wants to merge 19 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
root = true

[*]
charset = utf-8
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ jobs:
- uses: actions/checkout@v1
- name: Build
run: |
npm install [email protected].11
npm install [email protected].14
npm run build
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Run unit tests
run: |
npm install [email protected].11
npm install [email protected].14
npm run test
78 changes: 78 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
# vue-draggable-virtual-scroll-list

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


# Description

🔌 [SortableJS/Vue.Draggable][] + ⚡ [tangbc/vue-virtual-scroll-list][] =
💡✨

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

![](images/screenshot.gif)

# Usage

``` html
<div id="main">
<draggable-virtual-list
class="phrase-list"
v-model="items"
:size="50"
:keeps="20"
:data-key="'id'"
:data-sources="items"
:data-component="Item"
>
</draggable-virtual-list>
</div>

<script>
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
}
},
})
</script>
```

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

# License

<span class="spurious-link" target="LICENSE">*MIT License.*</span>

[1]: https://github.com/p-baleine/vue-draggable-virtual-scroll-list/workflows/CI/badge.svg
[SortableJS/Vue.Draggable]: https://github.com/SortableJS/Vue.Draggable
[tangbc/vue-virtual-scroll-list]: https://github.com/tangbc/vue-virtual-scroll-list
[./example/index.html]: ./example/index.html
70 changes: 0 additions & 70 deletions README.org

This file was deleted.

12 changes: 5 additions & 7 deletions dist/broker/draggable-policy.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/broker/draggable-policy.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

69 changes: 62 additions & 7 deletions dist/broker/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading