All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.resources.assets.GlobalLayout.37f78eb5.js Maven / Gradle / Ivy

Go to download

swagger-mg-ui是swagger-ui的一个前端实现,使用简单、解析速度快、走心的设计,支持多项目同时展示,多种文档目录的展示方案,多种自定义配置,满足各种使用习惯

The newest version!
var N=Object.defineProperty,V=Object.defineProperties;var b=Object.getOwnPropertyDescriptors;var k=Object.getOwnPropertySymbols;var D=Object.prototype.hasOwnProperty,I=Object.prototype.propertyIsEnumerable;var x=(a,t,o)=>t in a?N(a,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):a[t]=o,w=(a,t)=>{for(var o in t||(t={}))D.call(t,o)&&x(a,o,t[o]);if(k)for(var o of k(t))I.call(t,o)&&x(a,o,t[o]);return a},B=(a,t)=>V(a,b(t));import{_ as _export_sfc}from"./main.f997fd55.js";import{r as resolveComponent,o as openBlock,c as createBlock,w as withCtx,e as createBaseVNode,a as createVNode,k as createTextVNode,D as DownOutlined,I as InfoCircleOutlined,b as createElementBlock,m as withModifiers,F as Fragment,S as StarOutlined,n as SettingOutlined,C as CarryOutOutlined,p as FileTextOutlined,q as DashboardOutlined,s as createCommentVNode,t as toDisplayString,d as renderList,u as withDirectives,v as vShow,B as BarChartOutlined,M as MenuFoldOutlined,x as MenuUnfoldOutlined,y as pushScopeId,E as popScopeId}from"./vendor.fae58fd3.js";import{a as apiClient,g as getCustomApiBaseUrl}from"./custom.16f46b2f.js";const _sfc_main$5={data(){return{aboutDialogVisible:!1}},mounted(){},methods:{show(){this.aboutDialogVisible=!0}}},_hoisted_1$4={style:{}},_hoisted_2$3=createBaseVNode("div",{style:{"font-weight":"bold","font-size":"25px"}},"swagger-mg-ui",-1),_hoisted_3$3=createBaseVNode("div",{style:{"line-height":"30px",padding:"10px 0"}},[createBaseVNode("div",null,"\u7248\u672C 2.0.0"),createBaseVNode("div",null,[createTextVNode("\u7248\u6743\u6240\u6709 \xA9 2018-2021 "),createBaseVNode("a",{target:"_blank",href:"http://doc.zyplayer.com"},"doc.zyplayer.com")])],-1),_hoisted_4$2={style:{"line-height":"30px"}},_hoisted_5$2=createBaseVNode("div",null,[createTextVNode("\u4E3B\u9875\uFF1A"),createBaseVNode("a",{target:"_blank",href:"https://gitee.com/zyplayer/zyplayer-doc"},"https://gitee.com/zyplayer/zyplayer-doc")],-1),_hoisted_6$1=createBaseVNode("div",null,[createTextVNode("\u53CD\u9988\uFF1A"),createBaseVNode("a",{target:"_blank",href:"https://gitee.com/zyplayer/zyplayer-doc/issues"},"https://gitee.com/zyplayer/zyplayer-doc/issues")],-1),_hoisted_7$1=createBaseVNode("div",null,"\u7279\u6027\u5173\u6CE8&\u6280\u672F\u4EA4\u6D41QQ\u7FA4\uFF1A466363173",-1),_hoisted_8$1=createBaseVNode("div",null,[createTextVNode(" Tips\uFF1A\u672C\u9879\u76EE\u4E3Azyplayer-doc\u9879\u76EESwagger\u6A21\u5757\u524D\u7AEF\u7684\u7CBE\u7B80\u7248\uFF0C\u6709\u4EFB\u4F55\u95EE\u9898\u90FD\u53EF\u7EDF\u4E00\u63D0\u7ED9 "),createBaseVNode("a",{target:"_blank",href:"https://gitee.com/zyplayer/zyplayer-doc"},"zyplayer-doc"),createTextVNode(" \u9879\u76EE\uFF0C\u5C06\u540C\u6B65\u5347\u7EA7\u81F3\u672C\u9879\u76EE\uFF0Czyplayer-doc\u80FD\u63D0\u4F9B\u66F4\u5F3A\u5927\u7684\u7EDF\u4E00\u6587\u6863\u7BA1\u7406\u529F\u80FD\uFF0C\u6B22\u8FCE\u524D\u5F80\u4E86\u89E3\u3002 ")],-1),_hoisted_9$1=createTextVNode("UI/\u8BBE\u8BA1/\u5F00\u53D1/\u6D4B\u8BD5"),_hoisted_10$1=createBaseVNode("div",null,[createBaseVNode("a",{target:"_blank",href:"http://zyplayer.com"},"\u66AE\u5149\uFF1A\u57CE\u4E2D\u57CE")],-1),_hoisted_11$1={style:{"line-height":"30px"}},_hoisted_12$1=createBaseVNode("div",null,"\u672C\u9879\u76EE\u57FA\u4E8E\u4EE5\u4E0B\u5F00\u6E90\u8F6F\u4EF6\u6784\u5EFA",-1),_hoisted_13=createTextVNode("\u524D\u7AEF"),_hoisted_14=createTextVNode(" Vue3\u3001vue-router\u3001vuex\u3001ant-design-vue\u3001axios\u3001brace\u3001highlight.js\u3001jsontoxml\u3001less\u3001mavon-editor\u3001moment\u3001qs\u3001sass\u3001xml-formatter\u3001... ");function _sfc_render$5(a,t,o,l,n,c){const i=resolveComponent("a-divider"),r=resolveComponent("a-tab-pane"),_=resolveComponent("a-tabs"),h=resolveComponent("a-modal");return openBlock(),createBlock(h,{visible:n.aboutDialogVisible,"onUpdate:visible":t[0]||(t[0]=d=>n.aboutDialogVisible=d),title:"\u5173\u4E8E",width:"600px",footer:null},{default:withCtx(()=>[createBaseVNode("div",_hoisted_1$4,[_hoisted_2$3,_hoisted_3$3,createVNode(_,{type:"card"},{default:withCtx(()=>[createVNode(r,{tab:"\u652F\u6301",key:"support"},{default:withCtx(()=>[createBaseVNode("div",_hoisted_4$2,[_hoisted_5$2,_hoisted_6$1,_hoisted_7$1,_hoisted_8$1,createVNode(i,{"content-position":"left"},{default:withCtx(()=>[_hoisted_9$1]),_:1}),_hoisted_10$1])]),_:1}),createVNode(r,{tab:"\u5F00\u6E90\u8F6F\u4EF6",key:"software"},{default:withCtx(()=>[createBaseVNode("div",_hoisted_11$1,[_hoisted_12$1,createVNode(i,{"content-position":"left"},{default:withCtx(()=>[_hoisted_13]),_:1}),_hoisted_14])]),_:1})]),_:1})])]),_:1},8,["visible"])}var aboutDialog=_export_sfc(_sfc_main$5,[["render",_sfc_render$5]]),HeaderAvatar_vue_vue_type_style_index_0_scoped_true_lang="";const _sfc_main$4={name:"HeaderAvatar",data(){return{}},components:{DownOutlined,InfoCircleOutlined,aboutDialog},mounted(){},methods:{showAbout(){this.$refs.aboutDialog.show()}}},_hoisted_1$3=createTextVNode("\u5173\u4E8E");function _sfc_render$4(a,t,o,l,n,c){const i=resolveComponent("InfoCircleOutlined"),r=resolveComponent("a-menu-item"),_=resolveComponent("a-menu"),h=resolveComponent("a-dropdown"),d=resolveComponent("about-dialog");return openBlock(),createElementBlock(Fragment,null,[createVNode(h,{trigger:"click"},{overlay:withCtx(()=>[createVNode(_,null,{default:withCtx(()=>[createVNode(r,{onClick:c.showAbout,key:"2"},{default:withCtx(()=>[_hoisted_1$3]),_:1},8,["onClick"])]),_:1})]),default:withCtx(()=>[createBaseVNode("a",{class:"ant-dropdown-link",onClick:t[0]||(t[0]=withModifiers(()=>{},["prevent"])),style:{display:"inline-block",height:"100%","vertical-align":"initial"}},[createVNode(i)])]),_:1}),createVNode(d,{ref:"aboutDialog"},null,512)],64)}var HeaderAvatar=_export_sfc(_sfc_main$4,[["render",_sfc_render$4],["__scopeId","data-v-d7becda6"]]);const _sfc_main$3={name:"MenuLayoutChildren",props:{menuItem:Object},data(){return{}},components:{StarOutlined,SettingOutlined,CarryOutOutlined,FileTextOutlined,DashboardOutlined,InfoCircleOutlined},methods:{haveShowChildren(a){return a.filter(t=>!t.meta||!t.meta.hidden).length>0}}};function _sfc_render$3(a,t,o,l,n,c){const i=resolveComponent("SettingOutlined"),r=resolveComponent("FileTextOutlined"),_=resolveComponent("MenuLayoutChildren"),h=resolveComponent("a-sub-menu"),d=resolveComponent("DashboardOutlined"),p=resolveComponent("InfoCircleOutlined"),u=resolveComponent("router-link"),m=resolveComponent("a-menu-item");return!o.menuItem.meta||!o.menuItem.meta.hidden?(openBlock(),createElementBlock(Fragment,{key:0},[o.menuItem.children?(openBlock(),createElementBlock(Fragment,{key:0},[c.haveShowChildren(o.menuItem.children)?(openBlock(),createBlock(h,{key:o.menuItem.path},{title:withCtx(()=>[o.menuItem.meta?(openBlock(),createElementBlock(Fragment,{key:0},[o.menuItem.meta.icon==="SettingOutlined"?(openBlock(),createBlock(i,{key:0})):createCommentVNode("",!0),o.menuItem.meta.icon==="FileTextOutlined"?(openBlock(),createBlock(r,{key:1})):createCommentVNode("",!0)],64)):createCommentVNode("",!0),createBaseVNode("span",null,toDisplayString(o.menuItem.name),1)]),default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(o.menuItem.children,f=>(openBlock(),createBlock(_,{menuItem:f},null,8,["menuItem"]))),256))]),_:1})):createCommentVNode("",!0)],64)):(openBlock(),createBlock(m,{key:o.menuItem.path},{default:withCtx(()=>[createVNode(u,{to:{path:o.menuItem.path,query:o.menuItem.query}},{default:withCtx(()=>[o.menuItem.meta?(openBlock(),createElementBlock(Fragment,{key:0},[o.menuItem.meta.icon==="DashboardOutlined"?(openBlock(),createBlock(d,{key:0})):createCommentVNode("",!0),o.menuItem.meta.icon==="FileTextOutlined"?(openBlock(),createBlock(r,{key:1})):createCommentVNode("",!0),o.menuItem.meta.icon==="InfoCircleOutlined"?(openBlock(),createBlock(p,{key:2})):createCommentVNode("",!0)],64)):createCommentVNode("",!0),createBaseVNode("span",null,toDisplayString(o.menuItem.name),1)]),_:1},8,["to"])]),_:1}))],64)):createCommentVNode("",!0)}var MenuChildrenLayout=_export_sfc(_sfc_main$3,[["render",_sfc_render$3]]);const customApi={get:(a,t)=>apiClient({url:getCustomApiBaseUrl(a),method:"get",data:t})},methodArray=["get","head","post","put","patch","delete","options","trace"];function analysisSwaggerData(a){let t={},o={},l={},n=a.paths;return n?(Object.keys(n).forEach(c=>{let i=n[c];for(let r of methodArray){if(!i[r]||!i[r].tags)continue;let _=r.toLowerCase();l[_]=(l[_]||0)+1,l.total=(l.total||0)+1,i[r].tags.forEach(h=>{let d=t[h];d||(d=t[h]={});let p=d[c];p||(p=d[c]={});let u=c+"."+r;p[r]=i[r],p[r].path=u,p[r].url=c,p[r].method=r,o[u]=i[r]})}}),{urlMethodMap:o,tagPathMap:t,methodStatistic:l}):{urlMethodMap:o,tagPathMap:t,methodStatistic:l}}function getTreeDataForTag(a,t,o,l){let n=[],c=1;return(a.tags||[]).forEach(r=>{let _=1,h=[],d=t[r.name];!d||(Object.keys(d).forEach(p=>{let u=1,m=d[p];Object.keys(m).forEach(f=>{let C=c+"_"+_+"_"+u,s=m[f];if(!searchInPathMethods(p,s,o))return;s.treeId=C;let y=s.summary||s.path;h.push({title:y,key:C,isLeaf:!0,method:s.method,query:B(w({},l),{path:s.url,method:s.method})}),u++}),_++}),h.length>0&&n.push({title:r.name,key:c,children:h}),c++)}),[{key:"main",title:a.info.title||"Swagger\u63A5\u53E3\u6587\u6863",children:n}]}function searchInPathMethods(a,t,o){if(!o||!a||(a=a.toLowerCase(),o=o.toLowerCase(),a.indexOf(o)>=0))return!0;let l=t.path+t.method+t.summary+t.description+t.tags;return l&&l.toLowerCase().indexOf(o)>=0}var MenuLayout_vue_vue_type_style_index_0_lang="";const _sfc_main$2={name:"MenuLayout",props:{collapsed:{type:Boolean,default:!1}},data(){return{menuData:[],selectedKeys:[],openKeys:[],treeDataLoading:!1,tagPathMap:{},swaggerDoc:{},treeData:[],expandedKeys:[],swaggerResourceList:[],swaggerDocChoice:void 0,searchKeywords:""}},watch:{"$store.state.docChangedNum"(){this.getSwaggerResourceList()}},components:{MenuChildrenLayout},mounted(){this.menuData=this.$router.options.routes.find(l=>l.path==="/").children[0].children;let a=this.$route.meta||{},t=this.$route.path;a.parentPath&&(t=a.parentPath),this.selectedKeys=[t];let o=this.$route.matched;o.length>=1&&(this.openKeys=[o[1].path]),this.getSwaggerResourceList()},methods:{docChecked(a,t){if(t.node.isLeaf){let o=t.node.dataRef;this.$router.push({path:"/swagger/view",query:o.query})}},getSwaggerResourceList(){customApi.get("/swagger-resources").then(a=>{a.data instanceof Array?(this.swaggerResourceList=a.data||[],this.swaggerResourceList.length>0&&!this.swaggerDocChoice&&(this.swaggerDocChoice=this.swaggerResourceList[0].url,this.$route.path==="/swagger/view"&&this.$route.query.url&&(this.swaggerDocChoice=this.$route.query.url),this.loadV2Doc())):this.$message.error("\u83B7\u53D6\u6587\u6863\u5217\u8868\u8BF7\u6C42\u5931\u8D25")})},swaggerDocChoiceChange(){this.loadV2Doc()},loadV2Doc(){this.treeDataLoading=!0;let a=this.swaggerResourceList.find(t=>t.url===this.swaggerDocChoice);if(!a){this.$message.error("\u672A\u627E\u5230\u5BF9\u5E94\u7684\u6587\u6863\u5730\u5740\u4FE1\u606F");return}this.$store.commit("setSwaggerResource",a),customApi.get(this.swaggerDocChoice).then(t=>{let o=this.toJsonObj(t.data);if(typeof o!="object"||!o.swagger){this.$message.error("\u83B7\u53D6\u6587\u6863\u6570\u636E\u8BF7\u6C42\u5931\u8D25"),this.treeDataLoading=!1;return}this.swaggerDoc=o,this.$store.commit("setSwaggerDoc",this.swaggerDoc);let l=analysisSwaggerData(this.swaggerDoc);this.$store.commit("setUrlMethodMap",l.urlMethodMap),this.$store.commit("setMethodStatistic",l.methodStatistic),this.tagPathMap=l.tagPathMap,this.loadTreeData(),setTimeout(()=>this.treeDataLoading=!1,100)})},async loadTreeData(){let a={url:this.swaggerDocChoice};this.treeData=getTreeDataForTag(this.swaggerDoc,this.tagPathMap,this.searchKeywords,a),await this.$nextTick(),this.expandedKeys=["main"]},toJsonObj(value){if(typeof value!="string")return value;try{return JSON.parse(value)}catch(e){try{return eval("("+value+")")}catch(a){return value||void 0}}}}},_hoisted_1$2={class:"menu-layout"},_hoisted_2$2={class:"doc-tree"},_hoisted_3$2={style:{padding:"10px 5px"}},_hoisted_4$1=createTextVNode("get"),_hoisted_5$1=createTextVNode("post"),_hoisted_6=createTextVNode("put"),_hoisted_7=createTextVNode("head"),_hoisted_8=createTextVNode("patch"),_hoisted_9=createTextVNode("delete"),_hoisted_10=createTextVNode("options"),_hoisted_11=createTextVNode("trace"),_hoisted_12={style:{margin:"0 6px 0 3px"}};function _sfc_render$2(a,t,o,l,n,c){const i=resolveComponent("menu-children-layout"),r=resolveComponent("a-menu"),_=resolveComponent("a-divider"),h=resolveComponent("a-select-option"),d=resolveComponent("a-select"),p=resolveComponent("a-input-search"),u=resolveComponent("a-tag"),m=resolveComponent("a-badge"),f=resolveComponent("a-directory-tree"),C=resolveComponent("a-spin");return openBlock(),createElementBlock("div",_hoisted_1$2,[createVNode(r,{theme:"light",mode:"inline","inline-collapsed":!1,openKeys:n.openKeys,"onUpdate:openKeys":t[0]||(t[0]=s=>n.openKeys=s),selectedKeys:n.selectedKeys,"onUpdate:selectedKeys":t[1]||(t[1]=s=>n.selectedKeys=s)},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(n.menuData,s=>(openBlock(),createBlock(i,{menuItem:s},null,8,["menuItem"]))),256))]),_:1},8,["openKeys","selectedKeys"]),createVNode(_,{style:{margin:"6px 0"}}),withDirectives(createBaseVNode("div",_hoisted_2$2,[createVNode(C,{tip:"\u52A0\u8F7D\u4E2D...",spinning:n.treeDataLoading},{default:withCtx(()=>[createBaseVNode("div",_hoisted_3$2,[createVNode(d,{placeholder:"\u8BF7\u9009\u62E9\u5206\u7EC4",value:n.swaggerDocChoice,"onUpdate:value":t[2]||(t[2]=s=>n.swaggerDocChoice=s),onChange:c.swaggerDocChoiceChange,style:{width:"100%"}},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(n.swaggerResourceList,s=>(openBlock(),createBlock(h,{value:s.url},{default:withCtx(()=>[createTextVNode(toDisplayString(s.name),1)]),_:2},1032,["value"]))),256))]),_:1},8,["value","onChange"]),createVNode(p,{value:n.searchKeywords,"onUpdate:value":t[3]||(t[3]=s=>n.searchKeywords=s),placeholder:"\u641C\u7D22\u6587\u6863\u5185\u5BB9",style:{width:"100%","margin-top":"10px"},onSearch:c.loadTreeData},null,8,["value","onSearch"])]),createVNode(f,{showIcon:!1,"tree-data":n.treeData,expandedKeys:n.expandedKeys,"onUpdate:expandedKeys":t[4]||(t[4]=s=>n.expandedKeys=s),onSelect:c.docChecked},{title:withCtx(({title:s,isLeaf:y,method:g,children:v,key:A})=>[y?(openBlock(),createElementBlock(Fragment,{key:0},[g==="get"?(openBlock(),createBlock(u,{key:0,color:"pink"},{default:withCtx(()=>[_hoisted_4$1]),_:1})):g==="post"?(openBlock(),createBlock(u,{key:1,color:"red"},{default:withCtx(()=>[_hoisted_5$1]),_:1})):g==="put"?(openBlock(),createBlock(u,{key:2,color:"orange"},{default:withCtx(()=>[_hoisted_6]),_:1})):g==="head"?(openBlock(),createBlock(u,{key:3,color:"green"},{default:withCtx(()=>[_hoisted_7]),_:1})):g==="patch"?(openBlock(),createBlock(u,{key:4,color:"cyan"},{default:withCtx(()=>[_hoisted_8]),_:1})):g==="delete"?(openBlock(),createBlock(u,{key:5,color:"blue"},{default:withCtx(()=>[_hoisted_9]),_:1})):g==="options"?(openBlock(),createBlock(u,{key:6,color:"purple"},{default:withCtx(()=>[_hoisted_10]),_:1})):g==="trace"?(openBlock(),createBlock(u,{key:7,color:"purple"},{default:withCtx(()=>[_hoisted_11]),_:1})):createCommentVNode("",!0)],64)):createCommentVNode("",!0),createBaseVNode("span",_hoisted_12,toDisplayString(s),1),v?(openBlock(),createBlock(m,{key:1,count:v.length,"number-style":{backgroundColor:"#fff",color:"#999",boxShadow:"0 0 0 1px #d9d9d9 inset"}},null,8,["count"])):createCommentVNode("",!0)]),_:1},8,["tree-data","expandedKeys","onSelect"])]),_:1},8,["spinning"])],512),[[vShow,!o.collapsed]])])}var MenuLayout=_export_sfc(_sfc_main$2,[["render",_sfc_render$2]]),GlobalFooter_vue_vue_type_style_index_0_scoped_true_lang="";const _sfc_main$1={name:"GlobalFooter",props:["copyright","linkList"]},_hoisted_1$1={class:"footer"},_hoisted_2$1={class:"links"},_hoisted_3$1=["href"],_hoisted_4={class:"copyright"},_hoisted_5=createTextVNode(" Copyright");function _sfc_render$1(a,t,o,l,n,c){const i=resolveComponent("a-icon");return openBlock(),createElementBlock("div",_hoisted_1$1,[createBaseVNode("div",_hoisted_2$1,[(openBlock(!0),createElementBlock(Fragment,null,renderList(o.linkList,(r,_)=>(openBlock(),createElementBlock("a",{target:"_blank",key:_,href:r.link?r.link:"javascript: void(0)"},[r.icon?(openBlock(),createBlock(i,{key:0,type:r.icon},null,8,["type"])):createCommentVNode("",!0),createTextVNode(toDisplayString(r.name),1)],8,_hoisted_3$1))),128))]),createBaseVNode("div",_hoisted_4,[_hoisted_5,createVNode(i,{type:"copyright"}),createTextVNode(" "+toDisplayString(o.copyright),1)])])}var GlobalFooter=_export_sfc(_sfc_main$1,[["render",_sfc_render$1],["__scopeId","data-v-7aaaa116"]]),_imports_0="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAEPElEQVR4Ab1XA8xlWQx+a9u2bcRex17btj1G8Nu2bdu2bfOi02/yzjN/NWnuYdtbH42joKrqqbKy+aSsSD/yN0KS16t4PAKU5I0a/kZhD2dwVrNToKjyhUz4e0WR+ohUcgRwlgX5ke9ebI++nT+W3mYiU4Iwr9HwdAOVtHpSYuXPFF70IZDHP1Fxqwfv1RPOCMBdpvEuaDnJXLmY/yBOEFvfXKa8puP0b8Td9Jmnxib+E3EX5TYe4ztLOqFZiATQdJT51XyhQVyu6gqhX4KvAXGn8Jegq6myMwg0hFmamPa1dv9cMGfHopD8t0FsWxic/yaxwxoIoV5sy+ZxgrlHxisgsCPonvaioRAJFn0CDgd1AUPy38LFHcWgvDdI0Idjmqr+QvbYCWKo6go2uvi1zzlU0RFAq+tzNDRVa5fR4FQNrW7Mw/70te+5RnsVnQG66DAKUcS58HZTh4su/YIA43NtlN1wyK4A2fUHaWy2hQCxZV8b7f0cdJUuOpC0dLZnu/RgMY/Dx5QgogCwP/ohh9X9X9R9BKjtiTDby2k4ovUFue+kLyB1ipBDDJteaBlMIcDvoTc5LAC0CGgdTDPb+zv8Dl1oMu+nNVAFJshiOGAuQBoBfgu53mEBfgy8HEyodSjd0j58SUTEz9BABCYlrR4WD/eNl0FS+srnbIcF+NL7DIQdDUxWWdwvanUTGojSoKphgnxuenBf9APICdQ7Xoo5fe51mpEgYAQUc+zhDMZdowVgYNF3Eip+IADzrtOgnGKComJ4KLNuH3F40vLaNB2KfRxr1D6cSSvrs/RryHVgTJPzXTS10MPjM9nu1/LZGeoYycFZOhj7KC2tToIGZdUfMKIdVvi+MMGYNQH40n5cpqW1KSb2mFaAbOQD+AMEAHOaXuyFAPQrCwDhOkfycJYOxDxCi6sToIHQtC4Aq9iqCfbHPKw1QQnm9AWr92sjE5wJNDLBFzoT5MMEEN6uCSIwKbbmhBPCCc9y2gn7JystO2GLcEIpZnfCMMBmGCJdCwEQhpJBIrpzDxLR7QaJSHpam4rlPizkNh41u1DdFUqAfc6k4sh7baTiw8IBB8DbpBgtoZMxuhBT+iW2UGAQGXaZI3xHZ5sJEFf2jUkxupLWNhdFEvrZqPNVVGUKG5WdgWblGKV1bWOBhqbr7AmANMtnF6E5+sb3PKO98g5/AoCXWcesGDQkaKN2uiEJzHvNtCGx2JIlaOOT3NNf2jHmrmnPg6ZwvCTwstqUonEUQkAT2//z1w36QbnFbnuO1lkIAXXBJ34WjukEovtBK8c0DJir1zr8MNF2rySiI7fxCP1tIU9YaDgQanxn0eBhspkEmlt5mr1r8jRDJKCeI5+jqAAxxhoiwORppsww8/e39VhFuOChycIMkIOAJIM439bj1IJGTkcPhzaKvzGoZCinQIxRWJDbGZ/FWUfpngCleTNdmkrhIgAAAABJRU5ErkJggg==",GlobalLayout_vue_vue_type_style_index_0_scoped_true_lang="",GlobalLayout_vue_vue_type_style_index_1_lang="";const minHeight=window.innerHeight-64-122,_sfc_main={name:"GlobalLayout",components:{HeaderAvatar,MenuLayout,GlobalFooter,BarChartOutlined,MenuFoldOutlined,MenuUnfoldOutlined},data(){return{minHeight:minHeight+"px",appMenuCollapsed:!1,rightAsideWidth:300}},computed:{},mounted(){this.dragChangeRightAsideWidth()},methods:{dragChangeRightAsideWidth:function(){let a=this.$refs.rightResize,t=this.$refs.rightResizeBar;a.onmousedown=o=>{let l=o.clientX;return a.style.background="#ccc",t.style.background="#aaa",a.left=a.offsetLeft,document.onmousemove=n=>{let c=n.clientX,i=l-c;(i<0&&this.rightAsideWidth<600||i>0&&this.rightAsideWidth>250)&&(l=c,this.rightAsideWidth-=i)},document.onmouseup=()=>{a.style.background="#fafafa",t.style.background="#ccc",document.onmousemove=null,document.onmouseup=null},!1}}}},_withScopeId=a=>(pushScopeId("data-v-588ebf9f"),a=a(),popScopeId(),a),_hoisted_1=_withScopeId(()=>createBaseVNode("div",{class:"logo"},[createBaseVNode("img",{src:_imports_0}),createBaseVNode("h1",null,"Swagger\u6587\u6863\u7BA1\u7406")],-1)),_hoisted_2={ref:"rightResize",class:"right-resize"},_hoisted_3={ref:"rightResizeBar"};function _sfc_render(a,t,o,l,n,c){const i=resolveComponent("menu-layout"),r=resolveComponent("a-layout-sider"),_=resolveComponent("MenuUnfoldOutlined"),h=resolveComponent("MenuFoldOutlined"),d=resolveComponent("a-col"),p=resolveComponent("header-avatar"),u=resolveComponent("a-row"),m=resolveComponent("a-layout-header"),f=resolveComponent("router-view"),C=resolveComponent("a-layout-content"),s=resolveComponent("a-layout");return openBlock(),createBlock(s,{class:"swagger-menu-trigger"},{default:withCtx(()=>[createVNode(r,{theme:"light",trigger:null,collapsible:"",collapsed:n.appMenuCollapsed,"onUpdate:collapsed":t[0]||(t[0]=y=>n.appMenuCollapsed=y),width:n.rightAsideWidth,style:{height:"100vh",overflow:"auto"}},{default:withCtx(()=>[_hoisted_1,createVNode(i,{collapsed:n.appMenuCollapsed},null,8,["collapsed"])]),_:1},8,["collapsed","width"]),withDirectives(createBaseVNode("div",_hoisted_2,[createBaseVNode("i",_hoisted_3,"...",512)],512),[[vShow,!n.appMenuCollapsed]]),createVNode(s,null,{default:withCtx(()=>[createVNode(m,{style:{"border-bottom":"2px solid #eee",background:"#fff",padding:"0","box-shadow":"0 1px 4px rgba(0, 21, 41, 0.08)","-webkit-box-shadow":"0 1px 4px rgba(0, 21, 41, 0.08)"}},{default:withCtx(()=>[createVNode(u,{type:"flex"},{default:withCtx(()=>[createVNode(d,{flex:"auto"},{default:withCtx(()=>[n.appMenuCollapsed?(openBlock(),createBlock(_,{key:0,class:"trigger",onClick:t[1]||(t[1]=y=>n.appMenuCollapsed=!n.appMenuCollapsed)})):(openBlock(),createBlock(h,{key:1,class:"trigger",onClick:t[2]||(t[2]=y=>n.appMenuCollapsed=!n.appMenuCollapsed)}))]),_:1}),createVNode(d,{flex:"400px",style:{"text-align":"right","padding-right":"20px"}},{default:withCtx(()=>[createVNode(p)]),_:1})]),_:1})]),_:1}),createVNode(C,{style:{height:"calc(100vh - 80px)",overflow:"auto",background:"#fff"}},{default:withCtx(()=>[createVNode(f)]),_:1})]),_:1})]),_:1})}var GlobalLayout=_export_sfc(_sfc_main,[["render",_sfc_render],["__scopeId","data-v-588ebf9f"]]);export{GlobalLayout as default};




© 2015 - 2025 Weber Informatics LLC | Privacy Policy