!11121 修复AlertDialog的参数为AlertDialogButtonOptions时,无法默认响应Enter键

Merge pull request !11121 from liyi/master
This commit is contained in:
openharmony_ci 2024-05-11 02:33:57 +00:00 committed by Gitee
commit e820cb6481
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -500,6 +500,15 @@ declare interface AlertDialogButtonOptions {
* @since 11
*/
action: () => void;
/**
* Define whether the button responds to Enter/Space key by default.
*
* @type { ?boolean }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @since 12
*/
primary?: boolean;
}
/**