import { BaseDpCtrl } from "./base-dp-ctrl" ; declare global { interface ITestCtrlKeyType { OnUpdateDpc : "OnUpdateDpc" ; OnShowDpc : "OnShowDpc" ; OnInitDpc : "OnInitDpc" ; } interface ITestCtrlShowDataMap { OnShowDpc : number ; } interface ITestCtrlInitDataMap { OnInitDpc : number ; } interface ITestCtrlUpdateDataMap { OnUpdateDpc : number ; } } export class OnUpdateDpc extends BaseDpCtrl { public static readonly typeKey : "OnUpdateDpc" = "OnUpdateDpc" ; public updateData : number ; constructor ( ) { super ( ) ; } onUpdate ( updateData ) { this . updateData = updateData ; } } export class OnShowDpc extends BaseDpCtrl { public static readonly typeKey : string = "OnShowDpc" ; public showData : number ; constructor ( ) { super ( ) ; } onShow ( config ) { this . showData = config . onShowData ; super . onShow ( config ) ; } } export class OnInitDpc extends BaseDpCtrl { public static readonly typeKey : "OnInitDpc" = "OnInitDpc" ; public initData : number ; constructor ( ) { super ( ) ; } onInit ( config ) { this . initData = config . onInitData ; } }