FrameUi/1.0/vue-dragging.js
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/*!
* Awe-dnd v0.3.2
* (c) 2018 Awe <hilongjw@gmail.com>
* Released under the MIT License.
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global.VueDragging = factory());
}(this, (function () { 'use strict';
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
var DragData = function () {
function DragData() {
_classCallCheck(this, DragData);
this.data = {};
}
_createClass(DragData, [{
key: 'new',
value: function _new(key) {
if (!this.data[key]) {
this.data[key] = {
className: '',
List: [],
KEY_MAP: {}
};
}
return this.data[key];
}
}, {
key: 'get',
value: function get(key) {
return this.data[key];
}
}]);
return DragData;
}();
var $dragging = {
listeners: {},
$on: function $on(event, func) {
var events = this.listeners[event];
if (!events) {
this.listeners[event] = [];
}
this.listeners[event].push(func);
},
$once: function $once(event, func) {
var vm = this;
function on() {
vm.$off(event, on);
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
