import{d as C,r,a7 as b,a8 as w,L as H,a9 as M,aa as B,c as I,w as t,e as n,f as N,g as l,h as d,i as c,u as o,B as T,ab as p}from"./index-BQLilEpU.js";import{u as Z}from"./hooks-CcbYdQ0Q.js";const P={width:24,height:24,body:''},R={class:"card-header"},q={class:"font-medium"},S=C({name:"MenuTree",__name:"menu-tree",setup(z){const u=r(""),m=r({value:"uniqueId",children:"children"}),h=r(),_=b(w().wholeMenus,!0),i=H(()=>M(_)),f=B(i.value),v=e=>{h.value.filter(e)},x=(e,a)=>p(a.meta.title).indexOf(e)!==-1;return(e,a)=>{const V=n("el-link"),k=n("el-input"),y=n("el-tree-v2"),g=n("el-card");return N(),I(g,{shadow:"never"},{header:t(()=>[l("div",R,[l("span",q,[d(" 菜单树结构(采用element-plus的 "),c(V,{href:"https://element-plus.gitee.io/zh-CN/component/tree-v2.html",target:"_blank",icon:o(Z)(o(P)),style:{margin:"0 5px 4px 0","font-size":"16px"}},{default:t(()=>[d(" Tree V2 ")]),_:1},8,["icon"]),d(" 组件并支持国际化) ")])])]),default:t(()=>[c(k,{modelValue:u.value,"onUpdate:modelValue":a[0]||(a[0]=s=>u.value=s),class:"mb-4",placeholder:"请输入关键字查找",clearable:"",onInput:v},null,8,["modelValue"]),c(y,{ref_key:"treeRef",ref:h,data:i.value,props:m.value,"show-checkbox":"",height:500,"filter-method":x,"default-expanded-keys":o(f)},{default:t(({data:s})=>[l("span",null,T(o(p)(s.meta.title)),1)]),_:1},8,["data","props","default-expanded-keys"])]),_:1})}}});export{S as default};