From d82a81c8f7d03db1df1546de58f17642c55a058c Mon Sep 17 00:00:00 2001 From: "DESKTOP-474NEJQ\\xzsjob" <359059686@qq.com> Date: Wed, 26 Aug 2020 08:48:09 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=96=B0=E5=A2=9E]=20=E5=9B=BE=E6=A0=87?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E9=9A=90=E8=97=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../working-area/working-area.component.ts | 26 ++++++++++++------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/src/app/working-area/working-area.component.ts b/src/app/working-area/working-area.component.ts index 77adb12..fa6489a 100644 --- a/src/app/working-area/working-area.component.ts +++ b/src/app/working-area/working-area.component.ts @@ -88,15 +88,15 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV } }); - // 测试代码 - this.eventManager.addGlobalEventListener('window', 'keypress', (event: any) => { - if (event.keyCode === 97) { - this.copy(); - } - if (event.keyCode === 115) { - this.paste('1', '2', '3'); - } - }); + // // 测试代码 + // this.eventManager.addGlobalEventListener('window', 'keypress', (event: any) => { + // if (event.keyCode === 97) { + // this.copy(); + // } + // if (event.keyCode === 115) { + // this.paste('1', '2', '3'); + // } + // }); } ngAfterViewInit(): void { @@ -256,6 +256,14 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV } }); } + /** + * + * @param id 图标ID + * @param b 显示/隐藏 + */ + public setIconVisible(id: string, b: boolean) { + this.backgroundImage.getChildByName(id).visible = b; + } /** * 版本检查 */