File tree Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,8 @@ const draggableComponent = {
103
103
return {
104
104
transitionMode : false ,
105
105
noneFunctionalComponentMode : false ,
106
- init : false
106
+ init : false ,
107
+ isCloning : false
107
108
} ;
108
109
} ,
109
110
@@ -182,14 +183,6 @@ const draggableComponent = {
182
183
return this . transitionMode ? this . $el . children [ 0 ] : this . $el ;
183
184
} ,
184
185
185
- isCloning ( ) {
186
- return (
187
- ! ! this . options &&
188
- ! ! this . options . group &&
189
- this . options . group . pull === "clone"
190
- ) ;
191
- } ,
192
-
193
186
realList ( ) {
194
187
return this . list ? this . list : this . value ;
195
188
}
@@ -213,6 +206,14 @@ const draggableComponent = {
213
206
} ,
214
207
215
208
methods : {
209
+ getIsCloning ( ) {
210
+ return (
211
+ ! ! this . options &&
212
+ ! ! this . options . group &&
213
+ this . options . group . pull === "clone"
214
+ ) ;
215
+ } ,
216
+
216
217
getChildrenNodes ( ) {
217
218
if ( ! this . init ) {
218
219
this . noneFunctionalComponentMode =
@@ -326,6 +327,7 @@ const draggableComponent = {
326
327
327
328
onDragStart ( evt ) {
328
329
this . context = this . getUnderlyingVm ( evt . item ) ;
330
+ this . isCloning = this . getIsCloning ( ) ;
329
331
evt . item . _underlying_vm_ = this . clone ( this . context . element ) ;
330
332
draggingElement = evt . item ;
331
333
} ,
You can’t perform that action at this time.
0 commit comments