Skip to content
This repository has been archived by the owner on May 26, 2021. It is now read-only.

Commit

Permalink
Merge pull request #46 from wilcorrea-forks/master
Browse files Browse the repository at this point in the history
[#4/feature] Allow change order with drag and drop
  • Loading branch information
wilcorrea authored Mar 30, 2019
2 parents d14a265 + 47a5143 commit d389525
Show file tree
Hide file tree
Showing 6 changed files with 246 additions and 236 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"lodash": "^4.17.11",
"quasar": "^1.0.0-beta.0",
"siiimple-toast": "^3.1.6",
"sortablejs": "^1.8.4",
"vue-hot-reload-loader": "^0.2.0",
"vue-i18n": "^7.3.3",
"vuelidate": "^0.7.4"
Expand Down
3 changes: 2 additions & 1 deletion quasar.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ module.exports = function (context) {
'QDialog',
'QBar',
'QTabs',
'QTab'
'QTab',
'QFab'
],

directives: [
Expand Down
145 changes: 0 additions & 145 deletions src/view/Studio/LayoutStudio.vue

This file was deleted.

20 changes: 20 additions & 0 deletions src/view/Studio/Sortable.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import Sortable from 'sortablejs'

let sortable

export default {
bind (el, binding) {
const options = {
...binding.value.options,
onUpdate: function () {
binding.value.handle(this.toArray())
}
}

sortable = Sortable.create(el, options)
},

unbind () {
sortable.destroy()
}
}
Loading

0 comments on commit d389525

Please sign in to comment.