docs: fix alert demo in docs

This commit is contained in:
Netfan 2025-04-02 20:34:38 +08:00
parent 7933da8f66
commit c623604ea9

View File

@ -20,8 +20,11 @@ function showIconConfirm() {
function showAsyncConfirm() {
confirm({
beforeClose() {
beforeClose({ isConfirm }) {
if (isConfirm) {
// false
return new Promise((resolve) => setTimeout(resolve, 2000));
}
},
content: 'This is an alert message with async confirm',
icon: 'success',