/
Al9
/
blockbench_web
Обзор
Документация
Войти
/
Al9
/
blockbench_web
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
root/lib/vue_sortable.js
52 строки
43 KB
Al9
Update
07 май 2026, 19:17
07 май 2026, 19:17
908137e
Код
Авторство
О чём код?
/*! Sortable 1.10.1 - MIT | git://github.com/SortableJS/Sortable.git */ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t=t||self).Sortable=e()}(this,function(){"use strict";function o … [Строка слишком длинная. Вы можете скачать файл] (function () { var vSortable = {} var Sortable = window.Sortable if (!Sortable) { throw new Error('[vue-sortable] cannot locate Sortable.js.') } // exposed global options vSortable.config = {} vSortable.install = function (Vue) { Vue.directive('sortable', function (options) { options = options || {} var sortable = new Sortable(this.el, options) if (this.arg && !this.vm.sortable) { this.vm.sortable = {} } // Throw an error if the given ID is not unique if (this.arg && this.vm.sortable[this.arg]) { console.warn('[vue-sortable] cannot set already defined sortable id: \'' + this.arg + '\'') } else if( this.arg ) { this.vm.sortable[this.arg] = sortable } }) } if (typeof exports == "object") { module.exports = vSortable } else if (typeof define == "function" && define.amd) { define([], function () { return vSortable }) } else if (window.Vue) { window.vSortable = vSortable Vue.use(vSortable) } Vue.directive('sortable', { inserted: function (el, binding) { new Sortable(el, binding.value || {}) } }) })()