index-89265bba.js 940 B

1
  1. import{A as u}from"./index-64cff194.js";import{d as w,bL as i,x as o,f as l,t as p}from"./index-5b95136e.js";const v="_previewWindow_1jnin_1",r={previewWindow:v},h=w({name:"preview-window",props:{show:{type:Boolean,default:!1},type:{type:String,default:""},params:{type:Object,default:()=>({})}},emit:["update:show"],setup(e,{emit:d}){const{show:t,type:s,params:a}=i(e);return console.log(s.value,"type"),o(()=>e.show,()=>{t.value=e.show}),o(()=>e.type,()=>{s.value=e.type}),o(()=>e.params,()=>{a.value=e.params}),()=>l(p,{show:t.value,"onUpdate:show":[n=>t.value=n,()=>{d("update:show",t.value)}],class:r.previewWindow,showIcon:!1,displayDirective:"show"},{default:()=>[s.value==="attend"?l(u,{type:a.value.type||"",subjectId:a.value.subjectId||"",detailId:a.value.detailId||"",classGroupId:a.value.classGroupId||"",onClose:()=>d("update:show",!1)},null):"",s.value==="notation"?l("iframe",{src:a.value.src},null):""]})}});export{h as P};