58bc93c2-d8df-487b-bd07-0a6f079cb593.js.map
1.95 KB
{"version":3,"sources":["assets/script/game/ui/presenter/NoticeViewPresenter.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,sEAAyD;AACzD,wDAAsF;AACtF,2EAAoE;AAQpE;IAAA,IAAqB,mBAAmB,GAAxC,MAAqB,mBAAoB,SAAQ,yBAAsC;QAOnF;YACI,KAAK,EAAE,CAAC;YAmBZ,uBAAkB,GAAG,GAAG,EAAE;gBACtB,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC;YACtB,CAAC,CAAA;YApBG,IAAI,CAAC,UAAU,GAAG;gBACd,QAAQ,EAAE,EAAE;gBACZ,UAAU,EAAE,EAAE;gBACd,YAAY,EAAE,IAAI,CAAC,kBAAkB;aACxC,CAAC;QACN,CAAC;QAGD,MAAM,CAAC,KAAsB;YACzB,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YAEpB,IAAI,CAAC,UAAU,CAAC,QAAQ,GAAG,KAAK,CAAC,KAAK,CAAC;YACvC,IAAI,CAAC,UAAU,CAAC,UAAU,GAAG,KAAK,CAAC,OAAO,CAAC;YAC3C,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QAExC,CAAC;KAOJ,CAAA;IA7BU,wBAAI,GAAG,qBAAqB,CAAA;IAFlB,mBAAmB;QADvC,qCAAY,CAAC,2BAAc,CAAC;OACR,mBAAmB,CA+BvC;IAAD,0BAAC;KAAA;kBA/BoB,mBAAmB","file":"","sourceRoot":"/","sourcesContent":["import { RegPresenter } from \"../PresenterCCViewFactory\";\r\nimport { NoticeViewType, NoticeView, NoticeViewProps } from \"../view/type/NoticeView\";\r\nimport { Presenter } from \"../../../common/classbase/PresenterBase\";\r\n\r\nexport interface NoticeViewParam {\r\n title: string;\r\n content: string;\r\n}\r\n\r\n@RegPresenter(NoticeViewType)\r\nexport default class NoticeViewPresenter extends Presenter<NoticeViewParam, NoticeView>\r\n{\r\n static uuid = \"NoticeViewPresenter\"\r\n\r\n private _viewProps: NoticeViewProps;\r\n\r\n\r\n constructor() {\r\n super();\r\n this._viewProps = {\r\n titletxt: \"\",//标题\r\n contenttxt: \"\",//内容\r\n onCloseClick: this.onCloseHandleClick\r\n };\r\n }\r\n\r\n\r\n onOpen(param: NoticeViewParam) {\r\n super.onOpen(param);\r\n\r\n this._viewProps.titletxt = param.title;\r\n this._viewProps.contenttxt = param.content;\r\n this.view.setProps(this._viewProps);\r\n\r\n }\r\n\r\n\r\n onCloseHandleClick = () => {\r\n this.view.close();\r\n }\r\n\r\n}"]}