Incs/vue-draggable/vuedraggable.umd.min.js
(开头部分) 32KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
(function (t, e) { "object" === typeof exports && "object" === typeof module ? module.exports = e(require("sortablejs")) : "function" === typeof define && define.amd ? define(["sortablejs"], e) : "object" === typeof exports ? exports["vuedraggable"] = e(require("sortablejs")) : t["vuedraggable"] = e(t["Sortable"]) })("undefined" !== typeof self ? self : this, (function (t) { return function (t) { var e = {}; function n(r) { if (e[r]) return e[r].exports; var o = e[r] = { i: r, l: !1, exports: {} }; return t[r].call(o.exports, o, o.exports, n), o.l = !0, o.exports } return n.m = t, n.c = e, n.d = function (t, e, r) { n.o(t, e) || Object.defineProperty(t, e, { enumerable: !0, get: r }) }, n.r = function (t) { "undefined" !== typeof Symbol && Symbol.toStringTag && Object.defineProperty(t, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(t, "__esModule", { value: !0 }) }, n.t = function (t, e) { if (1 & e && (t = n(t)), 8 & e) return t; if (4 & e && "object" === typeof t && t && t.__esModule) return t; var r = Object.create(null); if (n.r(r), Object.defineProperty(r, "default", { enumerable: !0, value: t }), 2 & e && "string" != typeof t) for (var o in t) n.d(r, o, function (e) { return t[e] }.bind(null, o)); return r }, n.n = function (t) { var e = t && t.__esModule ? function () { return t["default"] } : function () { return t }; return n.d(e, "a", e), e }, n.o = function (t, e) { return Object.prototype.hasOwnProperty.call(t, e) }, n.p = "", n(n.s = "fb15") }({ "01f9": function (t, e, n) { "use strict"; var r = n("2d00"), o = n("5ca1"), i = n("2aba"), c = n("32e9"), u = n("84f2"), a = n("41a0"), s = n("7f20"), f = n("38fd"), l = n("2b4c")("iterator"), d = !([].keys && "next" in [].keys()), p = "@@iterator", h = "keys", v = "values", g = function () { return this }; t.exports = function (t, e, n, b, m, y, x) { a(n, e, b); var O, S, w, j = function (t) { if (!d && t in _) return _[t]; switch (t) { case h: return function () { return new n(this, t) }; case v: return function () { return new n(this, t) } }return function () { return new n(this, t) } }, M = e + " Iterator", C = m == v, T = !1, _ = t.prototype, L = _[l] || _[p] || m && _[m], I = L || j(m), E = m ? C ? j("entries") : I : void 0, P = "Array" == e && _.entries || L; if (P && (w = f(P.call(new t)), w !== Object.prototype && w.next && (s(w, M, !0), r || "function" == typeof w[l] || c(w, l, g))), C && L && L.name !== v && (T = !0, I = function () { return L.call(this) }), r && !x || !d && !T && _[l] || c(_, l, I), u[e] = I, u[M] = g, m) if (O = { values: C ? I : j(v), keys: y ? I : j(h), entries: E }, x) for (S in O) S in _ || i(_, S, O[S]); else o(o.P + o.F * (d || T), e, O); return O } }, "02f4": function (t, e, n) { var r = n("4588"), o = n("be13"); t.exports = function (t) { return function (e, n) { var i, c, u = String(o(e)), a = r(n), s = u.length; return a < 0 || a >= s ? t ? "" : void 0 : (i = u.charCodeAt(a), i < 55296 || i > 56319 || a + 1 === s || (c = u.charCodeAt(a + 1)) < 56320 || c > 57343 ? t ? u.charAt(a) : i : t ? u.slice(a, a + 2) : c - 56320 + (i - 55296 << 10) + 65536) } } }, "0390": function (t, e, n) { "use strict"; var r = n("02f4")(!0); t.exports = function (t, e, n) { return e + (n ? r(t, e).length : 1) } }, "0bfb": function (t, e, n) { "use strict"; var r = n("cb7c"); t.exports = function () { var t = r(this), e = ""; return t.global && (e += "g"), t.ignoreCase && (e += "i"), t.multiline && (e += "m"), t.unicode && (e += "u"), t.sticky && (e += "y"), e } }, "0d58": function (t, e, n) { var r = n("ce10"), o = n("e11e"); t.exports = Object.keys || function (t) { return r(t, o) } }, 1495: function (t, e, n) { var r = n("86cc"), o = n("cb7c"), i = n("0d58"); t.exports = n("9e1e") ? Object.defineProperties : function (t, e) { o(t); var n, c = i(e), u = c.length, a = 0; while (u > a) r.f(t, n = c[a++], e[n]); return t } }, "214f": function (t, e, n) { "use strict"; n("b0c5"); var r = n("2aba"), o = n("32e9"), i = n("79e5"), c = n("be13"), u = n("2b4c"), a = n("520a"), s = u("species"), f = !i((function () { var t = /./; return t.exec = function () { var t = []; return t.groups = { a: "7" }, t }, "7" !== "".replace(t, "$<a>") })), l = function () { var t = /(?:)/, e = t.exec; t.exec = function () { return e.apply(this, arguments) }; var n = "ab".split(t); return 2 === n.length && "a" === n[0] && "b" === n[1] }(); t.exports = function (t, e, n) { var d = u(t), p = !i((function () { var e = {}; return e[d] = function () { return 7 }, 7 != ""[t](e) })), h = p ? !i((function () { var e = !1, n = /a/; return n.exec = function () { return e = !0, null }, "split" === t && (n.constructor = {}, n.constructor[s] = function () { return n }), n[d](""), !e })) : void 0; if (!p || !h || "replace" === t && !f || "split" === t && !l) { var v = /./[d], g = n(c, d, ""[t], (function (t, e, n, r, o) { return e.exec === a ? p && !o ? { done: !0, value: v.call(e, n, r) } : { done: !0, value: t.call(n, e, r) } : { done: !1 } })), b = g[0], m = g[1]; r(String.prototype, t, b), o(RegExp.prototype, d, 2 == e ? function (t, e) { return m.call(t, this, e) } : function (t) { return m.call(t, this) }) } } }, "230e": function (t, e, n) { var r = n("d3f4"), o = n("7726").document, i = r(o) && r(o.createElement); t.exports = function (t) { return i ? o.createElement(t) : {} } }, "23c6": function (t, e, n) { var r = n("2d95"), o = n("2b4c")("toStringTag"), i = "Arguments" == r(function () { return arguments }()), c = function (t, e) { try { return t[e] } catch (n) { } }; t.exports = function (t) { var e, n, u; return void 0 === t ? "Undefined" : null === t ? "Null" : "string" == typeof (n = c(e = Object(t), o)) ? n : i ? r(e) : "Object" == (u = r(e)) && "function" == typeof e.callee ? "Arguments" : u } }, 2621: function (t, e) { e.f = Object.getOwnPropertySymbols }, "2aba": function (t, e, n) { var r = n("7726"), o = n("32e9"), i = n("69a8"), c = n("ca5a")("src"), u = n("fa5b"), a = "toString", s = ("" + u).split(a); n("8378").inspectSource = function (t) { return u.call(t) }, (t.exports = function (t, e, n, u) { var a = "function" == typeof n; a && (i(n, "name") || o(n, "name", e)), t[e] !== n && (a && (i(n, c) || o(n, c, t[e] ? "" + t[e] : s.join(String(e)))), t === r ? t[e] = n : u ? t[e] ? t[e] = n : o(t, e, n) : (delete t[e], o(t, e, n))) })(Function.prototype, a, (function () { return "function" == typeof this && this[c] || u.call(this) })) }, "2aeb": function (t, e, n) { var r = n("cb7c"), o = n("1495"), i = n("e11e"), c = n("613b")("IE_PROTO"), u = function () { }, a = "prototype", s = function () { var t, e = n("230e")("iframe"), r = i.length, o = "<", c = ">"; e.style.display = "none", n("fab2").appendChild(e), e.src = "javascript:", t = e.contentWindow.document, t.open(), t.write(o + "script" + c + "document.F=Object" + o + "/script" + c), t.close(), s = t.F; while (r--) delete s[a][i[r]]; return s() }; t.exports = Object.create || function (t, e) { var n; return null !== t ? (u[a] = r(t), n = new u, u[a] = null, n[c] = t) : n = s(), void 0 === e ? n : o(n, e) } }, "2b4c": function (t, e, n) { var r = n("5537")("wks"), o = n("ca5a"), i = n("7726").Symbol, c = "function" == typeof i, u = t.exports = function (t) { return r[t] || (r[t] = c && i[t] || (c ? i : o)("Symbol." + t)) }; u.store = r }, "2d00": function (t, e) { t.exports = !1 }, "2d95": function (t, e) { var n = {}.toString; t.exports = function (t) { return n.call(t).slice(8, -1) } }, "2fdb": function (t, e, n) { "use strict"; var r = n("5ca1"), o = n("d2c8"), i = "includes"; r(r.P + r.F * n("5147")(i), "String", { includes: function (t) { return !!~o(this, t, i).indexOf(t, arguments.length > 1 ? arguments[1] : void 0) } }) }, "32e9": function (t, e, n) { var r = n("86cc"), o = n("4630"); t.exports = n("9e1e") ? function (t, e, n) { return r.f(t, e, o(1, n)) } : function (t, e, n) { return t[e] = n, t } }, "38fd": function (t, e, n) { var r = n("69a8"), o = n("4bf8"), i = n("613b")("IE_PROTO"), c = Object.prototype; t.exports = Object.getPrototypeOf || function (t) { return t = o(t), r(t, i) ? t[i] : "function" == typeof t.constructor && t instanceof t.constructor ? t.constructor.prototype : t instanceof Object ? c : null } }, "41a0": function (t, e, n) { "use strict"; var r = n("2aeb"), o = n("4630"), i = n("7f20"), c = {}; n("32e9")(c, n("2b4c")("iterator"), (function () { return this })), t.exports = function (t, e, n) { t.prototype = r(c, { next: o(1, n) }), i(t, e + " Iterator") } }, "456d": function (t, e, n) { var r = n("4bf8"), o = n("0d58"); n("5eda")("keys", (function () { return function (t) { return o(r(t)) } })) }, 4588: function (t, e) { var n = Math.ceil, r = Math.floor; t.exports = function (t) { return isNaN(t = +t) ? 0 : (t > 0 ? r : n)(t) } }, 4630: function (t, e) { t.exports = function (t, e) { return { enumerable: !(1 & t), configurable: !(2 & t), writable: !(4 & t), value: e } } }, "4bf8": function (t, e, n) { var r = n("be13"); t.exports = function (t) { return Object(r(t)) } }, 5147: function (t, e, n) { var r = n("2b4c")("match"); t.exports = function (t) { var e = /./; try { "/./"[t](e) } catch (n) { try { return e[r] = !1, !"/./"[t](e) } catch (o) { } } return !0 } }, "520a": function (t, e, n) { "use strict"; var r = n("0bfb"), o = RegExp.prototype.exec, i = String.prototype.replace, c = o, u = "lastIndex", a = function () { var t = /a/, e = /b*/g; return o.call(t, "a"), o.call(e, "a"), 0 !== t[u] || 0 !== e[u] }(), s = void 0 !== /()??/.exec("")[1], f = a || s; f && (c = function (t) { var e, n, c, f, l = this; return s && (n = new RegExp("^" + l.source + "$(?!\\s)", r.call(l))), a && (e = l[u]), c = o.call(l, t), a && c && (l[u] = l.global ? c.index + c[0].length : e), s && c && c.length > 1 && i.call(c[0], n, (function () { for (f = 1; f < arguments.length - 2; f++)void 0 === arguments[f] && (c[f] = void 0) })), c }), t.exports = c }, "52a7": function (t, e) { e.f = {}.propertyIsEnumerable }, 5537: function (t, e, n) { var r = n("8378"), o = n("7726"), i = "__core-js_shared__", c = o[i] || (o[i] = {}); (t.exports = function (t, e) { return c[t] || (c[t] = void 0 !== e ? e : {}) })("versions", []).push({ version: r.version, mode: n("2d00") ? "pure" : "global", copyright: "© 2019 Denis Pushkarev (zloirock.ru)" }) }, "5ca1": function (t, e, n) { var r = n("7726"), o = n("8378"), i = n("32e9"), c = n("2aba"), u = n("9b43"), a = "prototype", s = function (t, e, n) { var f, l, d, p, h = t & s.F, v = t & s.G, g = t & s.S, b = t & s.P, m = t & s.B, y = v ? r : g ? r[e] || (r[e] = {}) : (r[e] || {})[a], x = v ? o : o[e] || (o[e] = {}), O = x[a] || (x[a] = {}); for (f in v && (n = e), n) l = !h && y && void 0 !== y[f], d = (l ? y : n)[f], p = m && l ? u(d, r) : b && "function" == typeof d ? u(Function.call, d) : d, y && c(y, f, d, t & s.U), x[f] != d && i(x, f, p), b && O[f] != d && (O[f] = d) }; r.core = o, s.F = 1, s.G = 2, s.S = 4, s.P = 8, s.B = 16, s.W = 32, s.U = 64, s.R = 128, t.exports = s }, "5eda": function (t, e, n) { var r = n("5ca1"), o = n("8378"), i = n("79e5"); t.exports = function (t, e) { var n = (o.Object || {})[t] || Object[t], c = {}; c[t] = e(n), r(r.S + r.F * i((function () { n(1) })), "Object", c) } }, "5f1b": function (t, e, n) { "use strict"; var r = n("23c6"), o = RegExp.prototype.exec; t.exports = function (t, e) { var n = t.exec; if ("function" === typeof n) { var i = n.call(t, e); if ("object" !== typeof i) throw new TypeError("RegExp exec method returned something other than an Object or null"); return i } if ("RegExp" !== r(t)) throw new TypeError("RegExp#exec called on incompatible receiver"); return o.call(t, e) } }, "613b": function (t, e, n) { var r = n("5537")("keys"), o = n("ca5a"); t.exports = function (t) { return r[t] || (r[t] = o(t)) } }, "626a": function (t, e, n) { var r = n("2d95"); t.exports = Object("z").propertyIsEnumerable(0) ? Object : function (t) { return "String" == r(t) ? t.split("") : Object(t) } }, 6762: function (t, e, n) { "use strict"; var r = n("5ca1"), o = n("c366")(!0); r(r.P, "Array", { includes: function (t) { return o(this, t, arguments.length > 1 ? arguments[1] : void 0) } }), n("9c6c")("includes") }, 6821: function (t, e, n) { var r = n("626a"), o = n("be13"); t.exports = function (t) { return r(o(t)) } }, "69a8": function (t, e) { var n = {}.hasOwnProperty; t.exports = function (t, e) { return n.call(t, e) } }, "6a99": function (t, e, n) { var r = n("d3f4"); t.exports = function (t, e) { if (!r(t)) return t; var n, o; if (e && "function" == typeof (n = t.toString) && !r(o = n.call(t))) return o; if ("function" == typeof (n = t.valueOf) && !r(o = n.call(t))) return o; if (!e && "function" == typeof (n = t.toString) && !r(o = n.call(t))) return o; throw TypeError("Can't convert object to primitive value") } }, 7333: function (t, e, n) { "use strict"; var r = n("9e1e"), o = n("0d58"), i = n("2621"), c = n("52a7"), u = n("4bf8"), a = n("626a"), s = Object.assign; t.exports = !s || n("79e5")((function () { var t = {}, e = {}, n = Symbol(), r = "abcdefghijklmnopqrst"; return t[n] = 7, r.split("").forEach((function (t) { e[t] = t })), 7 != s({}, t)[n] || Object.keys(s({}, e)).join("") != r })) ? function (t, e) { var n = u(t), s = arguments.length, f = 1, l = i.f, d = c.f; while (s > f) { var p, h = a(arguments[f++]), v = l ? o(h).concat(l(h)) : o(h), g = v.length, b = 0; while (g > b) p = v[b++], r && !d.call(h, p) || (n[p] = h[p]) } return n } : s }, 7726: function (t, e) { var n = t.exports = "undefined" != typeof window && window.Math == Math ? window : "undefined" != typeof self && self.Math == Math ? self : Function("return this")(); "number" == typeof __g && (__g = n) }, "77f1": function (t, e, n) { var r = n("4588"), o = Math.max, i = Math.min; t.exports = function (t, e) { return t = r(t), t < 0 ? o(t + e, 0) : i(t, e) } }, "79e5": function (t, e) { t.exports = function (t) { try { return !!t() } catch (e) { return !0 } } }, "7f20": function (t, e, n) { var r = n("86cc").f, o = n("69a8"), i = n("2b4c")("toStringTag"); t.exports = function (t, e, n) { t && !o(t = n ? t : t.prototype, i) && r(t, i, { configurable: !0, value: e }) } }, 8378: function (t, e) { var n = t.exports = { version: "2.6.11" }; "number" == typeof __e && (__e = n) }, "84f2": function (t, e) { t.exports = {} }, "86cc": function (t, e, n) { var r = n("cb7c"), o = n("c69a"), i = n("6a99"), c = Object.defineProperty; e.f = n("9e1e") ? Object.defineProperty : function (t, e, n) { if (r(t), e = i(e, !0), r(n), o) try { return c(t, e, n) } catch (u) { } if ("get" in n || "set" in n) throw TypeError("Accessors not supported!"); return "value" in n && (t[e] = n.value), t } }, "9b43": function (t, e, n) { var r = n("d8e8"); t.exports = function (t, e, n) { if (r(t), void 0 === e) return t; switch (n) { case 1: return function (n) { return t.call(e, n) }; case 2: return function (n, r) { return t.call(e, n, r) }; case 3: return function (n, r, o) { return t.call(e, n, r, o) } }return function () { return t.apply(e, arguments) } } }, "9c6c": function (t, e, n) { var r = n("2b4c")("unscopables"), o = Array.prototype; void 0 == o[r] && n("32e9")(o, r, {}), t.exports = function (t) { o[r][t] = !0 } }, "9def": function (t, e, n) { var r = n("4588"), o = Math.min; t.exports = function (t) { return t > 0 ? o(r(t), 9007199254740991) : 0 } }, "9e1e": function (t, e, n) { t.exports = !n("79e5")((function () { return 7 != Object.defineProperty({}, "a", { get: function () { return 7 } }).a })) }, a352: function (e, n) { e.exports = t }, a481: function (t, e, n) { "use strict"; var r = n("cb7c"), o = n("4bf8"), i = n("9def"), c = n("4588"), u = n("0390"), a = n("5f1b"), s = Math.max, f = Math.min, l = Math.floor, d = /\$([$&`']|\d\d?|<[^>]*>)/g, p = /\$([$&`']|\d\d?)/g, h = function (t) { return void 0 === t ? t : String(t) }; n("214f")("replace", 2, (function (t, e, n, v) { return [function (r, o) { var i = t(this), c = void 0 == r ? void 0 : r[e]; return void 0 !== c ? c.call(r, i, o) : n.call(String(i), r, o) }, function (t, e) { var o = v(n, t, this, e); if (o.done) return o.value; var l = r(t), d = String(this), p = "function" === typeof e; p || (e = String(e)); var b = l.global; if (b) { var m = l.unicode; l.lastIndex = 0 } var y = []; while (1) { var x = a(l, d); if (null === x) break; if (y.push(x), !b) break; var O = String(x[0]); "" === O && (l.lastIndex = u(d, i(l.lastIndex), m)) } for (var S = "", w = 0, j = 0; j < y.length; j++) { x = y[j]; for (var M = String(x[0]), C = s(f(c(x.index), d.length), 0), T = [], _ = 1; _ < x.length; _++)T.push(h(x[_])); var L = x.groups; if (p) { var I = [M].concat(T, C, d); void 0 !== L && I.push(L); var E = String(e.apply(void 0, I)) } else E = g(M, d, C, T, L, e); C >= w && (S += d.slice(w, C) + E, w = C + M.length) } return S + d.slice(w) }]; function g(t, e, r, i, c, u) { var a = r + t.length, s = i.length, f = p; return void 0 !== c && (c = o(c), f = d), n.call(u, f, (function (n, o) { var u; switch (o.charAt(0)) { case "$": return "$"; case "&": return t; case "`": return e.slice(0, r); case "'": return e.slice(a); case "<": u = c[o.slice(1, -1)]; break; default: var f = +o; if (0 === f) return n; if (f > s) { var d = l(f / 10); return 0 === d ? n : d <= s ? void 0 === i[d - 1] ? o.charAt(1) : i[d - 1] + o.charAt(1) : n } u = i[f - 1] }return void 0 === u ? "" : u })) } })) }, aae3: function (t, e, n) { var r = n("d3f4"), o = n("2d95"), i = n("2b4c")("match"); t.exports = function (t) { var e; return r(t) && (void 0 !== (e = t[i]) ? !!e : "RegExp" == o(t)) } }, ac6a: function (t, e, n) { for (var r = n("cadf"), o = n("0d58"), i = n("2aba"), c = n("7726"), u = n("32e9"), a = n("84f2"), s = n("2b4c"), f = s("iterator"), l = s("toStringTag"), d = a.Array, p = { CSSRuleList: !0, CSSStyleDeclaration: !1, CSSValueList: !1, ClientRectList: !1, DOMRectList: !1, DOMStringList: !1, DOMTokenList: !0, DataTransferItemList: !1, FileList: !1, HTMLAllCollection: !1, HTMLCollection: !1, HTMLFormElement: !1, HTMLSelectElement: !1, MediaList: !0, MimeTypeArray: !1, NamedNodeMap: !1, NodeList: !0, PaintRequestList: !1, Plugin: !1, PluginArray: !1, SVGLengthList: !1, SVGNumberList: !1, SVGPathSegList: !1, SVGPointList: !1, SVGStringList: !1, SVGTransformList: !1, SourceBufferList: !1, StyleSheetList: !0, TextTrackCueList: !1, TextTrackList: !1, TouchList: !1 }, h = o(p), v = 0; v < h.length; v++) { var g, b = h[v], m = p[b], y = c[b], x = y && y.prototype; if (x && (x[f] || u(x, f, d), x[l] || u(x, l, b), a[b] = d, m)) for (g in r) x[g] || i(x, g, r[g], !0) } }, b0c5: function (t, e, n) { "use strict"; var r = n("520a"); n("5ca1")({ target: "RegExp", proto: !0, forced: r !== /./.exec }, { exec: r }) }, be13: function (t, e) { t.exports = function (t) { if (void 0 == t) throw TypeError("Can't call method on " + t); return t } }, c366: function (t, e, n) { var r = n("6821"), o = n("9def"), i = n("77f1"); t.exports = function (t) { return function (e, n, c) { var u, a = r(e), s = o(a.length), f = i(c, s); if (t && n != n) { while (s > f) if (u = a[f++], u != u) return !0 } else for (; s > f; f++)if ((t || f in a) && a[f] === n) return t || f || 0; return !t && -1 } } }, c649: function (t, e, n) { "use strict"; (function (t) { n.d(e, "c", (function () { return s })), n.d(e, "a", (function () { return u })), n.d(e, "b", (function () { return o })), n.d(e, "d", (function () { return a })); n("a481"); function r() { return "undefined" !== typeof window ? window.console : t.console } var o = r(); function i(t) { var e = Object.create(null); return function (n) { var r = e[n]; return r || (e[n] = t(n)) } } var c = /-(\w)/g, u = i((function (t) { return t.replace(c, (function (t, e) { return e ? e.toUpperCase() : "" })) })); function a(t) { null !== t.parentElement && t.parentElement.removeChild(t) } function s(t, e, n) { var r = 0 === n ? t.children[0] : t.children[n - 1].nextSibling; t.insertBefore(e, r) } }).call(this, n("c8ba")) }, c69a: function (t, e, n) { t.exports = !n("9e1e") && !n("79e5")((function () { return 7 != Object.defineProperty(n("230e")("div"), "a", { get: function () { return 7 } }).a })) }, c8ba: function (t, e) { var n; n = function () { return this }(); try { n = n || new Function("return this")() } catch (r) { "object" === typeof window && (n = window) } t.exports = n }, ca5a: function (t, e) { var n = 0, r = Math.random(); t.exports = function (t) { return "Symbol(".concat(void 0 === t ? "" : t, ")_", (++n + r).toString(36)) } }, cadf: function (t, e, n) { "use strict"; var r = n("9c6c"), o = n("d53b"), i = n("84f2"), c = n("6821"); t.exports = n("01f9")(Array, "Array", (function (t, e) { this._t = c(t), this._i = 0, this._k = e }), (function () { var t = this._t, e = this._k, n = this._i++; return !t || n >= t.length ? (this._t = void 0, o(1)) : o(0, "keys" == e ? n : "values" == e ? t[n] : [n, t[n]]) }), "values"), i.Arguments = i.Array, r("keys"), r("values"), r("entries") }, cb7c: function (t, e, n) { var r = n("d3f4"); t.exports = function (t) { if (!r(t)) throw TypeError(t + " is not an object!"); return t } }, ce10: function (t, e, n) { var r = n("69a8"), o = n("6821"), i = n("c366")(!1), c = n("613b")("IE_PROTO"); t.exports = function (t, e) { var n, u = o(t), a = 0, s = []; for (n in u) n != c && r(u, n) && s.push(n); while (e.length > a) r(u, n = e[a++]) && (~i(s, n) || s.push(n)); return s } }, d2c8: function (t, e, n) { var r = n("aae3"), o = n("be13"); t.exports = function (t, e, n) { if (r(e)) throw TypeError("String#" + n + " doesn't accept regex!"); return String(o(t)) } }, d3f4: function (t, e) { t.exports = function (t) { return "object" === typeof t ? null !== t : "function" === typeof t } }, d53b: function (t, e) { t.exports = function (t, e) { return { value: e, done: !!t } } }, d8e8: function (t, e) { t.exports = function (t) { if ("function" != typeof t) throw TypeError(t + " is not a function!"); return t } }, e11e: function (t, e) { t.exports = "constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",") }, f559: function (t, e, n) { "use strict"; var r = n("5ca1"), o = n("9def"), i = n("d2c8"), c = "startsWith", u = ""[c]; r(r.P + r.F * n("5147")(c), "String", { startsWith: function (t) { var e = i(this, t, c), n = o(Math.min(arguments.length > 1 ? arguments[1] : void 0, e.length)), r = String(t); return u ? u.call(e, r, n) : e.slice(n, n + r.length) === r } }) }, f6fd: function (t, e) { (function (t) { var e = "currentScript", n = t.getElementsByTagName("script"); e in t || Object.defineProperty(t, e, { get: function () { try { throw new Error } catch (r) { var t, e = (/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(r.stack) || [!1])[1]; for (t in n) if (n[t].src == e || "interactive" == n[t].readyState) return n[t]; return null } } }) })(document) }, f751: function (t, e, n) { var r = n("5ca1"); r(r.S + r.F, "Object", { assign: n("7333") }) }, fa5b: function (t, e, n) { t.exports = n("5537")("native-function-to-string", Function.toString) }, fab2: function (t, e, n) { var r = n("7726").document; t.exports = r && r.documentElement }, fb15: function (t, e, n) { "use strict"; var r; (n.r(e), "undefined" !== typeof window) && (n("f6fd"), (r = window.document.currentScript) && (r = r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/)) && (n.p = r[1])); n("f751"), n("f559"), n("ac6a"), n("cadf"), n("456d"); function o(t) { if (Array.isArray(t)) return t } function i(t, e) { if ("undefined" !== typeof Symbol && Symbol.iterator in Object(t)) { var n = [], r = !0, o = !1, i = void 0; try { for (var c, u = t[Symbol.iterator](); !(r = (c = u.next()).done); r = !0)if (n.push(c.value), e && n.length === e) break } catch (a) { o = !0, i = a } finally { try { r || null == u["return"] || u["return"]() } finally { if (o) throw i } } return n } } function c(t, e) { (null == e || e > t.length) && (e = t.length); for (var n = 0, r = new Array(e); n < e; n++)r[n] = t[n]; return r } function u(t, e) { if (t) { if ("string" === typeof t) return c(t, e); var n = Object.prototype.toString.call(t).slice(8, -1); return "Object" === n && t.constructor && (n = t.constructor.name), "Map" === n || "Set" === n ? Array.from(t) : "Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? c(t, e) : void 0 } } function a() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.") } function s(t, e) { return o(t) || i(t, e) || u(t, e) || a() } n("6762"), n("2fdb"); function f(t) { if (Array.isArray(t)) return c(t) } function l(t) { if ("undefined" !== typeof Symbol && Symbol.iterator in Object(t)) return Array.from(t) } function d() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.") } function p(t) { return f(t) || l(t) || u(t) || d() } var h = n("a352"), v = n.n(h), g = n("c649"); function b(t, e, n) { return void 0 === n || (t = t || {}, t[e] = n), t } function m(t, e) { return t.map((function (t) { return t.elm })).indexOf(e) } function y(t, e, n, r) { if (!t) return []; var o = t.map((function (t) { return t.elm })), i = e.length - r, c = p(e).map((function (t, e) { return e >= i ? o.length : o.indexOf(t) })); return n ? c.filter((function (t) { return -1 !== t })) : c } function x(t, e) { var n = this; this.$nextTick((function () { return n.$emit(t.toLowerCase(), e) })) } function O(t) { var e = this; return function (n) { null !== e.realList && e["onDrag" + t](n), x.call(e, t, n) } } function S(t) { return ["transition-group", "TransitionGroup"].includes(t) } function w(t) { if (!t || 1 !== t.length) return !1; var e = s(t, 1), n = e[0].componentOptions; return !!n && S(n.tag) } function j(t, e, n) { return t[n] || (e[n] ? e[n]() : void 0) } function M(t, e, n) { var r = 0, o = 0, i = j(e, n, "header"); i && (r = i.length, t = t ? [].concat(p(i), p(t)) : p(i)); var c = j(e, n, "footer"); return c && (o = c.length, t = t ? [].concat(p(t), p(c)) : p(c)), { children: t, headerOffset: r, footerOffset: o } } function C(t, e) { var n = null, r = function (t, e) { n = b(n, t, e) }, o = Object.keys(t).filter((function (t) { return "id" === t || t.startsWith("data-") })).reduce((function (e, n) { return e[n] = t[n], e }), {}); if (r("attrs", o), !e) return n; var i = e.on, c = e.props, u = e.attrs; return r("on", i), r("props", c), Object.assign(n.attrs, u), n } var T = ["Start", "Add", "Remove", "Update", "End"], _ = ["Choose", "Unchoose", "Sort", "Filter", "Clone"], L = ["Move"].concat(T, _).map((function (t) { return "on" + t })), I = null, E = { options: Object, list: { type: Array, required: !1, default: null }, value: { type: Array, required: !1, default: null }, noTransitionOnDrag: { type: Boolean, default: !1 }, clone: { type: Function, default: function (t) { return t } }, element: { type: String, default: "div" }, tag: { type: String, default: null }, move: { type: Function, default: null }, componentData: { type: Object, required: !1, default: null } }, P = { name: "draggable", inheritAttrs: !1, props: E, data: function () { return { transitionMode: !1, noneFunctionalComponentMode: !1 } }, render: function (t) { var e = this.$slots.default; this.transitionMode = w(e); var n = M(e, this.$slots, this.$scopedSlots), r = n.children, o = n.headerOffset, i = n.footerOffset; this.headerOffset = o, this.footerOffset = i; var c = C(this.$attrs, this.componentData); return t(this.getTag(), c, r) }, created: function () { null !== this.list && null !== this.value && g["b"].error("Value and list props are mutually exclusive! Please set one or another."), "div" !== this.element && g["b"].warn("Element props is deprecated please use tag props instead. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#element-props"), void 0 !== this.options && g["b"].warn("Options props is deprecated, add sortable options directly as vue.draggable item, or use v-bind. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#options-props") }, mounted: function () { var t = this; if (this.noneFunctionalComponentMode = this.getTag().toLowerCase() !== this.$el.nodeName.toLowerCase() && !this.getIsFunctional(), this.noneFunctionalComponentMode && this.transitionMode) throw new Error("Transition-group inside component is not supported. Please alter tag value or remove transition-group. Current tag value: ".concat(this.getTag())); var e = {}; T.forEach((function (n) { e["on" + n] = O.call(t, n) })), _.forEach((function (n) { e["on" + n] = x.bind(t, n) })); var n = Object.keys(this.$attrs).reduce((function (e, n) { return e[Object(g["a"])(n)] = t.$attrs[n], e }), {}), r = Object.assign({}, this.options, n, e, { onMove: function (e, n) { return t.onDragMove(e, n) } }); !("draggable" in r) && (r.draggable = ">*"), this._sortable = new v.a(this.rootContainer, r), this.computeIndexes() }, beforeDestroy: function () { void 0 !== this._sortable && this._sortable.destroy() }, computed: { rootContainer: function () { return this.transitionMode ? this.$el.children[0] : this.$el }, realList: function () { return this.list ? this.list : this.value } }, watch: { options: { handler: function (t) { this.updateOptions(t) }, deep: !0 }, $attrs: { handler: function (t) { this.updateOptions(t) }, deep: !0 }, realList: function () { this.computeIndexes() } }, methods: { getIsFunctional: function () { var t = this._vnode.fnOptions; return t && t.functional }, getTag: function () { return this.tag || this.element }, updateOptions: function (t) { for (var e in t) { var n = Object(g["a"])(e); -1 === L.indexOf(n) && this._sortable.option(n, t[e]) } }, getChildrenNodes: function () { if (this.noneFunctionalComponentMode) return this.$children[0].$slots.default; var t = this.$slots.default; return this.transitionMode ? t[0].child.$slots.default : t }, computeIndexes: function () { var t = this; this.$nextTick((function () { t.visibleIndexes = y(t.getChildrenNodes(), t.rootContainer.children, t.transitionMode, t.footerOffset) })) }, getUnderlyingVm: function (t) { var e = m(this.getChildrenNodes() || [], t); if (-1 === e) return null; var n = this.realList[e]; return { index: e, element: n } }, getUnderlyingPotencialDraggableComponent: function (t) { var e = t.__vue__; return e && e.$options && S(e.$options._componentTag) ? e.$parent : !("realList" in e) && 1 === e.$children.length && "realList" in e.$children[0] ? e.$children[0] : e }, emitChanges: function (t) { var e = this; this.$nextTick((function () { e.$emit("change", t) })) }, alterList: function (t) { if (this.list) t(this.list); else { var e = p(this.value); t(e), this.$emit("input", e) } }, spliceList: function () { var t = arguments, e = function (e) { return e.splice.apply(e, p(t)) }; this.alterList(e) }, updatePosition: function (t, e) { var n = function (n) { return n.splice(e, 0, n.splice(t, 1)[0]) }; this.alterList(n) }, getRelatedContextFromMoveEvent: function (t) { var e = t.to, n = t.related, r = this.getUnderlyingPotencialDraggableComponent(e); if (!r) return { component: r }; var o = r.realList, i = { list: o, component: r }; if (e !== n && o && r.getUnderlyingVm) { var c = r.getUnderlyingVm(n); if (c) return Object.assign(c, i) } return i }, getVmIndex: function (t) { var e = this.visibleIndexes, n = e.length; return t > n - 1 ? n : e[t] }, getComponent: function () { return this.$slots.default[0].componentInstance }, resetTransitionData: function (t) { if (this.noTransitionOnDrag && this.transitionMode) { var e = this.getChildrenNodes(); e[t].data = null; var n = this.getComponent(); n.children = [], n.kept = void 0 } }, onDragStart: function (t) { this.context = this.getUnderlyingVm(t.item), t.item._underlying_vm_ = this.clone(this.context.element), I = t.item }, onDragAdd: function (t) { var e = t.item._underlying_vm_; if (void 0 !== e) { Object(g["d"])(t.item); var n = this.getVmIndex(t.newIndex); this.spliceList(n, 0, e), this.computeIndexes(); var r = { element: e, newIndex: n }; this.emitChanges({ added: r }) } }, onDragRemove: function (t) { if (Object(g["c"])(this.rootContainer, t.item, t.oldIndex), "clone" !== t.pullMode) { var e = this.context.index; this.spliceList(e, 1); var n = { element: this.context.element, oldIndex: e }; this.resetTransitionData(e), this.emitChanges({ removed: n }) } else Object(g["d"])(t.clone) }, onDragUpdate: function (t) { Object(g["d"])(t.item), Object(g["c"])(t.from, t.item, t.oldIndex); var e = this.context.index, n = this.getVmIndex(t.newIndex); this.updatePosition(e, n); var r = { element: this.context.element, oldIndex: e, newIndex: n }; this.emitChanges({ moved: r }) }, updateProperty: function (t, e) { t.hasOwnProperty(e) && (t[e] += this.headerOffset) }, computeFutureIndex: function (t, e) { if (!t.element) return 0; var n = p(e.to.children).filter((function (t) { return "none" !== t.style["display"] })), r = n.indexOf(e.related), o = t.component.getVmIndex(r), i = -1 !== n.indexOf(I); return i || !e.willInsertAfter ? o : o + 1 }, onDragMove: function (t, e) { var n = this.move; if (!n || !this.realList) return !0; var r = this.getRelatedContextFromMoveEvent(t), o = this.context, i = this.computeFutureIndex(r, t); Object.assign(o, { futureIndex: i }); var c = Object.assign({}, t, { relatedContext: r, draggedContext: o }); return n(c, e) }, onDragEnd: function () { this.computeIndexes(), I = null } } }; "undefined" !== typeof window && "Vue" in window && window.Vue.component("draggable", P); var $ = P; e["default"] = $ } })["default"] }));
//# sourceMappingURL=vuedraggable.umd.min.js.map
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
