index-76a8e61b.js 2.3 KB

1
  1. var h=(i,p,u)=>new Promise((s,l)=>{var o=a=>{try{e(u.next(a))}catch(r){l(r)}},n=a=>{try{e(u.throw(a))}catch(r){l(r)}},e=a=>a.done?s(a.value):Promise.resolve(a.value).then(o,n);e((u=u.apply(i,p)).next())});import{d as f,r as c,n as g,j as k,o as m,l as _,c as N,w as U,b as j,t as w,H as B,u as x,aK as S,e as C,ax as b,__tla as D}from"./index-b5895273.js";import{g as E,a as I,__tla as J}from"./index-8ae648d6.js";let H,K=Promise.all([(()=>{try{return D}catch(i){}})(),(()=>{try{return J}catch(i){}})()]).then(()=>h(void 0,null,function*(){let i,p,u;i={key:0},p=f({__name:"MenuSelect",props:{value:String,placeholder:String,systemType:String},emits:["options-change","change","update:value"],setup(s,{emit:l}){const o=s,n=c([]),e=c(""),a=c(0);g(()=>{r()}),k(()=>o,()=>{r()},{deep:!0});function r(){return h(this,null,function*(){n.value=(yield E({systemType:o.systemType}))||[],e.value=o.value,l("options-change",n.value)})}function v(t,d){e.value=t,l("change",t,d),a.value++}return(t,d)=>(m(),_("div",null,[(m(),N(x(S),{value:e.value,"onUpdate:value":d[0]||(d[0]=y=>e.value=y),style:{width:"100%"},"dropdown-style":{maxHeight:"400px",overflow:"auto"},placeholder:s.placeholder,"allow-clear":"","show-search":"","tree-default-expand-all":"","tree-data":n.value,"field-names":{children:"children",label:"title",value:"id"},"tree-node-filter-prop":"title",onSelect:v,key:a.value},{title:U(({systemName:y,parentId:M,title:T})=>[j(w(T)+"\xA0\xA0",1),M>0?B("",!0):(m(),_("b",i,"["+w(y)+"]",1))]),_:1},8,["value","placeholder","tree-data"]))]))}}),u=f({__name:"JumpMenu",props:{value:String,placeholder:String},emits:["update:value","icon","name","path"],setup(s,{emit:l}){const o=s,n=c([]),e=c("");g(()=>{a()});function a(){return h(this,null,function*(){n.value=(yield I())||[],e.value=o.value})}function r(v,t){l("update:value",v),l("icon",t.icon),l("name",t.title),l("path",t.path)}return(v,t)=>(m(),_("div",null,[C(x(S),{value:e.value,"onUpdate:value":t[0]||(t[0]=d=>e.value=d),style:{width:"100%"},"dropdown-style":{maxHeight:"400px",overflow:"auto"},placeholder:s.placeholder,"allow-clear":"","tree-default-expand-all":"","tree-data":n.value,"field-names":{children:"children",label:"title",value:"id"},onSelect:r},null,8,["value","placeholder","tree-data"])]))}}),H=b(p),b(u)}));export{H as M,K as __tla};