Skip to content

Commit 0c38b23

Browse files
Personal refactor (#1)
* refactor(props): change wrap-tag type * Updated wrap-tag props type to accept component so a vue component can be passed as wrapper * Gist: vue-smooth-dnd uses Container to wrap list of items that are draggable * refactor(render): pass props to wrapping tag * Pass extraProps to container tag so, custom values can be passed to custom container * feat(range): add method to get range * Add method to get current range of shown items, so the dragged item can be indexed based on the start range index and dragged index * build: run prod build for new changes
1 parent 6aca997 commit 0c38b23

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

dist/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -717,6 +717,7 @@
717717
activated: function activated() {
718718
// set back offset when awake from keep-alive
719719
this.scrollToOffset(this.virtual.offset);
720+
720721
if (this.pageMode) {
721722
document.addEventListener('scroll', this.onScroll, {
722723
passive: false

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)