test_lgq/niucloud/public/admin/assets/select-menu-item-6a0b64f2.js

2 lines
806 B
JavaScript
Raw Permalink Normal View History

2024-01-24 17:36:08 +08:00
import{d as i,q as d,a1 as v,h as a,c as l,e as f,w as k,a as h,u as y,F as m,G as B,I as b,B as u,as as C}from"./index-4dcc0234.js";/* empty css */const L=["innerHTML"],V=i({__name:"select-menu-item",props:{menu:Object,level:{type:Number,default:0}},setup(o){const e=o,r=d(()=>{let t="";for(let n=0;n<e.level;n++)t+=n==0?"&emsp;|--":"--";return t});return(t,n)=>{const s=C,c=v("select-menu-item",!0);return e.menu.menu_type!=2?(a(),l(m,{key:0},[f(s,{label:`${e.menu.menu_name}`,value:e.menu.menu_key},{default:k(()=>[h("span",{innerHTML:`${y(r)}${e.menu.menu_name}`},null,8,L)]),_:1},8,["label","value"]),e.menu.children?(a(!0),l(m,{key:0},B(e.menu.children,(p,_)=>(a(),b(c,{menu:p,level:e.level+1,key:_},null,8,["menu","level"]))),128)):u("",!0)],64)):u("",!0)}}});export{V as default};