vuedraggable
Advanced tools
Comparing version 2.0.2 to 2.0.3
{ | ||
"name": "vuedraggable", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"description": "draggable component for vue", | ||
@@ -5,0 +5,0 @@ "main": "src/vuedraggable.js", |
@@ -12,3 +12,3 @@ # Vue.Draggable | ||
Vue component (Vue2.0) or directive (Vue1.0) allowing drag-and-drop and synchronization with view model array. | ||
Vue component (Vue.js 2.0) or directive (Vue.js 1.0) allowing drag-and-drop and synchronization with view model array. | ||
@@ -103,3 +103,3 @@ Based on and offering all features of [Sortable.js](https://github.com/RubaXa/Sortable) | ||
``` js | ||
npm install vuedraggabble | ||
npm install vuedraggable | ||
``` | ||
@@ -109,2 +109,6 @@ ``` js | ||
``` | ||
Version 1.0.9 is Vue.js 1.0 compatible <br> | ||
Version 2.0.2 is Vue.js 2.0 compatible | ||
- #### For Modules | ||
@@ -114,9 +118,17 @@ | ||
// ES6 | ||
//For Vue.js 2.0 | ||
import draggable from 'vuedraggable' | ||
//For Vue.js 1.0 only | ||
import VueDraggable from 'vuedraggable' | ||
import Vue from 'vue' | ||
import VueDraggable from 'vuedraggable' | ||
Vue.use(VueDraggable) | ||
// ES5 | ||
// ES5 | ||
//For Vue.js 1.0 | ||
var Vue = require('vue') | ||
Vue.use(require('vuedraggable')) | ||
//For Vue.js 2.0 | ||
var draggable = require('vuedraggable') | ||
``` | ||
@@ -126,2 +138,3 @@ | ||
Just include `vuedraggable.min.js` or 'vue.dragable.for' after Vue. lodash(version >=3) is needed only for Vuejs. 1.0 version of the library. | ||
Just include `vuedraggable.min.js` or 'vue.dragable.for' after Vue.<br> | ||
lodash(version >=3) is needed only for Vuejs. 1.0 version of the library. |
@@ -161,3 +161,3 @@ (function() { | ||
if (typeof exports == "object") { | ||
var Sortable = require("Sortablejs") | ||
var Sortable = require("sortablejs") | ||
module.exports = buildDraggable(Sortable) | ||
@@ -164,0 +164,0 @@ } else if (typeof define == "function" && define.amd) { |
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
11971
136