File tree Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Original file line number Diff line number Diff line change 16
16
< div id ="main ">
17
17
< h1 > Vue Dragable For</ h1 >
18
18
19
- <!-- <div v-dragable-for="element in list">
20
- {{element.name}}
21
- </div> -->
22
- < div class ="list-group ">
23
- < template v-dragable-for ="element in list ">
24
- < div class ="list-group-item "> {{element.name}}</ div >
25
- </ template >
19
+ < div >
20
+ < div v-dragable-for ="element in list "> {{element.name}}</ div >
26
21
</ div >
27
22
28
23
< script type ="text/javascript " src ="..\libs\vue\dist\vue.js "> </ script >
Original file line number Diff line number Diff line change 30
30
31
31
mix ( clonedForDirective , {
32
32
bind : function ( ) {
33
- this . sortable = new Sortable ( this . el , { } ) ;
33
+ this . sortable = new Sortable ( this . el . parentElement , { } ) ;
34
34
} ,
35
35
update : function ( ) {
36
36
console . log ( this . sortable )
You can’t perform that action at this time.
0 commit comments