mult-cascader 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/demo.html +1 -0
- package/mult-cascader.common.js +3535 -0
- package/mult-cascader.css +1 -0
- package/mult-cascader.umd.js +3546 -0
- package/mult-cascader.umd.min.js +1 -0
- package/package.json +12 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e():"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["mult-cascader"]=e():t["mult-cascader"]=e()})("undefined"!==typeof self?self:this,function(){return function(){"use strict";var t={34:function(t,e,r){var n=r(4901);t.exports=function(t){return"object"==typeof t?null!==t:n(t)}},81:function(t,e,r){var n=r(9565),o=r(9306),i=r(8551),c=r(6823),u=r(851),a=TypeError;t.exports=function(t,e){var r=arguments.length<2?u(t):e;if(o(r))return i(n(r,t));throw new a(c(t)+" is not iterable")}},283:function(t,e,r){var n=r(9504),o=r(9039),i=r(4901),c=r(9297),u=r(3724),a=r(350).CONFIGURABLE,s=r(3706),f=r(1181),l=f.enforce,p=f.get,h=String,d=Object.defineProperty,v=n("".slice),y=n("".replace),g=n([].join),b=u&&!o(function(){return 8!==d(function(){},"length",{value:8}).length}),x=String(String).split("String"),m=t.exports=function(t,e,r){"Symbol("===v(h(e),0,7)&&(e="["+y(h(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!c(t,"name")||a&&t.name!==e)&&(u?d(t,"name",{value:e,configurable:!0}):t.name=e),b&&r&&c(r,"arity")&&t.length!==r.arity&&d(t,"length",{value:r.arity});try{r&&c(r,"constructor")&&r.constructor?u&&d(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(o){}var n=l(t);return c(n,"source")||(n.source=g(x,"string"==typeof e?e:"")),t};Function.prototype.toString=m(function(){return i(this)&&p(this).source||s(this)},"toString")},350:function(t,e,r){var n=r(3724),o=r(9297),i=Function.prototype,c=n&&Object.getOwnPropertyDescriptor,u=o(i,"name"),a=u&&"something"===function(){}.name,s=u&&(!n||n&&c(i,"name").configurable);t.exports={EXISTS:u,PROPER:a,CONFIGURABLE:s}},397:function(t,e,r){var n=r(7751);t.exports=n("document","documentElement")},421:function(t){t.exports={}},616:function(t,e,r){var n=r(9039);t.exports=!n(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})},655:function(t,e,r){var n=r(6955),o=String;t.exports=function(t){if("Symbol"===n(t))throw new TypeError("Cannot convert a Symbol value to a string");return o(t)}},679:function(t,e,r){var n=r(1625),o=TypeError;t.exports=function(t,e){if(n(e,t))return t;throw new o("Incorrect invocation")}},684:function(t){t.exports=function(t,e){var r="function"==typeof Iterator&&Iterator.prototype[t];if(r)try{r.call({next:null},e).next()}catch(n){return!0}}},741:function(t){var e=Math.ceil,r=Math.floor;t.exports=Math.trunc||function(t){var n=+t;return(n>0?r:e)(n)}},757:function(t,e,r){var n=r(7751),o=r(4901),i=r(1625),c=r(7040),u=Object;t.exports=c?function(t){return"symbol"==typeof t}:function(t){var e=n("Symbol");return o(e)&&i(e.prototype,u(t))}},851:function(t,e,r){var n=r(6955),o=r(5966),i=r(4117),c=r(6269),u=r(8227),a=u("iterator");t.exports=function(t){if(!i(t))return o(t,a)||o(t,"@@iterator")||c[n(t)]}},1072:function(t,e,r){var n=r(1828),o=r(8727);t.exports=Object.keys||function(t){return n(t,o)}},1148:function(t,e,r){var n=r(6518),o=r(9565),i=r(2652),c=r(9306),u=r(8551),a=r(1767),s=r(9539),f=r(4549),l=f("every",TypeError);n({target:"Iterator",proto:!0,real:!0,forced:l},{every:function(t){u(this);try{c(t)}catch(n){s(this,"throw",n)}if(l)return o(l,this,t);var e=a(this),r=0;return!i(e,function(e,n){if(!t(e,r++))return n()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},1181:function(t,e,r){var n,o,i,c=r(8622),u=r(4576),a=r(34),s=r(6699),f=r(9297),l=r(7629),p=r(6119),h=r(421),d="Object already initialized",v=u.TypeError,y=u.WeakMap,g=function(t){return i(t)?o(t):n(t,{})},b=function(t){return function(e){var r;if(!a(e)||(r=o(e)).type!==t)throw new v("Incompatible receiver, "+t+" required");return r}};if(c||l.state){var x=l.state||(l.state=new y);x.get=x.get,x.has=x.has,x.set=x.set,n=function(t,e){if(x.has(t))throw new v(d);return e.facade=t,x.set(t,e),e},o=function(t){return x.get(t)||{}},i=function(t){return x.has(t)}}else{var m=p("state");h[m]=!0,n=function(t,e){if(f(t,m))throw new v(d);return e.facade=t,s(t,m,e),e},o=function(t){return f(t,m)?t[m]:{}},i=function(t){return f(t,m)}}t.exports={set:n,get:o,has:i,enforce:g,getterFor:b}},1291:function(t,e,r){var n=r(741);t.exports=function(t){var e=+t;return e!==e||0===e?0:n(e)}},1385:function(t,e,r){var n=r(9539);t.exports=function(t,e,r){for(var o=t.length-1;o>=0;o--)if(void 0!==t[o])try{r=n(t[o].iterator,e,r)}catch(i){e="throw",r=i}if("throw"===e)throw r;return r}},1625:function(t,e,r){var n=r(9504);t.exports=n({}.isPrototypeOf)},1701:function(t,e,r){var n=r(6518),o=r(9565),i=r(9306),c=r(8551),u=r(1767),a=r(9462),s=r(6319),f=r(9539),l=r(684),p=r(4549),h=r(6395),d=!h&&!l("map",function(){}),v=!h&&!d&&p("map",TypeError),y=h||d||v,g=a(function(){var t=this.iterator,e=c(o(this.next,t)),r=this.done=!!e.done;if(!r)return s(t,this.mapper,[e.value,this.counter++],!0)});n({target:"Iterator",proto:!0,real:!0,forced:y},{map:function(t){c(this);try{i(t)}catch(e){f(this,"throw",e)}return v?o(v,this,t):new g(u(this),{mapper:t})}})},1767:function(t){t.exports=function(t){return{iterator:t,next:t.next,done:!1}}},1828:function(t,e,r){var n=r(9504),o=r(9297),i=r(5397),c=r(9617).indexOf,u=r(421),a=n([].push);t.exports=function(t,e){var r,n=i(t),s=0,f=[];for(r in n)!o(u,r)&&o(n,r)&&a(f,r);while(e.length>s)o(n,r=e[s++])&&(~c(f,r)||a(f,r));return f}},2106:function(t,e,r){var n=r(283),o=r(4913);t.exports=function(t,e,r){return r.get&&n(r.get,e,{getter:!0}),r.set&&n(r.set,e,{setter:!0}),o.f(t,e,r)}},2140:function(t,e,r){var n=r(8227),o=n("toStringTag"),i={};i[o]="z",t.exports="[object z]"===String(i)},2195:function(t,e,r){var n=r(9504),o=n({}.toString),i=n("".slice);t.exports=function(t){return i(o(t),8,-1)}},2211:function(t,e,r){var n=r(9039);t.exports=!n(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})},2360:function(t,e,r){var n,o=r(8551),i=r(6801),c=r(8727),u=r(421),a=r(397),s=r(4055),f=r(6119),l=">",p="<",h="prototype",d="script",v=f("IE_PROTO"),y=function(){},g=function(t){return p+d+l+t+p+"/"+d+l},b=function(t){t.write(g("")),t.close();var e=t.parentWindow.Object;return t=null,e},x=function(){var t,e=s("iframe"),r="java"+d+":";return e.style.display="none",a.appendChild(e),e.src=String(r),t=e.contentWindow.document,t.open(),t.write(g("document.F=Object")),t.close(),t.F},m=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}m="undefined"!=typeof document?document.domain&&n?b(n):x():b(n);var t=c.length;while(t--)delete m[h][c[t]];return m()};u[v]=!0,t.exports=Object.create||function(t,e){var r;return null!==t?(y[h]=o(t),r=new y,y[h]=null,r[v]=t):r=m(),void 0===e?r:i.f(r,e)}},2489:function(t,e,r){var n=r(6518),o=r(9565),i=r(9306),c=r(8551),u=r(1767),a=r(9462),s=r(6319),f=r(6395),l=r(9539),p=r(684),h=r(4549),d=!f&&!p("filter",function(){}),v=!f&&!d&&h("filter",TypeError),y=f||d||v,g=a(function(){var t,e,r,n=this.iterator,i=this.predicate,u=this.next;while(1){if(t=c(o(u,n)),e=this.done=!!t.done,e)return;if(r=t.value,s(n,i,[r,this.counter++],!0))return r}});n({target:"Iterator",proto:!0,real:!0,forced:y},{filter:function(t){c(this);try{i(t)}catch(e){l(this,"throw",e)}return v?o(v,this,t):new g(u(this),{predicate:t})}})},2529:function(t){t.exports=function(t,e){return{value:t,done:e}}},2652:function(t,e,r){var n=r(6080),o=r(9565),i=r(8551),c=r(6823),u=r(4209),a=r(6198),s=r(1625),f=r(81),l=r(851),p=r(9539),h=TypeError,d=function(t,e){this.stopped=t,this.result=e},v=d.prototype;t.exports=function(t,e,r){var y,g,b,x,m,w,S,O=r&&r.that,j=!(!r||!r.AS_ENTRIES),C=!(!r||!r.IS_RECORD),E=!(!r||!r.IS_ITERATOR),_=!(!r||!r.INTERRUPTED),L=n(e,O),T=function(t){return y&&p(y,"normal"),new d(!0,t)},I=function(t){return j?(i(t),_?L(t[0],t[1],T):L(t[0],t[1])):_?L(t,T):L(t)};if(C)y=t.iterator;else if(E)y=t;else{if(g=l(t),!g)throw new h(c(t)+" is not iterable");if(u(g)){for(b=0,x=a(t);x>b;b++)if(m=I(t[b]),m&&s(v,m))return m;return new d(!1)}y=f(t,g)}w=C?t.next:y.next;while(!(S=o(w,y)).done){try{m=I(S.value)}catch(P){p(y,"throw",P)}if("object"==typeof m&&m&&s(v,m))return m}return new d(!1)}},2777:function(t,e,r){var n=r(9565),o=r(34),i=r(757),c=r(5966),u=r(4270),a=r(8227),s=TypeError,f=a("toPrimitive");t.exports=function(t,e){if(!o(t)||i(t))return t;var r,a=c(t,f);if(a){if(void 0===e&&(e="default"),r=n(a,t,e),!o(r)||i(r))return r;throw new s("Can't convert object to primitive value")}return void 0===e&&(e="number"),u(t,e)}},2787:function(t,e,r){var n=r(9297),o=r(4901),i=r(8981),c=r(6119),u=r(2211),a=c("IE_PROTO"),s=Object,f=s.prototype;t.exports=u?s.getPrototypeOf:function(t){var e=i(t);if(n(e,a))return e[a];var r=e.constructor;return o(r)&&e instanceof r?r.prototype:e instanceof s?f:null}},2796:function(t,e,r){var n=r(9039),o=r(4901),i=/#|\.prototype\./,c=function(t,e){var r=a[u(t)];return r===f||r!==s&&(o(e)?n(e):!!e)},u=c.normalize=function(t){return String(t).replace(i,".").toLowerCase()},a=c.data={},s=c.NATIVE="N",f=c.POLYFILL="P";t.exports=c},2839:function(t,e,r){var n=r(4576),o=n.navigator,i=o&&o.userAgent;t.exports=i?String(i):""},3110:function(t,e,r){var n=r(6518),o=r(7751),i=r(8745),c=r(9565),u=r(9504),a=r(9039),s=r(4376),f=r(4901),l=r(5810),p=r(757),h=r(2195),d=r(655),v=r(7680),y=r(8235),g=r(3392),b=r(4495),x=r(7819),m=String,w=o("JSON","stringify"),S=u(/./.exec),O=u("".charAt),j=u("".charCodeAt),C=u("".replace),E=u("".slice),_=u([].push),L=u(1.1.toString),T=/[\uD800-\uDFFF]/g,I=/^[\uD800-\uDBFF]$/,P=/^[\uDC00-\uDFFF]$/,R=g(),k=R.length,A=!b||a(function(){var t=o("Symbol")("stringify detection");return"[null]"!==w([t])||"{}"!==w({a:t})||"{}"!==w(Object(t))}),N=a(function(){return'"\\udf06\\ud834"'!==w("\udf06\ud834")||'"\\udead"'!==w("\udead")}),F=A?function(t,e){var r=v(arguments),n=D(e);if(f(n)||void 0!==t&&!p(t))return r[1]=function(t,e){if(f(n)&&(e=c(n,this,m(t),e)),!p(e))return e},i(w,null,r)}:w,$=function(t,e,r){var n=O(r,e-1),o=O(r,e+1);return S(I,t)&&!S(P,o)||S(P,t)&&!S(I,n)?"\\u"+L(j(t,0),16):t},D=function(t){if(f(t))return t;if(s(t)){for(var e=t.length,r=[],n=0;n<e;n++){var o=t[n];"string"==typeof o?_(r,o):"number"!=typeof o&&"Number"!==h(o)&&"String"!==h(o)||_(r,d(o))}var i=r.length,c=!0;return function(t,e){if(c)return c=!1,e;if(s(this))return e;for(var n=0;n<i;n++)if(r[n]===t)return e}}};w&&n({target:"JSON",stat:!0,arity:3,forced:A||N||!x},{stringify:function(t,e,r){var n=D(e),o=[],i=F(t,function(t,e){var r=f(n)?c(n,this,m(t),e):e;return!x&&l(r)?R+(_(o,r.rawJSON)-1):r},r);if("string"!=typeof i)return i;if(N&&(i=C(i,T,$)),x)return i;for(var u="",a=i.length,s=0;s<a;s++){var p=O(i,s);if('"'===p){var h=y(i,++s).end-1,d=E(i,s,h);u+=E(d,0,k)===R?o[E(d,k)]:'"'+d+'"',s=h}else u+=p}return u}})},3392:function(t,e,r){var n=r(9504),o=0,i=Math.random(),c=n(1.1.toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+c(++o+i,36)}},3706:function(t,e,r){var n=r(9504),o=r(4901),i=r(7629),c=n(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return c(t)}),t.exports=i.inspectSource},3717:function(t,e){e.f=Object.getOwnPropertySymbols},3724:function(t,e,r){var n=r(9039);t.exports=!n(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},4055:function(t,e,r){var n=r(4576),o=r(34),i=n.document,c=o(i)&&o(i.createElement);t.exports=function(t){return c?i.createElement(t):{}}},4114:function(t,e,r){var n=r(6518),o=r(8981),i=r(6198),c=r(4527),u=r(6837),a=r(9039),s=a(function(){return 4294967297!==[].push.call({length:4294967296},1)}),f=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}},l=s||!f();n({target:"Array",proto:!0,arity:1,forced:l},{push:function(t){var e=o(this),r=i(e),n=arguments.length;u(r+n);for(var a=0;a<n;a++)e[r]=arguments[a],r++;return c(e,r),r}})},4117:function(t){t.exports=function(t){return null===t||void 0===t}},4209:function(t,e,r){var n=r(8227),o=r(6269),i=n("iterator"),c=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||c[i]===t)}},4270:function(t,e,r){var n=r(9565),o=r(4901),i=r(34),c=TypeError;t.exports=function(t,e){var r,u;if("string"===e&&o(r=t.toString)&&!i(u=n(r,t)))return u;if(o(r=t.valueOf)&&!i(u=n(r,t)))return u;if("string"!==e&&o(r=t.toString)&&!i(u=n(r,t)))return u;throw new c("Can't convert object to primitive value")}},4376:function(t,e,r){var n=r(2195);t.exports=Array.isArray||function(t){return"Array"===n(t)}},4495:function(t,e,r){var n=r(9519),o=r(9039),i=r(4576),c=i.String;t.exports=!!Object.getOwnPropertySymbols&&!o(function(){var t=Symbol("symbol detection");return!c(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41})},4527:function(t,e,r){var n=r(3724),o=r(4376),i=TypeError,c=Object.getOwnPropertyDescriptor,u=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=u?function(t,e){if(o(t)&&!c(t,"length").writable)throw new i("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},4549:function(t,e,r){var n=r(4576);t.exports=function(t,e){var r=n.Iterator,o=r&&r.prototype,i=o&&o[t],c=!1;if(i)try{i.call({next:function(){return{done:!0}},return:function(){c=!0}},-1)}catch(u){u instanceof e||(c=!1)}if(!c)return i}},4576:function(t,e,r){var n=function(t){return t&&t.Math===Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},4659:function(t,e,r){var n=r(3724),o=r(4913),i=r(6980);t.exports=function(t,e,r){n?o.f(t,e,i(0,r)):t[e]=r}},4901:function(t){var e="object"==typeof document&&document.all;t.exports="undefined"==typeof e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(t){return"function"==typeof t}},4913:function(t,e,r){var n=r(3724),o=r(5917),i=r(8686),c=r(8551),u=r(6969),a=TypeError,s=Object.defineProperty,f=Object.getOwnPropertyDescriptor,l="enumerable",p="configurable",h="writable";e.f=n?i?function(t,e,r){if(c(t),e=u(e),c(r),"function"===typeof t&&"prototype"===e&&"value"in r&&h in r&&!r[h]){var n=f(t,e);n&&n[h]&&(t[e]=r.value,r={configurable:p in r?r[p]:n[p],enumerable:l in r?r[l]:n[l],writable:!1})}return s(t,e,r)}:s:function(t,e,r){if(c(t),e=u(e),c(r),o)try{return s(t,e,r)}catch(n){}if("get"in r||"set"in r)throw new a("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},5031:function(t,e,r){var n=r(7751),o=r(9504),i=r(8480),c=r(3717),u=r(8551),a=o([].concat);t.exports=n("Reflect","ownKeys")||function(t){var e=i.f(u(t)),r=c.f;return r?a(e,r(t)):e}},5397:function(t,e,r){var n=r(7055),o=r(7750);t.exports=function(t){return n(o(t))}},5610:function(t,e,r){var n=r(1291),o=Math.max,i=Math.min;t.exports=function(t,e){var r=n(t);return r<0?o(r+e,0):i(r,e)}},5745:function(t,e,r){var n=r(7629);t.exports=function(t,e){return n[t]||(n[t]=e||{})}},5810:function(t,e,r){var n=r(34),o=r(1181).get;t.exports=function(t){if(!n(t))return!1;var e=o(t);return!!e&&"RawJSON"===e.type}},5917:function(t,e,r){var n=r(3724),o=r(9039),i=r(4055);t.exports=!n&&!o(function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a})},5966:function(t,e,r){var n=r(9306),o=r(4117);t.exports=function(t,e){var r=t[e];return o(r)?void 0:n(r)}},6080:function(t,e,r){var n=r(7476),o=r(9306),i=r(616),c=n(n.bind);t.exports=function(t,e){return o(t),void 0===e?t:i?c(t,e):function(){return t.apply(e,arguments)}}},6119:function(t,e,r){var n=r(5745),o=r(3392),i=n("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},6198:function(t,e,r){var n=r(8014);t.exports=function(t){return n(t.length)}},6269:function(t){t.exports={}},6279:function(t,e,r){var n=r(6840);t.exports=function(t,e,r){for(var o in e)n(t,o,e[o],r);return t}},6319:function(t,e,r){var n=r(8551),o=r(9539);t.exports=function(t,e,r,i){try{return i?e(n(r)[0],r[1]):e(r)}catch(c){o(t,"throw",c)}}},6395:function(t){t.exports=!1},6518:function(t,e,r){var n=r(4576),o=r(7347).f,i=r(6699),c=r(6840),u=r(9433),a=r(7740),s=r(2796);t.exports=function(t,e){var r,f,l,p,h,d,v=t.target,y=t.global,g=t.stat;if(f=y?n:g?n[v]||u(v,{}):n[v]&&n[v].prototype,f)for(l in e){if(h=e[l],t.dontCallGetSet?(d=o(f,l),p=d&&d.value):p=f[l],r=s(y?l:v+(g?".":"#")+l,t.forced),!r&&void 0!==p){if(typeof h==typeof p)continue;a(h,p)}(t.sham||p&&p.sham)&&i(h,"sham",!0),c(f,l,h,t)}}},6699:function(t,e,r){var n=r(3724),o=r(4913),i=r(6980);t.exports=n?function(t,e,r){return o.f(t,e,i(1,r))}:function(t,e,r){return t[e]=r,t}},6801:function(t,e,r){var n=r(3724),o=r(8686),i=r(4913),c=r(8551),u=r(5397),a=r(1072);e.f=n&&!o?Object.defineProperties:function(t,e){c(t);var r,n=u(e),o=a(e),s=o.length,f=0;while(s>f)i.f(t,r=o[f++],n[r]);return t}},6823:function(t){var e=String;t.exports=function(t){try{return e(t)}catch(r){return"Object"}}},6837:function(t){var e=TypeError,r=9007199254740991;t.exports=function(t){if(t>r)throw e("Maximum allowed index exceeded");return t}},6840:function(t,e,r){var n=r(4901),o=r(4913),i=r(283),c=r(9433);t.exports=function(t,e,r,u){u||(u={});var a=u.enumerable,s=void 0!==u.name?u.name:e;if(n(r)&&i(r,s,u),u.global)a?t[e]=r:c(e,r);else{try{u.unsafe?t[e]&&(a=!0):delete t[e]}catch(f){}a?t[e]=r:o.f(t,e,{value:r,enumerable:!1,configurable:!u.nonConfigurable,writable:!u.nonWritable})}return t}},6955:function(t,e,r){var n=r(2140),o=r(4901),i=r(2195),c=r(8227),u=c("toStringTag"),a=Object,s="Arguments"===i(function(){return arguments}()),f=function(t,e){try{return t[e]}catch(r){}};t.exports=n?i:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=f(e=a(t),u))?r:s?i(e):"Object"===(n=i(e))&&o(e.callee)?"Arguments":n}},6969:function(t,e,r){var n=r(2777),o=r(757);t.exports=function(t){var e=n(t,"string");return o(e)?e:e+""}},6980:function(t){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},7040:function(t,e,r){var n=r(4495);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},7055:function(t,e,r){var n=r(9504),o=r(9039),i=r(2195),c=Object,u=n("".split);t.exports=o(function(){return!c("z").propertyIsEnumerable(0)})?function(t){return"String"===i(t)?u(t,""):c(t)}:c},7347:function(t,e,r){var n=r(3724),o=r(9565),i=r(8773),c=r(6980),u=r(5397),a=r(6969),s=r(9297),f=r(5917),l=Object.getOwnPropertyDescriptor;e.f=n?l:function(t,e){if(t=u(t),e=a(e),f)try{return l(t,e)}catch(r){}if(s(t,e))return c(!o(i.f,t,e),t[e])}},7476:function(t,e,r){var n=r(2195),o=r(9504);t.exports=function(t){if("Function"===n(t))return o(t)}},7588:function(t,e,r){var n=r(6518),o=r(9565),i=r(2652),c=r(9306),u=r(8551),a=r(1767),s=r(9539),f=r(4549),l=f("forEach",TypeError);n({target:"Iterator",proto:!0,real:!0,forced:l},{forEach:function(t){u(this);try{c(t)}catch(n){s(this,"throw",n)}if(l)return o(l,this,t);var e=a(this),r=0;i(e,function(e){t(e,r++)},{IS_RECORD:!0})}})},7629:function(t,e,r){var n=r(6395),o=r(4576),i=r(9433),c="__core-js_shared__",u=t.exports=o[c]||i(c,{});(u.versions||(u.versions=[])).push({version:"3.47.0",mode:n?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru), 2025 CoreJS Company (core-js.io)",license:"https://github.com/zloirock/core-js/blob/v3.47.0/LICENSE",source:"https://github.com/zloirock/core-js"})},7657:function(t,e,r){var n,o,i,c=r(9039),u=r(4901),a=r(34),s=r(2360),f=r(2787),l=r(6840),p=r(8227),h=r(6395),d=p("iterator"),v=!1;[].keys&&(i=[].keys(),"next"in i?(o=f(f(i)),o!==Object.prototype&&(n=o)):v=!0);var y=!a(n)||c(function(){var t={};return n[d].call(t)!==t});y?n={}:h&&(n=s(n)),u(n[d])||l(n,d,function(){return this}),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:v}},7680:function(t,e,r){var n=r(9504);t.exports=n([].slice)},7740:function(t,e,r){var n=r(9297),o=r(5031),i=r(7347),c=r(4913);t.exports=function(t,e,r){for(var u=o(e),a=c.f,s=i.f,f=0;f<u.length;f++){var l=u[f];n(t,l)||r&&n(r,l)||a(t,l,s(e,l))}}},7750:function(t,e,r){var n=r(4117),o=TypeError;t.exports=function(t){if(n(t))throw new o("Can't call method on "+t);return t}},7751:function(t,e,r){var n=r(4576),o=r(4901),i=function(t){return o(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?i(n[t]):n[t]&&n[t][e]}},7819:function(t,e,r){var n=r(9039);t.exports=!n(function(){var t="9007199254740993",e=JSON.rawJSON(t);return!JSON.isRawJSON(e)||JSON.stringify(e)!==t})},8014:function(t,e,r){var n=r(1291),o=Math.min;t.exports=function(t){var e=n(t);return e>0?o(e,9007199254740991):0}},8111:function(t,e,r){var n=r(6518),o=r(4576),i=r(679),c=r(8551),u=r(4901),a=r(2787),s=r(2106),f=r(4659),l=r(9039),p=r(9297),h=r(8227),d=r(7657).IteratorPrototype,v=r(3724),y=r(6395),g="constructor",b="Iterator",x=h("toStringTag"),m=TypeError,w=o[b],S=y||!u(w)||w.prototype!==d||!l(function(){w({})}),O=function(){if(i(this,d),a(this)===d)throw new m("Abstract class Iterator not directly constructable")},j=function(t,e){v?s(d,t,{configurable:!0,get:function(){return e},set:function(e){if(c(this),this===d)throw new m("You can't redefine this property");p(this,t)?this[t]=e:f(this,t,e)}}):d[t]=e};p(d,x)||j(x,b),!S&&p(d,g)&&d[g]!==Object||j(g,O),O.prototype=d,n({global:!0,constructor:!0,forced:S},{Iterator:O})},8227:function(t,e,r){var n=r(4576),o=r(5745),i=r(9297),c=r(3392),u=r(4495),a=r(7040),s=n.Symbol,f=o("wks"),l=a?s["for"]||s:s&&s.withoutSetter||c;t.exports=function(t){return i(f,t)||(f[t]=u&&i(s,t)?s[t]:l("Symbol."+t)),f[t]}},8235:function(t,e,r){var n=r(9504),o=r(9297),i=SyntaxError,c=parseInt,u=String.fromCharCode,a=n("".charAt),s=n("".slice),f=n(/./.exec),l={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"},p=/^[\da-f]{4}$/i,h=/^[\u0000-\u001F]$/;t.exports=function(t,e){var r=!0,n="";while(e<t.length){var d=a(t,e);if("\\"===d){var v=s(t,e,e+2);if(o(l,v))n+=l[v],e+=2;else{if("\\u"!==v)throw new i('Unknown escape sequence: "'+v+'"');e+=2;var y=s(t,e,e+4);if(!f(p,y))throw new i("Bad Unicode escape at: "+e);n+=u(c(y,16)),e+=4}}else{if('"'===d){r=!1,e++;break}if(f(h,d))throw new i("Bad control character in string literal at: "+e);n+=d,e++}}if(r)throw new i("Unterminated string at: "+e);return{value:n,end:e}}},8480:function(t,e,r){var n=r(1828),o=r(8727),i=o.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,i)}},8551:function(t,e,r){var n=r(34),o=String,i=TypeError;t.exports=function(t){if(n(t))return t;throw new i(o(t)+" is not an object")}},8622:function(t,e,r){var n=r(4576),o=r(4901),i=n.WeakMap;t.exports=o(i)&&/native code/.test(String(i))},8686:function(t,e,r){var n=r(3724),o=r(9039);t.exports=n&&o(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},8727:function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},8745:function(t,e,r){var n=r(616),o=Function.prototype,i=o.apply,c=o.call;t.exports="object"==typeof Reflect&&Reflect.apply||(n?c.bind(i):function(){return c.apply(i,arguments)})},8773:function(t,e){var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,o=n&&!r.call({1:2},1);e.f=o?function(t){var e=n(this,t);return!!e&&e.enumerable}:r},8981:function(t,e,r){var n=r(7750),o=Object;t.exports=function(t){return o(n(t))}},9039:function(t){t.exports=function(t){try{return!!t()}catch(e){return!0}}},9297:function(t,e,r){var n=r(9504),o=r(8981),i=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return i(o(t),e)}},9306:function(t,e,r){var n=r(4901),o=r(6823),i=TypeError;t.exports=function(t){if(n(t))return t;throw new i(o(t)+" is not a function")}},9433:function(t,e,r){var n=r(4576),o=Object.defineProperty;t.exports=function(t,e){try{o(n,t,{value:e,configurable:!0,writable:!0})}catch(r){n[t]=e}return e}},9462:function(t,e,r){var n=r(9565),o=r(2360),i=r(6699),c=r(6279),u=r(8227),a=r(1181),s=r(5966),f=r(7657).IteratorPrototype,l=r(2529),p=r(9539),h=r(1385),d=u("toStringTag"),v="IteratorHelper",y="WrapForValidIterator",g="normal",b="throw",x=a.set,m=function(t){var e=a.getterFor(t?y:v);return c(o(f),{next:function(){var r=e(this);if(t)return r.nextHandler();if(r.done)return l(void 0,!0);try{var n=r.nextHandler();return r.returnHandlerResult?n:l(n,r.done)}catch(o){throw r.done=!0,o}},return:function(){var r=e(this),o=r.iterator;if(r.done=!0,t){var i=s(o,"return");return i?n(i,o):l(void 0,!0)}if(r.inner)try{p(r.inner.iterator,g)}catch(c){return p(o,b,c)}if(r.openIters)try{h(r.openIters,g)}catch(c){return p(o,b,c)}return o&&p(o,g),l(void 0,!0)}})},w=m(!0),S=m(!1);i(S,d,"Iterator Helper"),t.exports=function(t,e,r){var n=function(n,o){o?(o.iterator=n.iterator,o.next=n.next):o=n,o.type=e?y:v,o.returnHandlerResult=!!r,o.nextHandler=t,o.counter=0,o.done=!1,x(this,o)};return n.prototype=e?w:S,n}},9504:function(t,e,r){var n=r(616),o=Function.prototype,i=o.call,c=n&&o.bind.bind(i,i);t.exports=n?c:function(t){return function(){return i.apply(t,arguments)}}},9519:function(t,e,r){var n,o,i=r(4576),c=r(2839),u=i.process,a=i.Deno,s=u&&u.versions||a&&a.version,f=s&&s.v8;f&&(n=f.split("."),o=n[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&c&&(n=c.match(/Edge\/(\d+)/),(!n||n[1]>=74)&&(n=c.match(/Chrome\/(\d+)/),n&&(o=+n[1]))),t.exports=o},9539:function(t,e,r){var n=r(9565),o=r(8551),i=r(5966);t.exports=function(t,e,r){var c,u;o(t);try{if(c=i(t,"return"),!c){if("throw"===e)throw r;return r}c=n(c,t)}catch(a){u=!0,c=a}if("throw"===e)throw r;if(u)throw c;return o(c),r}},9565:function(t,e,r){var n=r(616),o=Function.prototype.call;t.exports=n?o.bind(o):function(){return o.apply(o,arguments)}},9617:function(t,e,r){var n=r(5397),o=r(5610),i=r(6198),c=function(t){return function(e,r,c){var u=n(e),a=i(u);if(0===a)return!t&&-1;var s,f=o(c,a);if(t&&r!==r){while(a>f)if(s=u[f++],s!==s)return!0}else for(;a>f;f++)if((t||f in u)&&u[f]===r)return t||f||0;return!t&&-1}};t.exports={includes:c(!0),indexOf:c(!1)}}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={exports:{}};return t[n].call(i.exports,i,i.exports,r),i.exports}!function(){r.d=function(t,e){for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})}}(),function(){r.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"===typeof window)return window}}()}(),function(){r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}}(),function(){r.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}}(),function(){r.p=""}();var n={};if(r.r(n),r.d(n,{default:function(){return y}}),"undefined"!==typeof window){var o=window.document.currentScript,i=o&&o.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);i&&(r.p=i[1])}var c=function(){var t=this,e=t._self._c;return e("el-drawer",{style:t.themeStyles,attrs:{visible:t.drawer,direction:"btt",size:"60%","before-close":()=>t.$emit("close",this.getCheckedIds()),"close-on-press-escape":!1,"with-header":!1},on:{"update:visible":function(e){t.drawer=e}}},[e("el-tabs",{staticStyle:{padding:"10px"},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},t._l(t.filteredSourse,function(r){return e("el-tab-pane",{key:r.index,attrs:{label:r.label,name:r.name}},["single"===t.mode?e("ul",t._l(r.data,function(n){return e("li",{key:n[t.options.id],class:{"selected-text":t.selectedCache[r.index][n[t.options.id]]},on:{click:function(e){return t.clickLi(n,r.index)}}},[e("span",[t._v(" "+t._s(n[t.options.name])+" ")]),t.selectedCache[r.index][n[t.options.id]]?e("i",{staticClass:"el-icon-check"}):t._e()])}),0):e("ul",t._l(r.data,function(n){return e("li",{key:n[t.options.id]},[e("span",{staticClass:"checkboxSpan",class:{"selected-text":t.selectedCache[r.index][n[t.options.id]]}},[e("el-checkbox",{staticStyle:{"margin-right":"40px"},on:{change:function(e){return t.handleChange(e,n,r.index)}},model:{value:t.selectedCache[r.index][n[t.options.id]],callback:function(e){t.$set(t.selectedCache[r.index],n[t.options.id],e)},expression:"selectedCache[item.index][ele[options.id]]"}}),e("span",{on:{click:function(e){return t.clickLi(n,r.index)}}},[t._v(t._s(n[t.options.name]))])],1)])}),0)])}),1)],1)},u=[],a=(r(4114),r(8111),r(1148),r(2489),r(7588),r(1701),r(3110),{name:"MultCascader",data(){return{selectedCache:{},selectedLi:[],activeName:this.names[0],dataSourseLevel:0}},props:{mode:{type:String,default:"single"},drawer:{type:Boolean,default:!1},dataSourse:{type:Array,default:()=>[]},names:{type:Array,default:()=>[]},labels:{type:Array,required:!0,default:()=>[]},color:{type:String,default:"#67C23A"},options:{type:Object,default:()=>({id:"id",name:"name",children:"children"})}},beforeMount(){if(this.dataSourseLevel=this.getDataSourseLeval(this.dataSourse),this.initSelectedCache(),this.names.length!=this.dataSourseLevel||this.labels.length!=this.dataSourseLevel)throw new Error("names和labels的长度必须与dataSourse的层级数相同")},computed:{forEachSourse(){const t=JSON.stringify(this.selectedLi),e=JSON.stringify(this.dataSourse);if(this._cachedSourse&&t===this._cachedSelectedLi&&e===this._cachedAreaOptions)return this._cachedSourse;const r=this.names.map((t,e)=>{const r=e+1,n=this.labels[e]||`层级${r}`,o=0===e?this.dataSourse:this.selectedLi.length>=e&&this.selectedLi[e-1]?.[this.options.children]||[];return{index:r,name:t,label:n,data:o}});return this._cachedSourse=r,this._cachedSelectedLi=t,this._cachedAreaOptions=e,r},themeStyles(){return{"--theme-color":this.color}},filteredSourse(){return this.forEachSourse.filter(t=>t.data&&t.data.length>0)}},methods:{initSelectedCache(){this.selectedCache={};for(let t=1;t<=this.dataSourseLevel;t++)this.$set(this.selectedCache,t,{})},getDataSourseLeval(t,e=0){if(!Array.isArray(t)||t.length<=0)return e;let r=e;for(const n of t){const t=this.getDataSourseLeval(n[this.options.children],e+1);t>r&&(r=t)}return r},clickLi(t,e){if("single"==this.mode){if(this.selectedLi.length>e-1)for(let t=e;t<=this.dataSourseLevel;t++)this.selectedCache[t]={},this.selectedLi.length>t-1&&this.selectedLi.splice(t-1,this.selectedLi.length-t+1);return this.selectedLi.push(t),this.selectedCache[e][t[this.options.id]]=!0,e>=this.dataSourseLevel?(this.values=this.selectedLi.map(t=>t.name),this.$emit("finish",{values:this.values,selected:this.selectedLi})):this.activeName=this.names[e],void this.$emit("change",this.selectedLi)}if(this.selectedLi.length>e-1)for(let r=e;r<=this.dataSourseLevel;r++)this.selectedLi.length>r-1&&this.selectedLi.splice(r-1,this.selectedLi.length-r+1);this.selectedLi.push(t),e>=this.dataSourseLevel?this.values=this.selectedLi.map(t=>t.name):this.activeName=this.names[e]},handleChange(t,e,r){const n=performance.now();this.$set(this.selectedCache[r],e[this.options.id],t),e[this.options.children]&&e[this.options.children].length>0&&this.iterativeCheck(r+1,t,e[this.options.children]),this.checkParentSelection(r);const o=performance.now();o-n>100&&console.warn(`handleChange执行时间较长: ${o-n}ms`)},iterativeCheck(t,e,r){if(!r||0===r.length)return;const n=[];let o=0;const i=1e4;r.forEach(e=>{n.push({child:e,currentLevel:t})});while(n.length>0&&o<i){const{child:t,currentLevel:r}=n.pop();o++,this.selectedCache[r]||this.$set(this.selectedCache,r,{}),this.$set(this.selectedCache[r],t[this.options.id],e),t[this.options.children]&&t[this.options.children].length>0&&t[this.options.children].forEach(t=>{n.push({child:t,currentLevel:r+1})})}o>=i&&console.warn("处理数量超过限制,可能存在性能问题")},checkParentSelection(t){if(t<=1)return;const e=t-1,r=this.selectedLi[e-1];if(!r||!r[this.options.children])return;const n=r[this.options.children].every(e=>{const r=this.selectedCache[t];return r&&!0===r[e[this.options.id]]});this.selectedCache[e][r[this.options.id]]=!!n,this.checkParentSelection(e)},getCheckedIds(){const t=[];for(let e in this.selectedCache[this.dataSourseLevel])this.selectedCache[this.dataSourseLevel][e]&&t.push(e);return t}},beforeDestroy(){this._cachedSourse=null,this._cachedSelectedLi="",this._cachedAreaOptions=null}}),s=a;function f(t,e,r,n,o,i,c,u){var a,s="function"===typeof t?t.options:t;if(e&&(s.render=e,s.staticRenderFns=r,s._compiled=!0),n&&(s.functional=!0),i&&(s._scopeId="data-v-"+i),c?(a=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(c)},s._ssrRegister=a):o&&(a=u?function(){o.call(this,(s.functional?this.parent:this).$root.$options.shadowRoot)}:o),a)if(s.functional){s._injectStyles=a;var f=s.render;s.render=function(t,e){return a.call(e),f(t,e)}}else{var l=s.beforeCreate;s.beforeCreate=l?[].concat(l,a):[a]}return{exports:t,options:s}}var l=f(s,c,u,!1,null,"d11717c4",null),p=l.exports;const h=[p],d=function(t){h.forEach(e=>{t.component(e.name,e)})};var v=d,y=v;return n}()});
|
package/package.json
ADDED