index-1cf60afb.js 966 B

1
  1. import{A as w}from"./index-54e5464b.js";import{d as i,bL as p,x as o,f as t,t as r,F as u}from"./index-75571af0.js";const v="_previewWindow_1jnin_1",c={previewWindow:v},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:s,type:l,params:a}=p(e);return console.log(l.value,"type"),o(()=>e.show,()=>{s.value=e.show}),o(()=>e.type,()=>{l.value=e.type}),o(()=>e.params,()=>{a.value=e.params}),()=>t(u,null,[t(r,{show:s.value,"onUpdate:show":[d=>s.value=d,()=>{n("update:show",s.value)}],class:c.previewWindow,showIcon:!1,displayDirective:"show"},{default:()=>[t(u,null,[l.value=="attend"?t(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"?t("iframe",{src:a.value.src},null):""])]})])}});export{m as P};