mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-07-28 17:02:04 +03:00
Finished moving tag-manager from a vue to a component
Now tags load with the page, not via AJAX.
This commit is contained in:
19
resources/js/components/sortable-list.js
Normal file
19
resources/js/components/sortable-list.js
Normal file
@ -0,0 +1,19 @@
|
||||
import Sortable from "sortablejs";
|
||||
|
||||
/**
|
||||
* SortableList
|
||||
* @extends {Component}
|
||||
*/
|
||||
class SortableList {
|
||||
setup() {
|
||||
this.container = this.$el;
|
||||
this.handleSelector = this.$opts.handleSelector;
|
||||
|
||||
new Sortable(this.container, {
|
||||
handle: this.handleSelector,
|
||||
animation: 150,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
export default SortableList;
|
Reference in New Issue
Block a user