import{E as e,F as t,M as n,St as r,X as i,ft as a,j as o,nt as s,t as c,ut as l,v as u,w as d,wt as f}from"./_plugin-vue_export-helper-9JxOV_6y.js";import{i as p}from"./vue-router-DunO2xT0.js";import{t as m}from"./router__product_manage-6JJUCehx.js";import"./style-uQ45SeWa.js";import{t as h}from"./directive-pNcZrfik.js";var g={class:`dynamic-tabs-index w-full flex flex-col bg-white adap-normal-shadow adap-lg-radius`},_=c(n({__name:`index`,setup(c){let _=r(!0),v=n(()=>()=>a(t(`div`,{class:`flex-grow`,"element-loading-text":`加载中`,style:{minHeight:`200px`}}),[[h,_.value]])),y=f(v),b=n(()=>()=>t(`div`,{class:`flex-grow`,style:{minHeight:`200px`}},[t(`p`,`加载失败！`)])),x=p();return l(()=>{if(!x)return;let e=x?.params?.rawName;if(!e){y.value=b;return}let t=m.find(t=>t.name===e);if(!t){y.value=b;return}y.value=o({loader:t.component,loadingComponent:v,onError:()=>{y.value=b}})}),console.log(`here dynamic-tabs - idnex.vue: setup`,x),(t,n)=>(i(),e(`div`,g,[(i(),d(u,{max:10},[(i(),d(s(y.value)))],1024))]))}}),[[`__scopeId`,`data-v-e54d8848`]]);export{_ as default};