vuedraggable
Advanced tools
Comparing version 2.0.4 to 2.1.0
@@ -68,2 +68,8 @@ 'use strict'; | ||
default: null | ||
}, | ||
clone: { | ||
type: Function, | ||
default: function _default(original) { | ||
return original; | ||
} | ||
} | ||
@@ -120,3 +126,3 @@ }; | ||
}; | ||
evt.item._underlying_vm_ = element; | ||
evt.item._underlying_vm_ = this.clone(element); | ||
}, | ||
@@ -168,11 +174,13 @@ onDragAdd: function onDragAdd(evt) { | ||
if (typeof exports == "object") { | ||
var Sortable = require("sortablejs") | ||
module.exports = buildDraggable(Sortable) | ||
if (typeof exports == "object") { | ||
var Sortable = require("sortablejs"); | ||
module.exports = buildDraggable(Sortable); | ||
} else if (typeof define == "function" && define.amd) { | ||
define(['Sortable'], function(Sortable) { return buildDraggable(Sortable);}); | ||
} else if ( window && (window.Vue) && (window.Sortable)) { | ||
var draggable = buildDraggable(window.Sortable) | ||
Vue.component('draggable', draggable) | ||
define(['Sortable'], function (Sortable) { | ||
return buildDraggable(Sortable); | ||
}); | ||
} else if (window && window.Vue && window.Sortable) { | ||
var draggable = buildDraggable(window.Sortable); | ||
Vue.component('draggable', draggable); | ||
} | ||
})(); |
{ | ||
"name": "vuedraggable", | ||
"version": "2.0.4", | ||
"version": "2.1.0", | ||
"description": "draggable component for vue", | ||
@@ -5,0 +5,0 @@ "main": "dist/vuedraggable.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
12590
160
0