ClassTree-82d94d1e.js 1.5 KB

1
  1. var m=(e,_,l)=>new Promise((i,a)=>{var o=t=>{try{r(l.next(t))}catch(c){a(c)}},s=t=>{try{r(l.throw(t))}catch(c){a(c)}},r=t=>t.done?i(t.value):Promise.resolve(t.value).then(o,s);r((l=l.apply(e,_)).next())});import{B as h,__tla as y}from"./Tree-6c35f2c0.js";import{d as f,r as u,n as p,a4 as v,_ as S,y as T,o as w,l as B,e as D,__tla as K}from"./index-b5895273.js";import{g as x,__tla as b}from"./StudentManagerController-32e81976.js";import{__tla as g}from"./useContextMenu-c4ffe073.js";import{__tla as k}from"./difference-9954c5db.js";let d,C=Promise.all([(()=>{try{return y}catch(e){}})(),(()=>{try{return K}catch(e){}})(),(()=>{try{return b}catch(e){}})(),(()=>{try{return g}catch(e){}})(),(()=>{try{return k}catch(e){}})()]).then(()=>m(void 0,null,function*(){const{t:e}=v(),_=f({name:"ClassTree",components:{BasicTree:h},emits:["select"],setup(a,{emit:o}){const s=u([]),r=u([]);function t(){return m(this,null,function*(){s.value=yield x({});let n=s.value[0].id;r.value.push(n)})}function c(n){o("select",n[0])}return p(()=>{t()}),{treeData:s,handleSelect:c,selectedKeys:r,t:e}}}),l={class:"mr-2 overflow-hidden bg-white h-full"};function i(a,o,s,r,t,c){const n=T("BasicTree");return w(),B("div",l,[D(n,{title:a.t("\u73ED\u7EA7\u5217\u8868"),toolbar:"",search:"",clickRowToExpand:!0,treeData:a.treeData,selectedKeys:a.selectedKeys,expandOnSearch:"",fieldNames:{key:"id",title:"name"},onSelect:a.handleSelect},null,8,["title","treeData","selectedKeys","onSelect"])])}d=S(_,[["render",i]])}));export{C as __tla,d as default};