Created
March 2, 2018 01:40
-
-
Save chihirokaasan/e4924259ecc17a14c57c5d462e9c044d to your computer and use it in GitHub Desktop.
Vue.jsプラグインsortable.js の読み込み
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Sortable from 'vue-sortable/vue-sortable.js' | |
Vue.use(Sortable) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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