mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-12-12 11:22:56 +00:00
3 lines
1.1 KiB
JavaScript
3 lines
1.1 KiB
JavaScript
System.register(["./index-legacy-BZIjD-ri.js","./use-app-legacy-CnSJSd6n.js"],function(e,o){"use strict";var t,n,a,r,i,l,s,c,p,d,g,u,f,y,m;return{setters:[e=>{t=e.d,n=e.l,a=e.u,r=e.i,i=e.m,l=e.e,s=e.q,c=e.f,p=e.g,d=e.o,g=e.s,u=e.r,f=e.I},e=>{y=e.a,m=e.r}],execute:function(){e("default",t({name:"tmagic-overlay",__name:"index",props:{config:{},iteratorIndex:{},iteratorContainerId:{},containerIndex:{},pageFragmentContainerId:{},model:{},disabled:{type:Boolean}},setup(e,{expose:o}){const t=e,v=n(!1),x=r("app"),I=a({componentType:"container",app:x}),O=()=>{v.value=!0,x?.emit("overlay:open",C)},_=()=>{v.value=!1,x?.emit("overlay:close",C)},j=(e,o)=>{o.find(e=>e.id===t.config.id)?O():_()};x?.page?.on("editor:select",j),x?.on("page-change",()=>{x?.page?.on("editor:select",j)}),i(()=>{x?.page?.off("editor:select",j)});const C=y(t,x);return m(C,{openOverlay:O,closeOverlay:_}),o({openOverlay:O,closeOverlay:_}),(o,t)=>v.value?(d(),l(p(c(I)),{key:0,config:{items:e.config.items,[c(f)]:!1}},{default:g(()=>[u(o.$slots,"default")]),_:3},8,["config"])):s("",!0)}}))}}});
|
|
//# sourceMappingURL=index-legacy-DoCLgAcy.js.map
|