跳到主要内容

restore 恢复正常状态

restore

类型: MethodDeclaration

所属类: ButtonElement

定义位置: ui.ts

描述

恢复正常状态

返回值

类型: void

源代码

位置: 第 4999 行

public restore(): void {
if (this.state !== 'normal') {
if (this.selected) {
this.selected = false
this.emit('deselect')
}
this.state = 'normal'
this.updateDisplayMode()
}
}

文档生成时间:2025/7/7 12:07:07