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