<template><div><div><h2>SimpleDnD</h2><ul><draggablev-model="lists":options="{group:'people'}"@start="drag=true"@end="drag=false"><liv-for="list in lists"></li></draggable></ul></div><hr><divclass="div2"><h2>TwoLists</h2><divclass="twoListsDiv"><ul><draggablev-model="lists":options="{group:'people'}"><liv-for="list in lists"></li></draggable></ul></div><divclass="twoListsDiv"><ul><draggablev-model="lists2":options="{group:'people'}"><liv-for="list in lists2"></li></draggable></ul></div></div><hr><div><h2>Listclone</h2><divclass="listCloneDiv"><ul><draggablev-model="lists":options="{group:{ name:'people', pull:'clone', put:false }}"><liv-for="(list, index) in lists":key="index"></li></draggable></ul></div><divclass="listCloneDiv"><ul><draggablev-model="lists2":options="{group:'people'}"><liv-for="(list, index) in lists2":key="index"></li></draggable></ul></div></div></div></template><script>importdraggablefrom'vuedraggable'exportdefault{components:{draggable,},data:function(){return{lists:[{name:'Ruby'},{name:'Rails'},{name:'Vuejs'}],lists2:[{name:'Java'},{name:'Swift'},{name:'Objective-C'}],}}}</script><style>div{ul{width:200px;border:1pxsolid}}.twoListsDiv,.listCloneDiv{float:left;}.div2{overflow:hidden;}</style>
moduleFooextendActiveSupport::Concern# なくても良いincludeddop"included Foo"endclass_methodsdodefclass_methodp"Foo class good job!"endendendmoduleBarextendActiveSupport::ConcernincludeFooincludeddop"included Bar"endclass_methodsdodefclass_methodsuperp"Bar class good job!"endendendclassHogeincludeBarendHoge.class_method# =># "included Foo"# "included Bar"# "Foo class good job!"# "Bar class good job!"