web-component修改锁屏已锁定页面相关命名

This commit is contained in:
duanzhijiang 2022-11-12 17:33:34 +08:00
parent 25ce3760a4
commit c931656c90
2 changed files with 10 additions and 1 deletions

View File

@ -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) {

View File

@ -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,
},