← Back
Editing: index-legacy109.js
System.register(["./utils-lib-legacy.js?v=VERSION_NUMBER","./base-lib-legacy.js?v=VERSION_NUMBER","./index-legacy110.js?v=VERSION_NUMBER"],(function(e,t){"use strict";var n,a,o,l,r,u,i,s,d,c,f,v,h,m,p,y,g,b,w,x,_,C,k,L,E,I,M,$,j,A,B,S,R,T,V,W,N,q,z;return{setters:[function(e){n=e.u,a=e.bv,o=e.L,l=e.B,r=e.e},function(e){u=e.c,i=e.W,s=e.X,d=e.b,c=e.aE,f=e.ar,v=e.r,h=e.t,m=e.g,p=e.w,y=e.a0,g=e.p,b=e.a4,w=e.aM,x=e.q,_=e.v,C=e.y,k=e.F,L=e.a_,E=e.x,I=e.L,M=e.C,$=e.M,j=e.A,A=e.H,B=e.I,S=e.e,R=e.N,T=e.J,V=e.aN,W=e.d,N=e.ax,q=e.z},function(e){z=e._}],execute:function(){var F={class:"flex flex-col p-[1.2rem]"},H=["onClick"],J=u({__name:"index",props:i({options:{default:function(){return[]}},store:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},showContent:{type:Boolean,default:!0},contentClass:{default:"router-tabs-content"}},{modelValue:{},modelModifiers:{}}),emits:i(["cutTab","afterLeave"],["update:modelValue"]),setup:function(e,r){var u=r.emit,i=W((function(){return o((function(){return t.import("./index-legacy179.js?v=VERSION_NUMBER")}),void 0,t.meta.url)})),J=e,O=u,U=s(e,"modelValue"),X=n(),D=X.mainWidth,G=X.forceLtd,K=X.aliyunEcsLtd,P=X.payment,Q=d(),Y=c(),Z=f(J.options),ee=v(!0),te=v(!1),ne=v("0px"),ae=v(0),oe=v(),le=v(),re="".concat(Q.path.split("/")[1],"_router").toUpperCase(),ue=h(P.value).authType,ie=m((function(){return"router-tabs-content"===J.contentClass}));p((function(){return Q.name}),(function(){if(fe())ce(Q.name),U.value=Q.name;else{var e=localStorage.getItem(re)||Z.value[0].name;Y.push({name:e}),ce(e),U.value=e}}));var se=function(e){var t=e.target.offsetLeft,n=e.target.offsetWidth;ne.value="".concat(t+n-22,"px"),te.value=!0},de=y(oe,(function(e){var t=e[0].contentRect.width;ae.value=t,ee.value=D.value-320>=ae.value})),ce=function(e){localStorage.setItem(re,e)},fe=function(){var e=Q.path.split("/");return e.length>2&&""!=e[2]},ve=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];U.value=e,t&&ce(e),Q.name!==e&&n&&Y.push({name:e})};return p((function(){return l.value}),(function(e){var t,n=e.find((function(e){return-1!==Q.path.indexOf(e.path)}));if(null!=n&&n.children&&Array.isArray(n.children)&&Z.value.forEach((function(e){var t=n.children.find((function(t){return e.path===t.name}));e.show=!t||t.show})),null===(t=Z.value.find((function(e){return e.name===Q.name})))||void 0===t||!t.show){var a=Z.value.filter((function(e){return e.show}));a&&a.length&&ve(a[0].name)}}),{immediate:!0}),p(D,(function(){ee.value=D.value-320>=ae.value})),g((function(){var e,t,n,o=localStorage.getItem(re);if(Z.value.length||(Z.value=a(null===(e=Q.matched[1])||void 0===e?void 0:e.children,"array",[])),"/mail"===(null===(t=Q.matched[1])||void 0===t?void 0:t.path)&&Z.value.forEach((function(e){e.show=!0})),"/vhost"===(null===(n=Q.matched[1])||void 0===n?void 0:n.path)&&Z.value.forEach((function(e){e.show=!0})),J.store)return fe()?ve(Q.name):ve(o||Z.value[0].name)})),b((function(){de.stop()})),function(e,t){var n=z,a=N,o=w("router-view");return x(),_("div",F,[C("div",{class:T(["header-tabs",{disabled:e.disabled}])},[C("div",{ref_key:"headerChildContentRef",ref:oe,class:"flex flex-wrap"},[(x(!0),_(k,null,L(E(Z),(function(e,n){var a,o;return x(),_(k,{key:n},[e.show?(x(),_("div",{key:0,ref_for:!0,ref_key:"tabListRef",ref:le,class:T(["header-child-tab",{"active-tab":U.value===e.name,"!hidden":null==e||null===(a=e.meta)||void 0===a?void 0:a.ignore}]),onClick:function(t){return function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];J.disabled||(U.value!==e||t)&&(ce(e),U.value=e,Y.push({name:e}),O("cutTab",e))}(e.name)},onMouseenter:se,onMouseleave:t[0]||(t[0]=function(e){return te.value=!1})},q(null===(o=e.meta)||void 0===o?void 0:o.title),43,H)):M("",!0)],64)})),128))],512),e.$slots.right?I(e.$slots,"right",{key:0},void 0,!0):M("",!0),e.$slots.right?M("",!0):(x(),$(a,{key:1,width:"580",disabled:"free"!==E(ue),"show-arrow":!1,"popper-style":"padding: 0;border-radius: 16px;overflow: hidden;","popper-class":"el-product-state-popover"},{reference:j((function(){return[A(S(n,{"is-home":!0,"disable-pro":!0},null,512),[[B,E(ee)&&!(E(G)||E(K))]])]})),default:j((function(){return[(x(),$(R(E(i))))]})),_:1},8,["disabled"]))],2),e.showContent?(x(),_("div",{key:0,class:T(["",{"module-ui":E(ie),"mt-[1.2rem]":E(ie)}])},[e.$slots.default?(x(),_("div",{key:0,class:T(e.contentClass)},[I(e.$slots,"default",{},void 0,!0)],2)):(x(),_("div",{key:1,class:T(e.contentClass)},[S(o,null,{default:j((function(e){var n=e.Component;return[S(V,{name:"fade",mode:"out-in",onAfterLeave:t[1]||(t[1]=function(e){return O("afterLeave")})},{default:j((function(){return[(x(),$(R(n)))]})),_:2},1024)]})),_:1})],2))],2)):M("",!0)])}}});e("_",r(J,[["__scopeId","data-v-e911f2ad"]]))}}}));
Save File
Cancel