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