File tree Expand file tree Collapse file tree 1 file changed +17
-4
lines changed Expand file tree Collapse file tree 1 file changed +17
-4
lines changed Original file line number Diff line number Diff line change 99[ ![ MIT License] ( https://img.shields.io/github/license/David-Desmaisons/Vue.Draggable.svg )] ( https://github.com/David-Desmaisons/Vue.Draggable/blob/master/LICENSE )
1010
1111
12- Vue component (Vue2. 0) or directive (Vue1 .0) allowing drag-and-drop and synchronization with view model array.
12+ Vue component (Vue.js 2. 0) or directive (Vue.js 1 .0) allowing drag-and-drop and synchronization with view model array.
1313
1414Based on and offering all features of [ Sortable.js] ( https://github.com/RubaXa/Sortable )
1515
@@ -104,19 +104,32 @@ https://jsfiddle.net/dede89/u5ecgtsj/
104104` ` ` js
105105 Bower install vue .draggable
106106` ` `
107+
108+ Version 1.0.9 is Vue.js 1.0 compatible <br>
109+ Version 2.0.2 is Vue.js 2.0 compatible
110+
107111- #### For Modules
108112
109113 ` ` ` js
110114 // ES6
111- import Vue from ' vue'
115+ // For Vue.js 2.0
116+ import draggable from ' vuedraggable'
117+
118+ // For Vue.js 1.0 only
112119 import VueDraggable from ' vuedraggable'
120+ import Vue from ' vue'
113121 Vue .use (VueDraggable)
114122
115- // ES5
123+ // ES5
124+ // For Vue.js 1.0
116125 var Vue = require (' vue' )
117126 Vue .use (require (' vuedraggable' ))
127+
128+ // For Vue.js 2.0
129+ var draggable = require (' vuedraggable' )
118130 ` ` `
119131
120132- #### For ` < script> ` Include
121133
122- 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.
134+ Just include ` vuedraggable .min .js ` or 'vue.dragable.for' after Vue.<br>
135+ lodash(version >=3) is needed only for Vuejs. 1.0 version of the library.
You can’t perform that action at this time.
0 commit comments