import{a as y,r as k,w as C,aj as f,J as d,o as n,K as a,b as t,c as w,a9 as V,R as B,S as h,P as p,Q as b}from"./vue.YrNK8sx4.js";const N={style:{"margin-bottom":"16px"}},j={style:{display:"flex","justify-content":"space-around",margin:"20px 0"}},S=["onClick"],F=y({__name:"index",props:{visible:{type:Boolean}},emits:["update:visible","select"],setup(m,{emit:v}){const u=m,s=v,i=k(u.visible);C(()=>u.visible,o=>i.value=o);const _=[{value:1,label:"课堂借用"},{value:2,label:"特殊借用"}];function g(o){console.log(o),s("select",o),s("update:visible",!1)}function c(){s("update:visible",!1)}return(o,l)=>{const r=f("el-button"),x=f("el-dialog");return n(),d(x,{modelValue:i.value,"onUpdate:modelValue":l[0]||(l[0]=e=>i.value=e),title:"选择借用性质",width:"40%","close-on-click-modal":!1,onClose:c},{footer:a(()=>[h(r,{onClick:c},{default:a(()=>l[2]||(l[2]=[p("关闭")])),_:1})]),default:a(()=>[t("div",N,[l[1]||(l[1]=t("ol",{style:{padding:"10px 30px","margin-bottom":"20px",border:"1px solid #409eff","border-radius":"5px",background:"#e6f7ff"}},[t("li",null,"1、课堂借用：课堂教学活动、实验操作、课程项目等教学时段的正式使用"),t("li",null,"2、特殊借用：突发紧急情况、非常规教学需求或特殊事件下的临时性借用。")],-1)),t("div",j,[(n(),w(B,null,V(_,e=>t("div",{key:e.value,onClick:D=>g(e.value),style:{cursor:"pointer","text-align":"center"}},[e.label!=="特殊借用"?(n(),d(r,{key:0,type:"primary",style:{"margin-top":"8px","font-weight":"bold"}},{default:a(()=>[p(b(e.label),1)]),_:2},1024)):(n(),d(r,{key:1,type:"danger",plain:"",style:{"margin-top":"8px","font-weight":"bold"}},{default:a(()=>[p(b(e.label),1)]),_:2},1024))],8,S)),64))])])]),_:1},8,["modelValue"])}}});export{F as _};
