index-cab5dcee-1713776975640.js 2.9 KB

12345
  1. <<<<<<<< HEAD:dist/index-0ccdcb7e-1713538570197.js
  2. import{A as v}from"./index-31fe0016-1713538570197.js";import{d as w,bI as p,y as u,p as c,R as m,f as t,l as f,F as r,D as i}from"./index-b2343721-1713538570197.js";const h="_previewWindow_1jnin_1",y={previewWindow:h},b=w({name:"preview-window",props:{show:{type:Boolean,default:!1},type:{type:String,default:""},params:{type:Object,default:()=>({})}},emit:["update:show"],setup(a,{emit:n}){const{show:l,type:o,params:e}=p(a);u(()=>a.show,()=>{l.value=a.show}),u(()=>a.type,()=>{o.value=a.type}),u(()=>a.params,()=>{e.value=a.params});const d=s=>{s.data.api==="iframe_exit"&&n("update:show",!1)};return c(()=>{window.addEventListener("message",d)}),m(()=>{window.removeEventListener("message",d)}),()=>t(r,null,[t(f,{show:l.value,"onUpdate:show":[s=>l.value=s,()=>{n("update:show",l.value)}],class:y.previewWindow,showIcon:!1,displayDirective:"show"},{default:()=>[t(r,null,[l.value?o.value=="attend"?t(v,{type:e.value.type||"",subjectId:e.value.subjectId||"",courseId:e.value.courseId||"",detailId:e.value.detailId||"",classGroupId:e.value.classGroupId||"",lessonCourseId:e.value.lessonCourseId||"",classId:e.value.classId||"",preStudentNum:e.value.preStudentNum,onClose:()=>n("update:show",!1)},null):o.value=="notation"?t("iframe",{src:e.value.src,onLoad:s=>{i(s.target)}},null):o.value=="music"?t("iframe",{src:e.value.src,onLoad:s=>{i(s.target)},style:{height:"100vh"}},null):"":""])]})])}});export{b as P};
  3. ========
  4. import{A as v}from"./index-2d42fc9d-1713776975640.js";import{d as w,bI as p,y as u,p as c,R as m,f as t,l as f,F as r,D as i}from"./index-0351d306-1713776975640.js";const h="_previewWindow_1jnin_1",y={previewWindow:h},b=w({name:"preview-window",props:{show:{type:Boolean,default:!1},type:{type:String,default:""},params:{type:Object,default:()=>({})}},emit:["update:show"],setup(a,{emit:n}){const{show:l,type:o,params:e}=p(a);u(()=>a.show,()=>{l.value=a.show}),u(()=>a.type,()=>{o.value=a.type}),u(()=>a.params,()=>{e.value=a.params});const d=s=>{s.data.api==="iframe_exit"&&n("update:show",!1)};return c(()=>{window.addEventListener("message",d)}),m(()=>{window.removeEventListener("message",d)}),()=>t(r,null,[t(f,{show:l.value,"onUpdate:show":[s=>l.value=s,()=>{n("update:show",l.value)}],class:y.previewWindow,showIcon:!1,displayDirective:"show"},{default:()=>[t(r,null,[l.value?o.value=="attend"?t(v,{type:e.value.type||"",subjectId:e.value.subjectId||"",courseId:e.value.courseId||"",detailId:e.value.detailId||"",classGroupId:e.value.classGroupId||"",lessonCourseId:e.value.lessonCourseId||"",classId:e.value.classId||"",preStudentNum:e.value.preStudentNum,onClose:()=>n("update:show",!1)},null):o.value=="notation"?t("iframe",{src:e.value.src,onLoad:s=>{i(s.target)}},null):o.value=="music"?t("iframe",{src:e.value.src,onLoad:s=>{i(s.target)},style:{height:"100vh"}},null):"":""])]})])}});export{b as P};
  5. >>>>>>>> iteration-20240417-subject:dist/index-cab5dcee-1713776975640.js