huge-tree
Version:
vue组件,海量数据 tree、list,支持20w+,虚拟滚动<br>
1 lines • 46.9 kB
JavaScript
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.hugeTree=e():t.hugeTree=e()}(window,function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.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 i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));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=90)}([function(t,e,n){var r=n(25)("wks"),i=n(14),o=n(1).Symbol,c="function"==typeof o;(t.exports=function(t){return r[t]||(r[t]=c&&o[t]||(c?o:i)("Symbol."+t))}).store=r},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)},function(t,e,n){var r=n(8),i=n(37),o=n(21),c=Object.defineProperty;e.f=n(6)?Object.defineProperty:function(t,e,n){if(r(t),e=o(e,!0),r(n),i)try{return c(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e){var n=t.exports={version:"2.6.5"};"number"==typeof __e&&(__e=n)},function(t,e,n){var r=n(2),i=n(10);t.exports=n(6)?function(t,e,n){return r.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){t.exports=!n(13)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(54),i=n(19);t.exports=function(t){return r(i(t))}},function(t,e,n){var r=n(9);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){t.exports={}},function(t,e){t.exports=!0},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e,n){var r=n(67);"string"==typeof r&&(r=[[t.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n(29)(r,i);r.locals&&(t.exports=r.locals)},function(t,e,n){var r=n(87);"string"==typeof r&&(r=[[t.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n(29)(r,i);r.locals&&(t.exports=r.locals)},function(t,e,n){var r=n(89);"string"==typeof r&&(r=[[t.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n(29)(r,i);r.locals&&(t.exports=r.locals)},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var r=n(1),i=n(4),o=n(36),c=n(5),s=n(3),a=function(t,e,n){var u,f,l,d=t&a.F,h=t&a.G,p=t&a.S,b=t&a.P,y=t&a.B,g=t&a.W,v=h?i:i[e]||(i[e]={}),m=v.prototype,x=h?r:p?r[e]:(r[e]||{}).prototype;for(u in h&&(n=e),n)(f=!d&&x&&void 0!==x[u])&&s(v,u)||(l=f?x[u]:n[u],v[u]=h&&"function"!=typeof x[u]?n[u]:y&&f?o(l,r):g&&x[u]==l?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(l):b&&"function"==typeof l?o(Function.call,l):l,b&&((v.virtual||(v.virtual={}))[u]=l,t&a.R&&m&&!m[u]&&c(m,u,l)))};a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,t.exports=a},function(t,e,n){var r=n(9);t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var r=n(41),i=n(26);t.exports=Object.keys||function(t){return r(t,i)}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){var r=n(25)("keys"),i=n(14);t.exports=function(t){return r[t]||(r[t]=i(t))}},function(t,e,n){var r=n(4),i=n(1),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n(12)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){var r=n(2).f,i=n(3),o=n(0)("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},function(t,e,n){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var n=function(t,e){var n=t[1]||"",r=t[3];if(!r)return n;if(e&&"function"==typeof btoa){var i=(c=r,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(c))))+" */"),o=r.sources.map(function(t){return"/*# sourceURL="+r.sourceRoot+t+" */"});return[n].concat(o).concat([i]).join("\n")}var c;return[n].join("\n")}(e,t);return e[2]?"@media "+e[2]+"{"+n+"}":n}).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},i=0;i<this.length;i++){var o=this[i][0];null!=o&&(r[o]=!0)}for(i=0;i<t.length;i++){var c=t[i];null!=c[0]&&r[c[0]]||(n&&!c[2]?c[2]=n:n&&(c[2]="("+c[2]+") and ("+n+")"),e.push(c))}},e}},function(t,e,n){var r,i,o={},c=(r=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===i&&(i=r.apply(this,arguments)),i}),s=function(t){var e={};return function(t,n){if("function"==typeof t)return t();if(void 0===e[t]){var r=function(t,e){return e?e.querySelector(t):document.querySelector(t)}.call(this,t,n);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(t){r=null}e[t]=r}return e[t]}}(),a=null,u=0,f=[],l=n(68);function d(t,e){for(var n=0;n<t.length;n++){var r=t[n],i=o[r.id];if(i){i.refs++;for(var c=0;c<i.parts.length;c++)i.parts[c](r.parts[c]);for(;c<r.parts.length;c++)i.parts.push(v(r.parts[c],e))}else{var s=[];for(c=0;c<r.parts.length;c++)s.push(v(r.parts[c],e));o[r.id]={id:r.id,refs:1,parts:s}}}}function h(t,e){for(var n=[],r={},i=0;i<t.length;i++){var o=t[i],c=e.base?o[0]+e.base:o[0],s={css:o[1],media:o[2],sourceMap:o[3]};r[c]?r[c].parts.push(s):n.push(r[c]={id:c,parts:[s]})}return n}function p(t,e){var n=s(t.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var r=f[f.length-1];if("top"===t.insertAt)r?r.nextSibling?n.insertBefore(e,r.nextSibling):n.appendChild(e):n.insertBefore(e,n.firstChild),f.push(e);else if("bottom"===t.insertAt)n.appendChild(e);else{if("object"!=typeof t.insertAt||!t.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var i=s(t.insertAt.before,n);n.insertBefore(e,i)}}function b(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t);var e=f.indexOf(t);e>=0&&f.splice(e,1)}function y(t){var e=document.createElement("style");if(void 0===t.attrs.type&&(t.attrs.type="text/css"),void 0===t.attrs.nonce){var r=function(){0;return n.nc}();r&&(t.attrs.nonce=r)}return g(e,t.attrs),p(t,e),e}function g(t,e){Object.keys(e).forEach(function(n){t.setAttribute(n,e[n])})}function v(t,e){var n,r,i,o;if(e.transform&&t.css){if(!(o="function"==typeof e.transform?e.transform(t.css):e.transform.default(t.css)))return function(){};t.css=o}if(e.singleton){var c=u++;n=a||(a=y(e)),r=k.bind(null,n,c,!1),i=k.bind(null,n,c,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(t){var e=document.createElement("link");return void 0===t.attrs.type&&(t.attrs.type="text/css"),t.attrs.rel="stylesheet",g(e,t.attrs),p(t,e),e}(e),r=function(t,e,n){var r=n.css,i=n.sourceMap,o=void 0===e.convertToAbsoluteUrls&&i;(e.convertToAbsoluteUrls||o)&&(r=l(r));i&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */");var c=new Blob([r],{type:"text/css"}),s=t.href;t.href=URL.createObjectURL(c),s&&URL.revokeObjectURL(s)}.bind(null,n,e),i=function(){b(n),n.href&&URL.revokeObjectURL(n.href)}):(n=y(e),r=function(t,e){var n=e.css,r=e.media;r&&t.setAttribute("media",r);if(t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}.bind(null,n),i=function(){b(n)});return r(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;r(t=e)}else i()}}t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(e=e||{}).attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||"boolean"==typeof e.singleton||(e.singleton=c()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var n=h(t,e);return d(n,e),function(t){for(var r=[],i=0;i<n.length;i++){var c=n[i];(s=o[c.id]).refs--,r.push(s)}t&&d(h(t,e),e);for(i=0;i<r.length;i++){var s;if(0===(s=r[i]).refs){for(var a=0;a<s.parts.length;a++)s.parts[a]();delete o[s.id]}}}};var m,x=(m=[],function(t,e){return m[t]=e,m.filter(Boolean).join("\n")});function k(t,e,n,r){var i=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=x(e,i);else{var o=document.createTextNode(i),c=t.childNodes;c[e]&&t.removeChild(c[e]),c.length?t.insertBefore(o,c[e]):t.appendChild(o)}}},function(t,e,n){e.f=n(0)},function(t,e,n){var r=n(1),i=n(4),o=n(12),c=n(30),s=n(2).f;t.exports=function(t){var e=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:c.f(t)})}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){"use strict";e.__esModule=!0;var r=c(n(69)),i=c(n(75)),o="function"==typeof i.default&&"symbol"==typeof r.default?function(t){return typeof t}:function(t){return t&&"function"==typeof i.default&&t.constructor===i.default&&t!==i.default.prototype?"symbol":typeof t};function c(t){return t&&t.__esModule?t:{default:t}}e.default="function"==typeof i.default&&"symbol"===o(r.default)?function(t){return void 0===t?"undefined":o(t)}:function(t){return t&&"function"==typeof i.default&&t.constructor===i.default&&t!==i.default.prototype?"symbol":void 0===t?"undefined":o(t)}},function(t,e,n){"use strict";var r=n(50)(!0);n(35)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){"use strict";var r=n(12),i=n(20),o=n(39),c=n(5),s=n(11),a=n(52),u=n(27),f=n(58),l=n(0)("iterator"),d=!([].keys&&"next"in[].keys()),h=function(){return this};t.exports=function(t,e,n,p,b,y,g){a(n,e,p);var v,m,x,k=function(t){if(!d&&t in _)return _[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},w=e+" Iterator",C="values"==b,S=!1,_=t.prototype,L=_[l]||_["@@iterator"]||b&&_[b],O=L||k(b),E=b?C?k("entries"):O:void 0,T="Array"==e&&_.entries||L;if(T&&(x=f(T.call(new t)))!==Object.prototype&&x.next&&(u(x,w,!0),r||"function"==typeof x[l]||c(x,l,h)),C&&L&&"values"!==L.name&&(S=!0,O=function(){return L.call(this)}),r&&!g||!d&&!S&&_[l]||c(_,l,O),s[e]=O,s[w]=h,b)if(v={values:C?O:k("values"),keys:y?O:k("keys"),entries:E},g)for(m in v)m in _||o(_,m,v[m]);else i(i.P+i.F*(d||S),e,v);return v}},function(t,e,n){var r=n(51);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,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){t.exports=!n(6)&&!n(13)(function(){return 7!=Object.defineProperty(n(38)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(9),i=n(1).document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},function(t,e,n){t.exports=n(5)},function(t,e,n){var r=n(8),i=n(53),o=n(26),c=n(24)("IE_PROTO"),s=function(){},a=function(){var t,e=n(38)("iframe"),r=o.length;for(e.style.display="none",n(57).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),a=t.F;r--;)delete a.prototype[o[r]];return a()};t.exports=Object.create||function(t,e){var n;return null!==t?(s.prototype=r(t),n=new s,s.prototype=null,n[c]=t):n=a(),void 0===e?n:i(n,e)}},function(t,e,n){var r=n(3),i=n(7),o=n(55)(!1),c=n(24)("IE_PROTO");t.exports=function(t,e){var n,s=i(t),a=0,u=[];for(n in s)n!=c&&r(s,n)&&u.push(n);for(;e.length>a;)r(s,n=e[a++])&&(~o(u,n)||u.push(n));return u}},function(t,e,n){var r=n(18),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},function(t,e,n){var r=n(19);t.exports=function(t){return Object(r(t))}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(41),i=n(26).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e,n){"use strict";e.__esModule=!0;var r,i=n(48),o=(r=i)&&r.__esModule?r:{default:r};e.default=function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return(0,o.default)(t)}},function(t,e,n){t.exports={default:n(49),__esModule:!0}},function(t,e,n){n(34),n(59),t.exports=n(4).Array.from},function(t,e,n){var r=n(18),i=n(19);t.exports=function(t){return function(e,n){var o,c,s=String(i(e)),a=r(n),u=s.length;return a<0||a>=u?t?"":void 0:(o=s.charCodeAt(a))<55296||o>56319||a+1===u||(c=s.charCodeAt(a+1))<56320||c>57343?t?s.charAt(a):o:t?s.slice(a,a+2):c-56320+(o-55296<<10)+65536}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){"use strict";var r=n(40),i=n(10),o=n(27),c={};n(5)(c,n(0)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(c,{next:i(1,n)}),o(t,e+" Iterator")}},function(t,e,n){var r=n(2),i=n(8),o=n(22);t.exports=n(6)?Object.defineProperties:function(t,e){i(t);for(var n,c=o(e),s=c.length,a=0;s>a;)r.f(t,n=c[a++],e[n]);return t}},function(t,e,n){var r=n(23);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e,n){var r=n(7),i=n(42),o=n(56);t.exports=function(t){return function(e,n,c){var s,a=r(e),u=i(a.length),f=o(c,u);if(t&&n!=n){for(;u>f;)if((s=a[f++])!=s)return!0}else for(;u>f;f++)if((t||f in a)&&a[f]===n)return t||f||0;return!t&&-1}}},function(t,e,n){var r=n(18),i=Math.max,o=Math.min;t.exports=function(t,e){return(t=r(t))<0?i(t+e,0):o(t,e)}},function(t,e,n){var r=n(1).document;t.exports=r&&r.documentElement},function(t,e,n){var r=n(3),i=n(43),o=n(24)("IE_PROTO"),c=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?c:null}},function(t,e,n){"use strict";var r=n(36),i=n(20),o=n(43),c=n(60),s=n(61),a=n(42),u=n(62),f=n(63);i(i.S+i.F*!n(65)(function(t){Array.from(t)}),"Array",{from:function(t){var e,n,i,l,d=o(t),h="function"==typeof this?this:Array,p=arguments.length,b=p>1?arguments[1]:void 0,y=void 0!==b,g=0,v=f(d);if(y&&(b=r(b,p>2?arguments[2]:void 0,2)),null==v||h==Array&&s(v))for(n=new h(e=a(d.length));e>g;g++)u(n,g,y?b(d[g],g):d[g]);else for(l=v.call(d),n=new h;!(i=l.next()).done;g++)u(n,g,y?c(l,b,[i.value,g],!0):i.value);return n.length=g,n}})},function(t,e,n){var r=n(8);t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(e){var o=t.return;throw void 0!==o&&r(o.call(t)),e}}},function(t,e,n){var r=n(11),i=n(0)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||o[i]===t)}},function(t,e,n){"use strict";var r=n(2),i=n(10);t.exports=function(t,e,n){e in t?r.f(t,e,i(0,n)):t[e]=n}},function(t,e,n){var r=n(64),i=n(0)("iterator"),o=n(11);t.exports=n(4).getIteratorMethod=function(t){if(null!=t)return t[i]||t["@@iterator"]||o[r(t)]}},function(t,e,n){var r=n(23),i=n(0)("toStringTag"),o="Arguments"==r(function(){return arguments}());t.exports=function(t){var e,n,c;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),i))?n:o?r(e):"Object"==(c=r(e))&&"function"==typeof e.callee?"Arguments":c}},function(t,e,n){var r=n(0)("iterator"),i=!1;try{var o=[7][r]();o.return=function(){i=!0},Array.from(o,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!i)return!1;var n=!1;try{var o=[7],c=o[r]();c.next=function(){return{done:n=!0}},o[r]=function(){return c},t(o)}catch(t){}return n}},function(t,e,n){"use strict";var r=n(15);n.n(r).a},function(t,e,n){(t.exports=n(28)(!1)).push([t.i,".check-box{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.check-box .box{position:relative;width:10px;height:10px;border:1px solid #dcdfe6;cursor:pointer}.check-box .box:hover{border-color:#409eff}.check-box .box::after{content:'\\2713';position:absolute;left:0px;top:-5px;-webkit-transform:scale(0);-ms-transform:scale(0);transform:scale(0)}.check-box .box.is-part-checked::after{content:'-';left:0px;top:-7px}.check-box .box.is-checked,.check-box .box.is-part-checked{border-color:#409eff;color:#409eff}.check-box .box.is-checked::after,.check-box .box.is-part-checked::after{-webkit-transform:scale(0.9);-ms-transform:scale(0.9);transform:scale(0.9)}.check-box .box.is-disabled{background:#f2f6fc;color:#c0c4cc;border-color:#c0c4cc}.check-box .box.is-disabled::after{cursor:not-allowed}\n",""])},function(t,e){t.exports=function(t){var e="undefined"!=typeof window&&window.location;if(!e)throw new Error("fixUrls requires window.location");if(!t||"string"!=typeof t)return t;var n=e.protocol+"//"+e.host,r=n+e.pathname.replace(/\/[^\/]*$/,"/");return t.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(t,e){var i,o=e.trim().replace(/^"(.*)"$/,function(t,e){return e}).replace(/^'(.*)'$/,function(t,e){return e});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(o)?t:(i=0===o.indexOf("//")?o:0===o.indexOf("/")?n+o:r+o.replace(/^\.\//,""),"url("+JSON.stringify(i)+")")})}},function(t,e,n){t.exports={default:n(70),__esModule:!0}},function(t,e,n){n(34),n(71),t.exports=n(30).f("iterator")},function(t,e,n){n(72);for(var r=n(1),i=n(5),o=n(11),c=n(0)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),a=0;a<s.length;a++){var u=s[a],f=r[u],l=f&&f.prototype;l&&!l[c]&&i(l,c,u),o[u]=o.Array}},function(t,e,n){"use strict";var r=n(73),i=n(74),o=n(11),c=n(7);t.exports=n(35)(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,i(1)):i(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},function(t,e){t.exports=function(){}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){t.exports={default:n(76),__esModule:!0}},function(t,e,n){n(77),n(83),n(84),n(85),t.exports=n(4).Symbol},function(t,e,n){"use strict";var r=n(1),i=n(3),o=n(6),c=n(20),s=n(39),a=n(78).KEY,u=n(13),f=n(25),l=n(27),d=n(14),h=n(0),p=n(30),b=n(31),y=n(79),g=n(80),v=n(8),m=n(9),x=n(7),k=n(21),w=n(10),C=n(40),S=n(81),_=n(82),L=n(2),O=n(22),E=_.f,T=L.f,j=S.f,A=r.Symbol,I=r.JSON,M=I&&I.stringify,N=h("_hidden"),P=h("toPrimitive"),R={}.propertyIsEnumerable,H=f("symbol-registry"),B=f("symbols"),F=f("op-symbols"),$=Object.prototype,U="function"==typeof A,K=r.QObject,D=!K||!K.prototype||!K.prototype.findChild,G=o&&u(function(){return 7!=C(T({},"a",{get:function(){return T(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=E($,e);r&&delete $[e],T(t,e,n),r&&t!==$&&T($,e,r)}:T,V=function(t){var e=B[t]=C(A.prototype);return e._k=t,e},J=U&&"symbol"==typeof A.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof A},z=function(t,e,n){return t===$&&z(F,e,n),v(t),e=k(e,!0),v(n),i(B,e)?(n.enumerable?(i(t,N)&&t[N][e]&&(t[N][e]=!1),n=C(n,{enumerable:w(0,!1)})):(i(t,N)||T(t,N,w(1,{})),t[N][e]=!0),G(t,e,n)):T(t,e,n)},W=function(t,e){v(t);for(var n,r=y(e=x(e)),i=0,o=r.length;o>i;)z(t,n=r[i++],e[n]);return t},q=function(t){var e=R.call(this,t=k(t,!0));return!(this===$&&i(B,t)&&!i(F,t))&&(!(e||!i(this,t)||!i(B,t)||i(this,N)&&this[N][t])||e)},Y=function(t,e){if(t=x(t),e=k(e,!0),t!==$||!i(B,e)||i(F,e)){var n=E(t,e);return!n||!i(B,e)||i(t,N)&&t[N][e]||(n.enumerable=!0),n}},X=function(t){for(var e,n=j(x(t)),r=[],o=0;n.length>o;)i(B,e=n[o++])||e==N||e==a||r.push(e);return r},Q=function(t){for(var e,n=t===$,r=j(n?F:x(t)),o=[],c=0;r.length>c;)!i(B,e=r[c++])||n&&!i($,e)||o.push(B[e]);return o};U||(s((A=function(){if(this instanceof A)throw TypeError("Symbol is not a constructor!");var t=d(arguments.length>0?arguments[0]:void 0),e=function(n){this===$&&e.call(F,n),i(this,N)&&i(this[N],t)&&(this[N][t]=!1),G(this,t,w(1,n))};return o&&D&&G($,t,{configurable:!0,set:e}),V(t)}).prototype,"toString",function(){return this._k}),_.f=Y,L.f=z,n(45).f=S.f=X,n(32).f=q,n(44).f=Q,o&&!n(12)&&s($,"propertyIsEnumerable",q,!0),p.f=function(t){return V(h(t))}),c(c.G+c.W+c.F*!U,{Symbol:A});for(var Z="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),tt=0;Z.length>tt;)h(Z[tt++]);for(var et=O(h.store),nt=0;et.length>nt;)b(et[nt++]);c(c.S+c.F*!U,"Symbol",{for:function(t){return i(H,t+="")?H[t]:H[t]=A(t)},keyFor:function(t){if(!J(t))throw TypeError(t+" is not a symbol!");for(var e in H)if(H[e]===t)return e},useSetter:function(){D=!0},useSimple:function(){D=!1}}),c(c.S+c.F*!U,"Object",{create:function(t,e){return void 0===e?C(t):W(C(t),e)},defineProperty:z,defineProperties:W,getOwnPropertyDescriptor:Y,getOwnPropertyNames:X,getOwnPropertySymbols:Q}),I&&c(c.S+c.F*(!U||u(function(){var t=A();return"[null]"!=M([t])||"{}"!=M({a:t})||"{}"!=M(Object(t))})),"JSON",{stringify:function(t){for(var e,n,r=[t],i=1;arguments.length>i;)r.push(arguments[i++]);if(n=e=r[1],(m(e)||void 0!==t)&&!J(t))return g(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!J(e))return e}),r[1]=e,M.apply(I,r)}}),A.prototype[P]||n(5)(A.prototype,P,A.prototype.valueOf),l(A,"Symbol"),l(Math,"Math",!0),l(r.JSON,"JSON",!0)},function(t,e,n){var r=n(14)("meta"),i=n(9),o=n(3),c=n(2).f,s=0,a=Object.isExtensible||function(){return!0},u=!n(13)(function(){return a(Object.preventExtensions({}))}),f=function(t){c(t,r,{value:{i:"O"+ ++s,w:{}}})},l=t.exports={KEY:r,NEED:!1,fastKey:function(t,e){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,r)){if(!a(t))return"F";if(!e)return"E";f(t)}return t[r].i},getWeak:function(t,e){if(!o(t,r)){if(!a(t))return!0;if(!e)return!1;f(t)}return t[r].w},onFreeze:function(t){return u&&l.NEED&&a(t)&&!o(t,r)&&f(t),t}}},function(t,e,n){var r=n(22),i=n(44),o=n(32);t.exports=function(t){var e=r(t),n=i.f;if(n)for(var c,s=n(t),a=o.f,u=0;s.length>u;)a.call(t,c=s[u++])&&e.push(c);return e}},function(t,e,n){var r=n(23);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(7),i=n(45).f,o={}.toString,c="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return c&&"[object Window]"==o.call(t)?function(t){try{return i(t)}catch(t){return c.slice()}}(t):i(r(t))}},function(t,e,n){var r=n(32),i=n(10),o=n(7),c=n(21),s=n(3),a=n(37),u=Object.getOwnPropertyDescriptor;e.f=n(6)?u:function(t,e){if(t=o(t),e=c(e,!0),a)try{return u(t,e)}catch(t){}if(s(t,e))return i(!r.f.call(t,e),t[e])}},function(t,e){},function(t,e,n){n(31)("asyncIterator")},function(t,e,n){n(31)("observable")},function(t,e,n){"use strict";var r=n(16);n.n(r).a},function(t,e,n){(t.exports=n(28)(!1)).push([t.i,".huge-tree{border:1px solid #000;padding:10px 0;min-height:50px;height:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.huge-tree .search-bar{padding:0 10px 10px 10px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.huge-tree .search-bar .input{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;position:relative}.huge-tree .search-bar .input .filter-input{width:100%;box-sizing:border-box;border:1px solid #dcdfe6;border-right:none;padding:8px 10px}.huge-tree .search-bar .input .filter-input:focus{outline:none;border-color:#409eff}.huge-tree .search-bar .input .clear-input{position:absolute;border-radius:50%;font-style:normal;width:12px;top:10px;height:12px;right:6px;border:1px solid #cccccc;color:#ccc;display:inline-block;cursor:pointer}.huge-tree .search-bar .input .clear-input::after{content:'\\00D7';position:absolute;top:-6px;left:1px;-webkit-transform:scale(0.7);-ms-transform:scale(0.7);transform:scale(0.7)}.huge-tree .search-bar .input .clear-input:hover{border-color:#409eff;color:#409eff}.huge-tree .search-bar .search-btn{width:50px;background-color:#409eff;color:#ffffff;border:none;cursor:pointer}.huge-tree .search-bar .search-btn:hover{background-color:#228af1}.huge-tree .content-wrap{position:relative;overflow:auto;padding:0 10px;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.huge-tree .content-wrap .tree-phantom{position:absolute;left:0;top:0;right:0;z-index:-1}.huge-tree .content-wrap .tree-content{position:absolute;left:0;right:0;top:0}.huge-tree .content-wrap .tree-content .item{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;padding:2px 18px 2px 15px}.huge-tree .content-wrap .tree-content .item:hover{background-color:#f9fafc}.huge-tree .content-wrap .tree-content .item.is-hidden{display:none}.huge-tree .content-wrap .tree-content .item .expand-node{position:relative;right:4px;width:10px;height:10px;border:1px solid #4a4a4a;line-height:10px;-webkit-transition:-webkit-transform 0.3s ease-in-out;transition:-webkit-transform 0.3s ease-in-out;transition:transform 0.3s ease-in-out;transition:transform 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;cursor:pointer}.huge-tree .content-wrap .tree-content .item .expand-node.is-expand{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.huge-tree .content-wrap .tree-content .item .expand-node:hover{color:#409eff;border-color:#409eff;background-color:#f1f5f8}.huge-tree .content-wrap .tree-content .item .expand-node::before{content:'+';position:absolute;top:-1px;left:0;-webkit-transform:scale(0.8);-ms-transform:scale(0.8);transform:scale(0.8)}.huge-tree .content-wrap .tree-content .item .expand-node.is-expand::before{content:'-';top:-2px;left:0px}.huge-tree .content-wrap .tree-content .item .label{cursor:pointer}.huge-tree .content-wrap .tree-content .item .label:hover{color:#409eff}.huge-tree .content-wrap .tree-content .item .label .count{font-size:12px}.huge-tree .content-wrap .tree-content .item .is-disabled{cursor:not-allowed;pointer-events:none}.huge-tree .content-wrap .tree-content .item .is-disabled .label{color:#aaaaaa}.huge-tree .no-data{text-align:center}\n",""])},function(t,e,n){"use strict";var r=n(17);n.n(r).a},function(t,e,n){(t.exports=n(28)(!1)).push([t.i,".huge-list{position:relative;overflow:auto;padding:0 10px;min-height:50px;height:100%}.huge-list .list-phantom{position:absolute;left:0;top:0;right:0;z-index:-1}.huge-list .list-content{position:absolute;left:0;right:0;top:0;padding-left:0}.huge-list .list-content li{list-style:none}.huge-list .list-content li:hover{background-color:#f9fafc}.huge-list .no-data{text-align:center}\n",""])},function(t,e,n){"use strict";n.r(e);var r=n(46),i=n.n(r),o=n(47),c=n.n(o);function s(t,e,n){return!!e.split(/[,,]/).filter(function(t){return t}).some(function(e){return t.label.includes(e)})||!t.isLeaf&&n.filter(function(e){return e.parentId===t.id}).some(function(t){return s(t,e,n)})}function a(t,e){var n=t.tree,r=t.path,i=void 0===r?[]:r,o=t.init,s=void 0!==o&&o;if(Array.isArray(n)){if(n&&0!==n.length){var u=!0,f=!1,l=void 0;try{for(var d,h=n[Symbol.iterator]();!(u=(d=h.next()).done);u=!0){var p=d.value,b=p.children&&p.children.length>0;if(s&&(p.path=[].concat(c()(i),[p.id]),p.isLeaf=!b),e)if("break"===e(p))return;b&&a({tree:p.children,path:p.path,init:s},e)}}catch(t){f=!0,l=t}finally{try{!u&&h.return&&h.return()}finally{if(f)throw l}}}}else console.warn("The tree in the first argument to function depthFirstEach must be an array")}function u(t,e){if(Array.isArray(t)){if(!t||0===t.length)return[];var n=t.find(function(t){return t.id===e});return n?n.children||[]:u(t.filter(function(t){return t.children}).map(function(t){return t.children}).flat(1),e)}console.warn("The parameter tree to function breadthFirstEach must be an array")}function f(t,e){return!(!t||!e)&&String(t.path.slice(0,-1))===String(e.path.slice(0,-1))}var l={model:{prop:"checked",event:"checked-change"},components:{},props:{checked:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},checkedAction:{type:String,default:"none"},showCheckbox:{type:Boolean,default:!1},isLeaf:{type:Boolean,default:!0},showCheckboxLeafOnly:{type:Boolean,default:!1},node:{type:Object,default:function(){}},checkStriclty:{type:Boolean,default:!1}},data:function(){return{}},computed:{showBox:function(){return!!this.showCheckbox&&(!this.showCheckboxLeafOnly||this.isLeaf)}},mounted:function(){},methods:{onChecked:function(){this.disabled||(this.$emit("checked-change",this.getNewChecked(this.checked)),this.$emit("on-checked"))},labelClick:function(){this.$emit("on-click-label")},onSingleChecked:function(){"click"===this.checkedAction&&this.showBox&&this.onChecked(),this.labelClick()},onDBLChecked:function(){"dblclick"===this.checkedAction&&this.showBox&&this.onChecked(),this.labelClick()},getNewChecked:function(t){if(this.node.isLeaf||this.checkStriclty)return!t;var e=!1;return a({tree:this.node.children},function(t){if(t.isLeaf&&!t.disabled&&!t.checked)return e=!0,"break"}),e}}};n(66);function d(t,e,n,r,i,o,c,s){var a,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),c?(a=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(c)},u._ssrRegister=a):i&&(a=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),a)if(u.functional){u._injectStyles=a;var f=u.render;u.render=function(t,e){return a.call(e),f(t,e)}}else{var l=u.beforeCreate;u.beforeCreate=l?[].concat(l,a):[a]}return{exports:t,options:u}}var h=d(l,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:["check-box"]},[n("div",{on:{click:t.onSingleChecked,dblclick:t.onDBLChecked}},[t._t("default")],2),t._v(" "),t.showBox?n("div",{class:["box",{"is-checked":t.checked,"is-part-checked":t.indeterminate,"is-disabled":t.disabled}],on:{click:t.onChecked}}):t._e()])},[],!1,null,null,null).exports,p=n(33),b=n.n(p),y=function(t,e){var n=0;return function(r){var i=Date.now();i-n>e?(t(),n=i):(clearTimeout(t.timer),t.timer=setTimeout(function(){t()},e))}},g=function t(){i()(this,t),this._data=[],this.list=[],this.filterList=[],this.listMap={},this.filterTree=[],this.disabledList=[],this.checkedKeys=[],this.checkedNodes=[],this.allCheckedList=[]},v={name:"BtmHugeTree",components:{"dt-checkbox":h},props:{hasInput:{type:Boolean,default:!1},indent:{type:[String,Number],default:15},expandKeys:{type:Array,default:function(){return[]}},expandLevel:{type:[String,Number],default:"all"},placeholder:{type:String,default:"请输入关键字进行查找,支持逗号分隔多匹配"},isLoading:{type:Boolean,default:!1},checkedAction:{type:String,default:"none"},emptyText:{type:String,default:"暂无数据"},showCheckbox:{type:Boolean,default:!1},showCheckboxLeafOnly:{type:Boolean,default:!1},defaultCheckedKeys:{type:Array,default:function(){return[]}},checkStriclty:{type:Boolean,default:!1}},data:function(){return this.big=null,{count:1,keyword:"",isSearching:!1,itemHeigth:27,startIndex:0,endIndex:70,throttleSrcoll:"",debounceInput:"",isOnlyInCheckedSearch:!1}},computed:{unHiddenList:function(){return this.count?this.big.filterList.filter(function(t){return!t.isHidden}):[]},phantomHeight:function(){return this.unHiddenList.length*this.itemHeigth},renderList:function(){return this.unHiddenList.slice(this.startIndex,this.endIndex)}},watch:{defaultCheckedKeys:function(t,e){t!==e&&this.setCheckedKeys(t)},expandKeys:function(t,e){t!==e&&this.setExpand(t)}},created:function(){var t,e;this.big=new g,this.big.checkedKeys=JSON.parse(JSON.stringify(this.defaultCheckedKeys)),this.throttleSrcoll=y(this.setRenderRange,80),this.debounceInput=(t=this.init,e=300,function(n){clearTimeout(t.timer),t.timer=setTimeout(function(){t()},e)})},beforeDestroy:function(){this.clear()},methods:{setData:function(t){this.clear(),this.big._data=t,this.init("init")},init:function(t){var e=this;0!==this.big._data.length&&("init"===t&&(this.flatTree(this.big._data),this.big.list.forEach(function(t){return e.big.listMap[t.id]=t})),this.initFilter(t),"init"!==t&&"restore"!==t||this.initExpand(),this.setCheckedKeys(this.big.checkedKeys),this.backToTop())},flatTree:function(t){var e=this;a({tree:t,init:!0},function(t){e.big.list.push(t)})},initExpand:function(){var t=this;this.big&&0!==this.big._data.length&&(this.expandKeys.length>0?this.setExpand(this.expandKeys):(/^\d+$/.test(this.expandLevel)?this.big.filterList.forEach(function(e){e.isExpand=Boolean(e.path.length<t.expandLevel),e.isHidden=Boolean(e.path.length>t.expandLevel),t.initNode(e)}):this.big.filterList.forEach(function(e){e.isExpand=!0,e.isHidden=!1,t.initNode(e)}),this.setCount()))},setExpand:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(!(e.length<=0)&&this.big&&0!==this.big._data.length){var n=e.map(function(e){return t.big.listMap[e]}).filter(function(t){return t}),r=Array.from(new Set(n.map(function(t){return t.path}).flat(1)));this.big.filterList.forEach(function(e){e.isLeaf?(e.isExpand=!1,e.isHidden=Boolean(!r.includes(e.parentId))):(e.isExpand=Boolean(r.includes(e.id)),e.isHidden=!1),t.initNode(e)}),this.setCount()}},initNode:function(t){t.checked=t.checked||!1,t.indeterminate=t.indeterminate||!1,t.disabled=t.disabled||!1},setCheckedKeys:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(Array.isArray(e)){this.clearChecked();var n=e.map(function(e){return t.big.listMap[e]});n.forEach(function(e,r){e&&e.isLeaf&&(e.checked=!0,f(e,n[r+1])||t.handleCheckedChange(e))}),this.emitChecked()}else console.warn("The argument to function setCheckedKeys must be an array")},setCheckedNodes:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(Array.isArray(t)){if(t.length>0){var e=t.map(function(t){return t.id});this.setCheckedKeys(e)}}else console.warn("The argument to function setCheckedNodes must be an array")},getCheckedKeys:function(){return this.big.checkedKeys},getCheckedNodes:function(){return this.big.checkedNodes},onExpand:function(t){t.isExpand=!t.isExpand,this.showOrHiddenChildren(t,!t.isExpand)},onChecked:function(t){this.handleCheckedChange(t),this.emitChecked(),this.$emit("onClickCheckbox",t)},emitChecked:function(){this.big.checkedNodes=this.big.list.filter(function(t){return t.checked||t.indeterminate}),this.big.checkedKeys=this.big.checkedNodes.map(function(t){return t.id}),this.$emit("onChange",{checkedKeys:this.big.checkedKeys,checkedNodes:this.big.checkedNodes}),this.setCount()},handleCheckedChange:function(t){var e=this;this.checkStriclty?t.indeterminate=!t.isLeaf&&t.checked:(t.checked&&(t.indeterminate=!1),this.doChildrenChecked(t),this.doParentChecked(t.parentId),this.big.disabledList.forEach(function(t,n){f(t,e.big.disabledList[n+1])||e.doParentChecked(t.parentId)}))},showOrHiddenChildren:function(t,e){t.isLeaf||(e?a({tree:t.children},function(t){t.isHidden=e,t.isExpand=!1}):t.children.forEach(function(t){t.isHidden=e,t.isExpand=!1}),this.setCount())},doChildrenChecked:function(t){if(t.children){var e=t.checked;a({tree:t.children},function(t){t.isLeaf&&t.disabled||(t.indeterminate=!1,t.checked=e)})}},doParentChecked:function(t){if(null!=t){var e=u(this.big.filterTree,t),n=function t(e,n){if(Array.isArray(e)){if(!e||0===e.length)return{};var r=e.find(function(t){return t.id===n});return r||t(e.filter(function(t){return t.children}).map(function(t){return t.children}).flat(1),n)}console.warn("The parameter tree to function findNode must be an array")}(this.big.filterTree,t),r=e.every(function(t){return t.checked});this.checkParentIndeterminate(n,e),n.checked=r,r&&(n.indeterminate=!1),null!==n.parentId&&this.doParentChecked(n.parentId)}},checkParentIndeterminate:function(t,e){var n=e.some(function(t){return t.checked}),r=e.some(function(t){return!t.checked}),i=n&&r,o=e.some(function(t){return t.indeterminate}),c=i||o;t.indeterminate=!!c,e.forEach(function(t){t.checked&&(t.indeterminate=!1)})},onScroll:function(){this.throttleSrcoll()},setRenderRange:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.$refs["content-wrap"].scrollTop,e=Math.ceil(this.$el.clientHeight/this.itemHeigth)+40,n=Math.floor(t/this.itemHeigth);this.startIndex=n>20?n-20:0,this.endIndex=this.startIndex+e,this.setCount()},initFilter:function(t){var e=this;this.setFilterList(t),this.setCount(),this.big.filterTree=function(t){if(Array.isArray(t)){if(!t||0===t.length)return[];var e={};return t.forEach(function(t){t.childrenMap={},(function t(e,n){var r=n.slice(),i=r.shift();return r.length>1?t(e[i].childrenMap,r):1===r.length?e[i].childrenMap:e}(e,t.path))[t.id]=t}),function t(e){var n=Object.values(e),r=!0,i=!1,o=void 0;try{for(var c,s=n[Symbol.iterator]();!(r=(c=s.next()).done);r=!0){var a=c.value;a.children=Object.values(a.childrenMap),a.children&&a.children.length>0&&t(a.childrenMap)}}catch(t){i=!0,o=t}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}}(e),Object.values(e)}console.warn("The parameter filterList to function listToTree must be an array")}(this.big.filterList),function t(e,n){var r=e.tree,i=e.limitDeep,o=void 0===i?Number.MAX_SAFE_INTEGER:i,c=e.deep,s=void 0===c?0:c;Array.isArray(r)?r&&0!==r.length&&(r.forEach(function(t){n&&n(t)}),t({tree:r.filter(function(t){return t.children}).map(function(t){return t.children}).flat(1),limitDeep:o,deep:s++},n)):console.warn("The tree in the first argument to function breadthFirstEach must be an array")}({tree:this.big.filterTree},function(t){t.isLeaf||(t.leafCount=function(t,e){var n=u(t,e.id),r=0;return a({tree:n},function(t){t.isLeaf&&r++}),r}(e.big.filterTree,t))}),this.big.disabledList=this.big.filterList.filter(function(t){return t.disabled})},setFilterList:function(t){var e=this;if("showCheckedOnly"!==t)return this.isOnlyInCheckedSearch&&this.big.allCheckedList.length>0?""===this.keyword.trim()?void(this.big.filterList=this.big.allCheckedList):void(this.big.filterList=this.big.allCheckedList.filter(function(t){return s(t,e.keyword,e.big.allCheckedList)})):void(""!==this.keyword.trim()?this.big.filterList=this.big.list.filter(function(t){return s(t,e.keyword,e.big.list)}):this.big.filterList=this.big.list);this.big.filterList=this.big.list.filter(function(t){var n=function t(e,n){return!(!e.checked&&!e.indeterminate)||!e.isLeaf&&n.filter(function(t){return t.parentId===e.id}).some(function(e){return t(e,n)})}(t,e.big.list);return n&&(t.checked=!0,t.indeterminate=!1),n})},backToTop:function(){var t=this;this.$nextTick(function(){t.$refs["content-wrap"].scrollTop=0,t.setRenderRange()})},clearChecked:function(){this.big.list.forEach(function(t){t.checked=!1,t.indeterminate=!1})},setCount:function(){this.count++},showCheckedOnly:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.keyword="",this.init("showCheckedOnly"),this.isOnlyInCheckedSearch=t,this.big.allCheckedList=t?this.big.checkedNodes.slice():[]},restore:function(){this.isOnlyInCheckedSearch=!1,this.big.allCheckedList=[],this.init("restore")},update:function(){this.setCount()},clear:function(){this.count=1,this.keyword="",this.isSearching=!1,this.startIndex=0,this.endIndex=70,this.isOnlyInCheckedSearch=!1,function t(e){"function"!=typeof e&&null!==e&&"object"===(void 0===e?"undefined":b()(e))?Object.keys(e).forEach(function(n){t(e[n]),e[n]=null}):e=null}(this.big.list),this.big&&(this.big._data=[],this.big.list=[],this.big.filterList=[],this.big.listMap={},this.big.filterTree=[],this.big.disabledList=[],this.big.checkedKeys=[],this.big.checkedNodes=[])}}},m=(n(86),d(v,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"huge-tree"},[t.hasInput?n("section",{staticClass:"search-bar"},[t._t("pre-input"),t._v(" "),n("div",{staticClass:"input"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.keyword,expression:"keyword"}],staticClass:"filter-input",attrs:{type:"text",placeholder:t.placeholder},domProps:{value:t.keyword},on:{keyup:function(e){return e.type.indexOf("key")||13===e.keyCode?t.init(e):null},input:[function(e){e.target.composing||(t.keyword=e.target.value)},t.debounceInput]}}),t._v(" "),t.keyword?n("i",{staticClass:"clear-input",on:{click:function(e){t.keyword="",t.init()}}}):t._e()]),t._v(" "),n("button",{staticClass:"search-btn",on:{click:t.init}},[t._v("搜索")])],2):t._e(),t._v(" "),n("section",{ref:"content-wrap",staticClass:"content-wrap",on:{scroll:t.onScroll}},[n("div",{staticClass:"tree-phantom",style:"height: "+t.phantomHeight+"px"}),t._v(" "),n("div",{staticClass:"tree-content",style:"transform: translateY("+t.startIndex*t.itemHeigth+"px)"},[t._l(t.renderList,function(e,r){return[e.path?n("section",{key:"k"+r,class:["item",{"is-hidden":e.isHidden}],style:"margin-left: "+(e.path.length-1)*Number(t.indent)+"px"},[e.isLeaf?t._e():n("div",{class:[e.isLeaf?"leaf-node":"expand-node",{"is-expand":e.isExpand}],on:{click:function(n){return t.onExpand(e,r)}}}),t._v(" "),n("dt-checkbox",{class:{"is-disabled":e.disabled},attrs:{indeterminate:e.indeterminate,disabled:e.disabled,isLeaf:e.isLeaf,showCheckboxLeafOnly:t.showCheckboxLeafOnly,checkedAction:t.checkedAction,showCheckbox:t.showCheckbox,checkStriclty:t.checkStriclty,node:e},on:{"on-checked":function(n){return t.onChecked(e,r)},"on-click-label":function(n){return t.$emit("onClickLabel",e)}},model:{value:e.checked,callback:function(n){t.$set(e,"checked",n)},expression:"item.checked"}},[n("div",{staticClass:"label"},[t._t("default",[t._v(t._s(e.label))],{slotScope:e}),t._v(" "),e.isLeaf?t._e():n("i",{staticClass:"count"},[t._v("("+t._s(e.leafCount)+")")])],2)])],1):t._e()]})],2)]),t._v(" "),t.renderList.length<=0?n("section",{staticClass:"no-data"},[t.isLoading||t.isSearching?n("p",[t._t("loading",[t._v("loading...")])],2):n("p",[t._v(t._s(t.emptyText))])]):t._e()])},[],!1,null,null,null).exports);m.install=function(t){t.component(m.name,m)};var x=m,k={name:"BtmHugeList",components:{},props:{itemHeight:{type:[Number,String],default:32},isLoading:{type:Boolean,default:!1},emptyText:{type:String,default:"暂无数据"}},data:function(){return this.list=[],{count:1,throttleSrcoll:"",startIndex:0,endIndex:100}},computed:{phantomHeight:function(){return this.count&&this.list.length*this.itemHeight},renderList:function(){return this.count&&this.list.slice(this.startIndex,this.endIndex)}},mounted:function(){this.throttleSrcoll=y(this.setRenderList,80)},methods:{onScroll:function(){this.throttleSrcoll()},setData:function(t){this.list=t},update:function(){this.count++},setRenderList:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.$refs["huge-list"].scrollTop,e=Math.ceil(this.$el.clientHeight/this.itemHeight)+40,n=Math.floor(t/this.itemHeight);this.startIndex=n>20?n-20:0,this.endIndex=this.startIndex+e,this.update()},onClick:function(t){this.$emit("onClick",t)}}},w=(n(88),d(k,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"huge-list",staticClass:"huge-list",on:{scroll:t.onScroll}},[n("div",{staticClass:"list-phantom",style:"height: "+t.phantomHeight+"px"}),t._v(" "),t.list.length>0?n("ul",{staticClass:"list-content",style:"transform: translateY("+t.startIndex*t.itemHeight+"px)"},t._l(t.renderList,function(e,r){return n("li",{key:r,on:{click:function(n){return t.onClick(e)}}},[t._t("default",[t._v(t._s(e))],{slotScope:e})],2)}),0):n("section",{staticClass:"no-data"},[t.isLoading?n("p",[t._t("loading",[t._v("loading...")])],2):n("p",[t._v(t._s(t.emptyText))])])])},[],!1,null,null,null).exports);w.install=function(t){t.component(w.name,w)};var C=w,S=[x,C],_=function(t){arguments.length>1&&void 0!==arguments[1]&&arguments[1];S.forEach(function(e){t.component(e.name,e)})};"undefined"!=typeof window&&window.Vue&&_(window.Vue);e.default={install:_,HugeTree:x,HugeList:C}}]).default});