1 |
- System.register(["./index-legacy-2b6d9ae1.js","./state-legacy-fb208723.js"],(function(e,t){"use strict";var a,o,i,n,l,r,s,_,d,h,u,v;return{setters:[e=>{a=e.d,o=e.r,i=e.c,n=e.e,l=e.n,r=e.f,s=e.t,_=e.A,d=e.k,h=e.v,u=e.j},e=>{v=e.s}],execute:function(){var t=document.createElement("style");t.textContent="._wrap_1hzj5_1{width:100%;height:100%;background-color:#fff;border-radius:.78125vw}._wrap_1hzj5_1 iframe{width:100%;height:100%;border:none}._previewWindow_1hzj5_12{width:100vw;height:100vh}._previewWindow_1hzj5_12 ._previewIframe_1hzj5_16{width:100vw;height:100vh;background-color:#fff}._removeVisiable_1hzj5_21{width:26.04166667vw}._removeVisiable_1hzj5_21 ._studentRemove_1hzj5_24{padding:1.04166667vw 2.08333333vw 0}._removeVisiable_1hzj5_21 ._studentRemove_1hzj5_24 p{font-size:.9375rem;color:#777;line-height:1.5625vw;text-align:center}._removeVisiable_1hzj5_21 ._studentRemove_1hzj5_24 p span{color:#ea4132}._removeVisiable_1hzj5_21 ._btnGroupModal_1hzj5_36{padding:1.66666667vw 0}._removeVisiable_1hzj5_21 ._btnGroupModal_1hzj5_36 .n-button{height:2.44791667vw;min-width:8.125vw}\n",document.head.appendChild(t);const c="_wrap_1hzj5_1",w="_previewWindow_1hzj5_12",p="_previewIframe_1hzj5_16",m="_removeVisiable_1hzj5_21",j="_studentRemove_1hzj5_24",f="_btnGroupModal_1hzj5_36";e("default",a({name:"notation-a",setup(){const e=o(!1),t=o(!1),a=o({}),z=o(!1),g=i().getToken||"",b=o();console.log(g);const y=n({src:`${/(192|localhost)/.test(location.origin)?"http://localhost:3050":location.origin}/notation/#/create?Authorization=${g}`}),V=o=>{console.log(o.data,"data"),"notation_open"===o.data.api?v.application?(e.value=!0,t.value=!0,a.value={url:o.data.url}):window.open(o.data.url):"notation_exit"===o.data.api&&(z.value=!0)};return l((()=>{window.addEventListener("message",V)})),()=>r("div",{class:c},[r("iframe",{ref:b,src:y.src},null),r(s,{show:t.value,"onUpdate:show":e=>t.value=e,class:w,showIcon:!1,displayDirective:"show"},{default:()=>[r(_,{show:e.value,style:"--n-opacity-spinning: 1;"},{default:()=>[r("iframe",{class:p,onLoad:()=>{e.value=!1},frameborder:"0",src:a.value.url},null)]})]}),r(s,{show:z.value,"onUpdate:show":e=>z.value=e,preset:"card",class:["modalTitle",m],title:"退出制谱"},{default:()=>[r("div",{class:j},[r("p",null,[d("是否退出制谱功能?")]),r(h,{class:f,justify:"center"},{default:()=>[r(u,{round:!0,type:"primary",onClick:()=>{t.value=!1,a.value.url="",z.value=!1,b.value.contentWindow.postMessage({api:"reload"},"*")}},{default:()=>[d("确定")]}),r(u,{round:!0,onClick:()=>z.value=!1},{default:()=>[d("取消")]})]})])]})])}}))}}}));
|