index-d0384d77.js 977 B

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