index-legacy-d903cb05.js 1.1 KB

1
  1. System.register(["./index-legacy-3e6ba1eb.js","./index-legacy-68b7112d.js"],(function(e,t){"use strict";var a,l,s,u,n,o,d,p=document.createElement("style");return p.textContent="._previewWindow_1jnin_1{width:100%;height:100%}\n",document.head.appendChild(p),{setters:[e=>{a=e.A},e=>{l=e.d,s=e.bL,u=e.x,n=e.f,o=e.t,d=e.F}],execute:function(){const t="_previewWindow_1jnin_1";e("P",l({name:"preview-window",props:{show:{type:Boolean,default:!1},type:{type:String,default:""},params:{type:Object,default:()=>({})}},emit:["update:show"],setup(e,{emit:l}){const{show:p,type:i,params:r}=s(e);return console.log(i.value,"type"),u((()=>e.show),(()=>{p.value=e.show})),u((()=>e.type),(()=>{i.value=e.type})),u((()=>e.params),(()=>{r.value=e.params})),()=>n(d,null,[n(o,{show:p.value,"onUpdate:show":[e=>p.value=e,()=>{l("update:show",p.value)}],class:t,showIcon:!1,displayDirective:"show"},{default:()=>[n(d,null,[p.value?"attend"==i.value?n(a,{type:r.value.type||"",subjectId:r.value.subjectId||"",detailId:r.value.detailId||"",classGroupId:r.value.classGroupId||"",onClose:()=>l("update:show",!1)},null):"notation"==i.value?n("iframe",{src:r.value.src},null):"":""])]})])}}))}}}));