File tree 1 file changed +17
-4
lines changed
1 file changed +17
-4
lines changed Original file line number Diff line number Diff line change 9
9
[ ![ MIT License] ( https://img.shields.io/github/license/David-Desmaisons/Vue.Draggable.svg )] ( https://github.com/David-Desmaisons/Vue.Draggable/blob/master/LICENSE )
10
10
11
11
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.
13
13
14
14
Based on and offering all features of [ Sortable.js] ( https://github.com/RubaXa/Sortable )
15
15
@@ -104,19 +104,32 @@ https://jsfiddle.net/dede89/u5ecgtsj/
104
104
` ` ` js
105
105
Bower install vue .draggable
106
106
` ` `
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
+
107
111
- #### For Modules
108
112
109
113
` ` ` js
110
114
// 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
112
119
import VueDraggable from ' vuedraggable'
120
+ import Vue from ' vue'
113
121
Vue .use (VueDraggable)
114
122
115
- // ES5
123
+ // ES5
124
+ // For Vue.js 1.0
116
125
var Vue = require (' vue' )
117
126
Vue .use (require (' vuedraggable' ))
127
+
128
+ // For Vue.js 2.0
129
+ var draggable = require (' vuedraggable' )
118
130
` ` `
119
131
120
132
- #### For ` < script> ` Include
121
133
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