draggable-vue-directive
Advanced tools
Comparing version 2.0.5 to 2.0.6
@@ -1,2 +0,2 @@ | ||
import Vue from "vue"; | ||
import Vue, { DirectiveOptions, VNodeDirective } from "vue"; | ||
export declare type HandleType = Vue | HTMLElement; | ||
@@ -29,3 +29,3 @@ export interface Position { | ||
} | ||
export interface DraggableBindings { | ||
export interface DraggableBindings extends VNodeDirective { | ||
value: DraggableValue; | ||
@@ -39,5 +39,2 @@ } | ||
} | ||
export declare const Draggable: { | ||
bind(el: HTMLElement, binding: DraggableBindings): void; | ||
update(el: HTMLElement, binding: DraggableBindings): void; | ||
}; | ||
export declare const Draggable: DirectiveOptions; |
@@ -42,6 +42,6 @@ "use strict"; | ||
exports.Draggable = { | ||
bind: function (el, binding) { | ||
exports.Draggable.update(el, binding); | ||
bind: function (el, binding, vnode, oldVnode) { | ||
exports.Draggable.update(el, binding, vnode, oldVnode); | ||
}, | ||
update: function (el, binding) { | ||
update: function (el, binding, vnode, oldVnode) { | ||
if (binding.value && binding.value.stopDragging) { | ||
@@ -48,0 +48,0 @@ return; |
{ | ||
"name": "draggable-vue-directive", | ||
"version": "2.0.5", | ||
"version": "2.0.6", | ||
"description": "A simple directive to handle drag and drop of any Vue component", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
25180
220