Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 230bc24

Browse files
smooth-dnd -> 0.8.4
1 parent 95caf5c commit 230bc24

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

‎package.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-smooth-dnd",
3-
"version": "0.3.0",
3+
"version": "0.3.1",
44
"description": "Vue wrappers for smooth-dnd",
55
"author": "Kutlu Sahin",
66
"homepage": "https://kutlugsahin.github.io/vue-smooth-dnd/",
@@ -45,7 +45,7 @@
4545
"url": "https://github.com/kutlugsahin/vue-smooth-dnd/issues"
4646
},
4747
"dependencies": {
48-
"smooth-dnd": "^0.8.1"
48+
"smooth-dnd": "^0.8.4"
4949
},
5050
"devDependencies": {
5151
"babel-jest": "^23.4.0",

‎src/Container.js‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
/* eslint-disable curly */
2-
import SmoothDnD,{ dropHandlers } from 'smooth-dnd'
2+
import {smoothDnD, dropHandlers } from 'smooth-dnd'
33
import { getTagProps, validateTagProp } from './utils'
44

5-
SmoothDnD.dropHandler = dropHandlers.reactDropHandler().handler
6-
SmoothDnD.wrapChild = p=>p// don't wrap children they will already be wrapped
5+
smoothDnD.dropHandler = dropHandlers.reactDropHandler().handler
6+
smoothDnD.wrapChild = false
77

88
const mapOptions = context => {
99
const props = Object.assign({}, context.$props, context.$listeners)
@@ -54,7 +54,7 @@ const mapOptions = context => {
5454
context.$emit('drag-leave')
5555
}
5656
}
57-
if (props.getGhostParent) options.getGhostParent = props.getGhostParent;
57+
if (props.getGhostParent) options.getGhostParent = props.getGhostParent
5858

5959
if (props['drop-ready']) {
6060
options.onDropReady = dropResult => {
@@ -68,7 +68,7 @@ export default {
6868
name: 'Container',
6969
mounted () {
7070
this.containerElement = this.$refs.container || this.$el
71-
this.container = SmoothDnD(this.containerElement, mapOptions(this))
71+
this.container = smoothDnD(this.containerElement, mapOptions(this))
7272
},
7373
updated () {
7474
if (
@@ -79,7 +79,7 @@ export default {
7979
this.container.dispose()
8080
}
8181
this.containerElement = this.$refs.container || this.$el
82-
this.container = SmoothDnD(this.containerElement, mapOptions(this))
82+
this.container = smoothDnD(this.containerElement, mapOptions(this))
8383
}
8484
},
8585
destroyed () {

‎src/main.js‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
import Container from './Container'
22
import Draggable from './Draggable'
3+
import { constants } from 'smooth-dnd'
34

45
export {
56
Container,
6-
Draggable
7+
Draggable,
8+
constants
79
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /