mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-06-08 01:17:23 +08:00
11 lines
20 KiB
JavaScript
11 lines
20 KiB
JavaScript
import{Z as k,a8 as cr,d as Mt,r as K,f as Yr,j as V,k as U,e as Zr,g as Qr,l as ur,m as F,t as xt,z as Bt,u as Gt}from"./index-DeS8Almj.js";var D=function(r){return r&&r.Math===Math&&r},d=D(typeof globalThis=="object"&&globalThis)||D(typeof window=="object"&&window)||D(typeof self=="object"&&self)||D(typeof k=="object"&&k)||D(typeof k=="object"&&k)||function(){return this}()||Function("return this")(),Nr={},y=function(r){try{return!!r()}catch(e){return!0}},kt=y,S=!kt(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),Kt=y,tr=!Kt(function(){var r=function(){}.bind();return typeof r!="function"||r.hasOwnProperty("prototype")}),Vt=tr,W=Function.prototype.call,Fr=Vt?W.bind(W):function(){return W.apply(W,arguments)},Ve={},Ue={}.propertyIsEnumerable,We=Object.getOwnPropertyDescriptor,Ut=We&&!Ue.call({1:2},1);Ve.f=Ut?function(e){var t=We(this,e);return!!t&&t.enumerable}:Ue;var ar=function(r,e){return{enumerable:!(r&1),configurable:!(r&2),writable:!(r&4),value:e}},ze=tr,He=Function.prototype,Pr=He.call,Wt=ze&&He.bind.bind(Pr,Pr),v=ze?Wt:function(r){return function(){return Pr.apply(r,arguments)}},qe=v,zt=qe({}.toString),Ht=qe("".slice),nr=function(r){return Ht(zt(r),8,-1)},qt=v,Xt=y,Jt=nr,lr=Object,Yt=qt("".split),Xe=Xt(function(){return!lr("z").propertyIsEnumerable(0)})?function(r){return Jt(r)==="String"?Yt(r,""):lr(r)}:lr,Je=function(r){return r==null},Zt=Je,Qt=TypeError,Dr=function(r){if(Zt(r))throw new Qt("Can't call method on "+r);return r},ra=Xe,ea=Dr,Mr=function(r){return ra(ea(r))},sr=typeof document=="object"&&document.all,p=typeof sr=="undefined"&&sr!==void 0?function(r){return typeof r=="function"||r===sr}:function(r){return typeof r=="function"},ta=p,b=function(r){return typeof r=="object"?r!==null:ta(r)},vr=d,aa=p,na=function(r){return aa(r)?r:void 0},or=function(r,e){return arguments.length<2?na(vr[r]):vr[r]&&vr[r][e]},oa=v,Ye=oa({}.isPrototypeOf),ia=typeof navigator!="undefined"&&String(navigator.userAgent)||"",Ze=d,fr=ia,re=Ze.process,ee=Ze.Deno,te=re&&re.versions||ee&&ee.version,ae=te&&te.v8,$,Z;ae&&($=ae.split("."),Z=$[0]>0&&$[0]<4?1:+($[0]+$[1]));!Z&&fr&&($=fr.match(/Edge\/(\d+)/),(!$||$[1]>=74)&&($=fr.match(/Chrome\/(\d+)/),$&&(Z=+$[1])));var xr=Z,ne=xr,ca=y,ua=d,la=ua.String,Qe=!!Object.getOwnPropertySymbols&&!ca(function(){var r=Symbol("symbol detection");return!la(r)||!(Object(r)instanceof Symbol)||!Symbol.sham&&ne&&ne<41}),sa=Qe,rt=sa&&!Symbol.sham&&typeof Symbol.iterator=="symbol",va=or,fa=p,ya=Ye,pa=rt,da=Object,et=pa?function(r){return typeof r=="symbol"}:function(r){var e=va("Symbol");return fa(e)&&ya(e.prototype,da(r))},$a=String,ba=function(r){try{return $a(r)}catch(e){return"Object"}},ga=p,ha=ba,Sa=TypeError,Br=function(r){if(ga(r))return r;throw new Sa(ha(r)+" is not a function")},ma=Br,Oa=Je,Ea=function(r,e){var t=r[e];return Oa(t)?void 0:ma(t)},yr=Fr,pr=p,dr=b,Ta=TypeError,Ia=function(r,e){var t,a;if(e==="string"&&pr(t=r.toString)&&!dr(a=yr(t,r))||pr(t=r.valueOf)&&!dr(a=yr(t,r))||e!=="string"&&pr(t=r.toString)&&!dr(a=yr(t,r)))return a;throw new Ta("Can't convert object to primitive value")},tt={exports:{}},oe=d,wa=Object.defineProperty,Gr=function(r,e){try{wa(oe,r,{value:e,configurable:!0,writable:!0})}catch(t){oe[r]=e}return e},Pa=d,_a=Gr,ie="__core-js_shared__",ce=tt.exports=Pa[ie]||_a(ie,{});(ce.versions||(ce.versions=[])).push({version:"3.36.1",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.36.1/LICENSE",source:"https://github.com/zloirock/core-js"});var kr=tt.exports,ue=kr,at=function(r,e){return ue[r]||(ue[r]=e||{})},Ca=Dr,ja=Object,Kr=function(r){return ja(Ca(r))},Ra=v,Aa=Kr,La=Ra({}.hasOwnProperty),T=Object.hasOwn||function(e,t){return La(Aa(e),t)},Na=v,Fa=0,Da=Math.random(),Ma=Na(1 .toString),nt=function(r){return"Symbol("+(r===void 0?"":r)+")_"+Ma(++Fa+Da,36)},xa=d,Ba=at,le=T,Ga=nt,ka=Qe,Ka=rt,_=xa.Symbol,$r=Ba("wks"),Va=Ka?_.for||_:_&&_.withoutSetter||Ga,C=function(r){return le($r,r)||($r[r]=ka&&le(_,r)?_[r]:Va("Symbol."+r)),$r[r]},Ua=Fr,se=b,ve=et,Wa=Ea,za=Ia,Ha=C,qa=TypeError,Xa=Ha("toPrimitive"),Ja=function(r,e){if(!se(r)||ve(r))return r;var t=Wa(r,Xa),a;if(t){if(e===void 0&&(e="default"),a=Ua(t,r,e),!se(a)||ve(a))return a;throw new qa("Can't convert object to primitive value")}return e===void 0&&(e="number"),za(r,e)},Ya=Ja,Za=et,ot=function(r){var e=Ya(r,"string");return Za(e)?e:e+""},Qa=d,fe=b,_r=Qa.document,rn=fe(_r)&&fe(_r.createElement),it=function(r){return rn?_r.createElement(r):{}},en=S,tn=y,an=it,ct=!en&&!tn(function(){return Object.defineProperty(an("div"),"a",{get:function(){return 7}}).a!==7}),nn=S,on=Fr,cn=Ve,un=ar,ln=Mr,sn=ot,vn=T,fn=ct,ye=Object.getOwnPropertyDescriptor;Nr.f=nn?ye:function(e,t){if(e=ln(e),t=sn(t),fn)try{return ye(e,t)}catch(a){}if(vn(e,t))return un(!on(cn.f,e,t),e[t])};var j={},yn=S,pn=y,dn=yn&&pn(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),$n=b,bn=String,gn=TypeError,ut=function(r){if($n(r))return r;throw new gn(bn(r)+" is not an object")},hn=S,Sn=ct,mn=dn,z=ut,pe=ot,On=TypeError,br=Object.defineProperty,En=Object.getOwnPropertyDescriptor,gr="enumerable",hr="configurable",Sr="writable";j.f=hn?mn?function(e,t,a){if(z(e),t=pe(t),z(a),typeof e=="function"&&t==="prototype"&&"value"in a&&Sr in a&&!a[Sr]){var n=En(e,t);n&&n[Sr]&&(e[t]=a.value,a={configurable:hr in a?a[hr]:n[hr],enumerable:gr in a?a[gr]:n[gr],writable:!1})}return br(e,t,a)}:br:function(e,t,a){if(z(e),t=pe(t),z(a),Sn)try{return br(e,t,a)}catch(n){}if("get"in a||"set"in a)throw new On("Accessors not supported");return"value"in a&&(e[t]=a.value),e};var Tn=S,In=j,wn=ar,R=Tn?function(r,e,t){return In.f(r,e,wn(1,t))}:function(r,e,t){return r[e]=t,r},lt={exports:{}},Cr=S,Pn=T,st=Function.prototype,_n=Cr&&Object.getOwnPropertyDescriptor,Vr=Pn(st,"name"),Cn=Vr&&function(){}.name==="something",jn=Vr&&(!Cr||Cr&&_n(st,"name").configurable),Rn={EXISTS:Vr,PROPER:Cn,CONFIGURABLE:jn},An=v,Ln=p,jr=kr,Nn=An(Function.toString);Ln(jr.inspectSource)||(jr.inspectSource=function(r){return Nn(r)});var vt=jr.inspectSource,Fn=d,Dn=p,de=Fn.WeakMap,Mn=Dn(de)&&/native code/.test(String(de)),xn=at,Bn=nt,$e=xn("keys"),Gn=function(r){return $e[r]||($e[r]=Bn(r))},ft={},kn=Mn,yt=d,Kn=b,Vn=R,mr=T,Or=kr,Un=Gn,Wn=ft,be="Object already initialized",Rr=yt.TypeError,zn=yt.WeakMap,Q,x,rr,Hn=function(r){return rr(r)?x(r):Q(r,{})},qn=function(r){return function(e){var t;if(!Kn(e)||(t=x(e)).type!==r)throw new Rr("Incompatible receiver, "+r+" required");return t}};if(kn||Or.state){var g=Or.state||(Or.state=new zn);g.get=g.get,g.has=g.has,g.set=g.set,Q=function(r,e){if(g.has(r))throw new Rr(be);return e.facade=r,g.set(r,e),e},x=function(r){return g.get(r)||{}},rr=function(r){return g.has(r)}}else{var P=Un("state");Wn[P]=!0,Q=function(r,e){if(mr(r,P))throw new Rr(be);return e.facade=r,Vn(r,P,e),e},x=function(r){return mr(r,P)?r[P]:{}},rr=function(r){return mr(r,P)}}var Xn={set:Q,get:x,has:rr,enforce:Hn,getterFor:qn},Ur=v,Jn=y,Yn=p,H=T,Ar=S,Zn=Rn.CONFIGURABLE,Qn=vt,pt=Xn,ro=pt.enforce,eo=pt.get,ge=String,J=Object.defineProperty,to=Ur("".slice),ao=Ur("".replace),no=Ur([].join),oo=Ar&&!Jn(function(){return J(function(){},"length",{value:8}).length!==8}),io=String(String).split("String"),co=lt.exports=function(r,e,t){to(ge(e),0,7)==="Symbol("&&(e="["+ao(ge(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),t&&t.getter&&(e="get "+e),t&&t.setter&&(e="set "+e),(!H(r,"name")||Zn&&r.name!==e)&&(Ar?J(r,"name",{value:e,configurable:!0}):r.name=e),oo&&t&&H(t,"arity")&&r.length!==t.arity&&J(r,"length",{value:t.arity});try{t&&H(t,"constructor")&&t.constructor?Ar&&J(r,"prototype",{writable:!1}):r.prototype&&(r.prototype=void 0)}catch(n){}var a=ro(r);return H(a,"source")||(a.source=no(io,typeof e=="string"?e:"")),r};Function.prototype.toString=co(function(){return Yn(this)&&eo(this).source||Qn(this)},"toString");var uo=lt.exports,lo=p,so=j,vo=uo,fo=Gr,dt=function(r,e,t,a){a||(a={});var n=a.enumerable,o=a.name!==void 0?a.name:e;if(lo(t)&&vo(t,o,a),a.global)n?r[e]=t:fo(e,t);else{try{a.unsafe?r[e]&&(n=!0):delete r[e]}catch(i){}n?r[e]=t:so.f(r,e,{value:t,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return r},$t={},yo=Math.ceil,po=Math.floor,$o=Math.trunc||function(e){var t=+e;return(t>0?po:yo)(t)},bo=$o,bt=function(r){var e=+r;return e!==e||e===0?0:bo(e)},go=bt,ho=Math.max,So=Math.min,mo=function(r,e){var t=go(r);return t<0?ho(t+e,0):So(t,e)},Oo=bt,Eo=Math.min,To=function(r){var e=Oo(r);return e>0?Eo(e,9007199254740991):0},Io=To,Wr=function(r){return Io(r.length)},wo=Mr,Po=mo,_o=Wr,he=function(r){return function(e,t,a){var n=wo(e),o=_o(n);if(o===0)return!r&&-1;var i=Po(a,o),c;if(r&&t!==t){for(;o>i;)if(c=n[i++],c!==c)return!0}else for(;o>i;i++)if((r||i in n)&&n[i]===t)return r||i||0;return!r&&-1}},Co={includes:he(!0),indexOf:he(!1)},jo=v,Er=T,Ro=Mr,Ao=Co.indexOf,Lo=ft,Se=jo([].push),No=function(r,e){var t=Ro(r),a=0,n=[],o;for(o in t)!Er(Lo,o)&&Er(t,o)&&Se(n,o);for(;e.length>a;)Er(t,o=e[a++])&&(~Ao(n,o)||Se(n,o));return n},Fo=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Do=No,Mo=Fo,xo=Mo.concat("length","prototype");$t.f=Object.getOwnPropertyNames||function(e){return Do(e,xo)};var gt={};gt.f=Object.getOwnPropertySymbols;var Bo=or,Go=v,ko=$t,Ko=gt,Vo=ut,Uo=Go([].concat),Wo=Bo("Reflect","ownKeys")||function(e){var t=ko.f(Vo(e)),a=Ko.f;return a?Uo(t,a(e)):t},me=T,zo=Wo,Ho=Nr,qo=j,ht=function(r,e,t){for(var a=zo(e),n=qo.f,o=Ho.f,i=0;i<a.length;i++){var c=a[i];!me(r,c)&&!(t&&me(t,c))&&n(r,c,o(e,c))}},Xo=y,Jo=p,Yo=/#|\.prototype\./,B=function(r,e){var t=Qo[Zo(r)];return t===ei?!0:t===ri?!1:Jo(e)?Xo(e):!!e},Zo=B.normalize=function(r){return String(r).replace(Yo,".").toLowerCase()},Qo=B.data={},ri=B.NATIVE="N",ei=B.POLYFILL="P",ti=B,q=d,ai=Nr.f,ni=R,oi=dt,ii=Gr,ci=ht,ui=ti,St=function(r,e){var t=r.target,a=r.global,n=r.stat,o,i,c,u,l,f;if(a?i=q:n?i=q[t]||ii(t,{}):i=q[t]&&q[t].prototype,i)for(c in e){if(l=e[c],r.dontCallGetSet?(f=ai(i,c),u=f&&f.value):u=i[c],o=ui(a?c:t+(n?".":"#")+c,r.forced),!o&&u!==void 0){if(typeof l==typeof u)continue;ci(l,u)}(r.sham||u&&u.sham)&&ni(l,"sham",!0),oi(i,c,l,r)}},li=tr,mt=Function.prototype,Oe=mt.apply,Ee=mt.call,si=typeof Reflect=="object"&&Reflect.apply||(li?Ee.bind(Oe):function(){return Ee.apply(Oe,arguments)}),vi=v,fi=Br,yi=function(r,e,t){try{return vi(fi(Object.getOwnPropertyDescriptor(r,e)[t]))}catch(a){}},pi=b,di=function(r){return pi(r)||r===null},$i=di,bi=String,gi=TypeError,hi=function(r){if($i(r))return r;throw new gi("Can't set "+bi(r)+" as a prototype")},Si=yi,mi=b,Oi=Dr,Ei=hi,Ot=Object.setPrototypeOf||("__proto__"in{}?function(){var r=!1,e={},t;try{t=Si(Object.prototype,"__proto__","set"),t(e,[]),r=e instanceof Array}catch(a){}return function(n,o){return Oi(n),Ei(o),mi(n)&&(r?t(n,o):n.__proto__=o),n}}():void 0),Ti=j.f,Ii=function(r,e,t){t in r||Ti(r,t,{configurable:!0,get:function(){return e[t]},set:function(a){e[t]=a}})},wi=p,Pi=b,Te=Ot,_i=function(r,e,t){var a,n;return Te&&wi(a=e.constructor)&&a!==t&&Pi(n=a.prototype)&&n!==t.prototype&&Te(r,n),r},Ci=C,ji=Ci("toStringTag"),Et={};Et[ji]="z";var zr=String(Et)==="[object z]",Ri=zr,Ai=p,Y=nr,Li=C,Ni=Li("toStringTag"),Fi=Object,Di=Y(function(){return arguments}())==="Arguments",Mi=function(r,e){try{return r[e]}catch(t){}},Hr=Ri?Y:function(r){var e,t,a;return r===void 0?"Undefined":r===null?"Null":typeof(t=Mi(e=Fi(r),Ni))=="string"?t:Di?Y(e):(a=Y(e))==="Object"&&Ai(e.callee)?"Arguments":a},xi=Hr,Bi=String,Gi=function(r){if(xi(r)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return Bi(r)},ki=Gi,Ki=function(r,e){return r===void 0?arguments.length<2?"":e:ki(r)},Vi=b,Ui=R,Wi=function(r,e){Vi(e)&&"cause"in e&&Ui(r,"cause",e.cause)},zi=v,Tt=Error,Hi=zi("".replace),qi=function(r){return String(new Tt(r).stack)}("zxcasd"),It=/\n\s*at [^:]*:[^\n]*/,Xi=It.test(qi),Ji=function(r,e){if(Xi&&typeof r=="string"&&!Tt.prepareStackTrace)for(;e--;)r=Hi(r,It,"");return r},Yi=y,Zi=ar,Qi=!Yi(function(){var r=new Error("a");return"stack"in r?(Object.defineProperty(r,"stack",Zi(1,7)),r.stack!==7):!0}),rc=R,ec=Ji,tc=Qi,Ie=Error.captureStackTrace,ac=function(r,e,t,a){tc&&(Ie?Ie(r,e):rc(r,"stack",ec(t,a)))},we=or,nc=T,Pe=R,oc=Ye,_e=Ot,Ce=ht,je=Ii,ic=_i,cc=Ki,uc=Wi,lc=ac,sc=S,vc=function(r,e,t,a){var n="stackTraceLimit",o=a?2:1,i=r.split("."),c=i[i.length-1],u=we.apply(null,i);if(u){var l=u.prototype;if(nc(l,"cause")&&delete l.cause,!t)return u;var f=we("Error"),s=e(function(m,A){var L=cc(a?A:m,void 0),O=a?new u(m):new u;return L!==void 0&&Pe(O,"message",L),lc(O,s,O.stack,2),this&&oc(l,this)&&ic(O,this,s),arguments.length>o&&uc(O,arguments[o]),O});s.prototype=l,c!=="Error"?_e?_e(s,f):Ce(s,f,{name:!0}):sc&&n in u&&(je(s,u,n),je(s,u,"prepareStackTrace")),Ce(s,u);try{l.name!==c&&Pe(l,"name",c),l.constructor=s}catch(m){}return s}},wt=St,fc=d,h=si,Pt=vc,Lr="WebAssembly",Re=fc[Lr],er=new Error("e",{cause:7}).cause!==7,w=function(r,e){var t={};t[r]=Pt(r,e,er),wt({global:!0,constructor:!0,arity:1,forced:er},t)},qr=function(r,e){if(Re&&Re[r]){var t={};t[r]=Pt(Lr+"."+r,e,er),wt({target:Lr,stat:!0,constructor:!0,arity:1,forced:er},t)}};w("Error",function(r){return function(t){return h(r,this,arguments)}});w("EvalError",function(r){return function(t){return h(r,this,arguments)}});w("RangeError",function(r){return function(t){return h(r,this,arguments)}});w("ReferenceError",function(r){return function(t){return h(r,this,arguments)}});w("SyntaxError",function(r){return function(t){return h(r,this,arguments)}});w("TypeError",function(r){return function(t){return h(r,this,arguments)}});w("URIError",function(r){return function(t){return h(r,this,arguments)}});qr("CompileError",function(r){return function(t){return h(r,this,arguments)}});qr("LinkError",function(r){return function(t){return h(r,this,arguments)}});qr("RuntimeError",function(r){return function(t){return h(r,this,arguments)}});var yc=nr,_t=Array.isArray||function(e){return yc(e)==="Array"},pc=TypeError,dc=9007199254740991,$c=function(r){if(r>dc)throw pc("Maximum allowed index exceeded");return r},bc=S,gc=j,hc=ar,Sc=function(r,e,t){bc?gc.f(r,e,hc(0,t)):r[e]=t},mc=v,Oc=y,Ct=p,Ec=Hr,Tc=or,Ic=vt,jt=function(){},Rt=Tc("Reflect","construct"),Xr=/^\s*(?:class|function)\b/,wc=mc(Xr.exec),Pc=!Xr.test(jt),M=function(e){if(!Ct(e))return!1;try{return Rt(jt,[],e),!0}catch(t){return!1}},At=function(e){if(!Ct(e))return!1;switch(Ec(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Pc||!!wc(Xr,Ic(e))}catch(t){return!0}};At.sham=!0;var _c=!Rt||Oc(function(){var r;return M(M.call)||!M(Object)||!M(function(){r=!0})||r})?At:M,Ae=_t,Cc=_c,jc=b,Rc=C,Ac=Rc("species"),Le=Array,Lc=function(r){var e;return Ae(r)&&(e=r.constructor,Cc(e)&&(e===Le||Ae(e.prototype))?e=void 0:jc(e)&&(e=e[Ac],e===null&&(e=void 0))),e===void 0?Le:e},Nc=Lc,Lt=function(r,e){return new(Nc(r))(e===0?0:e)},Fc=y,Dc=C,Mc=xr,xc=Dc("species"),Bc=function(r){return Mc>=51||!Fc(function(){var e=[],t=e.constructor={};return t[xc]=function(){return{foo:1}},e[r](Boolean).foo!==1})},Gc=St,kc=y,Kc=_t,Vc=b,Uc=Kr,Wc=Wr,Ne=$c,Fe=Sc,zc=Lt,Hc=Bc,qc=C,Xc=xr,Nt=qc("isConcatSpreadable"),Jc=Xc>=51||!kc(function(){var r=[];return r[Nt]=!1,r.concat()[0]!==r}),Yc=function(r){if(!Vc(r))return!1;var e=r[Nt];return e!==void 0?!!e:Kc(r)},Zc=!Jc||!Hc("concat");Gc({target:"Array",proto:!0,arity:1,forced:Zc},{concat:function(e){var t=Uc(this),a=zc(t,0),n=0,o,i,c,u,l;for(o=-1,c=arguments.length;o<c;o++)if(l=o===-1?t:arguments[o],Yc(l))for(u=Wc(l),Ne(n+u),i=0;i<u;i++,n++)i in l&&Fe(a,n,l[i]);else Ne(n+1),Fe(a,n++,l);return a.length=n,a}});var Qc=zr,ru=Hr,eu=Qc?{}.toString:function(){return"[object "+ru(this)+"]"},tu=zr,au=dt,nu=eu;tu||au(Object.prototype,"toString",nu,{unsafe:!0});var ou={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},iu=it,Tr=iu("span").classList,De=Tr&&Tr.constructor&&Tr.constructor.prototype,cu=De===Object.prototype?void 0:De,uu=nr,lu=v,su=function(r){if(uu(r)==="Function")return lu(r)},Me=su,vu=Br,fu=tr,yu=Me(Me.bind),pu=function(r,e){return vu(r),e===void 0?r:fu?yu(r,e):function(){return r.apply(e,arguments)}},du=pu,$u=v,bu=Xe,gu=Kr,hu=Wr,Su=Lt,xe=$u([].push),E=function(r){var e=r===1,t=r===2,a=r===3,n=r===4,o=r===6,i=r===7,c=r===5||o;return function(u,l,f,s){for(var m=gu(u),A=bu(m),L=hu(A),O=du(l,f),I=0,Jr=s||Su,G=e?Jr(u,L):t||i?Jr(u,0):void 0,N,ir;L>I;I++)if((c||I in A)&&(N=A[I],ir=O(N,I,m),r))if(e)G[I]=ir;else if(ir)switch(r){case 3:return!0;case 5:return N;case 6:return I;case 2:xe(G,N)}else switch(r){case 4:return!1;case 7:xe(G,N)}return o?-1:a||n?n:G}},mu={forEach:E(0),map:E(1),filter:E(2),some:E(3),every:E(4),find:E(5),findIndex:E(6),filterReject:E(7)},Ou=y,Eu=function(r,e){var t=[][r];return!!t&&Ou(function(){t.call(null,e||function(){return 1},1)})},Tu=mu.forEach,Iu=Eu,wu=Iu("forEach"),Pu=wu?[].forEach:function(e){return Tu(this,e,arguments.length>1?arguments[1]:void 0)},Be=d,Ge=ou,_u=cu,Ir=Pu,Cu=R,Ft=function(r){if(r&&r.forEach!==Ir)try{Cu(r,"forEach",Ir)}catch(e){r.forEach=Ir}};for(var wr in Ge)Ge[wr]&&Ft(Be[wr]&&Be[wr].prototype);Ft(_u);/*!
|
||
* el-table-infinite-scroll v3.0.3
|
||
* (c) 2019-2023 yujinpan
|
||
*/function ju(r,e,t){var a;t.forEach(function(n){a=r.getAttribute(n),a!==null?e.setAttribute(n,a):e.removeAttribute(n)})}/*!
|
||
* el-table-infinite-scroll v3.0.3
|
||
* (c) 2019-2023 yujinpan
|
||
*/var ke="[el-table-infinite-scroll]: ",X=".el-scrollbar__wrap",Ru={mounted:function(e,t,a,n){var o=e.querySelector(X);if(!o)throw new Error("".concat(ke).concat(X," element not found."));o.style.overflowY="auto",setTimeout(function(){e.style.height||(o.style.height="400px",console.warn("".concat(ke,"el-table height required, otherwise will set scrollbar default height: 400px"))),Ke(e,o),cr.mounted(o,t,a,n)},0)},updated:function(e){Ke(e,e.querySelector(X))},unmounted:function(e){for(var t=e.querySelector(X),a=arguments.length,n=new Array(a>1?a-1:0),o=1;o<a;o++)n[o-1]=arguments[o];cr.unmounted.apply(cr,[t].concat(n))}};function Ke(r,e){ju(r,e,["infinite-scroll-disabled","infinite-scroll-delay","infinite-scroll-immediate","infinite-scroll-distance"]);var t="infinite-scroll-distance",a=+(r.getAttribute(t)||0);e.setAttribute(t,(a<1?1:a)+"")}/*!
|
||
* el-table-infinite-scroll v3.0.3
|
||
* (c) 2019-2023 yujinpan
|
||
*/var Dt=Object.assign(Ru,{install:function(e){e.directive("el-table-infinite-scroll",Dt)}});const Au={class:"font-medium"},Lu={class:"mb-2"},Fu=Mt({name:"InfiniteScroll",__name:"infinite-scroll",setup(r){const e=new Array(10).fill({date:"2022-08-24",name:"RealityBoy",age:"18"}),t=K([]),a=K(0),n=K(10),o=K(!1),i=()=>{o.value||(a.value++,a.value<=n.value&&(t.value=t.value.concat(e)),a.value===n.value&&(o.value=!0))};return(c,u)=>{const l=U("el-link"),f=U("el-table-column"),s=U("el-table"),m=U("el-card");return Zr(),Yr(m,{shadow:"never"},{header:V(()=>[Qr("div",Au,[ur(" 表格无限滚动( "),F(l,{href:"https://github.com/yujinpan/el-table-infinite-scroll",target:"_blank",style:{margin:"0 5px 4px 0","font-size":"16px"}},{default:V(()=>[ur(" github地址 ")]),_:1}),ur(" ) ")])]),default:V(()=>[Qr("p",Lu,xt(o.value?"已加载全部页":`加载到第 ${a.value} 页`),1),Bt((Zr(),Yr(s,{border:"",height:"435px",data:t.value,"infinite-scroll-disabled":o.value},{default:V(()=>[F(f,{width:"80",type:"index",label:"序号"}),F(f,{prop:"date",label:"日期"}),F(f,{prop:"name",label:"名称"}),F(f,{prop:"age",label:"年龄"})]),_:1},8,["data","infinite-scroll-disabled"])),[[Gt(Dt),i]])]),_:1})}}});export{Fu as default};
|