Skip to content

Instantly share code, notes, and snippets.

@chihirokaasan
Created March 2, 2018 01:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chihirokaasan/e4924259ecc17a14c57c5d462e9c044d to your computer and use it in GitHub Desktop.
Save chihirokaasan/e4924259ecc17a14c57c5d462e9c044d to your computer and use it in GitHub Desktop.
Vue.jsプラグインsortable.js の読み込み
import Sortable from 'vue-sortable/vue-sortable.js'
Vue.use(Sortable)
<div id="sortable">
<ul class="list-group" v-sortable>
<li class="list-group-item">リスト1</li>
<li class="list-group-item">リスト2</li>
<li class="list-group-item">リスト3</li>
</ul>
</div>
<script>
Vue.use(Sortable)
new Vue({
el: '#sort-table',
})
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment