Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
monorepo
/
venus
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
1
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit c623604e
authored
Apr 02, 2025
by
Netfan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
docs: fix alert demo in docs
1 parent
7933da8f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
docs/src/demos/vben-alert/confirm/index.vue
docs/src/demos/vben-alert/confirm/index.vue
View file @
c623604
...
@@ -20,8 +20,11 @@ function showIconConfirm() {
...
@@ -20,8 +20,11 @@ function showIconConfirm() {
function
showAsyncConfirm
()
{
function
showAsyncConfirm
()
{
confirm
({
confirm
({
beforeClose
()
{
beforeClose
({
isConfirm
})
{
return
new
Promise
((
resolve
)
=>
setTimeout
(
resolve
,
2000
));
if
(
isConfirm
)
{
// 这里可以执行一些异步操作。如果最终返回了false,将阻止关闭弹窗
return
new
Promise
((
resolve
)
=>
setTimeout
(
resolve
,
2000
));
}
},
},
content
:
'This is an alert message with async confirm'
,
content
:
'This is an alert message with async confirm'
,
icon
:
'success'
,
icon
:
'success'
,
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment