From c931656c90e42a5ee231e30b9afacccd3e3e846b Mon Sep 17 00:00:00 2001 From: duanzhijiang Date: Sat, 12 Nov 2022 17:33:34 +0800 Subject: [PATCH] =?UTF-8?q?web-component=E4=BF=AE=E6=94=B9=E9=94=81?= =?UTF-8?q?=E5=B1=8F=E5=B7=B2=E9=94=81=E5=AE=9A=E9=A1=B5=E9=9D=A2=E7=9B=B8?= =?UTF-8?q?=E5=85=B3=E5=91=BD=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/digicipher/digicipher.ts | 9 +++++++++ src/components/pattern-view/pattern-view.ts | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/components/digicipher/digicipher.ts b/src/components/digicipher/digicipher.ts index 5dd1207..8dc65b8 100644 --- a/src/components/digicipher/digicipher.ts +++ b/src/components/digicipher/digicipher.ts @@ -210,6 +210,15 @@ export class StarLockNumber extends StarBaseElement { } this.guess = '' this.clicks = 0 + this.dispatchEvent( + new CustomEvent('lockscreen-cancel-button', { + detail: { + value: true, + }, + bubbles: true, + composed: true, + }) + ) } } touchEnd(e: TouchEvent) { diff --git a/src/components/pattern-view/pattern-view.ts b/src/components/pattern-view/pattern-view.ts index 95e5175..918a957 100644 --- a/src/components/pattern-view/pattern-view.ts +++ b/src/components/pattern-view/pattern-view.ts @@ -224,7 +224,7 @@ export class StarPatternView extends StarBaseElement { /* 点击取消,擦除绘制图案 */ this.initialState() this.dispatchEvent( - new CustomEvent('star-pattern-view-cancel', { + new CustomEvent('lockscreen-cancel-button', { detail: { value: true, },