import { } from "@ailhc/display-ctrl" ; export class CCNodeCtrl implements displayCtrl . ICtrl < cc . Node > { key ? : string | any ; isLoading ? : boolean ; isLoaded ? : boolean ; isInited ? : boolean ; isShowed ? : boolean ; needShow ? : boolean ; needLoad ? : boolean ; isShowing ? : boolean ; visible : boolean ; onLoadData : any ; protected node : cc . Node ; protected _mgr : displayCtrl . IMgr ; constructor ( dpcMgr ? ) { this . _mgr = dpcMgr ; } onInit ( config ? ) { } onShow ( config ? ) { if ( this . node ) { this . node . active = true ; } } getRess ( ) { return undefined ; } getNode ( ) { return this . node ; } onUpdate ( updateData ) { } getFace < T = any > ( ) { return this as any ; } onDestroy ( destroyRes ? ) { if ( this . node ) { this . node . destroy ( ) ; } } onHide ( ) { if ( this . node ) { this . node . active = false ; } } forceHide ( ) { this . node && ( this . node . active = false ) ; this . isShowed = false ; } onResize ( ) { } }