feat:支持二次确认弹窗确认、取消按钮

This commit is contained in:
richarjiang
2026-05-12 20:10:00 +08:00
parent 8b27dc7bc5
commit 078c8578fd
4 changed files with 1197 additions and 98 deletions

View File

@@ -2132,13 +2132,17 @@ export class PageLevel extends BaseView {
}
const modal = CommonModal.show(this.commonModalPrefab, {
title: '切换下一题',
content: '确认进入下一题吗?',
buttonHint: '确认',
title: '提示',
content: '还有时间,确认进入下一题吗?',
buttonConfirm: '确认',
buttonCancel: '再想想',
zIndex: CommonModal.MODAL_Z_INDEX + 1,
onClose: () => {
this._commonModalNode = null;
},
onCancel: () => {
this._commonModalNode = null;
},
onConfirm: () => {
this._commonModalNode = null;
onConfirm();