Files
zyplayer-doc/zyplayer-doc-api/src/main/resources/dist/assets/GlobalLayout.5837e500.js
2023-10-15 08:36:55 +08:00

2 lines
21 KiB
JavaScript

import{S as StarOutlined,n as SettingOutlined,C as CarryOutOutlined,p as FileTextOutlined,q as DashboardOutlined,I as InfoCircleOutlined,r as resolveComponent,o as openBlock,b as createElementBlock,F as Fragment,c as createBlock,w as withCtx,s as createCommentVNode,e as createBaseVNode,t as toDisplayString,d as renderList,a as createVNode,u as useStore,v as useRoute,x as useRouter,y as ref,B as message,E as nextTick,k as createTextVNode,m as withModifiers,W as onMounted,Q as withDirectives,X as vShow,Y as BarChartOutlined,Z as MenuFoldOutlined,_ as MenuUnfoldOutlined,$ as pushScopeId,a0 as popScopeId}from"./vendor.6399378c.js";import{_ as _export_sfc}from"./main.5fd30069.js";import{z as zyplayerApi}from"./custom.471d0de0.js";import{a as analysisSwaggerData,g as getTreeDataForTag,b as analysisOpenApiData,c as getTreeDataForTag$1,d as getTreeDataForTag$2,L as LeftResize,_ as _imports_0}from"./api-logo.e800ca99.js";const _sfc_main$5={name:"MenuLayoutChildren",props:{menuItem:Object},data(){return{}},components:{StarOutlined,SettingOutlined,CarryOutOutlined,FileTextOutlined,DashboardOutlined,InfoCircleOutlined},methods:{haveShowChildren(c){return c.filter(t=>!t.meta||!t.meta.hidden).length>0}}};function _sfc_render$5(c,t,o,a,r,_){const l=resolveComponent("SettingOutlined"),h=resolveComponent("FileTextOutlined"),d=resolveComponent("MenuLayoutChildren"),u=resolveComponent("a-sub-menu"),s=resolveComponent("DashboardOutlined"),n=resolveComponent("InfoCircleOutlined"),i=resolveComponent("router-link"),f=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},[_.haveShowChildren(o.menuItem.children)?(openBlock(),createBlock(u,{key:o.menuItem.path},{title:withCtx(()=>[o.menuItem.meta?(openBlock(),createElementBlock(Fragment,{key:0},[o.menuItem.meta.icon==="SettingOutlined"?(openBlock(),createBlock(l,{key:0})):createCommentVNode("",!0),o.menuItem.meta.icon==="FileTextOutlined"?(openBlock(),createBlock(h,{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,m=>(openBlock(),createBlock(d,{menuItem:m},null,8,["menuItem"]))),256))]),_:1})):createCommentVNode("",!0)],64)):(openBlock(),createBlock(f,{key:o.menuItem.path},{default:withCtx(()=>[createVNode(i,{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(s,{key:0})):createCommentVNode("",!0),o.menuItem.meta.icon==="FileTextOutlined"?(openBlock(),createBlock(h,{key:1})):createCommentVNode("",!0),o.menuItem.meta.icon==="InfoCircleOutlined"?(openBlock(),createBlock(n,{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$5,[["render",_sfc_render$5]]),Swagger_vue_vue_type_style_index_0_lang="";const _sfc_main$4={setup(){const store=useStore();useRoute();const router=useRouter();let tagPathMap=ref({}),swaggerDoc=ref({}),treeData=ref([]),expandedKeys=ref([]),choiceDocId=ref("");const docChecked=(c,t)=>{if(t.node.isLeaf){let o=t.node.dataRef;router.push({path:"/share/swagger/view",query:o.query})}},loadDoc=(c,t,o)=>{choiceDocId.value=c,zyplayerApi.apiShareDocApisDetail({shareUuid:c}).then(a=>{let r=toJsonObj(a.data);if(typeof r!="object"||!r.swagger){o(!1),message.error("\u83B7\u53D6\u6587\u6863\u6570\u636E\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u6587\u6863\u662F\u5426\u4E3A\u6807\u51C6\u7684Swagger\u6587\u6863\u683C\u5F0F");return}swaggerDoc.value=r,store.commit("setSwaggerDoc",r);let _=analysisSwaggerData(r);store.commit("setSwaggerUrlMethodMap",_.urlMethodMap),store.commit("setSwaggerMethodStatistic",_.methodStatistic),tagPathMap.value=_.tagPathMap,loadTreeData(t),o(!0)}).catch(()=>{o(!1)})},loadTreeData=async c=>{let t={uuid:choiceDocId.value};treeData.value=getTreeDataForTag(swaggerDoc.value,tagPathMap.value,c,t),await nextTick(),expandedKeys.value=["main"]},toJsonObj=value=>{if(typeof value!="string")return value;try{return JSON.parse(value)}catch(e){try{return eval("("+value+")")}catch(c){return value||void 0}}};return{expandedKeys,docChecked,loadDoc,loadTreeData,treeData}}},_hoisted_1$4=createTextVNode("get"),_hoisted_2$3=createTextVNode("post"),_hoisted_3$3=createTextVNode("put"),_hoisted_4$2=createTextVNode("head"),_hoisted_5$2=createTextVNode("patch"),_hoisted_6$2=createTextVNode("delete"),_hoisted_7$2=createTextVNode("options"),_hoisted_8$2=createTextVNode("trace"),_hoisted_9$2={style:{margin:"0 6px 0 3px"}};function _sfc_render$4(c,t,o,a,r,_){const l=resolveComponent("a-tag"),h=resolveComponent("a-badge"),d=resolveComponent("a-directory-tree");return openBlock(),createBlock(d,{showIcon:!1,"tree-data":a.treeData,expandedKeys:a.expandedKeys,"onUpdate:expandedKeys":t[0]||(t[0]=u=>a.expandedKeys=u),onSelect:a.docChecked},{title:withCtx(({title:u,isLeaf:s,method:n,children:i,key:f})=>[s?(openBlock(),createElementBlock(Fragment,{key:0},[n==="get"?(openBlock(),createBlock(l,{key:0,color:"pink"},{default:withCtx(()=>[_hoisted_1$4]),_:1})):n==="post"?(openBlock(),createBlock(l,{key:1,color:"red"},{default:withCtx(()=>[_hoisted_2$3]),_:1})):n==="put"?(openBlock(),createBlock(l,{key:2,color:"orange"},{default:withCtx(()=>[_hoisted_3$3]),_:1})):n==="head"?(openBlock(),createBlock(l,{key:3,color:"green"},{default:withCtx(()=>[_hoisted_4$2]),_:1})):n==="patch"?(openBlock(),createBlock(l,{key:4,color:"cyan"},{default:withCtx(()=>[_hoisted_5$2]),_:1})):n==="delete"?(openBlock(),createBlock(l,{key:5,color:"blue"},{default:withCtx(()=>[_hoisted_6$2]),_:1})):n==="options"?(openBlock(),createBlock(l,{key:6,color:"purple"},{default:withCtx(()=>[_hoisted_7$2]),_:1})):n==="trace"?(openBlock(),createBlock(l,{key:7,color:"purple"},{default:withCtx(()=>[_hoisted_8$2]),_:1})):createCommentVNode("",!0)],64)):createCommentVNode("",!0),createBaseVNode("span",_hoisted_9$2,toDisplayString(u),1),i?(openBlock(),createBlock(h,{key:1,count:i.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"])}var DocTreeSwagger=_export_sfc(_sfc_main$4,[["render",_sfc_render$4]]),OpenApi_vue_vue_type_style_index_0_lang="";const _sfc_main$3={setup(){const store=useStore();useRoute();const router=useRouter();let tagPathMap=ref({}),openApiDoc=ref({}),treeData=ref([]),expandedKeys=ref([]),choiceDocId=ref("");const docChecked=(c,t)=>{if(t.node.isLeaf){let o=t.node.dataRef;router.push({path:"/share/openapi/view",query:o.query})}},loadDoc=(c,t,o)=>{choiceDocId.value=c,zyplayerApi.apiShareDocApisDetail({shareUuid:c}).then(a=>{let r=toJsonObj(a.data);if(typeof r!="object"||!r.openapi){o(!1),message.error("\u83B7\u53D6\u6587\u6863\u6570\u636E\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u6587\u6863\u662F\u5426\u4E3A\u6807\u51C6\u7684OpenApi\u6587\u6863\u683C\u5F0F");return}openApiDoc.value=r,store.commit("setOpenApiDoc",r);let _=analysisOpenApiData(r);store.commit("setOpenApiUrlMethodMap",_.urlMethodMap),store.commit("setOpenApiMethodStatistic",_.methodStatistic),tagPathMap.value=_.tagPathMap,loadTreeData(t),o(!0)}).catch(()=>{o(!1)})},loadTreeData=async c=>{let t={uuid:choiceDocId.value};treeData.value=getTreeDataForTag$1(openApiDoc.value,tagPathMap.value,c,t),await nextTick(),expandedKeys.value=["main"]},toJsonObj=value=>{if(typeof value!="string")return value;try{return JSON.parse(value)}catch(e){try{return eval("("+value+")")}catch(c){return value||void 0}}};return{expandedKeys,docChecked,loadDoc,loadTreeData,treeData}}},_hoisted_1$3=createTextVNode("get"),_hoisted_2$2=createTextVNode("post"),_hoisted_3$2=createTextVNode("put"),_hoisted_4$1=createTextVNode("head"),_hoisted_5$1=createTextVNode("patch"),_hoisted_6$1=createTextVNode("delete"),_hoisted_7$1=createTextVNode("options"),_hoisted_8$1=createTextVNode("trace"),_hoisted_9$1={style:{margin:"0 6px 0 3px"}};function _sfc_render$3(c,t,o,a,r,_){const l=resolveComponent("a-tag"),h=resolveComponent("a-badge"),d=resolveComponent("a-directory-tree");return openBlock(),createBlock(d,{showIcon:!1,"tree-data":a.treeData,expandedKeys:a.expandedKeys,"onUpdate:expandedKeys":t[0]||(t[0]=u=>a.expandedKeys=u),onSelect:a.docChecked},{title:withCtx(({title:u,isLeaf:s,method:n,children:i,key:f})=>[s?(openBlock(),createElementBlock(Fragment,{key:0},[n==="get"?(openBlock(),createBlock(l,{key:0,color:"pink"},{default:withCtx(()=>[_hoisted_1$3]),_:1})):n==="post"?(openBlock(),createBlock(l,{key:1,color:"red"},{default:withCtx(()=>[_hoisted_2$2]),_:1})):n==="put"?(openBlock(),createBlock(l,{key:2,color:"orange"},{default:withCtx(()=>[_hoisted_3$2]),_:1})):n==="head"?(openBlock(),createBlock(l,{key:3,color:"green"},{default:withCtx(()=>[_hoisted_4$1]),_:1})):n==="patch"?(openBlock(),createBlock(l,{key:4,color:"cyan"},{default:withCtx(()=>[_hoisted_5$1]),_:1})):n==="delete"?(openBlock(),createBlock(l,{key:5,color:"blue"},{default:withCtx(()=>[_hoisted_6$1]),_:1})):n==="options"?(openBlock(),createBlock(l,{key:6,color:"purple"},{default:withCtx(()=>[_hoisted_7$1]),_:1})):n==="trace"?(openBlock(),createBlock(l,{key:7,color:"purple"},{default:withCtx(()=>[_hoisted_8$1]),_:1})):createCommentVNode("",!0)],64)):createCommentVNode("",!0),createBaseVNode("span",_hoisted_9$1,toDisplayString(u),1),i?(openBlock(),createBlock(h,{key:1,count:i.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"])}var DocTreeOpenApi=_export_sfc(_sfc_main$3,[["render",_sfc_render$3]]),CustomRequest_vue_vue_type_style_index_0_lang="";const _sfc_main$2={setup(){const c=useStore();useRoute();const t=useRouter();let o=ref({}),a=ref({}),r=ref([]),_=ref([]),l=ref("");const h=(s,n)=>{if(n.node.isLeaf){let i=n.node.dataRef;t.push({path:"/share/openapi/view",query:i.query})}},d=(s,n,i)=>{l.value=s,zyplayerApi.apiShareDocApisDetail({shareUuid:s}).then(f=>{let m=f.data;if(!m&&m.length!==1){i(!1),message.error("\u83B7\u53D6\u6587\u6863\u6570\u636E\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u6587\u6863\u662F\u5426\u4E3A\u6807\u51C6\u7684OpenApi\u6587\u6863\u683C\u5F0F");return}a.value=m,c.commit("setCustomRequestDoc",m),u(n),i(!0)}).catch(()=>{i(!1)})},u=async s=>{let n={uuid:l.value};r.value=getTreeDataForTag$2(a.value,o.value,s,n),await nextTick(),_.value=["main"]};return{expandedKeys:_,docChecked:h,loadDoc:d,loadTreeData:u,treeData:r}}},_hoisted_1$2={key:0,class:"api-title-line"},_hoisted_2$1={class:"tree-title-text"},_hoisted_3$1={key:1,class:"api-title-line"},_hoisted_4={class:"tree-title-text"},_hoisted_5={key:2,class:"api-title-line"},_hoisted_6=createTextVNode("get"),_hoisted_7=createTextVNode("post"),_hoisted_8=createTextVNode("put"),_hoisted_9=createTextVNode("head"),_hoisted_10=createTextVNode("patch"),_hoisted_11=createTextVNode("delete"),_hoisted_12=createTextVNode("options"),_hoisted_13=createTextVNode("trace"),_hoisted_14={class:"tree-title-text"},_hoisted_15={key:3,class:"api-title-line"},_hoisted_16={class:"tree-title-text"},_hoisted_17=createTextVNode(" \u65B0\u5EFA\u63A5\u53E3"),_hoisted_18=createTextVNode(" \u65B0\u5EFA\u6587\u4EF6\u5939"),_hoisted_19=createTextVNode(" \u7F16\u8F91"),_hoisted_20=createTextVNode(" \u5220\u9664");function _sfc_render$2(c,t,o,a,r,_){const l=resolveComponent("file-text-outlined"),h=resolveComponent("a-badge"),d=resolveComponent("a-tag"),u=resolveComponent("ellipsis-outlined"),s=resolveComponent("plus-outlined"),n=resolveComponent("a-menu-item"),i=resolveComponent("folder-add-outlined"),f=resolveComponent("a-menu-divider"),m=resolveComponent("edit-outlined"),C=resolveComponent("delete-outlined"),y=resolveComponent("a-menu"),k=resolveComponent("a-dropdown"),v=resolveComponent("a-directory-tree");return openBlock(),createBlock(v,{showIcon:!1,"tree-data":a.treeData,expandedKeys:a.expandedKeys,"onUpdate:expandedKeys":t[1]||(t[1]=p=>a.expandedKeys=p),onSelect:a.docChecked},{title:withCtx(p=>[p.key==="info"?(openBlock(),createElementBlock("div",_hoisted_1$2,[createVNode(l,{style:{"margin-right":"3px"}}),createBaseVNode("span",_hoisted_2$1,toDisplayString(p.title),1)])):createCommentVNode("",!0),p.key==="main"?(openBlock(),createElementBlock("div",_hoisted_3$1,[createBaseVNode("span",_hoisted_4,toDisplayString(p.title),1),createVNode(h,{count:p.children.length,showZero:"","number-style":{backgroundColor:"#fff",color:"#999",boxShadow:"0 0 0 1px #d9d9d9 inset"}},null,8,["count"])])):createCommentVNode("",!0),p.isLeaf?(openBlock(),createElementBlock("div",_hoisted_5,[p.method==="get"?(openBlock(),createBlock(d,{key:0,color:"pink"},{default:withCtx(()=>[_hoisted_6]),_:1})):p.method==="post"?(openBlock(),createBlock(d,{key:1,color:"red"},{default:withCtx(()=>[_hoisted_7]),_:1})):p.method==="put"?(openBlock(),createBlock(d,{key:2,color:"orange"},{default:withCtx(()=>[_hoisted_8]),_:1})):p.method==="head"?(openBlock(),createBlock(d,{key:3,color:"green"},{default:withCtx(()=>[_hoisted_9]),_:1})):p.method==="patch"?(openBlock(),createBlock(d,{key:4,color:"cyan"},{default:withCtx(()=>[_hoisted_10]),_:1})):p.method==="delete"?(openBlock(),createBlock(d,{key:5,color:"blue"},{default:withCtx(()=>[_hoisted_11]),_:1})):p.method==="options"?(openBlock(),createBlock(d,{key:6,color:"purple"},{default:withCtx(()=>[_hoisted_12]),_:1})):p.method==="trace"?(openBlock(),createBlock(d,{key:7,color:"purple"},{default:withCtx(()=>[_hoisted_13]),_:1})):createCommentVNode("",!0),createBaseVNode("span",_hoisted_14,toDisplayString(p.title),1)])):p.nodeId?(openBlock(),createElementBlock("div",_hoisted_15,[createBaseVNode("span",_hoisted_16,toDisplayString(p.title),1),createVNode(h,{count:p.children.length,showZero:"","number-style":{backgroundColor:"#fff",color:"#999",boxShadow:"0 0 0 1px #d9d9d9 inset"}},null,8,["count"]),createVNode(k,{trigger:["click"]},{overlay:withCtx(()=>[createVNode(y,{onClick:g=>c.handleFolderDropdownClick(g,p)},{default:withCtx(()=>[createVNode(n,{key:"newRequest"},{default:withCtx(()=>[createVNode(s),_hoisted_17]),_:1}),createVNode(n,{key:"newFolder"},{default:withCtx(()=>[createVNode(i),_hoisted_18]),_:1}),createVNode(f),createVNode(n,{key:"edit"},{default:withCtx(()=>[createVNode(m),_hoisted_19]),_:1}),createVNode(n,{key:"delete"},{default:withCtx(()=>[createVNode(C),_hoisted_20]),_:1})]),_:2},1032,["onClick"])]),default:withCtx(()=>[createBaseVNode("span",{onClick:t[0]||(t[0]=withModifiers(()=>{},["stop"])),style:{padding:"3px 10px"}},[createVNode(u)])]),_:2},1024)])):createCommentVNode("",!0)]),_:1},8,["tree-data","expandedKeys","onSelect"])}var DocTreeCustomRequest=_export_sfc(_sfc_main$2,[["render",_sfc_render$2]]),MenuLayout_vue_vue_type_style_index_0_lang="";const _sfc_main$1={props:{collapsed:{type:Boolean,default:!1}},components:{MenuChildrenLayout,DocTreeSwagger,DocTreeOpenApi,DocTreeCustomRequest},setup(c){const t=useStore(),o=useRoute();useRouter();let a=ref([]),r=ref([]),_=ref([]),l=ref(!1),h=ref([]),d=ref(),u=ref(""),s=ref({});const n=()=>{zyplayerApi.apiShareDocDetail({shareUuid:d.value}).then(y=>{s.value=y.data||{},t.commit("setApiDoc",s.value),m()})};let i=ref(),f=ref();const m=async()=>{l.value=!0,await nextTick();const y=()=>{l.value=!1};s.value.docType===1||s.value.docType===2?i.value&&i.value.loadDoc(d.value,u.value,y):(s.value.docType===3||s.value.docType===4)&&f.value&&f.value.loadDoc(d.value,u.value,y)},C=()=>{s.value.docType===1||s.value.docType===2?i.value&&i.value.loadTreeData(u.value):(s.value.docType===3||s.value.docType===4)&&f.value&&f.value.loadTreeData(u.value)};return onMounted(()=>{if(d.value=o.query.uuid,!d.value){message.error("\u8BBF\u95EE\u7684\u5F00\u653E\u6587\u6863\u53C2\u6570\u9519\u8BEF");return}a.value=[{path:"/share/home",name:"\u5F00\u653E\u6587\u6863\u4F7F\u7528\u8BF4\u660E",meta:{icon:"FileTextOutlined"},query:{uuid:d.value}}];let y=o.meta||{},k=o.path;y.parentPath&&(k=y.parentPath),r.value=[k];let v=o.matched;v.length>=1&&(_.value=[v[1].path]),n()}),{menuData:a,selectedKeys:r,openKeys:_,treeDataLoading:l,docResourceList:h,docChoiceId:d,searchKeywords:u,swaggerRef:i,openApiRef:f,docChoice:s,docSearch:C}}},_hoisted_1$1={class:"menu-layout"},_hoisted_2={class:"doc-tree"},_hoisted_3={style:{"margin-bottom":"10px"}};function _sfc_render$1(c,t,o,a,r,_){const l=resolveComponent("menu-children-layout"),h=resolveComponent("a-menu"),d=resolveComponent("a-divider"),u=resolveComponent("a-input-search"),s=resolveComponent("DocTreeSwagger"),n=resolveComponent("DocTreeOpenApi"),i=resolveComponent("DocTreeCustomRequest"),f=resolveComponent("a-spin");return openBlock(),createElementBlock("div",_hoisted_1$1,[createVNode(h,{theme:"light",mode:"inline","inline-collapsed":!1,openKeys:a.openKeys,"onUpdate:openKeys":t[0]||(t[0]=m=>a.openKeys=m),selectedKeys:a.selectedKeys,"onUpdate:selectedKeys":t[1]||(t[1]=m=>a.selectedKeys=m)},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(a.menuData,m=>(openBlock(),createBlock(l,{menuItem:m},null,8,["menuItem"]))),256))]),_:1},8,["openKeys","selectedKeys"]),createVNode(d,{style:{margin:"6px 0"}}),withDirectives(createBaseVNode("div",_hoisted_2,[createVNode(f,{tip:"\u52A0\u8F7D\u4E2D...",spinning:a.treeDataLoading},{default:withCtx(()=>[createBaseVNode("div",_hoisted_3,[createVNode(u,{value:a.searchKeywords,"onUpdate:value":t[2]||(t[2]=m=>a.searchKeywords=m),placeholder:"\u641C\u7D22\u6587\u6863\u5185\u5BB9",style:{width:"100%","margin-top":"10px"},onSearch:a.docSearch},null,8,["value","onSearch"])]),a.docChoice&&a.docChoice.docType?(openBlock(),createElementBlock(Fragment,{key:0},[a.docChoice.docType===1||a.docChoice.docType===2?(openBlock(),createBlock(s,{key:0,ref:"swaggerRef"},null,512)):createCommentVNode("",!0),a.docChoice.docType===3||a.docChoice.docType===4?(openBlock(),createBlock(n,{key:1,ref:"openApiRef"},null,512)):createCommentVNode("",!0),a.docChoice.docType===5?(openBlock(),createBlock(i,{key:2,ref:"customRequestRef"},null,512)):createCommentVNode("",!0)],64)):createCommentVNode("",!0)]),_:1},8,["spinning"])],512),[[vShow,!o.collapsed]])])}var MenuLayout=_export_sfc(_sfc_main$1,[["render",_sfc_render$1]]),GlobalLayout_vue_vue_type_style_index_0_scoped_true_lang="";const minHeight=window.innerHeight-64-122,_sfc_main={components:{MenuLayout,LeftResize,BarChartOutlined,MenuFoldOutlined,MenuUnfoldOutlined},data(){return{minHeight:minHeight+"px",appMenuCollapsed:!1,leftAsideWidth:300}},computed:{},mounted(){},methods:{turnLeftCollapse(){this.appMenuCollapsed=!this.appMenuCollapsed,setTimeout(()=>{this.appMenuCollapsed?this.leftAsideWidthChange(this.leftAsideWidth+1):this.leftAsideWidthChange(1)},100)},leftAsideWidthChange(c){this.$store.commit("setLeftAsideWidth",c)}}},_withScopeId=c=>(pushScopeId("data-v-7eee487f"),c=c(),popScopeId(),c),_hoisted_1=_withScopeId(()=>createBaseVNode("div",{class:"header-border logo"},[createBaseVNode("img",{src:_imports_0}),createBaseVNode("h1",null,"API\u5F00\u653E\u6587\u6863")],-1));function _sfc_render(c,t,o,a,r,_){const l=resolveComponent("menu-layout"),h=resolveComponent("a-layout-sider"),d=resolveComponent("LeftResize"),u=resolveComponent("MenuUnfoldOutlined"),s=resolveComponent("MenuFoldOutlined"),n=resolveComponent("a-col"),i=resolveComponent("a-row"),f=resolveComponent("a-layout-header"),m=resolveComponent("router-view"),C=resolveComponent("a-layout-content"),y=resolveComponent("a-layout");return openBlock(),createBlock(y,{class:"api-menu-trigger"},{default:withCtx(()=>[createVNode(h,{theme:"light",trigger:null,collapsible:"",collapsed:r.appMenuCollapsed,"onUpdate:collapsed":t[0]||(t[0]=k=>r.appMenuCollapsed=k),width:r.leftAsideWidth,style:{height:"100vh",overflow:"auto"}},{default:withCtx(()=>[_hoisted_1,createVNode(l,{collapsed:r.appMenuCollapsed},null,8,["collapsed"])]),_:1},8,["collapsed","width"]),withDirectives(createVNode(d,{value:r.leftAsideWidth,"onUpdate:value":t[1]||(t[1]=k=>r.leftAsideWidth=k),onChange:_.leftAsideWidthChange},null,8,["value","onChange"]),[[vShow,!r.appMenuCollapsed]]),createVNode(y,null,{default:withCtx(()=>[createVNode(f,{class:"header-border"},{default:withCtx(()=>[createVNode(i,{type:"flex"},{default:withCtx(()=>[createVNode(n,{flex:"auto"},{default:withCtx(()=>[r.appMenuCollapsed?(openBlock(),createBlock(u,{key:0,class:"trigger",onClick:_.turnLeftCollapse},null,8,["onClick"])):(openBlock(),createBlock(s,{key:1,class:"trigger",onClick:_.turnLeftCollapse},null,8,["onClick"]))]),_:1}),createVNode(n,{flex:"400px",style:{"text-align":"right","padding-right":"20px"}})]),_:1})]),_:1}),createVNode(C,{style:{height:"calc(100vh - 80px)",overflow:"auto",background:"#fff"}},{default:withCtx(()=>[createVNode(m)]),_:1})]),_:1})]),_:1})}var GlobalLayout=_export_sfc(_sfc_main,[["render",_sfc_render],["__scopeId","data-v-7eee487f"]]);export{GlobalLayout as default};