UNPKG

@zeppos/zml

Version:

A Mini Library of ZeppOS MiniApp

2 lines (1 loc) 560 B
class e{constructor(e){this.global=e}getValue(e){return this.global[e]}setValue(e,s){return this.global[e]=s}deleteKey(e){delete this.global[e]}}class s extends e{constructor(){super(__$$app$$__.__globals__.__scopedGlobals__)}}const[{Dispose:{IDisposable:t,Disposable:l}}]=function(...e){const s=getApp().$m;return e.reduce(((e,t)=>(e.push(s[t]),e)),[])}("Dispose");function o(){return(new s).getValue(l.dispose)}function n(){return(new ModuleGlobalThis).getValue(l.dispose)}export{l as Disposable,t as IDisposable,o as getAppDisposer,n as getModuleDisposer};